Atomic Blocks – Gutenberg Blocks Collection - Version 2.8.5

Version Description

  • Fixes issue where all pages selected in the Post and Page Grid block might not be displayed.
  • Fixes issue where column setting was not visible when working with pages in the Post and Page Grid block.
  • Fixes issue with block styles not loading on the front end under certain conditions.
Download this release

Release Info

Developer studiopress
Plugin Icon 128x128 Atomic Blocks – Gutenberg Blocks Collection
Version 2.8.5
Comparing to
See all releases

Code changes from version 2.8.4 to 2.8.5

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://atomicblocks.com
4
  Tags: Blocks, editor, gutenberg, gutenberg blocks, page builder, block enabled, page building, block, WP Engine
5
  Requires at least: 5.3
6
  Tested up to: 5.4
7
- Stable tag: 2.8.4
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -127,6 +127,11 @@ Yes, you will need to have WordPress 5.0 or later installed to take advantage of
127
  17. Spacer and Divider Block
128
 
129
  == Changelog ==
 
 
 
 
 
130
  = 2.8.4 =
131
  * Improves styles for improved editor preview.
132
  * Introduce fluid typography styles for use in future releases.
4
  Tags: Blocks, editor, gutenberg, gutenberg blocks, page builder, block enabled, page building, block, WP Engine
5
  Requires at least: 5.3
6
  Tested up to: 5.4
7
+ Stable tag: 2.8.5
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
127
  17. Spacer and Divider Block
128
 
129
  == Changelog ==
130
+ = 2.8.5 =
131
+ * Fixes issue where all pages selected in the Post and Page Grid block might not be displayed.
132
+ * Fixes issue where column setting was not visible when working with pages in the Post and Page Grid block.
133
+ * Fixes issue with block styles not loading on the front end under certain conditions.
134
+
135
  = 2.8.4 =
136
  * Improves styles for improved editor preview.
137
  * Introduce fluid typography styles for use in future releases.
atomicblocks.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: A beautiful collection of handy Gutenberg blocks to help you get started with the new WordPress editor.
6
  * Author: atomicblocks
7
  * Author URI: http://atomicblocks.com
8
- * Version: 2.8.4
9
  * License: GPL2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  *
@@ -43,5 +43,5 @@ if ( ! function_exists( 'atomic_blocks_main_plugin_file' ) ) {
43
  }
44
 
45
  // Load the rest of the plugin.
46
- require_once 'loader.php';
47
  }
5
  * Description: A beautiful collection of handy Gutenberg blocks to help you get started with the new WordPress editor.
6
  * Author: atomicblocks
7
  * Author URI: http://atomicblocks.com
8
+ * Version: 2.8.5
9
  * License: GPL2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  *
43
  }
44
 
45
  // Load the rest of the plugin.
46
+ require_once plugin_dir_path( __FILE__ ) . 'loader.php';
47
  }
dist/blocks.build.js CHANGED
@@ -305,4 +305,4 @@ e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeo
305
  *
306
  * This source code is licensed under the MIT license found in the
307
  * LICENSE file in the root directory of this source tree.
308
- */var r,o,a,i,l;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(c,0))},o=function(e,t){u=setTimeout(e,t)},a=function(){clearTimeout(u)},i=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,f=window.Date,m=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var b=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var y=f.now();t.unstable_now=function(){return f.now()-y}}var _=!1,g=null,v=-1,w=5,k=0;i=function(){return t.unstable_now()>=k},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var M=new MessageChannel,L=M.port2;M.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();k=e+w;try{g(!0,e)?L.postMessage(null):(_=!1,g=null)}catch(e){throw L.postMessage(null),e}}else _=!1},r=function(e){g=e,_||(_=!0,L.postMessage(null))},o=function(e,n){v=m((function(){e(t.unstable_now())}),n)},a=function(){h(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<Y(o,t)))break e;e[r]=t,e[n]=o,n=r}}function T(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],l=a+1,s=e[l];if(void 0!==i&&0>Y(i,n))void 0!==s&&0>Y(s,i)?(e[r]=s,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==s&&0>Y(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function Y(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],D=[],O=1,C=null,j=3,P=!1,R=!1,H=!1;function A(e){for(var t=T(D);null!==t;){if(null===t.callback)E(D);else{if(!(t.startTime<=e))break;E(D),t.sortIndex=t.expirationTime,S(x,t)}t=T(D)}}function F(e){if(H=!1,A(e),!R)if(null!==T(x))R=!0,r(z);else{var t=T(D);null!==t&&o(F,t.startTime-e)}}function z(e,n){R=!1,H&&(H=!1,a()),P=!0;var r=j;try{for(A(n),C=T(x);null!==C&&(!(C.expirationTime>n)||e&&!i());){var l=C.callback;if(null!==l){C.callback=null,j=C.priorityLevel;var s=l(C.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?C.callback=s:C===T(x)&&E(x),A(n)}else E(x);C=T(x)}if(null!==C)var u=!0;else{var c=T(D);null!==c&&o(F,c.startTime-n),u=!1}return u}finally{C=null,j=r,P=!1}}function N(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||P||(R=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return T(x)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,i){var l=t.unstable_now();if("object"==typeof i&&null!==i){var s=i.delay;s="number"==typeof s&&0<s?l+s:l,i="number"==typeof i.timeout?i.timeout:N(e)}else i=N(e),s=l;return e={id:O++,callback:n,priorityLevel:e,startTime:s,expirationTime:i=s+i,sortIndex:-1},s>l?(e.sortIndex=s,S(D,e),null===T(x)&&e===T(D)&&(H?a():H=!0,o(F,s-l))):(e.sortIndex=i,S(x,e),R||P||(R=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();A(e);var n=T(x);return n!==C&&null!==C&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<C.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},function(e,t,n){"use strict";var r=n(290);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(61);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(293);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(294);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(8),o=n(21),a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;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(a,"");var n=l.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function l(e,t,n,r){var o=t&&t.prototype instanceof c?t:c,a=Object.create(o.prototype),i=new k(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return L()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=g(i,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function c(){}function d(){}function p(){}var f={};f[o]=function(){return this};var m=Object.getPrototypeOf,h=m&&m(m(M([])));h&&h!==t&&n.call(h,o)&&(f=h);var b=p.prototype=c.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function _(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,l){var u=s(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,l)}))}l(u.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function g(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function M(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=b.constructor=p,p.constructor=d,p[i]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(_.prototype),_.prototype[a]=function(){return this},e.AsyncIterator=_,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new _(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},y(b),b[i]="Generator",b[o]=function(){return this},b.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=M,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=wp.element.Component,f=wp.hooks.applyFilters,m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(a,e);var t,n,r,o=u(a);function a(){return i(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){if(void 0===this.props.children)return null;var e=!1;if(void 0!==this.props.children.props&&void 0!==this.props.children.props.name||(e=!0),e&&(void 0===this.props.children._owner||void 0===this.props.children._owner.memoizedProps||void 0===this.props.children._owner.memoizedProps.name))return this.props.children;var t=e?this.props.children._owner.memoizedProps.name:this.props.children.props.name;return f("ab_should_render_block_setting",!0,t,this.props.id,atomic_globals.user_data)?this.props.children:null}}])&&l(t.prototype,n),r&&l(t,r),a}(p);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=wp.i18n.__,M=wp.element.Component,L=wp.blockEditor,S=L.InspectorControls,T=L.PanelColorSettings,E=wp.components,Y=E.PanelBody,x=E.RangeControl,D=E.SelectControl,O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(a,e);var t,n,r,o=g(a);function a(){return b(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=[{value:"left-aligned",label:k("Left Aligned","atomic-blocks")},{value:"right-aligned",label:k("Right Aligned","atomic-blocks")}],n=this.props,r=n.attributes,o=r.testimonialBackgroundColor,a=r.testimonialTextColor,i=r.testimonialFontSize,l=r.testimonialCiteAlign,s=n.setAttributes;return wp.element.createElement(S,{key:"inspector"},wp.element.createElement(Y,null,wp.element.createElement(m,{id:"ab_testimonial_testimonialFontSize"},wp.element.createElement(x,{label:k("Font Size","atomic-blocks"),value:i,onChange:function(t){return e.props.setAttributes({testimonialFontSize:t})},min:14,max:24,step:1})),wp.element.createElement(m,{id:"ab_testimonial_testimonialCiteAlign"},wp.element.createElement(D,{label:k("Cite Alignment","atomic-blocks"),description:k("Left or right align the cite name and title.","atomic-blocks"),options:t,value:l,onChange:function(t){return e.props.setAttributes({testimonialCiteAlign:t})}}))),wp.element.createElement(m,{id:"ab_testimonial_testimonialBackgroundColor"},wp.element.createElement(T,{title:k("Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return s({testimonialBackgroundColor:e})},label:k("Background Color","atomic-blocks")}]})),wp.element.createElement(m,{id:"ab_testimonial_testimonialTextColor"},wp.element.createElement(T,{title:k("Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return s({testimonialTextColor:e})},label:k("Text Color","atomic-blocks")}]})))}}])&&y(t.prototype,n),r&&y(t,r),a}(M);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(i,e);var t,n,r,a=H(i);function i(){return j(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialImgURL,n=e.testimonialBackgroundColor,r=e.testimonialTextColor,a=e.testimonialFontSize,i=e.testimonialCiteAlign;return wp.element.createElement("div",{style:{backgroundColor:n||"#f2f2f2",color:r||"#32373c"},className:o()(this.props.className,i,{"ab-has-avatar":t},"ab-font-size-"+a,"ab-block-testimonial")},this.props.children)}}])&&P(t.prototype,n),r&&P(t,r),i}(wp.element.Component),N={};N.upload=wp.element.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),wp.element.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),wp.element.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),wp.element.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));var B=N;function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(){return(W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Z(e);if(t){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=wp.i18n.__,ee=wp.element,te=ee.Component,ne=ee.Fragment,re=wp.blockEditor,oe=re.RichText,ae=re.AlignmentToolbar,ie=re.BlockControls,le=re.MediaUpload,se=wp.components,ue=se.Button,ce=se.Dashicon,de=["image"],pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}(i,e);var t,n,r,a=K(i);function i(){return G(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.testimonialName,a=n.testimonialTitle,i=n.testimonialContent,l=n.testimonialAlignment,s=n.testimonialImgURL,u=n.testimonialImgID,c=n.testimonialTextColor,d=t.setAttributes,p=function(){d({testimonialImgURL:null,testimonialImgID:null})};return[wp.element.createElement(ie,{key:"controls"},wp.element.createElement(ae,{value:l,onChange:function(e){return d({testimonialAlignment:e})}})),wp.element.createElement(O,W({key:"ab-testimonial-inspector-"+this.props.clientId},V({setAttributes:d},this.props))),wp.element.createElement(z,W({key:"ab-testimonial-editor-"+this.props.clientId},this.props),wp.element.createElement(oe,{tagName:"div",multiline:"p",placeholder:X("Add testimonial text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:o()("ab-testimonial-text"),style:{textAlign:l},onChange:function(e){return d({testimonialContent:e})}}),wp.element.createElement("div",{className:"ab-testimonial-info"},wp.element.createElement("div",{className:"ab-testimonial-avatar-wrap"},wp.element.createElement("div",{className:"ab-testimonial-image-wrap"},wp.element.createElement(le,{buttonProps:{className:"change-image"},onSelect:function(e){return d({testimonialImgID:e.id,testimonialImgURL:e.url})},allowed:de,type:"image",value:u,render:function(e){var t=e.open;return wp.element.createElement(ne,null,wp.element.createElement(ue,{className:u?"ab-change-image":"ab-add-image",onClick:t},u?wp.element.createElement("img",{className:"ab-testimonial-avatar",src:s,alt:"avatar"}):B.upload),u&&wp.element.createElement(ue,{className:"ab-remove-image",onClick:p},wp.element.createElement(ce,{icon:"dismiss"})))}}))),wp.element.createElement(oe,{tagName:"h2",placeholder:X("Add name","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"ab-testimonial-name",style:{color:c},onChange:function(t){return e.props.setAttributes({testimonialName:t})}}),wp.element.createElement(oe,{tagName:"small",placeholder:X("Add title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:a,className:"ab-testimonial-title",style:{color:c},onChange:function(t){return e.props.setAttributes({testimonialTitle:t})}})))]}}])&&q(t.prototype,n),r&&q(t,r),i}(te);function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}function _e(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=wp.element.Component,we=wp.blockEditor.RichText,ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(a,e);var t,n,r,o=ye(a);function a(){return me(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialName,n=e.testimonialTitle,r=e.testimonialContent,o=e.testimonialAlignment,a=e.testimonialImgURL,i=e.testimonialTextColor;return wp.element.createElement(z,this.props,wp.element.createElement(we.Content,{tagName:"div",className:"ab-testimonial-text",style:{textAlign:o},value:r}),wp.element.createElement("div",{className:"ab-testimonial-info"},a&&wp.element.createElement("div",{className:"ab-testimonial-avatar-wrap"},wp.element.createElement("div",{className:"ab-testimonial-image-wrap"},wp.element.createElement("img",{className:"ab-testimonial-avatar",src:a,alt:"avatar"}))),t&&wp.element.createElement(we.Content,{tagName:"h2",className:"ab-testimonial-name",style:{color:i||"#32373c"},value:t}),n&&wp.element.createElement(we.Content,{tagName:"small",className:"ab-testimonial-title",style:{color:i||"#32373c"},value:n})))}}])&&he(t.prototype,n),r&&he(t,r),a}(ve),Me=(n(297),n(299),wp.i18n.__);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t){return(Ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=De(e);if(t){var o=De(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-testimonial",{title:Me("Testimonial","atomic-blocks"),description:Me("Add a user testimonial with a name and title.","atomic-blocks"),icon:"format-quote",category:"atomic-blocks",keywords:[Me("testimonial","atomic-blocks"),Me("quote","atomic-blocks"),Me("atomic","atomic-blocks")],attributes:{testimonialName:{type:"array",selector:".ab-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".ab-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".ab-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},ab_settings_data:{ab_testimonial_testimonialFontSize:{title:Me("Font Size","atomic-blocks")},ab_testimonial_testimonialCiteAlign:{title:Me("Cite Alignment","atomic-blocks")},ab_testimonial_testimonialBackgroundColor:{title:Me("Background Color","atomic-blocks")},ab_testimonial_testimonialTextColor:{title:Me("Text Color","atomic-blocks")}},edit:function(e){return wp.element.createElement(pe,e)},save:function(e){return wp.element.createElement(ke,e)}});var Oe=wp.i18n.__,Ce=wp.element.Component,je=wp.blockEditor,Pe=je.InspectorControls,Re=je.PanelColorSettings,He=wp.components,Ae=He.PanelBody,Fe=He.RangeControl,ze=He.SelectControl,Ne=He.TextControl,Be=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ee(e,t)}(a,e);var t,n,r,o=Ye(a);function a(e){return Se(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.profileFontSize,r=t.profileBackgroundColor,o=t.profileTextColor,a=t.profileLinkColor,i=t.twitter,l=t.facebook,s=t.instagram,u=t.pinterest,c=t.google,d=t.youtube,p=t.github,f=t.linkedin,h=t.wordpress,b=t.email,y=t.website,_=t.profileAvatarShape,g=this.props.setAttributes,v=[{value:"square",label:Oe("Square","atomic-blocks")},{value:"round",label:Oe("Round","atomic-blocks")}];return wp.element.createElement(Pe,{key:"inspector"},wp.element.createElement(Ae,null,wp.element.createElement(m,{id:"ab_author_profile_profileFontSize"},wp.element.createElement(Fe,{label:Oe("Font Size","atomic-blocks"),value:n,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1})),wp.element.createElement(m,{id:"ab_author_profile_profileAvatarShape"},wp.element.createElement(ze,{label:Oe("Avatar Shape","atomic-blocks"),description:Oe("Choose between a round or square avatar shape.","atomic-blocks"),options:v,value:_,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),wp.element.createElement(m,{id:"ab_author_profile_profileBackgroundColor"},wp.element.createElement(Re,{title:Oe("Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return g({profileBackgroundColor:e})},label:Oe("Background Color","atomic-blocks")}]})),wp.element.createElement(m,{id:"ab_author_profile_profileTextColor"},wp.element.createElement(Re,{title:Oe("Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return g({profileTextColor:e})},label:Oe("Text Color","atomic-blocks")}]})),wp.element.createElement(m,{id:"ab_author_profile_profileLinkColor"},wp.element.createElement(Re,{title:Oe("Social Link Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return g({profileLinkColor:e})},label:Oe("Social Link Color","atomic-blocks")}]}))),wp.element.createElement(m,{id:"ab_author_profile_socialLinks"},wp.element.createElement(Ae,{title:Oe("Social Links","atomic-blocks"),initialOpen:!1},wp.element.createElement("p",null,Oe("Add links to your social media site and they will appear in the bottom of the profile box.","atomic-blocks")),wp.element.createElement(Ne,{label:Oe("Twitter URL","atomic-blocks"),type:"url",value:i,onChange:function(t){return e.props.setAttributes({twitter:t})}}),wp.element.createElement(Ne,{label:Oe("Facebook URL","atomic-blocks"),type:"url",value:l,onChange:function(t){return e.props.setAttributes({facebook:t})}}),wp.element.createElement(Ne,{label:Oe("Instagram URL","atomic-blocks"),type:"url",value:s,onChange:function(t){return e.props.setAttributes({instagram:t})}}),wp.element.createElement(Ne,{label:Oe("Pinterest URL","atomic-blocks"),type:"url",value:u,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),wp.element.createElement(Ne,{label:Oe("Google URL","atomic-blocks"),type:"url",value:c,onChange:function(t){return e.props.setAttributes({google:t})}}),wp.element.createElement(Ne,{label:Oe("YouTube URL","atomic-blocks"),type:"url",value:d,onChange:function(t){return e.props.setAttributes({youtube:t})}}),wp.element.createElement(Ne,{label:Oe("Github URL","atomic-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({github:t})}}),wp.element.createElement(Ne,{label:Oe("LinkedIn URL","atomic-blocks"),type:"url",value:f,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),wp.element.createElement(Ne,{label:Oe("WordPress Profile URL","atomic-blocks"),type:"url",value:h,onChange:function(t){return e.props.setAttributes({wordpress:t})}}),wp.element.createElement(Ne,{label:Oe("Email URL","atomic-blocks"),help:Oe('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"atomic-blocks"),type:"url",value:b,onChange:function(t){return e.props.setAttributes({email:t})}}),wp.element.createElement(Ne,{label:Oe("Website URL","atomic-blocks"),type:"url",value:y,onChange:function(t){return e.props.setAttributes({website:t})}}))))}}])&&Te(t.prototype,n),r&&Te(t,r),a}(Ce);function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ve(e,t){return(Ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ge(this,n)}}function Ge(e,t){return!t||"object"!==Ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ve(e,t)}(i,e);var t,n,r,a=Je(i);function i(e){return We(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,i=e.profileTextColor,l=e.profileAvatarShape;return wp.element.createElement("div",{style:{backgroundColor:a,color:i},className:o()(this.props.className,t,l,{"ab-has-avatar":n},"ab-font-size-"+r,"ab-block-profile","ab-profile-columns")},this.props.children)}}])&&Ue(t.prototype,n),r&&Ue(t,r),i}(wp.element.Component);function Ke(e){return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nt(e);if(t){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}function tt(e,t){return!t||"object"!==Ke(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=wp.i18n.__,ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xe(e,t)}(a,e);var t,n,r,o=et(a);function a(e){return Qe(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement("ul",{className:"ab-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},rt("Website","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},rt("Twitter","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},rt("Facebook","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},rt("Instagram","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},rt("Pinterest","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},rt("Google","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},rt("YouTube","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},rt("LinkedIn","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},rt("Github","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},rt("WordPress","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},rt("Email","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}])&&Ze(t.prototype,n),r&&Ze(t,r),a}(wp.element.Component);function at(e){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function st(e,t){return(st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(e,t){return!t||"object"!==at(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&st(e,t)}(a,e);var t,n,r,o=ut(a);function a(e){return it(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement("div",{className:"ab-profile-column ab-profile-avatar-wrap"},wp.element.createElement("div",{className:"ab-profile-image-wrap"},this.props.children))}}])&&lt(t.prototype,n),r&&lt(t,r),a}(wp.element.Component);function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(){return(mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mt(e);if(t){var o=Mt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kt(this,n)}}function kt(e,t){return!t||"object"!==ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mt(e){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lt=wp.i18n.__,St=wp.element,Tt=St.Component,Et=St.Fragment,Yt=wp.blockEditor,xt=Yt.RichText,Dt=Yt.AlignmentToolbar,Ot=Yt.BlockControls,Ct=Yt.MediaUpload,jt=wp.components,Pt=jt.Button,Rt=jt.Dashicon,Ht=["image"],At=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vt(e,t)}(i,e);var t,n,r,a=wt(i);function i(){return _t(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.profileName,r=t.profileTitle,a=t.profileContent,i=t.profileAlignment,l=t.profileImgURL,s=t.profileImgID,u=t.profileImgAlt,c=t.profileTextColor,d=e.setAttributes;return[wp.element.createElement(Ot,{key:"controls"},wp.element.createElement(Dt,{value:i,onChange:function(e){return d({profileAlignment:e})}})),wp.element.createElement(Be,mt({key:"ab-author-profile-inspector-"+this.props.clientId},bt({setAttributes:d},this.props))),wp.element.createElement($e,mt({key:"ab-author-profile-"+this.props.clientId},this.props),wp.element.createElement(pt,this.props,wp.element.createElement("figure",{className:"ab-profile-image-square"},wp.element.createElement(Ct,{buttonProps:{className:"change-image"},onSelect:function(e){return d({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt})},allowed:Ht,type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(Et,null,wp.element.createElement(Pt,{onClick:t},s?wp.element.createElement("img",{className:o()("ab-profile-avatar","ab-change-image","wp-image-"+s),src:l,alt:u}):B.upload),s&&wp.element.createElement(Pt,{className:"ab-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},wp.element.createElement(Rt,{icon:"dismiss"})))}}))),wp.element.createElement("div",{className:o()("ab-profile-column ab-profile-content-wrap")},wp.element.createElement(xt,{tagName:"h2",placeholder:Lt("Add name","atomic-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"ab-profile-name",style:{color:c},onChange:function(e){return d({profileName:e})}}),wp.element.createElement(xt,{tagName:"p",placeholder:Lt("Add title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"ab-profile-title",style:{color:c},onChange:function(e){return d({profileTitle:e})}}),wp.element.createElement(xt,{tagName:"div",className:"ab-profile-text",multiline:"p",placeholder:Lt("Add profile text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:a,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:function(e){return d({profileContent:e})}}),wp.element.createElement(ot,this.props)))]}}])&&gt(t.prototype,n),r&&gt(t,r),i}(Tt);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function It(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ut(e);if(t){var o=Ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wt(this,n)}}function Wt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ut(e){return(Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vt=wp.element.Component,Jt=wp.blockEditor.RichText,Gt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}(i,e);var t,n,r,a=It(i);function i(){return zt(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,i=e.profileImgAlt,l=e.profileImgID,s=e.profileTextColor;return wp.element.createElement($e,this.props,a&&wp.element.createElement(pt,this.props,wp.element.createElement("figure",{className:"ab-profile-image-square"},wp.element.createElement("img",{className:o()("ab-profile-avatar","wp-image-"+l),src:a,alt:i}))),wp.element.createElement("div",{className:o()("ab-profile-column ab-profile-content-wrap")},t&&wp.element.createElement(Jt.Content,{tagName:"h2",className:"ab-profile-name",style:{color:s},value:t}),n&&wp.element.createElement(Jt.Content,{tagName:"p",className:"ab-profile-title",style:{color:s},value:n}),r&&wp.element.createElement(Jt.Content,{tagName:"div",className:"ab-profile-text",value:r}),wp.element.createElement(ot,this.props)))}}])&&Nt(t.prototype,n),r&&Nt(t,r),i}(Vt);n(300),n(301);function qt(e){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qt(e,t){return(Qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xt(this,n)}}function Xt(e,t){return!t||"object"!==qt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tn=wp.element.Component,nn=wp.blockEditor.RichText,rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qt(e,t)}(i,e);var t,n,r,a=Zt(i);function i(){return $t(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,i=e.profileTextColor;return wp.element.createElement($e,this.props,a&&wp.element.createElement(pt,this.props,wp.element.createElement("div",{className:"ab-profile-image-square"},wp.element.createElement("img",{className:"ab-profile-avatar",src:a,alt:"avatar"}))),wp.element.createElement("div",{className:o()("ab-profile-column ab-profile-content-wrap")},t&&wp.element.createElement(nn.Content,{tagName:"h2",className:"ab-profile-name",style:{color:i},value:t}),n&&wp.element.createElement(nn.Content,{tagName:"p",className:"ab-profile-title",style:{color:i},value:n}),r&&wp.element.createElement(nn.Content,{tagName:"div",className:"ab-profile-text",value:r}),wp.element.createElement(ot,this.props)))}}])&&Kt(t.prototype,n),r&&Kt(t,r),i}(tn),on=[{attributes:{profileName:{type:"array",source:"children",selector:".ab-profile-name"},profileTitle:{type:"array",source:"children",selector:".ab-profile-title"},profileContent:{type:"array",selector:".ab-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},website:{type:"url"}},save:function(e){return wp.element.createElement(rn,e)}}],an=wp.i18n.__;function ln(e){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cn(e,t){return(cn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fn(e);if(t){var o=fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pn(this,n)}}function pn(e,t){return!t||"object"!==ln(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fn(e){return(fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-profile-box",{title:an("Profile Box","atomic-blocks"),description:an("Add a profile box with bio info and social media links.","atomic-blocks"),icon:"admin-users",category:"atomic-blocks",keywords:[an("author","atomic-blocks"),an("profile","atomic-blocks"),an("atomic","atomic-blocks")],attributes:{profileName:{type:"array",source:"children",selector:".ab-profile-name"},profileTitle:{type:"array",source:"children",selector:".ab-profile-title"},profileContent:{type:"array",selector:".ab-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},ab_settings_data:{ab_author_profile_profileFontSize:{title:an("Font Size","atomic-blocks")},ab_author_profile_profileAvatarShape:{title:an("Avatar Shape","atomic-blocks")},ab_author_profile_profileBackgroundColor:{title:an("Background Color","atomic-blocks")},ab_author_profile_profileTextColor:{title:an("Text Color","atomic-blocks")},ab_author_profile_profileLinkColor:{title:an("Social Link Color","atomic-blocks")},ab_author_profile_socialLinks:{title:an("Social Links","atomic-blocks")}},edit:function(e){return wp.element.createElement(At,e)},save:function(e){return wp.element.createElement(Gt,e)},deprecated:on});var mn=wp.i18n.__,hn=wp.element.Component,bn=wp.blockEditor,yn=bn.PanelColorSettings,_n=bn.InspectorControls,gn=wp.components,vn=gn.PanelBody,wn=gn.RangeControl,kn=gn.SelectControl,Mn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cn(e,t)}(a,e);var t,n,r,o=dn(a);function a(e){return sn(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=[{value:null,label:mn("Always Show","atomic-blocks")},{value:"ab-dismissable",label:mn("Dismissible","atomic-blocks")}],n=this.props.attributes,r=n.noticeBackgroundColor,o=n.noticeTextColor,a=n.noticeTitleColor,i=n.noticeFontSize,l=n.noticeDismiss,s=this.props.setAttributes;return wp.element.createElement(_n,{key:"inspector"},wp.element.createElement(vn,null,wp.element.createElement(m,{id:"ab_notice_noticeFontSize"},wp.element.createElement(wn,{label:mn("Font Size","atomic-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),wp.element.createElement(m,{id:"ab_notice_noticeDismiss"},wp.element.createElement(kn,{label:mn("Notice Display","atomic-blocks"),description:mn("Do you want the message to always show or dismissible?","atomic-blocks"),options:t,value:l,onChange:function(t){return e.props.setAttributes({noticeDismiss:t})}}))),wp.element.createElement(m,{id:"ab_notice_colorSettings"},wp.element.createElement(yn,{title:mn("Notice Color","atomic-blocks"),colorValue:r,initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return s({noticeBackgroundColor:e})},colors:[{color:"#00d1b2",name:"teal"},{color:"#3373dc",name:"royal blue"},{color:"#209cef",name:"sky blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"},{color:"#392F43",name:"black"}],label:mn("Notice Color","atomic-blocks")}]}),wp.element.createElement(yn,{title:mn("Title Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return s({noticeTitleColor:e})},label:mn("Title Color","atomic-blocks")}]}),wp.element.createElement(yn,{title:mn("Text Color","atomic-blocks"),colorValue:o,initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return s({noticeTextColor:e})},label:mn("Text Color","atomic-blocks")}]})))}}])&&un(t.prototype,n),r&&un(t,r),a}(hn),Ln=n(194),Sn=n.n(Ln);function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xn(e,t){return(xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cn(e);if(t){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return On(this,n)}}function On(e,t){return!t||"object"!==Tn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xn(e,t)}(i,e);var t,n,r,a=Dn(i);function i(e){return En(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props.attributes,n=t.noticeTitle,r=t.noticeAlignment,a=t.noticeBackgroundColor,i=t.noticeTextColor,l=t.noticeFontSize,s=t.noticeDismiss,u=(e=s+n,Sn()(e).substr(0,6));return wp.element.createElement("div",{style:{color:i,textAlign:r,backgroundColor:a},className:o()(this.props.className,s,"ab-font-size-"+l,"ab-block-notice"),"data-id":u},this.props.children)}}])&&Yn(t.prototype,n),r&&Yn(t,r),i}(wp.element.Component);function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e,t){return(An=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nn(e);if(t){var o=Nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zn(this,n)}}function zn(e,t){return!t||"object"!==Pn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nn(e){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&An(e,t)}(a,e);var t,n,r,o=Fn(a);function a(e){return Rn(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes.noticeTitleColor;return wp.element.createElement("div",{className:"ab-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}])&&Hn(t.prototype,n),r&&Hn(t,r),a}(wp.element.Component),In={};In.upload=wp.element.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),wp.element.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),wp.element.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),wp.element.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),In.dismiss=wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zM15 13l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));var Wn=In;n(302),n(303);function Un(e){return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vn(){return(Vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e,t){return(Qn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=er(e);if(t){var o=er(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xn(this,n)}}function Xn(e,t){return!t||"object"!==Un(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tr=wp.i18n.__,nr=wp.element.Component,rr=wp.blocks.registerBlockType,or=wp.blockEditor,ar=or.RichText,ir=or.AlignmentToolbar,lr=or.BlockControls,sr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qn(e,t)}(i,e);var t,n,r,a=Zn(i);function i(){return $n(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.noticeTitle,r=t.noticeContent,a=t.noticeAlignment,i=t.noticeBackgroundColor,l=t.noticeTitleColor,s=t.noticeDismiss,u=e.setAttributes;return[wp.element.createElement(lr,{key:"controls"},wp.element.createElement(ir,{value:a,onChange:function(e){return u({noticeAlignment:e})}})),wp.element.createElement(Mn,Vn({key:"ab-notice-inspector-"+this.props.clientId},Gn({setAttributes:u},this.props))),wp.element.createElement(jn,Vn({key:"ab-notice-noticebox-"+this.props.clientId},this.props),s&&"ab-dismissable"===s&&wp.element.createElement(Bn,this.props,Wn.dismiss),wp.element.createElement(ar,{tagName:"p",placeholder:tr("Notice Title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:n,className:o()("ab-notice-title"),style:{color:l},onChange:function(e){return u({noticeTitle:e})}}),wp.element.createElement(ar,{tagName:"div",multiline:"p",placeholder:tr("Add notice text...","atomic-blocks"),value:r,className:o()("ab-notice-text"),style:{borderColor:i},onChange:function(e){return u({noticeContent:e})}}))]}}])&&Kn(t.prototype,n),r&&Kn(t,r),i}(nr);function ur(e){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pr(e,t){return(pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hr(e);if(t){var o=hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mr(this,n)}}function mr(e,t){return!t||"object"!==ur(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hr(e){return(hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}rr("atomic-blocks/ab-notice",{title:tr("Notice","atomic-blocks"),description:tr("Add a stylized text notice.","atomic-blocks"),icon:"format-aside",category:"atomic-blocks",keywords:[tr("notice","atomic-blocks"),tr("message","atomic-blocks"),tr("atomic","atomic-blocks")],attributes:{noticeTitle:{type:"string",selector:".ab-notice-title"},noticeContent:{type:"array",selector:".ab-notice-text",source:"children"},noticeAlignment:{type:"string"},noticeBackgroundColor:{type:"string",default:"#00d1b2"},noticeTextColor:{type:"string",default:"#32373c"},noticeTitleColor:{type:"string",default:"#fff"},noticeFontSize:{type:"number",default:18},noticeDismiss:{type:"string",default:""}},ab_settings_data:{ab_notice_noticeFontSize:{title:tr("Font Size","atomic-blocks")},ab_notice_noticeDismiss:{title:tr("Notice Display","atomic-blocks")},ab_notice_colorSettings:{title:tr("Notice Color","atomic-blocks")}},edit:sr,save:function(e){var t=e.attributes,n=t.noticeTitle,r=t.noticeContent,o=t.noticeBackgroundColor,a=t.noticeTitleColor,i=t.noticeDismiss;return wp.element.createElement(jn,e,i&&"ab-dismissable"===i&&wp.element.createElement(Bn,e,Wn.dismiss),n&&wp.element.createElement("div",{className:"ab-notice-title",style:{color:a}},wp.element.createElement(ar.Content,{tagName:"p",value:n})),r&&wp.element.createElement(ar.Content,{tagName:"div",className:"ab-notice-text",style:{borderColor:o},value:r}))}});var br=wp.i18n.__,yr=wp.element.Component,_r=wp.blockEditor.InspectorControls,gr=wp.components,vr=gr.RangeControl,wr=gr.SelectControl,kr=gr.PanelBody,Mr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pr(e,t)}(a,e);var t,n,r,o=fr(a);function a(e){return cr(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapFontSize,r=t.dropCapStyle,o=[{value:"ab-drop-cap-letter",label:br("Letter")},{value:"ab-drop-cap-square",label:br("Square")},{value:"ab-drop-cap-border",label:br("Border")}];return wp.element.createElement(_r,{key:"inspector"},wp.element.createElement(kr,null,wp.element.createElement(m,{id:"ab_dropcap_dropCapFontSize"},wp.element.createElement(vr,{label:br("Drop Cap Size"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),wp.element.createElement(m,{id:"ab_dropcap_dropCapStyle"},wp.element.createElement(wr,{label:br("Drop Cap Style"),description:br("Choose the style of the drop cap in your paragraph."),options:o,value:r,onChange:function(t){return e.props.setAttributes({dropCapStyle:t})}}))))}}])&&dr(t.prototype,n),r&&dr(t,r),a}(yr);function Lr(e){return(Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Er(e,t){return(Er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dr(e);if(t){var o=Dr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xr(this,n)}}function xr(e,t){return!t||"object"!==Lr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dr(e){return(Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Or=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Er(e,t)}(i,e);var t,n,r,a=Yr(i);function i(e){return Sr(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.dropCapAlignment,n=e.dropCapTextColor,r=e.dropCapFontSize,a=e.dropCapStyle;return wp.element.createElement("div",{style:{color:n,textAlign:t},className:o()(this.props.className,a,"ab-font-size-"+r,"ab-block-drop-cap")},this.props.children)}}])&&Tr(t.prototype,n),r&&Tr(t,r),i}(wp.element.Component);n(304),n(305);function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jr(){return(jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hr(e,t){return(Hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zr(e);if(t){var o=zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fr(this,n)}}function Fr(e,t){return!t||"object"!==Cr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zr(e){return(zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nr=wp.i18n.__,Br=wp.element.Component,Ir=wp.blocks.registerBlockType,Wr=wp.blockEditor,Ur=Wr.RichText,Vr=Wr.AlignmentToolbar,Jr=Wr.BlockControls,Gr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hr(e,t)}(i,e);var t,n,r,a=Ar(i);function i(){return Pr(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,a=t.dropCapFontSize;return[wp.element.createElement(Jr,{key:"controls"},wp.element.createElement(Vr,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),wp.element.createElement(Mr,jr({key:"ab-drop-cap-inspector-"+this.props.clientId},this.props)),wp.element.createElement(Or,jr({key:"ab-drop-cap-"+this.props.clientId},this.props),wp.element.createElement(Ur,{tagName:"div",multiline:"p",placeholder:Nr("Add paragraph text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:o()("ab-drop-cap-text","ab-font-size-"+a),onChange:function(t){return e.props.setAttributes({dropCapContent:t})}}))]}}])&&Rr(t.prototype,n),r&&Rr(t,r),i}(Br);Ir("atomic-blocks/ab-drop-cap",{title:Nr("Drop Cap","atomic-blocks"),description:Nr("Add a styled drop cap to the beginning of your paragraph.","atomic-blocks"),icon:"format-quote",category:"atomic-blocks",keywords:[Nr("drop cap","atomic-blocks"),Nr("quote","atomic-blocks"),Nr("atomic","atomic-blocks")],attributes:{dropCapContent:{type:"array",selector:".ab-drop-cap-text",source:"children"},dropCapAlignment:{type:"string"},dropCapBackgroundColor:{type:"string",default:"#f2f2f2"},dropCapTextColor:{type:"string",default:"#32373c"},dropCapFontSize:{type:"number",default:3},dropCapStyle:{type:"string",default:"drop-cap-letter"}},ab_settings_data:{ab_dropcap_dropCapFontSize:{title:Nr("Drop Cap Size","atomic-blocks")},ab_dropcap_dropCapStyle:{title:Nr("Drop Cap Style","atomic-blocks")}},edit:Gr,save:function(e){var t=e.attributes.dropCapContent;return wp.element.createElement(Or,e,t&&wp.element.createElement(Ur.Content,{tagName:"div",className:"ab-drop-cap-text",value:t}))}});var qr=wp.i18n.__,$r=wp.element.Fragment,Kr=wp.components,Qr=Kr.SelectControl,Zr=Kr.ToggleControl,Xr=wp.blockEditor.PanelColorSettings;function eo(e){var t=e.enableButtonBackgroundColor,n=e.buttonBackgroundColor,r=e.onChangeButtonColor,o=void 0===r?function(){}:r,a=e.enableButtonTextColor,i=e.buttonTextColor,l=e.onChangeButtonTextColor,s=void 0===l?function(){}:l,u=e.enableButtonSize,c=e.buttonSize,d=e.onChangeButtonSize,p=void 0===d?function(){}:d,f=e.enableButtonShape,h=e.buttonShape,b=e.onChangeButtonShape,y=void 0===b?function(){}:b,_=e.enableButtonTarget,g=e.buttonTarget,v=e.onChangeButtonTarget,w=void 0===v?function(){}:v,k=[{value:"ab-button-size-small",label:qr("Small","atomic-blocks")},{value:"ab-button-size-medium",label:qr("Medium","atomic-blocks")},{value:"ab-button-size-large",label:qr("Large","atomic-blocks")},{value:"ab-button-size-extralarge",label:qr("Extra Large","atomic-blocks")}],M=[{value:"ab-button-shape-square",label:qr("Square","atomic-blocks")},{value:"ab-button-shape-rounded",label:qr("Rounded Square","atomic-blocks")},{value:"ab-button-shape-circular",label:qr("Circular","atomic-blocks")}];return wp.element.createElement($r,null,wp.element.createElement(m,{id:"ab_button_buttonOptions"},!1!==_&&wp.element.createElement(Zr,{label:qr("Open link in new window","atomic-blocks"),checked:g,onChange:w}),!1!==u&&wp.element.createElement(Qr,{selected:c,label:qr("Button Size","atomic-blocks"),value:c,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:p}),!1!==f&&wp.element.createElement(Qr,{label:qr("Button Shape","atomic-blocks"),value:h,options:M.map((function(e){return{value:e.value,label:e.label}})),onChange:y}),!1!==t&&wp.element.createElement(Xr,{title:qr("Button Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:o,label:qr("Button Color","atomic-blocks")}]}),!1!==a&&wp.element.createElement(Xr,{title:qr("Button Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:s,label:qr("Button Text Color","atomic-blocks")}]})))}function to(e){return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function no(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oo(e,t){return(oo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ao(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lo(e);if(t){var o=lo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return io(this,n)}}function io(e,t){return!t||"object"!==to(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lo(e){return(lo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}wp.i18n.__;var so=wp.element.Component,uo=wp.blockEditor.InspectorControls,co=wp.components.PanelBody,po=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oo(e,t)}(a,e);var t,n,r,o=ao(a);function a(e){return no(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonBackgroundColor,n=e.buttonTextColor,r=e.buttonSize,o=e.buttonShape,a=e.buttonTarget,i=this.props.setAttributes;return wp.element.createElement(uo,{key:"inspector"},wp.element.createElement(co,null,wp.element.createElement(eo,{buttonTarget:a,onChangeButtonTarget:function(e){return i({buttonTarget:!a})},buttonSize:r,onChangeButtonSize:function(e){return i({buttonSize:e})},buttonShape:o,onChangeButtonShape:function(e){return i({buttonShape:e})},buttonBackgroundColor:t,onChangeButtonColor:function(e){return i({buttonBackgroundColor:e})},buttonTextColor:n,onChangeButtonTextColor:function(e){return i({buttonTextColor:e})}})))}}])&&ro(t.prototype,n),r&&ro(t,r),a}(so);function fo(e){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bo(e,t){return(bo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=go(e);if(t){var o=go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _o(this,n)}}function _o(e,t){return!t||"object"!==fo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function go(e){return(go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bo(e,t)}(i,e);var t,n,r,a=yo(i);function i(e){return mo(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return wp.element.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:o()(this.props.className,"ab-block-button")},this.props.children)}}])&&ho(t.prototype,n),r&&ho(t,r),i}(wp.element.Component);n(306),n(307);function wo(e){return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ko(){return(ko=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function So(e,t){return(So=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function To(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yo(e);if(t){var o=Yo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Eo(this,n)}}function Eo(e,t){return!t||"object"!==wo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yo(e){return(Yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xo=wp.i18n.__,Do=wp.element.Component,Oo=wp.blocks.registerBlockType,Co=wp.blockEditor,jo=Co.RichText,Po=Co.AlignmentToolbar,Ro=Co.BlockControls,Ho=Co.URLInput,Ao=wp.components,Fo=Ao.Button,zo=Ao.Dashicon,No=Ao.Icon,Bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&So(e,t)}(i,e);var t,n,r,a=To(i);function i(){return Mo(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonAlignment,i=t.buttonBackgroundColor,l=t.buttonTextColor,s=t.buttonSize,u=t.buttonShape,c=e.isSelected,d=e.setAttributes;return[wp.element.createElement(Ro,{key:"controls"},wp.element.createElement(Po,{value:a,onChange:function(e){d({buttonAlignment:e})}})),wp.element.createElement(po,ko({key:"ab-button-inspector-"+this.props.clientId},this.props)),wp.element.createElement(vo,ko({key:"ab-button-custombutton-"+this.props.clientId},this.props),wp.element.createElement(jo,{tagName:"span",placeholder:xo("Button text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:o()("ab-button",u,s),style:{color:l||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),c&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link ab-button-".concat(a),onSubmit:function(e){return e.preventDefault()},style:{textAlign:a}},wp.element.createElement(zo,{icon:"admin-links"}),wp.element.createElement(Ho,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),wp.element.createElement(Fo,{label:xo("Apply","atomic-blocks"),type:"submit"},wp.element.createElement(No,{icon:"editor-break"})))]}}])&&Lo(t.prototype,n),r&&Lo(t,r),i}(Do);function Io(e){return(Io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vo(e,t){return(Vo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qo(e);if(t){var o=qo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Go(this,n)}}function Go(e,t){return!t||"object"!==Io(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qo(e){return(qo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Oo("atomic-blocks/ab-button",{title:xo("Button","atomic-blocks"),description:xo("Add a customizable button.","atomic-blocks"),icon:"admin-links",category:"atomic-blocks",keywords:[xo("button","atomic-blocks"),xo("link","atomic-blocks"),xo("atomic","atomic-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},ab_settings_data:{ab_button_buttonOptions:{title:xo("Button Options","atomic-blocks")}},edit:Bo,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget;return wp.element.createElement(vo,e,n&&wp.element.createElement("a",{href:r,target:u?"_blank":null,rel:u?"noopener noreferrer":null,className:o()("ab-button",s,l),style:{color:i||"#ffffff",backgroundColor:a||"#3373dc"}},wp.element.createElement(jo.Content,{value:n})))}});var $o=wp.i18n.__,Ko=wp.element,Qo=Ko.Component,Zo=Ko.Fragment,Xo=wp.blockEditor,ea=Xo.InspectorControls,ta=Xo.PanelColorSettings,na=wp.components,ra=na.PanelBody,oa=na.RangeControl,aa=na.ToggleControl,ia=na.SelectControl,la=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vo(e,t)}(a,e);var t,n,r,o=Jo(a);function a(){return Wo(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.spacerHeight,o=n.spacerDivider,a=n.spacerDividerStyle,i=n.spacerDividerColor,l=n.spacerDividerHeight,s=t.setAttributes,u=[{value:"ab-divider-solid",label:$o("Solid","atomic-blocks")},{value:"ab-divider-dashed",label:$o("Dashed","atomic-blocks")},{value:"ab-divider-dotted",label:$o("Dotted","atomic-blocks")}];return wp.element.createElement(ea,{key:"inspector"},wp.element.createElement(ra,null,wp.element.createElement(m,{id:"ab_spacer_spacerHeight"},wp.element.createElement(oa,{label:$o("Spacer Height","atomic-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),wp.element.createElement(m,{id:"ab_spacer_spacerDivider"},wp.element.createElement(aa,{label:$o("Add Divider","atomic-blocks"),checked:o,onChange:function(){return e.props.setAttributes({spacerDivider:!o})}}))),o?wp.element.createElement(Zo,null,wp.element.createElement(ra,null,wp.element.createElement(m,{id:"ab_spacer_spacerDividerStyle"},wp.element.createElement(ia,{label:$o("Divider Style","atomic-blocks"),value:a,options:u.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),wp.element.createElement(m,{id:"ab_spacer_spacerDividerHeight"},wp.element.createElement(oa,{label:$o("Divider Height","atomic-blocks"),value:l||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),wp.element.createElement(m,{id:"ab_spacer_dividerColor"},wp.element.createElement(ta,{title:$o("Divider Color","atomic-blocks"),initialOpen:!1,colorSettings:[{colors:[{color:"#ddd",name:"white"},{color:"#333",name:"black"},{color:"#3373dc",name:"royal blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"}],value:i,onChange:function(e){return s({spacerDividerColor:e})},label:$o("Divider Color","atomic-blocks")}]}))):null)}}])&&Uo(t.prototype,n),r&&Uo(t,r),a}(Qo);function sa(e){return(sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function da(e,t){return(da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ma(e);if(t){var o=ma(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fa(this,n)}}function fa(e,t){return!t||"object"!==sa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ma(e){return(ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ha=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&da(e,t)}(i,e);var t,n,r,a=pa(i);function i(){return ua(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.spacerDivider,n=e.spacerDividerStyle,r=e.spacerDividerColor,a=e.spacerDividerHeight;return wp.element.createElement("div",{style:{color:r},className:o()(this.props.className,"ab-block-spacer",n,{"ab-spacer-divider":t},"ab-divider-size-"+a)},this.props.children)}}])&&ca(t.prototype,n),r&&ca(t,r),i}(wp.element.Component),ba=n(2),ya=n.n(ba),_a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},va={base:{position:"absolute",userSelect:"none",MsUserSelect:"none"},top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},wa=function(e){return Object(ba.createElement)("div",{className:e.className,style:ga({},va.base,va[e.direction],e.replaceStyles||{}),onMouseDown:function(t){e.onResizeStart(t,e.direction)},onTouchStart:function(t){e.onResizeStart(t,e.direction)}},e.children)},ka={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},Ma={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"},La=function(e,t,n){return Math.max(Math.min(e,n),t)},Sa=function(e,t){return Math.round(e/t)*t},Ta=function(e,t){return t.reduce((function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t}))},Ea=function(e,t){return e.substr(e.length-t.length,t.length)===t},Ya=function(e){return"auto"===e.toString()||Ea(e.toString(),"px")||Ea(e.toString(),"%")||Ea(e.toString(),"vh")||Ea(e.toString(),"vw")||Ea(e.toString(),"vmax")||Ea(e.toString(),"vmin")?e.toString():e+"px"},xa=["style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio"],Da=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isResizing:!1,resizeCursor:"auto",width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0}},n.updateExtendsProps(e),n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),"undefined"!=typeof window&&(window.addEventListener("mouseup",n.onMouseUp),window.addEventListener("mousemove",n.onMouseMove),window.addEventListener("mouseleave",n.onMouseUp),window.addEventListener("touchmove",n.onMouseMove),window.addEventListener("touchend",n.onMouseUp)),n}return function(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)}(t,e),_a(t,[{key:"updateExtendsProps",value:function(e){this.extendsProps=Object.keys(e).reduce((function(t,n){return-1!==xa.indexOf(n)||(t[n]=e[n]),t}),{})}},{key:"getParentSize",value:function(){var e=this.base;if(!e)return{width:window.innerWidth,height:window.innerHeight};var t=!1,n=this.parentNode.style.flexWrap,r=e.style.minWidth;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var o={width:e.offsetWidth,height:e.offsetHeight};return e.style.position="absolute",t&&(this.parentNode.style.flexWrap=n),e.style.minWidth=r,o}},{key:"componentDidMount",value:function(){var e=this.size;this.setState({width:this.state.width||e.width,height:this.state.height||e.height});var t=this.parentNode;if(t instanceof HTMLElement&&!this.base){var n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.transform="scale(0, 0)",n.style.left="0",n.style.flex="0",n.classList?n.classList.add("__resizable_base__"):n.className+="__resizable_base__",t.appendChild(n)}}},{key:"componentWillReceiveProps",value:function(e){this.updateExtendsProps(e)}},{key:"componentWillUnmount",value:function(){if("undefined"!=typeof window){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseleave",this.onMouseUp),window.removeEventListener("touchmove",this.onMouseMove),window.removeEventListener("touchend",this.onMouseUp);var e=this.parentNode,t=this.base;if(!t||!e)return;if(!(e instanceof HTMLElement&&t instanceof Node))return;e.removeChild(t)}}},{key:"calculateNewSize",value:function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"}},{key:"onResizeStart",value:function(e,t){var n=0,r=0;if(e.nativeEvent instanceof MouseEvent){if(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof TouchEvent&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY);this.props.onResizeStart&&this.props.onResizeStart(e,t,this.resizable),this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.setState({original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,resizeCursor:window.getComputedStyle(e.target).cursor,direction:t})}},{key:"onMouseMove",value:function(e){if(this.state.isResizing){var t=e instanceof MouseEvent?e.clientX:e.touches[0].clientX,n=e instanceof MouseEvent?e.clientY:e.touches[0].clientY,r=this.state,o=r.direction,a=r.original,i=r.width,l=r.height,s=this.props,u=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,d=s.lockAspectRatioExtraWidth,p=this.props.scale||1,f=this.props,m=f.maxWidth,h=f.maxHeight,b=f.minWidth,y=f.minHeight,_=this.props.resizeRatio||1,g=this.getParentSize();if(m&&"string"==typeof m&&Ea(m,"%")){var v=Number(m.replace("%",""))/100;m=g.width*v}if(h&&"string"==typeof h&&Ea(h,"%")){var w=Number(h.replace("%",""))/100;h=g.height*w}if(b&&"string"==typeof b&&Ea(b,"%")){var k=Number(b.replace("%",""))/100;b=g.width*k}if(y&&"string"==typeof y&&Ea(y,"%")){var M=Number(y.replace("%",""))/100;y=g.height*M}m=void 0===m?void 0:Number(m),h=void 0===h?void 0:Number(h),b=void 0===b?void 0:Number(b),y=void 0===y?void 0:Number(y);var L="number"==typeof u?u:a.width/a.height,S=a.width,T=a.height;if(/right/i.test(o)&&(S=a.width+(t-a.x)*_/p,u&&(T=(S-d)/L+c)),/left/i.test(o)&&(S=a.width-(t-a.x)*_/p,u&&(T=(S-d)/L+c)),/bottom/i.test(o)&&(T=a.height+(n-a.y)*_/p,u&&(S=(T-c)*L+d)),/top/i.test(o)&&(T=a.height-(n-a.y)*_/p,u&&(S=(T-c)*L+d)),"parent"===this.props.bounds){var E=this.parentNode;if(E instanceof HTMLElement){var Y=E.getBoundingClientRect(),x=Y.left,D=Y.top,O=this.resizable.getBoundingClientRect(),C=O.left,j=O.top,P=E.offsetWidth+(x-C),R=E.offsetHeight+(D-j);m=m&&m<P?m:P,h=h&&h<R?h:R}}else if("window"===this.props.bounds){if("undefined"!=typeof window){var H=this.resizable.getBoundingClientRect(),A=H.left,F=H.top,z=window.innerWidth-A,N=window.innerHeight-F;m=m&&m<z?m:z,h=h&&h<N?h:N}}else if(this.props.bounds instanceof HTMLElement){var B=this.props.bounds.getBoundingClientRect(),I=B.left,W=B.top,U=this.resizable.getBoundingClientRect(),V=U.left,J=U.top;if(!(this.props.bounds instanceof HTMLElement))return;var G=this.props.bounds.offsetWidth+(I-V),q=this.props.bounds.offsetHeight+(W-J);m=m&&m<G?m:G,h=h&&h<q?h:q}var $=void 0===b?10:b,K=void 0===m||m<0?S:m,Q=void 0===y?10:y,Z=void 0===h||h<0?T:h;if(u){var X=(Q-c)*L+d,ee=(Z-c)*L+d,te=($-d)/L+c,ne=(K-d)/L+c,re=Math.max($,X),oe=Math.min(K,ee),ae=Math.max(Q,te),ie=Math.min(Z,ne);S=La(S,re,oe),T=La(T,ae,ie)}else S=La(S,$,K),T=La(T,Q,Z);this.props.grid&&(S=Sa(S,this.props.grid[0])),this.props.grid&&(T=Sa(T,this.props.grid[1])),this.props.snap&&this.props.snap.x&&(S=Ta(S,this.props.snap.x)),this.props.snap&&this.props.snap.y&&(T=Ta(T,this.props.snap.y));var le={width:S-a.width,height:T-a.height};if(i&&"string"==typeof i&&Ea(i,"%"))S=S/g.width*100+"%";if(l&&"string"==typeof l&&Ea(l,"%"))T=T/g.height*100+"%";this.setState({width:this.calculateNewSize(S,"width"),height:this.calculateNewSize(T,"height")}),this.props.onResize&&this.props.onResize(e,o,this.resizable,le)}}},{key:"onMouseUp",value:function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n){var a={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,a),this.props.size&&this.setState(this.props.size),this.setState({isResizing:!1,resizeCursor:"auto"})}}},{key:"updateSize",value:function(e){this.setState({width:e.width,height:e.height})}},{key:"renderResizer",value:function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,a=t.handleWrapperStyle,i=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var s=Object.keys(n).map((function(t){return!1!==n[t]?Object(ba.createElement)(wa,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},l&&l[t]?Object(ba.createElement)(l[t]):null):null}));return Object(ba.createElement)("span",{className:i,style:a},s)}},{key:"render",value:function(){var e=this,t=this.state.isResizing?ka:Ma;return Object(ba.createElement)("div",ga({ref:function(t){t&&(e.resizable=t)},style:ga({position:"relative"},t,this.props.style,this.sizeStyle,{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box"}),className:this.props.className},this.extendsProps),this.state.isResizing&&Object(ba.createElement)("div",{style:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:""+(this.state.resizeCursor||"auto"),opacity:"0",position:"fixed",zIndex:"9999",top:"0",left:"0",bottom:"0",right:"0"}}),this.props.children,this.renderResizer())}},{key:"parentNode",get:function(){return this.resizable.parentNode}},{key:"propsSize",get:function(){return this.props.size||this.props.defaultSize}},{key:"base",get:function(){var e=this.parentNode;if(e)for(var t=[].slice.call(e.children),n=0;n<t.length;n+=1){var r=t[n];if(r instanceof HTMLElement&&r.classList.contains("__resizable_base__"))return r}}},{key:"size",get:function(){var e=0,t=0;if("undefined"!=typeof window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}}},{key:"sizeStyle",get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&Ea(e.propsSize[t].toString(),"%")){if(Ea(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return Ya(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Ya(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Ya(t.height):n("height")}}}]),t}(ba.Component);Da.defaultProps={onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1};var Oa=Da;n(308),n(309);function Ca(e){return(Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ja(){return(ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Aa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=za(e);if(t){var o=za(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fa(this,n)}}function Fa(e,t){return!t||"object"!==Ca(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function za(e){return(za=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Na=wp.i18n.__,Ba=wp.element.Component,Ia=wp.blocks.registerBlockType,Wa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ha(e,t)}(i,e);var t,n,r,a=Aa(i);function i(){return Pa(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacerHeight,r=t.spacerDividerColor,a=e.className,i=e.setAttributes,l=e.toggleSelection;return[wp.element.createElement(la,ja({key:"ab-spacer-inspector-"+this.props.clientId},this.props)),wp.element.createElement(ha,ja({key:"ab-spacer-editor-"+this.props.clientId},this.props),wp.element.createElement(Oa,{className:o()(a,"ab-spacer-handle"),style:{color:r},size:{width:"100%",height:n},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"ab-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:function(){l(!1)},onResizeStop:function(e,t,r,o){i({spacerHeight:parseInt(n+o.height,10)}),l(!0)}}))]}}])&&Ra(t.prototype,n),r&&Ra(t,r),i}(Ba);function Ua(e){return(Ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Va(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ga(e,t){return(Ga=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ka(e);if(t){var o=Ka(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $a(this,n)}}function $a(e,t){return!t||"object"!==Ua(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ka(e){return(Ka=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ia("atomic-blocks/ab-spacer",{title:Na("Spacer","atomic-blocks"),description:Na("Add a spacer and divider between your blocks.","atomic-blocks"),icon:"image-flip-vertical",category:"atomic-blocks",keywords:[Na("spacer","atomic-blocks"),Na("divider","atomic-blocks"),Na("atomic","atomic-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"ab-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},ab_settings_data:{ab_spacer_spacerHeight:{title:Na("Spacer Height","atomic-blocks")},ab_spacer_spacerDivider:{title:Na("Add Divider","atomic-blocks")},ab_spacer_spacerDividerStyle:{title:Na("Divider Style","atomic-blocks")},ab_spacer_spacerDividerHeight:{title:Na("Divider Height","atomic-blocks")},ab_spacer_dividerColor:{title:Na("Divider Color","atomic-blocks")}},edit:Wa,save:function(e){var t=e.attributes.spacerHeight;return wp.element.createElement(ha,e,wp.element.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var Qa=wp.i18n.__,Za=wp.element.Component,Xa=wp.blockEditor.InspectorControls,ei=wp.components,ti=ei.PanelBody,ni=ei.RangeControl,ri=ei.ToggleControl,oi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ga(e,t)}(a,e);var t,n,r,o=qa(a);function a(e){return Va(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this;return wp.element.createElement(Xa,{key:"inspector"},wp.element.createElement(ti,null,wp.element.createElement(m,{id:"ab_accordion_accordionFontSize"},wp.element.createElement(ni,{label:Qa("Title Font Size","atomic-blocks"),value:this.props.attributes.accordionFontSize,onChange:function(t){return e.props.setAttributes({accordionFontSize:t})},min:14,max:24,step:1})),wp.element.createElement(m,{id:"ab_accordion_accordionOpen"},wp.element.createElement(ri,{label:Qa("Open by default","atomic-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}])&&Ja(t.prototype,n),r&&Ja(t,r),a}(Za);function ai(e){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function si(e,t){return(si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=di(e);if(t){var o=di(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ci(this,n)}}function ci(e,t){return!t||"object"!==ai(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function di(e){return(di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&si(e,t)}(i,e);var t,n,r,a=ui(i);function i(e){return ii(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return wp.element.createElement("div",{className:o()(this.props.className,this.props.attributes.accordionAlignment?"ab-align-"+this.props.attributes.accordionAlignment:void 0,"ab-block-accordion",this.props.attributes.accordionFontSize?"ab-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}])&&li(t.prototype,n),r&&li(t,r),i}(wp.element.Component);function fi(e){return(fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mi(){return(mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yi(e,t){return(yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vi(e);if(t){var o=vi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gi(this,n)}}function gi(e,t){return!t||"object"!==fi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vi(e){return(vi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wi=wp.i18n.__,ki=wp.element.Component,Mi=wp.blockEditor,Li=Mi.RichText,Si=Mi.AlignmentToolbar,Ti=Mi.BlockControls,Ei=Mi.InnerBlocks,Yi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yi(e,t)}(a,e);var t,n,r,o=_i(a);function a(){return hi(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this;return[wp.element.createElement(Ti,{key:"controls"},wp.element.createElement(Si,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),wp.element.createElement(oi,mi({key:"ab-accordion-inspector-"+this.props.clientId},this.props)),wp.element.createElement(pi,mi({key:"ab-accordion-"+this.props.clientId},this.props),wp.element.createElement(Li,{tagName:"p",placeholder:wi("Accordion Title","atomic-blocks"),value:this.props.attributes.accordionTitle,className:"ab-accordion-title",onChange:function(t){return e.props.setAttributes({accordionTitle:t})}}),wp.element.createElement("div",{className:"ab-accordion-text"},wp.element.createElement(Ei,null)))]}}])&&bi(t.prototype,n),r&&bi(t,r),a}(ki);function xi(e){return(xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ci(e,t){return(Ci=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ri(e);if(t){var o=Ri(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pi(this,n)}}function Pi(e,t){return!t||"object"!==xi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hi=wp.element.Component,Ai=wp.blockEditor,Fi=Ai.RichText,zi=Ai.InnerBlocks,Ni=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ci(e,t)}(a,e);var t,n,r,o=ji(a);function a(){return Di(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement(pi,this.props,wp.element.createElement("details",{open:this.props.attributes.accordionOpen},wp.element.createElement("summary",{className:"ab-accordion-title"},wp.element.createElement(Fi.Content,{value:this.props.attributes.accordionTitle})),wp.element.createElement("div",{className:"ab-accordion-text"},wp.element.createElement(zi.Content,null))))}}])&&Oi(t.prototype,n),r&&Oi(t,r),a}(Hi);function Bi(e){return(Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ui(e,t){return(Ui=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gi(e);if(t){var o=Gi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ji(this,n)}}function Ji(e,t){return!t||"object"!==Bi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gi(e){return(Gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ui(e,t)}(i,e);var t,n,r,a=Vi(i);function i(e){return Ii(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.accordionAlignment,n=e.accordionFontSize;return wp.element.createElement("div",{style:{},className:o()(this.props.className,t,"ab-block-accordion","ab-font-size-"+n)},this.props.children)}}])&&Wi(t.prototype,n),r&&Wi(t,r),i}(wp.element.Component);function $i(e){return($i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zi(e,t){return(Zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tl(e);if(t){var o=tl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return el(this,n)}}function el(e,t){return!t||"object"!==$i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tl(e){return(tl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nl=wp.element.Component,rl=wp.blockEditor,ol=rl.RichText,al=rl.InnerBlocks,il=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zi(e,t)}(a,e);var t,n,r,o=Xi(a);function a(){return Ki(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement(qi,this.props,wp.element.createElement("details",{open:this.props.attributes.accordionOpen},wp.element.createElement("summary",{className:"ab-accordion-title"},wp.element.createElement(ol.Content,{value:this.props.attributes.accordionTitle})),wp.element.createElement("div",{className:"ab-accordion-text"},wp.element.createElement(al.Content,null))))}}])&&Qi(t.prototype,n),r&&Qi(t,r),a}(nl),ll=[{attributes:{accordionTitle:{type:"array",selector:".ab-accordion-title",source:"children"},accordionText:{type:"array",selector:".ab-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:function(e){return wp.element.createElement(il,e)}}],sl=(n(310),n(311),wp.i18n.__),ul=(wp.element.Component,{accordionTitle:{type:"array",selector:".ab-accordion-title",source:"children"},accordionText:{type:"array",selector:".ab-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}});function cl(e){return(cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fl(e,t){return(fl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ml(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bl(e);if(t){var o=bl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hl(this,n)}}function hl(e,t){return!t||"object"!==cl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bl(e){return(bl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-accordion",{title:sl("Accordion","atomic-blocks"),description:sl("Add accordion block with a title and text.","atomic-blocks"),icon:"editor-ul",category:"atomic-blocks",keywords:[sl("accordion","atomic-blocks"),sl("list","atomic-blocks"),sl("atomic","atomic-blocks")],attributes:ul,ab_settings_data:{ab_accordion_accordionFontSize:{title:sl("Title Font Size","atomic-blocks")},ab_accordion_accordionOpen:{title:sl("Open by default","atomic-blocks")}},edit:function(e){return wp.element.createElement(Yi,e)},save:function(e){return wp.element.createElement(Ni,e)},deprecated:ll});var yl=wp.i18n.__,_l=wp.element.Component,gl=wp.blockEditor,vl=gl.InspectorControls,wl=gl.PanelColorSettings,kl=gl.MediaUpload,Ml=wp.components,Ll=Ml.Button,Sl=Ml.Icon,Tl=Ml.PanelBody,El=Ml.RangeControl,Yl=Ml.SelectControl,xl=Ml.ToggleControl,Dl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fl(e,t)}(a,e);var t,n,r,o=ml(a);function a(e){return dl(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.buttonBackgroundColor,r=t.buttonTextColor,o=t.buttonSize,a=t.buttonShape,i=t.buttonTarget,l=t.titleFontSize,s=t.ctaTextFontSize,u=t.ctaBackgroundColor,c=t.ctaTextColor,d=t.dimRatio,p=t.imgURL,f=t.imgID,h=this.props.setAttributes,b=[{value:"ab-button-size-small",label:yl("Small")},{value:"ab-button-size-medium",label:yl("Medium")},{value:"ab-button-size-large",label:yl("Large")},{value:"ab-button-size-extralarge",label:yl("Extra Large")}],y=[{value:"ab-button-shape-square",label:yl("Square")},{value:"ab-button-shape-rounded",label:yl("Rounded Square")},{value:"ab-button-shape-circular",label:yl("Circular")}],_=function(){h({imgID:null,imgURL:null,imgAlt:null})};return wp.element.createElement(vl,{key:"inspector"},wp.element.createElement(m,{id:"ab_cta_textOptions"},wp.element.createElement(Tl,{title:yl("Text Options","atomic-blocks"),initialOpen:!0},wp.element.createElement(El,{label:yl("Title Font Size","atomic-blocks"),value:l,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),wp.element.createElement(El,{label:yl("Text Font Size","atomic-blocks"),value:s,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),wp.element.createElement(wl,{title:yl("Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return h({ctaTextColor:e})},label:yl("Text Color","atomic-blocks")}]}))),wp.element.createElement(m,{id:"ab_cta_backgroundOptions"},wp.element.createElement(Tl,{title:yl("Background Options","atomic-blocks"),initialOpen:!1},wp.element.createElement("p",null,yl("Select a background image:","atomic-blocks")),wp.element.createElement(kl,{onSelect:function(e){h({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:f,render:function(e){var t=e.open;return wp.element.createElement("div",null,wp.element.createElement(Ll,{className:"ab-cta-inspector-media",label:yl("Edit image","atomic-blocks"),onClick:t},wp.element.createElement(Sl,{icon:"format-image"}),yl("Select Image","atomic-blocks")),p&&!!p.length&&wp.element.createElement(Ll,{className:"ab-cta-inspector-media",label:yl("Remove Image","atomic-blocks"),onClick:_},wp.element.createElement(Sl,{icon:"dismiss"}),yl("Remove","atomic-blocks")))}}),p&&!!p.length&&wp.element.createElement(El,{label:yl("Image Opacity","atomic-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),wp.element.createElement(wl,{title:yl("Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return h({ctaBackgroundColor:e})},label:yl("Overlay Color","atomic-blocks")}]}))),wp.element.createElement(m,{id:"ab_cta_buttonOptions"},wp.element.createElement(Tl,{title:yl("Button Options","atomic-blocks"),initialOpen:!1},wp.element.createElement(xl,{label:yl("Open link in new window","atomic-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),wp.element.createElement(Yl,{label:yl("Button Size","atomic-blocks"),value:o,options:b.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonSize:t})}}),wp.element.createElement(Yl,{label:yl("Button Shape","atomic-blocks"),value:a,options:y.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonShape:t})}}),wp.element.createElement(wl,{title:yl("Button Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return h({buttonBackgroundColor:e})},label:yl("Button Color","atomic-blocks")}]}),wp.element.createElement(wl,{title:yl("Button Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return h({buttonTextColor:e})},label:yl("Button Text Color","atomic-blocks")}]}))))}}])&&pl(t.prototype,n),r&&pl(t,r),a}(_l);function Ol(e){return(Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rl(e,t){return(Rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fl(e);if(t){var o=Fl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Al(this,n)}}function Al(e,t){return!t||"object"!==Ol(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fl(e){return(Fl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rl(e,t)}(i,e);var t,n,r,a=Hl(i);function i(e){return jl(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,i=t.ctaBackgroundColor,l=(t.ctaTextColor,o()([this.props.className,"ab-block-cta"],(Cl(e={},"ab-font-size-"+r,r),Cl(e,"align"+a,a),e))),s={backgroundColor:i||void 0,textAlign:n||void 0};return wp.element.createElement("div",{style:s,className:l||void 0},this.props.children)}}])&&Pl(t.prototype,n),r&&Pl(t,r),i}(wp.element.Component);function Nl(e){return(Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ul(e,t){return(Ul=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gl(e);if(t){var o=Gl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jl(this,n)}}function Jl(e,t){return!t||"object"!==Nl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gl(e){return(Gl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ql=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ul(e,t)}(i,e);var t,n,r,a=Vl(i);function i(e){return Il(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,i=t.ctaBackgroundColor,l=(t.ctaTextColor,o()([this.props.className,"ab-block-cta"],(Bl(e={},"ab-font-size-"+r,r),Bl(e,"align"+a,a),e))),s={backgroundColor:i||void 0,textAlign:n||void 0};return wp.element.createElement("div",{style:s,className:l||void 0},this.props.children)}}])&&Wl(t.prototype,n),r&&Wl(t,r),i}(wp.element.Component);function $l(e){return($l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ql(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zl(e,t){return(Zl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ts(e);if(t){var o=ts(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return es(this,n)}}function es(e,t){return!t||"object"!==$l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ts(e){return(ts=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ns=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zl(e,t)}(i,e);var t,n,r,a=Xl(i);function i(e){return Kl(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r=this.props.attributes,a=(r.buttonText,r.buttonUrl,r.buttonAlignment),i=(r.buttonBackgroundColor,r.buttonTextColor,r.buttonSize,r.buttonShape,r.buttonTarget,r.ctaTitle,r.ctaText,r.ctaTitleFontSize,r.ctaTextFontSize),l=(r.ctaWidth,r.ctaBackgroundColor),s=(r.ctaTextColor,o()([this.props.className,"ab-block-cta"],(n=i,(t="ab-font-size-"+i)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e))),u={backgroundColor:l||void 0,textAlign:a||void 0};return wp.element.createElement("div",{style:u,className:s||void 0},this.props.children)}}])&&Ql(t.prototype,n),r&&Ql(t,r),i}(wp.element.Component);function rs(e){return(rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function as(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function is(e,t){return(is=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=us(e);if(t){var o=us(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ss(this,n)}}function ss(e,t){return!t||"object"!==rs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function us(e){return(us=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&is(e,t)}(i,e);var t,n,r,a=ls(i);function i(e){return os(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=e.ctaWidth,a=e.ctaBackgroundColor;return e.ctaTextColor,wp.element.createElement("div",{style:{backgroundColor:a,textAlign:t},className:o()(this.props.className,"align".concat(r),"ab-block-cta","ab-font-size-"+n)},this.props.children)}}])&&as(t.prototype,n),r&&as(t,r),i}(wp.element.Component);function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fs=wp.blockEditor.RichText,ms=[{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".ab-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".ab-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget,c=t.ctaTitle,d=t.ctaText,p=t.ctaTitleFontSize,f=t.titleFontSize,m=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),h=t.imgURL,b=(t.imgID,t.imgAlt),y=t.dimRatio;return wp.element.createElement(ql,e,h&&!!h.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",hs(y),{"has-background-dim":0!==y}),src:h,alt:b})),wp.element.createElement("div",{className:"ab-cta-content"},c&&wp.element.createElement(fs.Content,{tagName:"h2",className:o()("ab-cta-title","ab-font-size-"+f),style:{color:m},value:c}),d&&wp.element.createElement(fs.Content,{tagName:"div",className:o()("ab-cta-text","ab-font-size-"+p),style:{color:m},value:d})),n&&wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement("a",{href:r,target:u?"_blank":"_self",rel:u?"noopener noreferrer":null,className:o()("ab-button",s,l),style:{color:i,backgroundColor:a}},wp.element.createElement(fs.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".ab-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".ab-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget,c=t.ctaTitle,d=t.ctaText,p=t.ctaTitleFontSize,f=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),h=t.imgURL,b=(t.imgID,t.imgAlt),y=t.dimRatio;return wp.element.createElement(ns,e,h&&!!h.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",hs(y),{"has-background-dim":0!==y}),src:h,alt:b})),wp.element.createElement("div",{className:"ab-cta-content"},c&&wp.element.createElement(fs.Content,{tagName:"h2",className:o()("ab-cta-title","ab-font-size-"+p),style:{color:m},value:c}),d&&wp.element.createElement(fs.Content,{tagName:"div",className:o()("ab-cta-text","ab-font-size-"+f),style:{color:m},value:d})),n&&wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement("a",{href:r,target:u?"_blank":"_self",rel:u?"noopener noreferrer":null,className:o()("ab-button",s,l),style:{color:i,backgroundColor:a}},wp.element.createElement(fs.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".ab-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".ab-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string",default:"#f2f2f2"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget,c=t.ctaTitle,d=t.ctaText,p=t.ctaTitleFontSize,f=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),h=t.imgURL,b=(t.imgID,t.imgAlt),y=t.dimRatio;return wp.element.createElement(cs,e,h&&!!h.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",hs(y),{"has-background-dim":0!==y}),src:h,alt:b})),wp.element.createElement("div",{className:"ab-cta-content"},c&&wp.element.createElement(fs.Content,{tagName:"h2",className:o()("ab-cta-title","ab-font-size-"+p),style:{color:m},value:c}),d&&wp.element.createElement(fs.Content,{tagName:"div",className:o()("ab-cta-text","ab-font-size-"+f),style:{color:m},value:d})),n&&wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement("a",{href:r,target:u?"_blank":"_self",className:o()("ab-button",s,l),style:{color:i,backgroundColor:a}},wp.element.createElement(fs.Content,{value:n}))))},migrate:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){ps(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function hs(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(312),n(313);function bs(e){return(bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ys(){return(ys=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(n),!0).forEach((function(t){vs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ws(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ks(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ms(e,t){return(Ms=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ts(e);if(t){var o=Ts(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ss(this,n)}}function Ss(e,t){return!t||"object"!==bs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ts(e){return(Ts=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Es=wp.i18n.__,Ys=wp.element.Component,xs=wp.blocks.registerBlockType,Ds=wp.blockEditor,Os=Ds.AlignmentToolbar,Cs=Ds.URLInput,js=Ds.BlockControls,Ps=Ds.BlockAlignmentToolbar,Rs=Ds.RichText,Hs=wp.components,As=Hs.Button,Fs=Hs.Dashicon,zs=Hs.Icon,Ns=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ms(e,t)}(i,e);var t,n,r,a=Ls(i);function i(){return ws(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonAlignment,i=t.buttonBackgroundColor,l=t.buttonTextColor,s=t.buttonSize,u=t.buttonShape,c=t.ctaTitle,d=t.ctaText,p=t.titleFontSize,f=t.ctaTextFontSize,m=t.ctaWidth,h=t.ctaTextColor,b=t.imgURL,y=t.imgAlt,_=t.dimRatio,g=e.isSelected,v=e.setAttributes;return[wp.element.createElement(js,{key:"ab-cta-block-controls-"+this.props.clientId},wp.element.createElement(Ps,{value:m,onChange:function(e){return v({ctaWidth:e})},controls:["center","wide","full"]}),wp.element.createElement(Os,{value:a,onChange:function(e){v({buttonAlignment:e})}})),wp.element.createElement(Dl,ys({key:"ab-cta-inspector-"+this.props.clientId},gs({setAttributes:v},this.props))),wp.element.createElement(zl,ys({key:"ab-cta-"+this.props.clientId},this.props),b&&!!b.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",Bs(_),{"has-background-dim":0!==_}),src:b,alt:y})),wp.element.createElement("div",{className:"ab-cta-content"},wp.element.createElement(Rs,{tagName:"h2",placeholder:Es("Call-To-Action Title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:c,className:o()("ab-cta-title","ab-font-size-"+p),style:{color:h},onChange:function(e){return v({ctaTitle:e})}}),wp.element.createElement(Rs,{tagName:"div",multiline:"p",placeholder:Es("Call To Action Text","atomic-blocks"),keepPlaceholderOnFocus:!0,value:d,className:o()("ab-cta-text","ab-font-size-"+f),style:{color:h},onChange:function(e){return v({ctaText:e})}})),wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement(Rs,{tagName:"span",placeholder:Es("Button text...","atomic-blocks"),value:n,allowedFormats:[],className:o()("ab-button",u,s),style:{color:l,backgroundColor:i},onChange:function(e){return v({buttonText:e})}}),g&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link ab-button-".concat(a),onSubmit:function(e){return e.preventDefault()},style:{textAlign:a}},wp.element.createElement(Fs,{icon:"admin-links"}),wp.element.createElement(Cs,{className:"button-url",value:r,onChange:function(e){return v({buttonUrl:e})}}),wp.element.createElement(As,{label:Es("Apply","atomic-blocks"),type:"submit"},wp.element.createElement(zs,{icon:"editor-break"})))))]}}])&&ks(t.prototype,n),r&&ks(t,r),i}(Ys);function Bs(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Is(e){return(Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ws(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Us(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vs(e,t){return(Vs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Js(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qs(e);if(t){var o=qs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gs(this,n)}}function Gs(e,t){return!t||"object"!==Is(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qs(e){return(qs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}xs("atomic-blocks/ab-cta",{title:Es("Call To Action","atomic-blocks"),description:Es("Add a call to action section with a title, text, and a button.","atomic-blocks"),icon:"megaphone",category:"atomic-blocks",keywords:[Es("call to action","atomic-blocks"),Es("cta","atomic-blocks"),Es("atomic","atomic-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".ab-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".ab-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},ab_settings_data:{ab_cta_textOptions:{title:Es("Text Options","atomic-blocks")},ab_cta_backgroundOptions:{title:Es("Background Options","atomic-blocks")},ab_cta_buttonOptions:{title:Es("Button Options","atomic-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:Ns,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget,c=t.ctaTitle,d=t.ctaText,p=t.ctaTitleFontSize,f=t.titleFontSize,m=t.ctaTextColor,h=t.imgURL,b=t.imgAlt,y=t.dimRatio;return wp.element.createElement(zl,e,h&&!!h.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",Bs(y),{"has-background-dim":0!==y}),src:h,alt:b})),wp.element.createElement("div",{className:"ab-cta-content"},c&&wp.element.createElement(Rs.Content,{tagName:"h2",className:o()("ab-cta-title","ab-font-size-"+f),style:{color:m},value:c}),d&&wp.element.createElement(Rs.Content,{tagName:"div",className:o()("ab-cta-text","ab-font-size-"+p),style:{color:m},value:d})),n&&wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement("a",{href:r,target:u?"_blank":"_self",rel:"noopener noreferrer",className:o()("ab-button",s,l),style:{color:i,backgroundColor:a}},wp.element.createElement(Rs.Content,{value:n}))))},deprecated:ms});var $s=wp.i18n.__,Ks=wp.element.Component,Qs=wp.blockEditor.InspectorControls,Zs=wp.components,Xs=Zs.PanelBody,eu=Zs.SelectControl,tu=Zs.ToggleControl,nu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vs(e,t)}(a,e);var t,n,r,o=Js(a);function a(){return Ws(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=[{value:"ab-share-icon-text",label:$s("Icon and Text","atomic-blocks")},{value:"ab-share-icon-only",label:$s("Icon Only","atomic-blocks")},{value:"ab-share-text-only",label:$s("Text Only","atomic-blocks")}],n=[{value:"ab-share-shape-square",label:$s("Square","atomic-blocks")},{value:"ab-share-shape-rounded",label:$s("Rounded Square","atomic-blocks")},{value:"ab-share-shape-circular",label:$s("Circular","atomic-blocks")}],r=[{value:"ab-share-size-small",label:$s("Small","atomic-blocks")},{value:"ab-share-size-medium",label:$s("Medium","atomic-blocks")},{value:"ab-share-size-large",label:$s("Large","atomic-blocks")}],o=[{value:"ab-share-color-standard",label:$s("Standard","atomic-blocks")},{value:"ab-share-color-social",label:$s("Social Colors","atomic-blocks")}];return wp.element.createElement(Qs,{key:"inspector"},wp.element.createElement(m,{id:"ab_sharing_links"},wp.element.createElement(Xs,null,wp.element.createElement("p",null,$s("Enable or disable the sharing links you want to output.")),wp.element.createElement(tu,{label:$s("Twitter","atomic-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),wp.element.createElement(tu,{label:$s("Facebook","atomic-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),wp.element.createElement(tu,{label:$s("Pinterest","atomic-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),wp.element.createElement(tu,{label:$s("LinkedIn","atomic-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),wp.element.createElement(tu,{label:$s("Reddit","atomic-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),wp.element.createElement(tu,{label:$s("Email","atomic-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),wp.element.createElement(Xs,{title:$s("Sharing Button Options","atomic-blocks"),initialOpen:!1},wp.element.createElement(m,{id:"ab_sharing_shareButtonStyle"},wp.element.createElement(eu,{label:$s("Button Style","atomic-blocks"),value:this.props.attributes.shareButtonStyle,options:t.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonStyle:t})}})),wp.element.createElement(m,{id:"ab_sharing_shareButtonShape"},wp.element.createElement(eu,{label:$s("Button Shape","atomic-blocks"),value:this.props.attributes.shareButtonShape,options:n.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonShape:t})}})),wp.element.createElement(m,{id:"ab_sharing_shareButtonSize"},wp.element.createElement(eu,{label:$s("Button Size","atomic-blocks"),value:this.props.attributes.shareButtonSize,options:r.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonSize:t})}})),wp.element.createElement(m,{id:"ab_sharing_shareButtonColor"},wp.element.createElement(eu,{label:$s("Button Color","atomic-blocks"),value:this.props.attributes.shareButtonColor,options:o.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonColor:t})}}))))}}])&&Us(t.prototype,n),r&&Us(t,r),a}(Ks);function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ou(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iu(e,t){return(iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uu(e);if(t){var o=uu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return su(this,n)}}function su(e,t){return!t||"object"!==ru(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uu(e){return(uu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&iu(e,t)}(i,e);var t,n,r,a=lu(i);function i(){return ou(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return wp.element.createElement("div",{className:o()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"ab-align-"+this.props.attributes.shareAlignment:void 0,"ab-block-sharing")},this.props.children)}}])&&au(t.prototype,n),r&&au(t,r),i}(wp.element.Component);function du(e){return(du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pu(){return(pu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function fu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hu(e,t){return(hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_u(e);if(t){var o=_u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yu(this,n)}}function yu(e,t){return!t||"object"!==du(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _u(e){return(_u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gu=wp.i18n.__,vu=wp.element.Component,wu=wp.blockEditor,ku=wu.AlignmentToolbar,Mu=wu.BlockControls,Lu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hu(e,t)}(a,e);var t,n,r,o=bu(a);function a(){return fu(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this;return[wp.element.createElement(Mu,{key:"controls"},wp.element.createElement(ku,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),wp.element.createElement(nu,pu({key:"ab-share-inspector-"+this.props.clientId},this.props)),wp.element.createElement(cu,pu({key:"ab-share-links-"+this.props.clientId},this.props),wp.element.createElement("ul",{className:"ab-share-list"},this.props.attributes.twitter&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-twitter"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on Twitter","atomic-blocks")))),this.props.attributes.facebook&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-facebook"},wp.element.createElement("i",{className:"fab fa-facebook-f"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on Facebook","atomic-blocks")))),this.props.attributes.pinterest&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-pinterest"},wp.element.createElement("i",{className:"fab fa-pinterest-p"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on Pinterest","atomic-blocks")))),this.props.attributes.linkedin&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-linkedin"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on LinkedIn","atomic-blocks")))),this.props.attributes.reddit&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-reddit"},wp.element.createElement("i",{className:"fab fa-reddit-alien"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on reddit","atomic-blocks")))),this.props.attributes.email&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-email"},wp.element.createElement("i",{className:"fas fa-envelope"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share via Email","atomic-blocks"))))))]}}])&&mu(t.prototype,n),r&&mu(t,r),a}(vu),Su=(n(314),n(315),wp.i18n.__);(0,wp.blocks.registerBlockType)("atomic-blocks/ab-sharing",{title:Su("Sharing","atomic-blocks"),description:Su("Add sharing buttons to your posts and pages.","atomic-blocks"),icon:"admin-links",category:"atomic-blocks",keywords:[Su("sharing","atomic-blocks"),Su("social","atomic-blocks"),Su("atomic","atomic-blocks")],ab_settings_data:{ab_sharing_links:{title:Su("Sharing Links","atomic-blocks")},ab_sharing_shareButtonStyle:{title:Su("Button Style","atomic-blocks")},ab_sharing_shareButtonShape:{title:Su("Button Shape","atomic-blocks")},ab_sharing_shareButtonSize:{title:Su("Button Size","atomic-blocks")},ab_sharing_shareButtonColor:{title:Su("Button Color","atomic-blocks")}},edit:function(e){return wp.element.createElement(Lu,e)},save:function(){return null}});var Tu=n(36),Eu=n.n(Tu),Yu=n(37),xu=n.n(Yu),Du=n(1),Ou=n.n(Du),Cu=n(38),ju=n.n(Cu),Pu=n(3),Ru=n.n(Pu);function Hu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Au=function(e,t){var n;void 0===t&&(t=Hu);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}},Fu=n(195),zu=n.n(Fu);var Nu=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Bu=function(e){function t(e,t,r){var o=t.trim().split(m);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var l=0;for(e=0===i?"":e[0]+" ";l<a;++l)t[l]=n(e,t[l],r).trim();break;default:var s=l=0;for(t=[];l<a;++l)for(var u=0;u<i;++u)t[s++]=n(e[u]+" ",o[l],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",l=2*t+3*n+4*a;if(944===l){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===x||2===x&&o(s,1)?"-webkit-"+s+s:s}if(0===x||2===x&&!o(i,1))return i;switch(l){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(s=i.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(g,"tb");break;case 232:s=i.replace(g,"tb-rl");break;case 220:s=i.replace(g,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,l=(s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(k,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(k,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===L.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),j(2!==t?r:r.replace(M,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,l,u,c){for(var d,p=0,f=t;p<C;++p)switch(d=O[p].call(s,e,f,n,r,o,a,i,l,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(j=null,e?"function"!=typeof e?x=1:(x=2,j=e):x=0),l}function s(e,n){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<C){var s=i(-1,n,l,l,E,T,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var d=function e(n,l,s,d,p){for(var f,m,h,g,w,k=0,M=0,L=0,S=0,O=0,j=0,R=h=f=0,H=0,A=0,F=0,z=0,N=s.length,B=N-1,I="",W="",U="",V="";H<N;){if(m=s.charCodeAt(H),H===B&&0!==M+S+L+k&&(0!==M&&(m=47===M?10:47),S=L=k=0,N++,B++),0===M+S+L+k){if(H===B&&(0<A&&(I=I.replace(c,"")),0<I.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:I+=s.charAt(H)}m=59}switch(m){case 123:for(f=(I=I.trim()).charCodeAt(0),h=1,z=++H;H<N;){switch(m=s.charCodeAt(H)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(H+1)){case 42:case 47:e:{for(R=H+1;R<B;++R)switch(s.charCodeAt(R)){case 47:if(42===m&&42===s.charCodeAt(R-1)&&H+2!==R){H=R+1;break e}break;case 10:if(47===m){H=R+1;break e}}H=R}}break;case 91:m++;case 40:m++;case 34:case 39:for(;H++<B&&s.charCodeAt(H)!==m;);}if(0===h)break;H++}switch(h=s.substring(z,H),0===f&&(f=(I=I.replace(u,"").trim()).charCodeAt(0)),f){case 64:switch(0<A&&(I=I.replace(c,"")),m=I.charCodeAt(1)){case 100:case 109:case 115:case 45:A=l;break;default:A=D}if(z=(h=e(l,A,h,m,p+1)).length,0<C&&(w=i(3,h,A=t(D,I,F),l,E,T,z,m,p,d),I=A.join(""),void 0!==w&&0===(z=(h=w.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:I=I.replace(v,a);case 100:case 109:case 45:h=I+"{"+h+"}";break;case 107:h=(I=I.replace(b,"$1 $2"))+"{"+h+"}",h=1===x||2===x&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=I+h,112===d&&(W+=h,h="")}else h="";break;default:h=e(l,t(l,I,F),h,d,p+1)}U+=h,h=F=A=R=f=0,I="",m=s.charCodeAt(++H);break;case 125:case 59:if(1<(z=(I=(0<A?I.replace(c,""):I).trim()).length))switch(0===R&&(f=I.charCodeAt(0),45===f||96<f&&123>f)&&(z=(I=I.replace(" ",":")).length),0<C&&void 0!==(w=i(1,I,l,n,E,T,W.length,d,p,d))&&0===(z=(I=w.trim()).length)&&(I="\0\0"),f=I.charCodeAt(0),m=I.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=I+s.charAt(H);break}default:58!==I.charCodeAt(z-1)&&(W+=r(I,f,m,I.charCodeAt(2)))}F=A=R=f=0,I="",m=s.charCodeAt(++H)}}switch(m){case 13:case 10:47===M?M=0:0===1+f&&107!==d&&0<I.length&&(A=1,I+="\0"),0<C*P&&i(0,I,l,n,E,T,W.length,d,p,d),T=1,E++;break;case 59:case 125:if(0===M+S+L+k){T++;break}default:switch(T++,g=s.charAt(H),m){case 9:case 32:if(0===S+k+M)switch(O){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+M+k&&(A=F=1,g="\f"+g);break;case 108:if(0===S+M+k+Y&&0<R)switch(H-R){case 2:112===O&&58===s.charCodeAt(H-3)&&(Y=O);case 8:111===j&&(Y=j)}break;case 58:0===S+M+k&&(R=H);break;case 44:0===M+L+S+k&&(A=1,g+="\r");break;case 34:case 39:0===M&&(S=S===m?0:0===S?m:S);break;case 91:0===S+M+L&&k++;break;case 93:0===S+M+L&&k--;break;case 41:0===S+M+k&&L--;break;case 40:if(0===S+M+k){if(0===f)switch(2*O+3*j){case 533:break;default:f=1}L++}break;case 64:0===M+L+S+k+R+h&&(h=1);break;case 42:case 47:if(!(0<S+k+L))switch(M){case 0:switch(2*m+3*s.charCodeAt(H+1)){case 235:M=47;break;case 220:z=H,M=42}break;case 42:47===m&&42===O&&z+2!==H&&(33===s.charCodeAt(z+2)&&(W+=s.substring(z,H+1)),g="",M=0)}}0===M&&(I+=g)}j=O,O=m,H++}if(0<(z=W.length)){if(A=l,0<C&&(void 0!==(w=i(2,W,A,n,E,T,z,d,p,d))&&0===(W=w).length))return V+W+U;if(W=A.join(",")+"{"+W+"}",0!=x*Y){switch(2!==x||o(W,2)||(Y=0),Y){case 111:W=W.replace(_,":-moz-$1")+W;break;case 112:W=W.replace(y,"::-webkit-input-$1")+W.replace(y,"::-moz-$1")+W.replace(y,":-ms-input-$1")+W}Y=0}}return V+W+U}(D,l,n,0,0);return 0<C&&(void 0!==(s=i(-2,d,l,l,E,T,d.length,0,0,0))&&(d=s)),"",Y=0,T=E=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,_=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,k=/-self|flex-/g,M=/[^]*?(:[rp][el]a[\w-]+)[^]*/,L=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,T=1,E=1,Y=0,x=1,D=[],O=[],C=0,j=null,P=0;return s.use=function e(t){switch(t){case void 0:case null:C=O.length=0;break;default:if("function"==typeof t)O[C++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else P=0|!!t}return e},s.set=l,void 0!==e&&l(e),s};function Iu(e){e&&Wu.current.insert(e+"}")}var Wu={current:null},Uu=function(e,t,n,r,o,a,i,l,s,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Wu.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return Wu.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Iu)}},Vu=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Bu(t);var o,a={};o=e.container||document.head;var i,l=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(l,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(Uu),i=function(e,t,n,o){var a=t.name;Wu.current=n,r(e,t.styles),o&&(s.inserted[a]=!0)};var s={key:n,sheet:new Nu({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return s};function Ju(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Gu=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var qu=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},$u={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ku=/[A-Z]|^ms/g,Qu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zu=function(e){return 45===e.charCodeAt(1)},Xu=function(e){return null!=e&&"boolean"!=typeof e},ec=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Zu(e)?e:e.replace(Ku,"-$&").toLowerCase()})),tc=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Qu,(function(e,t,n){return rc={name:t,styles:n,next:rc},t}))}return 1===$u[e]||Zu(e)||"number"!=typeof t||0===t?t:t+"px"};function nc(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return rc={name:n.name,styles:n.styles,next:rc},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)rc={name:o.name,styles:o.styles,next:rc},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nc(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Xu(i)&&(r+=ec(a)+":"+tc(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=nc(e,t,i,!1);switch(a){case"animation":case"animationName":r+=ec(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Xu(i[s])&&(r+=ec(a)+":"+tc(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=rc,i=n(e);return rc=a,nc(e,t,i,r)}break;case"string":}if(null==t)return n;var l=t[n];return void 0===l||r?n:l}var rc,oc=/label:\s*([^\s;\n{]+)\s*;/g;var ac=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";rc=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=nc(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=nc(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);oc.lastIndex=0;for(var l,s="";null!==(l=oc.exec(o));)s+="-"+l[1];return{name:qu(o)+s,styles:o,next:rc}};var ic=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ac(t)},lc=Object(ba.createContext)("undefined"!=typeof HTMLElement?Vu():null),sc=Object(ba.createContext)({}),uc=lc.Provider,cc=function(e){return Object(ba.forwardRef)((function(t,n){return Object(ba.createElement)(lc.Consumer,null,(function(r){return e(t,r,n)}))}))},dc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pc=Object.prototype.hasOwnProperty,fc=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var a=t[dc],i=[o],l="";"string"==typeof t.className?l=Ju(e.registered,i,t.className):null!=t.className&&(l=t.className+" ");var s=ac(i);Gu(e,s,"string"==typeof a);l+=e.key+"-"+s.name;var u={};for(var c in t)pc.call(t,c)&&"css"!==c&&c!==dc&&(u[c]=t[c]);return u.ref=r,u.className=l,Object(ba.createElement)(a,u)},mc=cc((function(e,t,n){return"function"==typeof e.css?Object(ba.createElement)(sc.Consumer,null,(function(r){return fc(t,e,r,n)})):fc(t,e,null,n)}));var hc=function(e,t){var n=arguments;if(null==t||!pc.call(t,"css"))return ba.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=mc;var a={};for(var i in t)pc.call(t,i)&&(a[i]=t[i]);a[dc]=e,o[1]=a;for(var l=2;l<r;l++)o[l]=n[l];return ba.createElement.apply(null,o)},bc=(ba.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var l in i="",a)a[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o});function yc(e,t,n){var r=[],o=Ju(e,r,n);return r.length<2?n:o+t(r)}var _c=cc((function(e,t){return Object(ba.createElement)(sc.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ac(n,t.registered);return Gu(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return yc(t.registered,r,bc(n))},theme:n},a=e.children(o);return!0,a}))})),gc=n(12),vc=n(13),wc=n.n(vc),kc=function(){};function Mc(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Lc(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push(""+Mc(e,o));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Sc=function(e){return Array.isArray(e)?e.filter(Boolean):"object"==typeof e&&null!==e?[e]:[]};function Tc(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ec(e){return Tc(e)?window.pageYOffset:e.scrollTop}function Yc(e,t){Tc(e)?window.scrollTo(0,t):e.scrollTop=t}function xc(e,t,n,r){void 0===n&&(n=200),void 0===r&&(r=kc);var o=Ec(e),a=t-o,i=0;!function t(){var l,s=a*((l=(l=i+=10)/n-1)*l*l+1)+o;Yc(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function Dc(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Oc=n(35),Cc=n.n(Oc);function jc(){return(jc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Rc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,f=d.height,m=d.top,h=n.offsetParent.getBoundingClientRect().top,b=window.innerHeight,y=Ec(s),_=parseInt(getComputedStyle(n).marginBottom,10),g=parseInt(getComputedStyle(n).marginTop,10),v=h-g,w=b-m,k=v+y,M=c-y-m,L=p-b+y+_,S=y+m-g;switch(o){case"auto":case"bottom":if(w>=f)return{placement:"bottom",maxHeight:t};if(M>=f&&!i)return a&&xc(s,L,160),{placement:"bottom",maxHeight:t};if(!i&&M>=r||i&&w>=r)return a&&xc(s,L,160),{placement:"bottom",maxHeight:i?w-_:M-_};if("auto"===o||i){var T=t,E=i?v:k;return E>=r&&(T=Math.min(E-_-l.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return Yc(s,L),{placement:"bottom",maxHeight:t};break;case"top":if(v>=f)return{placement:"top",maxHeight:t};if(k>=f&&!i)return a&&xc(s,S,160),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&v>=r){var Y=t;return(!i&&k>=r||i&&v>=r)&&(Y=i?v-g:k-g),a&&xc(s,S,160),{placement:"top",maxHeight:Y}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+o+'".')}return u}var Hc=function(e){return"auto"===e?"bottom":e},Ac=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,l=n.menuShouldScrollIntoView,s=n.theme,u=t.context.getPortalPlacement;if(e){var c="fixed"===i,d=Rc({maxHeight:o,menuEl:e,minHeight:r,placement:a,shouldScroll:l&&!c,isFixedPosition:c,theme:s});u&&u(d),t.setState(d)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||Hc(e);return jc({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return Pc(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(ba.Component);Ac.contextTypes={getPortalPlacement:wc.a.func};var Fc=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},zc=Fc,Nc=Fc,Bc=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",jc({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Bc.defaultProps={children:"No options"};var Ic=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",jc({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Ic.defaultProps={children:"Loading..."};var Wc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==Hc(t.props.menuPlacement)&&t.setState({placement:n})},t}Pc(t,e);var n=t.prototype;return n.getChildContext=function(){return{getPortalPlacement:this.getPortalPlacement}},n.render=function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,a=e.menuPosition,i=e.getStyles,l="fixed"===a;if(!t&&!l||!r)return null;var s=this.state.placement||Hc(o),u=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),c=l?0:window.pageYOffset,d=u[s]+c,p=hc("div",{css:i("menuPortal",{offset:d,position:a,rect:u})},n);return t?Object(gc.createPortal)(p,t):p},t}(ba.Component);Wc.childContextTypes={getPortalPlacement:wc.a.func};var Uc=Array.isArray,Vc=Object.keys,Jc=Object.prototype.hasOwnProperty;function Gc(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,o,a,i=Uc(t),l=Uc(n);if(i&&l){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var p=Vc(t);if((o=p.length)!==Vc(n).length)return!1;for(r=o;0!=r--;)if(!Jc.call(n,p[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(a=p[r])&&t.$$typeof||e(t[a],n[a])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function qc(){return(qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $c(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);return $c=function(){return e},e}function Kc(){return(Kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Qc={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Zc=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size"]);return hc("svg",Kc({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Qc},n))},Xc=function(e){return hc(Zc,Kc({size:20},e),hc("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ed=function(e){return hc(Zc,Kc({size:20},e),hc("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},td=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},nd=td,rd=td,od=function(){var e=ic.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}($c()),ad=function(e){var t=e.delay,n=e.offset;return hc("span",{css:ic({animation:od+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},id=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return hc("div",Kc({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),hc(ad,{delay:0,offset:a}),hc(ad,{delay:160,offset:!0}),hc(ad,{delay:320,offset:!a}))};function ld(){return(ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}id.defaultProps={size:4};function sd(){return(sd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ud(){return(ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var cd=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function dd(){return(dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pd=function(e){var t=e.children,n=e.innerProps;return hc("div",n,t)},fd=pd,md=pd;var hd=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,l=e.innerProps,s=e.isDisabled,u=e.removeProps,c=e.selectProps,d=r.Container,p=r.Label,f=r.Remove;return hc(_c,null,(function(r){var m=r.css,h=r.cx;return hc(d,{data:a,innerProps:dd({},l,{className:h(m(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":s},n))}),selectProps:c},hc(p,{data:a,innerProps:{className:h(m(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),hc(f,{data:a,innerProps:dd({className:h(m(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},u),selectProps:c}))}))};function bd(){return(bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}hd.defaultProps={cropWithEllipsis:!0};function yd(){return(yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _d(){return(_d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gd(){return(gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var vd={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",Kc({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||hc(Xc,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,l=e.innerRef,s=e.innerProps,u=e.menuIsOpen;return hc("div",ld({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":u},o)},s),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",Kc({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||hc(ed,null))},DownChevron:ed,CrossIcon:Xc,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,l=e.label,s=e.theme,u=e.selectProps;return hc("div",{css:o("group",e),className:r({group:!0},n)},hc(a,sd({},i,{selectProps:u,theme:s,getStyles:o,cx:r}),l),hc("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","theme","selectProps"]));return hc("div",sd({css:r("groupHeading",sd({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return hc("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return hc("span",Kc({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,l=e.theme,s=(e.selectProps,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return hc("div",{css:r("input",ud({theme:l},s))},hc(Cc.a,ud({className:n({input:!0},t),inputRef:o,inputStyle:cd(a),disabled:i},s)))},LoadingIndicator:id,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return hc("div",jc({css:o("menu",e),className:r({menu:!0},n)},i,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,i=e.innerRef;return hc("div",{css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:i},t)},MenuPortal:Wc,LoadingMessage:Ic,NoOptionsMessage:Bc,MultiValue:hd,MultiValueContainer:fd,MultiValueLabel:md,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return hc("div",n,t||hc(Xc,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,l=e.isSelected,s=e.innerRef,u=e.innerProps;return hc("div",bd({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":l},n),ref:s},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",yd({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,l=e.isRtl;return hc("div",qc({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":l},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return hc("div",_d({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return hc("div",{css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}},wd=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],kd=function(e){for(var t=0;t<wd.length;t++)e=e.replace(wd[t].letters,wd[t].base);return e};function Md(){return(Md=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ld=function(e){return e.replace(/^\s+|\s+$/g,"")},Sd=function(e){return e.label+" "+e.value};function Td(){return(Td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ed={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},Yd=function(e){return hc("span",Td({css:Ed},e))};function xd(){return(xd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Dd(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return hc("input",xd({ref:t},n,{css:ic({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var Od=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.props.innerRef(Object(gc.findDOMNode)(this))},o.componentWillUnmount=function(){this.props.innerRef(null)},o.render=function(){return this.props.children},r}(ba.Component),Cd=["boxSizing","height","overflow","paddingRight","position"],jd={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Pd(e){e.preventDefault()}function Rd(e){e.stopPropagation()}function Hd(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ad(){return"ontouchstart"in window||navigator.maxTouchPoints}var Fd=!(!window.document||!window.document.createElement),zd=0,Nd=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){var e=this;if(Fd){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&Cd.forEach((function(t){var n=a&&a[t];e.originalStyles[t]=n})),n&&zd<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,s=window.innerWidth-l+i||0;Object.keys(jd).forEach((function(e){var t=jd[e];a&&(a[e]=t)})),a&&(a.paddingRight=s+"px")}o&&Ad()&&(o.addEventListener("touchmove",Pd,this.listenerOptions),r&&(r.addEventListener("touchstart",Hd,this.listenerOptions),r.addEventListener("touchmove",Rd,this.listenerOptions))),zd+=1}},o.componentWillUnmount=function(){var e=this;if(Fd){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;zd=Math.max(zd-1,0),n&&zd<1&&Cd.forEach((function(t){var n=e.originalStyles[t];a&&(a[t]=n)})),o&&Ad()&&(o.removeEventListener("touchmove",Pd,this.listenerOptions),r&&(r.removeEventListener("touchstart",Hd,this.listenerOptions),r.removeEventListener("touchmove",Rd,this.listenerOptions)))}},o.render=function(){return null},r}(ba.Component);Nd.defaultProps={accountForScrollbars:!0};var Bd={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Id=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?hc("div",null,hc("div",{onClick:this.blurSelectInput,css:Bd}),hc(Od,{innerRef:this.getScrollTarget},t),r?hc(Nd,{touchScrollTarget:r}):null):t},r}(ba.PureComponent);var Wd=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},t.handleEventDelta=function(e,n){var r=t.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,l=r.onTopLeave,s=t.scrollTarget,u=s.scrollTop,c=s.scrollHeight,d=s.clientHeight,p=t.scrollTarget,f=n>0,m=c-d-u,h=!1;m>n&&t.isBottom&&(a&&a(e),t.isBottom=!1),f&&t.isTop&&(l&&l(e),t.isTop=!1),f&&n>m?(o&&!t.isBottom&&o(e),p.scrollTop=c,h=!0,t.isBottom=!0):!f&&-n>u&&(i&&!t.isTop&&i(e),p.scrollTop=0,h=!0,t.isTop=!0),h&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.startListening(this.scrollTarget)},o.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},o.startListening=function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},o.stopListening=function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},o.render=function(){return ya.a.createElement(Od,{innerRef:this.getScrollTarget},this.props.children)},r}(ba.Component);function Ud(e){var t=e.isEnabled,n=void 0===t||t,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isEnabled"]);return n?ya.a.createElement(Wd,r):r.children}var Vd=function(e,t){void 0===t&&(t={});var n=t,r=n.isSearchable,o=n.isMulti,a=n.label,i=n.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(i?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(a||"Select")+" is focused "+(r?",type to refine list":"")+", press Down to open the menu, "+(o?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Jd=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return r?"option "+n+" is disabled. Select another option.":"option "+n+", selected."}},Gd=function(e){return!!e.isDisabled};var qd={clearIndicator:rd,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+o.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:nd,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Nc,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return(t={label:"menu"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n)]="100%",t.backgroundColor=i.neutral0,t.borderRadius=o,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=a.menuGutter,t.marginTop=a.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:zc,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*a.baseUnit+"px "+3*a.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - "+2*r.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var $d={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function Kd(){return(Kd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Zd,Xd={backspaceRemovesValue:!0,blurInputOnSelect:Dc(),captureMenuScroll:!Dc(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Md({ignoreCase:!0,ignoreAccents:!0,stringify:Sd,trim:!0,matchFrom:"any"},Zd),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,s=i?Ld(t):t,u=i?Ld(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=kd(s),u=kd(u)),"start"===l?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Gd,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},ep=1,tp=function(e){var t,n;function r(t){var n;(n=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=gd({},vd,{components:e}.components)},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props;(0,r.onChange)(e,Kd({},t,{name:r.name}))},n.setValue=function(e,t,r){void 0===t&&(t="set-value");var o=n.props,a=o.closeMenuOnSelect,i=o.isMulti;n.onInputChange("",{action:"set-value"}),a&&(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,a=n.state.selectValue;if(o)if(n.isOptionSelected(e,a)){var i=n.getOptionValue(e);n.setValue(a.filter((function(e){return n.getOptionValue(e)!==i})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(a,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,r=n.getOptionValue(e),o=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var r=qd[e](t);r.boxSizing="border-box";var o=n.props.styles[e];return o?o(r,t):r},n.getElementId=function(e){return n.instancePrefix+"-"+e},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,o=t.focusedOption;if(o&&e){var a=r.focusable.indexOf(o),i=r.render[a];return i&&i.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:Jd(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:Vd(t,Kd({},r,{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Tc(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||o>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,r=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,l=t.isClearable,s=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=n.state,m=f.focusedOption,h=f.focusedValue,b=f.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)n.removeValue(h);else{if(!o)return;r?n.popValue():l&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!u||!d||!m||p&&n.isOptionSelected(m,b))return;n.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(n.isComposing)return;n.selectOption(m);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):l&&a&&n.clearValue();break;case" ":if(i)return;if(!u){n.openMenu("first");break}if(!m)return;n.selectOption(m);break;case"ArrowUp":u?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":u?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!u)return;n.focusOption("pageup");break;case"PageDown":if(!u)return;n.focusOption("pagedown");break;case"Home":if(!u)return;n.focusOption("first");break;case"End":if(!u)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var r=e.inputValue,o=void 0===r?"":r,a=e.options,i=function(e,r){var a=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),l=n.getOptionLabel(e),s=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:l,value:s,data:e},o))){var u=a?void 0:function(){return n.onOptionHover(e)},c=a?void 0:function(){return n.selectOption(e)},d=n.getElementId("option")+"-"+r;return{innerProps:{id:d,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:d,label:l,type:"option",value:s}}};return a.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map((function(t,n){var o=i(t,r+"-"+n);return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var a=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:a,data:t,options:o})}}else{var l=i(t,""+r);l&&(e.render.push(l),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var r=t.value;n.cacheComponents=Au(n.cacheComponents,Gc).bind(Qd(Qd(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++ep);var o=Sc(r);n.buildMenuOptions=Au(n.buildMenuOptions,(function(e,t){var n=e,r=n[0],o=n[1],a=t,i=a[0];return Gc(o,a[1])&&Gc(r.inputValue,i.inputValue)&&Gc(r.options,i.options)})).bind(Qd(Qd(n)));var a=t.menuIsOpen?n.buildMenuOptions(t,o):{render:[],focusable:[]};return n.state.menuOptions=a,n.state.selectValue=o,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},o.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=Sc(e.value),l=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},s=this.getNextFocusedValue(i),u=this.getNextFocusedOption(l.focusable);this.setState({menuOptions:l,selectValue:i,focusedOption:u,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},o.componentDidUpdate=function(e){var t,n,r,o,a,i=this.props,l=i.isDisabled,s=i.menuIsOpen,u=this.state.isFocused;(u&&!l&&e.isDisabled||u&&s&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?Yc(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&Yc(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)},o.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},o.onMenuOpen=function(){this.props.onMenuOpen()},o.onMenuClose=function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},o.onInputChange=function(e,t){this.props.onInputChange(e,t)},o.focusInput=function(){this.inputRef&&this.inputRef.focus()},o.blurInput=function(){this.inputRef&&this.inputRef.blur()},o.openMenu=function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildMenuOptions(this.props,r),i=this.props.isMulti,l="first"===e?0:a.focusable.length-1;if(!i){var s=a.focusable.indexOf(r[0]);s>-1&&(l=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[l]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},o.focusValue=function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var l=a.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"value"}));var s=a.length-1,u=-1;if(a.length){switch(e){case"previous":u=0===l?0:-1===l?s:l-1;break;case"next":l>-1&&l<s&&(u=l+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:a[u]})}}},o.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var a=0,i=o.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=i>0?i-1:o.length-1:"down"===e?a=(i+1)%o.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>o.length-1&&(a=o.length-1):"last"===e&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Gd(o[a])}})}},o.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($d):Kd({},$d,this.props.theme):$d},o.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,a=o.classNamePrefix,i=o.isMulti,l=o.isRtl,s=o.options,u=this.state.selectValue,c=this.hasValue();return{cx:Lc.bind(null,a),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:c,isMulti:i,isRtl:l,options:s,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}},o.getNextFocusedValue=function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null},o.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},o.hasValue=function(){return this.state.selectValue.length>0},o.hasOptions=function(){return!!this.state.menuOptions.render.length},o.countOptions=function(){return this.state.menuOptions.focusable.length},o.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},o.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},o.isOptionSelected=function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))},o.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},o.formatOptionLabel=function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)},o.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},o.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},o.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},o.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},o.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},o.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,l=a.menuIsOpen,s=a.inputValue,u=a.screenReaderStatus;return(r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value "+n(t)+" focused, "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(o&&l?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option "+n(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:s,screenReaderMessage:u({count:this.countOptions()})})+" "+t},o.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=this.components.Input,l=this.state.inputIsHidden,s=r||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return ya.a.createElement(Dd,Kd({id:s,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:kc,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,value:""},u));var c=this.commonProps,d=c.cx,p=c.theme,f=c.selectProps;return ya.a.createElement(i,Kd({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:s,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:f,spellCheck:"false",tabIndex:a,theme:p,type:"text",value:o},u))},o.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,l=t.Placeholder,s=this.commonProps,u=this.props,c=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,f=u.inputValue,m=u.placeholder,h=this.state,b=h.selectValue,y=h.focusedValue,_=h.isFocused;if(!this.hasValue()||!c)return f?null:ya.a.createElement(l,Kd({},s,{key:"placeholder",isDisabled:d,isFocused:_}),m);if(p)return b.map((function(t,i){var l=t===y;return ya.a.createElement(n,Kd({},s,{components:{Container:r,Label:o,Remove:a},isFocused:l,isDisabled:d,key:e.getOptionValue(t),index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var g=b[0];return ya.a.createElement(i,Kd({},s,{data:g,isDisabled:d}),this.formatOptionLabel(g,"value"))},o.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ya.a.createElement(e,Kd({},t,{innerProps:i,isFocused:a}))},o.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return ya.a.createElement(e,Kd({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))},o.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return ya.a.createElement(n,Kd({},r,{isDisabled:o,isFocused:a}))},o.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ya.a.createElement(e,Kd({},t,{innerProps:o,isDisabled:n,isFocused:r}))},o.renderMenu=function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,c=this.commonProps,d=this.state,p=d.focusedOption,f=d.menuOptions,m=this.props,h=m.captureMenuScroll,b=m.inputValue,y=m.isLoading,_=m.loadingMessage,g=m.minMenuHeight,v=m.maxMenuHeight,w=m.menuIsOpen,k=m.menuPlacement,M=m.menuPosition,L=m.menuPortalTarget,S=m.menuShouldBlockScroll,T=m.menuShouldScrollIntoView,E=m.noOptionsMessage,Y=m.onMenuScrollToTop,x=m.onMenuScrollToBottom;if(!w)return null;var D,O=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,ya.a.createElement(u,Kd({},c,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=f.render.map((function(t){if("group"===t.type){t.type;var o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["type"]),a=t.key+"-heading";return ya.a.createElement(n,Kd({},c,o,{Heading:r,headingProps:{id:a},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return O(e)})))}if("option"===t.type)return O(t)}));else if(y){var C=_({inputValue:b});if(null===C)return null;D=ya.a.createElement(l,c,C)}else{var j=E({inputValue:b});if(null===j)return null;D=ya.a.createElement(s,c,j)}var P={minMenuHeight:g,maxMenuHeight:v,menuPlacement:k,menuPosition:M,menuShouldScrollIntoView:T},R=ya.a.createElement(Ac,Kd({},c,P),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,l=r.maxHeight;return ya.a.createElement(o,Kd({},c,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:i}),ya.a.createElement(Ud,{isEnabled:h,onTopArrive:Y,onBottomArrive:x},ya.a.createElement(Id,{isEnabled:S},ya.a.createElement(a,Kd({},c,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:l}),D))))}));return L||"fixed"===M?ya.a.createElement(i,Kd({},c,{appendTo:L,controlElement:this.controlRef,menuPlacement:k,menuPosition:M}),R):R},o.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=this.state.selectValue;if(a&&!r){if(o){if(n){var l=i.map((function(t){return e.getOptionValue(t)})).join(n);return ya.a.createElement("input",{name:a,type:"hidden",value:l})}var s=i.length>0?i.map((function(t,n){return ya.a.createElement("input",{key:"i-"+n,name:a,type:"hidden",value:e.getOptionValue(t)})})):ya.a.createElement("input",{name:a,type:"hidden"});return ya.a.createElement("div",null,s)}var u=i[0]?this.getOptionValue(i[0]):"";return ya.a.createElement("input",{name:a,type:"hidden",value:u})}},o.renderLiveRegion=function(){return this.state.isFocused?ya.a.createElement(Yd,{"aria-live":"polite"},ya.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),ya.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},o.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,l=a.id,s=a.isDisabled,u=a.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return ya.a.createElement(r,Kd({},d,{className:i,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:c}),this.renderLiveRegion(),ya.a.createElement(t,Kd({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:c,menuIsOpen:u}),ya.a.createElement(o,Kd({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),ya.a.createElement(n,Kd({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},r}(ba.Component);function np(){return(np=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}tp.defaultProps=Xd;var rp={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};ba.Component;var op,ap,ip,lp=(op=tp,ip=ap=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).select=void 0,t.state={inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue},t.onChange=function(e,n){t.callProp("onChange",e,n),t.setState({value:e})},t.onInputChange=function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})},t.onMenuOpen=function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})},t.onMenuClose=function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.focus=function(){this.select.focus()},o.blur=function(){this.select.blur()},o.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},o.callProp=function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}},o.render=function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return ya.a.createElement(op,np({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))},r}(ba.Component),ap.defaultProps=rp,ip);function sp(e){return(sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function up(){return(up=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pp(e,t){return(pp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hp(e);if(t){var o=hp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mp(this,n)}}function mp(e,t){return!t||"object"!==sp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hp(e){return(hp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bp=wp.i18n.__,yp=wp.element,_p=yp.Component,gp=yp.Fragment,vp=wp.blockEditor.InspectorControls,kp=wp.components,Mp=kp.PanelBody,Lp=kp.QueryControls,Sp=kp.RangeControl,Tp=kp.SelectControl,Ep=kp.TextControl,Yp=kp.ToggleControl,xp=wp.url.addQueryArgs,Dp=wp.apiFetch,Op=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pp(e,t)}(a,e);var t,n,r,o=fp(a);function a(){var e;return cp(this,a),(e=o.apply(this,arguments)).state={categoriesList:[]},e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this;this.stillMounted=!0,this.fetchRequest=Dp({path:xp("/wp/v2/categories",{per_page:-1})}).then((function(t){e.stillMounted&&e.setState({categoriesList:t})})).catch((function(){e.stillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/editor").getEditorSettings();return ju()(Ru()(e.imageSizes,(function(e){var t=e.name;return{value:e.slug,label:t}})))}},{key:"pageSelect",value:function(){var e=wp.data.select("core").getEntityRecords("postType","page",{per_page:-1});return ju()(Ru()(e,(function(e){return{value:e.id,label:e.title.raw}})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.latestPosts,a=n.order,i=n.orderBy,l=this.state.categoriesList,s=[{value:"post",label:bp("Post","atomic-blocks")},{value:"page",label:bp("Page","atomic-blocks")}],u=[{value:"div",label:bp("div","atomic-blocks")},{value:"header",label:bp("header","atomic-blocks")},{value:"section",label:bp("section","atomic-blocks")},{value:"article",label:bp("article","atomic-blocks")},{value:"main",label:bp("main","atomic-blocks")},{value:"aside",label:bp("aside","atomic-blocks")},{value:"footer",label:bp("footer","atomic-blocks")}],c=[{value:"h2",label:bp("H2","atomic-blocks")},{value:"h3",label:bp("H3","atomic-blocks")},{value:"h4",label:bp("H4","atomic-blocks")},{value:"h5",label:bp("H5","atomic-blocks")},{value:"h6",label:bp("H6","atomic-blocks")}],d=Array.isArray(o)&&o.length,p="post"===n.postType,f={value:"selectimage",label:bp("Select image size")},h={value:"ab-block-post-grid-landscape",label:bp("AB Grid Landscape")},b={value:"ab-block-post-grid-square",label:bp("AB Grid Square")},y=this.imageSizeSelect();y.push(b,h),y.unshift(f);var _=this.pageSelect();return wp.element.createElement(vp,null,wp.element.createElement(Mp,{title:bp("Post and Page Grid Settings","atomic-blocks"),className:p?null:"atomic-blocks-hide-query"},wp.element.createElement(m,{id:"ab_postgrid_postType"},wp.element.createElement(Tp,{label:bp("Content Type","atomic-blocks"),options:s,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&wp.element.createElement(m,{id:"ab_postgrid_selectedPages"},wp.element.createElement("div",{className:"components-base-control select2-page"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("label",{className:"components-base-control__label",htmlFor:"inspector-select-control"},bp("Pages To Show","atomic-blocks")),wp.element.createElement(lp,{options:_,value:n.selectedPages,onChange:function(t){return e.props.setAttributes({selectedPages:t})},isMulti:!0,closeMenuOnSelect:!1})))),"post"===n.postType&&wp.element.createElement(gp,null,wp.element.createElement(m,{id:"ab_postgrid_queryControls"},wp.element.createElement(Lp,up({order:a,orderBy:i},{numberOfItems:n.postsToShow,categoriesList:l,selectedCategoryId:n.categories,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onCategoryChange:function(e){return r({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return r({postsToShow:e})}}))),wp.element.createElement(m,{id:"ab_postgrid_offset"},wp.element.createElement(Sp,{label:bp("Number of items to offset","atomic-blocks"),value:n.offset,onChange:function(e){return r({offset:e})},min:0,max:20}))),"grid"===n.postLayout&&wp.element.createElement(m,{id:"ab_postgrid_columns"},wp.element.createElement(Sp,{label:bp("Columns","atomic-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:d?Math.min(4,o.length):4}))),wp.element.createElement(Mp,{title:bp("Post and Page Grid Content","atomic-blocks"),initialOpen:!1},wp.element.createElement(m,{id:"ab_postgrid_displaySectionTitle"},wp.element.createElement(Yp,{label:bp("Display Section Title","atomic-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&wp.element.createElement(m,{id:"ab_postgrid_sectionTitle"},wp.element.createElement(Ep,{label:bp("Section Title","atomic-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),wp.element.createElement(m,{id:"ab_postgrid_displayPostImage"},wp.element.createElement(Yp,{label:bp("Display Featured Image","atomic-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&wp.element.createElement(m,{id:"ab_postgrid_imageSizeValue"},wp.element.createElement(Tp,{label:bp("Image Size","atomic-blocks"),value:function(){for(var e=0;e<y.length;e++)if(y[e].value===n.imageSize)return n.imageSize;return"full"}(),options:y,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),wp.element.createElement(m,{id:"ab_postgrid_displayPostTitle"},wp.element.createElement(Yp,{label:bp("Display Title","atomic-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),p&&wp.element.createElement(m,{id:"ab_postgrid_displayPostAuthor"},wp.element.createElement(Yp,{label:bp("Display Author","atomic-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),p&&wp.element.createElement(m,{id:"ab_postgrid_displayPostDate"},wp.element.createElement(Yp,{label:bp("Display Date","atomic-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),wp.element.createElement(m,{id:"ab_postgrid_displayPostExcerpt"},wp.element.createElement(Yp,{label:bp("Display Excerpt","atomic-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&wp.element.createElement(m,{id:"ab_postgrid_excerptLength"},wp.element.createElement(Sp,{label:bp("Excerpt Length","atomic-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),wp.element.createElement(m,{id:"ab_postgrid_displayPostLink"},wp.element.createElement(Yp,{label:bp("Display Continue Reading Link","atomic-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&wp.element.createElement(m,{id:"ab_postgrid_readMoreText"},wp.element.createElement(Ep,{label:bp("Customize Continue Reading Text","atomic-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),wp.element.createElement(Mp,{title:bp("Post and Page Grid Markup","atomic-blocks"),initialOpen:!1,className:"ab-block-post-grid-markup-settings"},wp.element.createElement(m,{id:"ab_postgrid_sectionTag"},wp.element.createElement(Tp,{label:bp("Post Grid Section Tag","atomic-blocks"),options:u,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:bp("Change the post grid section tag to match your content hierarchy.","atomic-blocks")})),n.sectionTitle&&wp.element.createElement(m,{id:"ab_postgrid_sectionTitleTag"},wp.element.createElement(Tp,{label:bp("Section Title Heading Tag","atomic-blocks"),options:c,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:bp("Change the post/page section title tag to match your content hierarchy.","atomic-blocks")})),n.displayPostTitle&&wp.element.createElement(m,{id:"ab_postgrid_postTitleTag"},wp.element.createElement(Tp,{label:bp("Post Title Heading Tag","atomic-blocks"),options:c,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:bp("Change the post/page title tag to match your content hierarchy.","atomic-blocks")}))))}}])&&dp(t.prototype,n),r&&dp(t,r),a}(_p),Cp=n(22),jp=n.n(Cp);function Pp(e){return(Pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ap(e,t){return(Ap=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Np(e);if(t){var o=Np(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zp(this,n)}}function zp(e,t){return!t||"object"!==Pp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Np(e){return(Np=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bp=wp.i18n.__,Ip=wp.element,Wp=Ip.Fragment,Up=Ip.Component,Vp=wp.components,Jp=Vp.Placeholder,Gp=Vp.Dashicon,qp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ap(e,t)}(i,e);var t,n,r,a=Fp(i);function i(e){var t;return Rp(this,i),(t=a.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},t}return t=i,(n=[{key:"componentDidUpdate",value:function(e){this.props.imgSize!==e.imgSize&&this.setImageUrl()}},{key:"componentDidMount",value:function(){var e=this;this.setState({setImageUrlSubscription:wp.data.subscribe((function(){e.setImageUrl()}))})}},{key:"componentWillUnmount",value:function(){this.state.setImageUrlSubscription()}},{key:"setImageUrl",value:function(){var e=this.getImageUrl();e||(e=this.getFullImageSize()),e&&this.setState({imageUrl:e,imageLoaded:!0})}},{key:"getImageUrl",value:function(){return jp()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return jp()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return wp.element.createElement(Wp,null,wp.element.createElement("div",{className:o()("ab-block-post-grid-image")},wp.element.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},wp.element.createElement("img",{src:this.state.imageUrl?this.state.imageUrl:this.props.imgSizeLandscape,alt:this.props.imgAlt,className:this.props.imgClass})),!this.getImageUrl()&&this.state.imageLoaded&&"selectimage"!==this.props.imgSize&&wp.element.createElement(Wp,null,wp.element.createElement("div",{className:"ab-post-grid-no-image-icon"},wp.element.createElement(Gp,{icon:"warning"})),wp.element.createElement(Jp,{className:"ab-post-grid-no-image-placeholder"},wp.element.createElement(Gp,{icon:"info"}),wp.element.createElement("div",{className:"components-placeholder__label"},Bp("There is no image generated for the selected image size, so a fallback image size is being used.","atomic-blocks")),wp.element.createElement("div",{className:"ab-post-grid-image-help"},wp.element.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":Bp("Learn more about image sizes (opens in a new tab)","atomic-blocks"),href:"https://github.com/studiopress/atomic-blocks/wiki/Post-Grid-Block#featured-image-sizes"},Bp("Learn more ","atomic-blocks"),wp.element.createElement("span",null,"→")))))))}}])&&Hp(t.prototype,n),r&&Hp(t,r),i}(Up);function $p(e){return($p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kp(){return(Kp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qp(Object(n),!0).forEach((function(t){Xp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ef(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nf(e,t){return(nf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=af(e);if(t){var o=af(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return of(this,n)}}function of(e,t){return!t||"object"!==$p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function af(e){return(af=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lf=wp.compose.compose,sf=wp.element,uf=sf.Component,cf=sf.Fragment,df=wp.i18n.__,pf=wp.htmlEntities.decodeEntities,ff=wp.data.withSelect,mf=wp.components,hf=mf.Placeholder,bf=mf.Spinner,yf=mf.Toolbar,_f=wp.blockEditor,gf=_f.BlockAlignmentToolbar,vf=_f.BlockControls,wf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nf(e,t)}(i,e);var t,n,r,a=rf(i);function i(){return ef(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,i=n.latestPosts,l=Array.isArray(i)&&i.length,s="post"===r.postType;if(!l)return wp.element.createElement(cf,null,wp.element.createElement(Op,Zp({setAttributes:a},this.props)),wp.element.createElement(hf,{icon:"admin-post",label:df("Atomic Blocks Post and Page Grid","atomic-blocks")},Array.isArray(i)?df("No posts found.","atomic-blocks"):wp.element.createElement(bf,null)));var u=i.length>r.postsToShow?i.slice(0,r.postsToShow):i,c=[{icon:"grid-view",title:df("Grid View","atomic-blocks"),onClick:function(){return a({postLayout:"grid"})},isActive:"grid"===r.postLayout},{icon:"list-view",title:df("List View","atomic-blocks"),onClick:function(){return a({postLayout:"list"})},isActive:"list"===r.postLayout}],d=r.sectionTag?r.sectionTag:"section",p=r.sectionTitleTag?r.sectionTitleTag:"h2",f=r.postTitleTag?r.postTitleTag:"h3";return wp.element.createElement(cf,null,wp.element.createElement(Op,Zp({setAttributes:a},this.props)),wp.element.createElement(vf,null,wp.element.createElement(gf,{value:r.align,onChange:function(e){a({align:e})},controls:["center","wide","full"]}),wp.element.createElement(yf,{controls:c})),wp.element.createElement(d,{className:o()(this.props.className,"ab-block-post-grid")},r.displaySectionTitle&&r.sectionTitle&&wp.element.createElement(p,{className:"ab-post-grid-section-title"},r.sectionTitle),wp.element.createElement("div",{className:o()((e={"is-grid":"grid"===r.postLayout,"is-list":"list"===r.postLayout},Xp(e,"columns-".concat(r.columns),"grid"===r.postLayout),Xp(e,"ab-post-grid-items","ab-post-grid-items"),e))},u.map((function(e,n){return wp.element.createElement("article",{key:n,id:"post-"+e.id,className:o()("post-"+e.id,e.featured_image_src&&r.displayPostImage?"has-post-thumbnail":null)},r.displayPostImage&&e.featured_media?wp.element.createElement(qp,Kp({},t.props,{imgAlt:pf(e.title.rendered.trim())||df("(Untitled)","atomic-blocks"),imgClass:"wp-image-".concat(e.featured_media.toString()),imgID:e.featured_media.toString(),imgSize:r.imageSize,imgSizeLandscape:e.featured_image_src,imgSizeSquare:e.featured_image_src_square,imgLink:e.link})):null,wp.element.createElement("div",{className:"ab-block-post-grid-text"},wp.element.createElement("header",{className:"ab-block-post-grid-header"},r.displayPostTitle&&wp.element.createElement(f,{className:"ab-block-post-grid-title"},wp.element.createElement("a",{href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},pf(e.title.rendered.trim())||df("(Untitled)","atomic-blocks"))),s&&wp.element.createElement("div",{className:"ab-block-post-grid-byline"},r.displayPostAuthor&&e.author_info.display_name&&wp.element.createElement("div",{className:"ab-block-post-grid-author"},wp.element.createElement("a",{className:"ab-text-link",target:"_blank",rel:"noopener noreferrer",href:e.author_info.author_link},e.author_info.display_name)),r.displayPostDate&&e.date_gmt&&wp.element.createElement("time",{dateTime:Ou()(e.date_gmt).utc().format(),className:"ab-block-post-grid-date"},Ou()(e.date_gmt).local().format("MMMM DD, Y","atomic-blocks")))),wp.element.createElement("div",{className:"ab-block-post-grid-excerpt"},r.displayPostExcerpt&&e.excerpt&&wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:(a=e.excerpt.rendered,i=r.excerptLength,a.split(" ").splice(0,i).join(" "))}}),r.displayPostLink&&wp.element.createElement("p",null,wp.element.createElement("a",{className:"ab-block-post-grid-more-link ab-text-link",href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},r.readMoreText)))));var a,i})))))}}])&&tf(t.prototype,n),r&&tf(t,r),i}(uf),kf=lf([ff((function(e,t){var n=t.attributes,r=n.order,o=n.categories,a=e("core").getEntityRecords,i=xu()({categories:o,order:r,orderby:t.attributes.orderBy,per_page:t.attributes.postsToShow,offset:t.attributes.offset,exclude:[wp.data.select("core/editor").getCurrentPostId()]},(function(e){return!Eu()(e)})),l=t.attributes.selectedPages&&t.attributes.selectedPages.length>0?t.attributes.selectedPages.map((function(e){return e.value})):null,s=xu()({include:l||null,orderby:l?"include":null},(function(e){return!Eu()(e)}));return{latestPosts:a("postType",t.attributes.postType,"page"===t.attributes.postType&&l?s:i)}}))])(wf);n(316),n(317);var Mf=wp.i18n.__,Lf=wp.blocks.registerBlockType,Sf=["center","wide","full"];function Tf(e){return(Tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ef(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xf(e,t){return(xf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Df(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cf(e);if(t){var o=Cf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Of(this,n)}}function Of(e,t){return!t||"object"!==Tf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cf(e){return(Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Lf("atomic-blocks/ab-post-grid",{title:Mf("Post and Page Grid","atomic-blocks"),description:Mf("Add a grid or list of customizable posts or pages.","atomic-blocks"),icon:"grid-view",category:"atomic-blocks",keywords:[Mf("post","atomic-blocks"),Mf("page","atomic-blocks"),Mf("grid","atomic-blocks")],getEditWrapperProps:function(e){var t=e.align;if(-1!==Sf.indexOf(t))return{"data-align":t}},edit:kf,ab_settings_data:{ab_postgrid_postType:{title:Mf("Content Type","atomic-blocks")},ab_postgrid_queryControls:{title:Mf("Query Controls","atomic-blocks")},ab_postgrid_offset:{title:Mf("Post Offset","atomic-blocks")},ab_postgrid_columns:{title:Mf("Columns","atomic-blocks")},ab_postgrid_displaySectionTitle:{title:Mf("Display Section Title","atomic-blocks")},ab_postgrid_sectionTitle:{title:Mf("Section Title","atomic-blocks")},ab_postgrid_displayPostImage:{title:Mf("Display Featured Image","atomic-blocks")},ab_postgrid_imageSizeValue:{title:Mf("Image Size","atomic-blocks")},ab_postgrid_displayPostTitle:{title:Mf("Display Post Title","atomic-blocks")},ab_postgrid_displayPostAuthor:{title:Mf("Display Post Author","atomic-blocks")},ab_postgrid_displayPostDate:{title:Mf("Display Post Date","atomic-blocks")},ab_postgrid_displayPostExcerpt:{title:Mf("Display Post Excerpt","atomic-blocks")},ab_postgrid_excerptLength:{title:Mf("Excerpt Length","atomic-blocks")},ab_postgrid_displayPostLink:{title:Mf("Display Continue Reading Link","atomic-blocks")},ab_postgrid_readMoreText:{title:Mf("Read More Text","atomic-blocks")},ab_postgrid_sectionTag:{title:Mf("Post Grid Section Tag","atomic-blocks")},ab_postgrid_sectionTitleTag:{title:Mf("Section Title Heading Tag","atomic-blocks")},ab_postgrid_postTitleTag:{title:Mf("Post Title Heading Tag","atomic-blocks")}},save:function(){return null}});var jf=wp.i18n.__,Pf=wp.element.Component,Rf=wp.blockEditor,Hf=Rf.InspectorControls,Af=Rf.PanelColorSettings,Ff=Rf.MediaUpload,zf=wp.components,Nf=zf.Button,Bf=zf.Icon,If=zf.PanelBody,Wf=zf.RangeControl,Uf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xf(e,t)}(a,e);var t,n,r,o=Df(a);function a(e){return Ef(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.containerPaddingTop,r=t.containerPaddingRight,o=t.containerPaddingBottom,a=t.containerPaddingLeft,i=t.containerMarginTop,l=t.containerMarginBottom,s=t.containerMaxWidth,u=t.containerBackgroundColor,c=t.containerDimRatio,d=t.containerImgURL,p=t.containerImgID,f=this.props.setAttributes,h=function(){f({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return wp.element.createElement(Hf,{key:"inspector"},wp.element.createElement(m,{id:"ab_container_containerOptions"},wp.element.createElement(If,{title:jf("Container Options","atomic-blocks"),initialOpen:!0},wp.element.createElement(Wf,{label:jf("Padding Top (%)","atomic-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Padding Bottom (%)","atomic-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Padding Left (%)","atomic-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Padding Right (%)","atomic-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Margin Top (%)","atomic-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),wp.element.createElement(Wf,{label:jf("Margin Bottom (%)","atomic-blocks"),value:l,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Inside Container Max Width (px)","atomic-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMaxWidth:t})},min:500,max:1600,step:1}))),wp.element.createElement(m,{id:"ab_container_backgroundOptions"},wp.element.createElement(If,{title:jf("Background Options","atomic-blocks"),initialOpen:!1},wp.element.createElement("p",null,jf("Select a background image:","atomic-blocks")),wp.element.createElement(Ff,{onSelect:function(e){f({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return wp.element.createElement("div",null,wp.element.createElement(Nf,{className:"ab-container-inspector-media",label:jf("Edit image","atomic-blocks"),onClick:t},wp.element.createElement(Bf,{icon:"format-image"}),jf("Select Image","atomic-blocks")),d&&!!d.length&&wp.element.createElement(Nf,{className:"ab-container-inspector-media",label:jf("Remove Image","atomic-blocks"),onClick:h},wp.element.createElement(Bf,{icon:"dismiss"}),jf("Remove","atomic-blocks")))}}),d&&!!d.length&&wp.element.createElement(Wf,{label:jf("Image Opacity","atomic-blocks"),value:c,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),wp.element.createElement(Af,{title:jf("Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:u,label:jf("Background Color","atomic-blocks"),onChange:function(e){return f({containerBackgroundColor:e})}}]}))))}}])&&Yf(t.prototype,n),r&&Yf(t,r),a}(Pf);function Vf(e){return(Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qf(e,t){return(qf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qf(e);if(t){var o=Qf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kf(this,n)}}function Kf(e,t){return!t||"object"!==Vf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qf(e){return(Qf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qf(e,t)}(i,e);var t,n,r,a=$f(i);function i(e){return Jf(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r,a=this.props.attributes,i=a.containerBackgroundColor,l=a.containerAlignment,s=a.containerPaddingTop,u=a.containerPaddingRight,c=a.containerPaddingBottom,d=a.containerPaddingLeft,p=a.containerMarginTop,f=a.containerMarginBottom,m=a.containerWidth,h=a.containerMaxWidth,b=a.containerImgURL,y=a.containerImgAlt,_=a.containerDimRatio,g={backgroundColor:i||void 0,textAlign:l||void 0,paddingLeft:d?"".concat(d,"%"):void 0,paddingRight:u?"".concat(u,"%"):void 0,paddingBottom:c?"".concat(c,"%"):void 0,paddingTop:s?"".concat(s,"%"):void 0,marginTop:p?"".concat(p,"%"):void 0,marginBottom:f?"".concat(f,"%"):void 0},v=o()([this.props.className,"ab-block-container"],(n=m,(t="align"+m)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return wp.element.createElement("div",{style:g,className:v||void 0},wp.element.createElement("div",{className:"ab-container-inside"},b&&!!b.length&&wp.element.createElement("div",{className:"ab-container-image-wrap"},wp.element.createElement("img",{className:o()("ab-container-image",(r=_,0===r||50===r?null:"has-background-dim-"+10*Math.round(r/10)),{"has-background-dim":0!==_}),src:b,alt:y})),wp.element.createElement("div",{className:"ab-container-content",style:{maxWidth:h?"".concat(h,"px"):void 0}},this.props.children)))}}])&&Gf(t.prototype,n),r&&Gf(t,r),i}(wp.element.Component);function Xf(e){return(Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function em(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nm(e,t){return(nm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=am(e);if(t){var o=am(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return om(this,n)}}function om(e,t){return!t||"object"!==Xf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function am(e){return(am=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var im=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nm(e,t)}(i,e);var t,n,r,a=rm(i);function i(e){return em(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r=this.props.attributes,a=r.containerBackgroundColor,i=r.containerAlignment,l=r.containerPaddingTop,s=r.containerPaddingRight,u=r.containerPaddingBottom,c=r.containerPaddingLeft,d=r.containerMarginTop,p=r.containerMarginBottom,f=r.containerWidth,m=(r.containerMaxWidth,o()([this.props.className,"ab-block-container"],(n=f,(t="align"+f)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)));return wp.element.createElement("div",{style:{backgroundColor:a,textAlign:i,paddingLeft:"".concat(c,"%"),paddingRight:"".concat(s,"%"),paddingBottom:"".concat(u,"%"),paddingTop:"".concat(l,"%"),marginTop:"".concat(d,"%"),marginBottom:"".concat(p,"%")},className:m||void 0},this.props.children)}}])&&tm(t.prototype,n),r&&tm(t,r),i}(wp.element.Component);function lm(e){return(lm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function um(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cm(e,t){return(cm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fm(e);if(t){var o=fm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pm(this,n)}}function pm(e,t){return!t||"object"!==lm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fm(e){return(fm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cm(e,t)}(i,e);var t,n,r,a=dm(i);function i(e){return sm(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r,a=this.props.attributes,i=a.containerBackgroundColor,l=a.containerAlignment,s=a.containerPaddingTop,u=a.containerPaddingRight,c=a.containerPaddingBottom,d=a.containerPaddingLeft,p=a.containerMarginTop,f=a.containerMarginBottom,m=a.containerWidth,h=a.containerMaxWidth,b=a.containerImgURL,y=a.containerImgAlt,_=a.containerDimRatio,g={backgroundColor:i||void 0,textAlign:l||void 0,paddingLeft:d?"".concat(d,"%"):void 0,paddingRight:u?"".concat(u,"%"):void 0,paddingBottom:c?"".concat(c,"%"):void 0,paddingTop:s?"".concat(s,"%"):void 0,marginTop:p?"".concat(p,"%"):void 0,marginBottom:f?"".concat(f,"%"):void 0},v=o()([this.props.className,"ab-block-container"],(n=m,(t="align"+m)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return wp.element.createElement("div",{style:g,className:v||void 0},wp.element.createElement("div",{className:"ab-container-inside"},b&&!!b.length&&wp.element.createElement("div",{className:"ab-container-image-wrap"},wp.element.createElement("img",{className:o()("ab-container-image",(r=_,0===r||50===r?null:"has-background-dim-"+10*Math.round(r/10)),{"has-background-dim":0!==_}),src:b,alt:y})),wp.element.createElement("div",{className:"ab-container-content",style:{maxWidth:"".concat(h,"px")}},this.props.children)))}}])&&um(t.prototype,n),r&&um(t,r),i}(wp.element.Component);var hm=wp.blockEditor.InnerBlocks;var bm=[{attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){return wp.element.createElement(mm,e,wp.element.createElement(hm.Content,null))}},{attributes:{containerPaddingTop:{type:"number",default:0},containerPaddingRight:{type:"number",default:0},containerPaddingBottom:{type:"number",default:0},containerPaddingLeft:{type:"number",default:0},containerMarginTop:{type:"number",default:0},containerMarginBottom:{type:"number",default:0},containerWidth:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string",default:"#fff"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){var t,n=e.attributes,r=n.containerMaxWidth,a=n.containerImgURL,i=n.containerImgAlt,l=n.containerDimRatio;return wp.element.createElement(im,e,wp.element.createElement("div",{className:"ab-container-inside"},a&&!!a.length&&wp.element.createElement("div",{className:"ab-container-image-wrap"},wp.element.createElement("img",{className:o()("ab-container-image",(t=l,0===t||50===t?null:"has-background-dim-"+10*Math.round(t/10)),{"has-background-dim":0!==l}),src:a,alt:i})),wp.element.createElement("div",{className:"ab-container-content",style:{maxWidth:"".concat(r,"px")}},wp.element.createElement(hm.Content,null))))}}];n(318),n(319);function ym(e){return(ym="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _m(){return(_m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gm(Object(n),!0).forEach((function(t){wm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function km(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lm(e,t){return(Lm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Em(e);if(t){var o=Em(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tm(this,n)}}function Tm(e,t){return!t||"object"!==ym(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Em(e){return(Em=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ym=wp.i18n.__,xm=wp.element.Component,Dm=wp.blocks.registerBlockType,Om=wp.blockEditor.InnerBlocks,Cm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lm(e,t)}(a,e);var t,n,r,o=Sm(a);function a(){return km(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.setAttributes;return[wp.element.createElement(Uf,_m({key:"ab-container-inspector-"+this.props.clientId},vm({setAttributes:e},this.props))),wp.element.createElement(Zf,_m({key:"ab-container-"+this.props.clientId},this.props),wp.element.createElement(Om,null))]}}])&&Mm(t.prototype,n),r&&Mm(t,r),a}(xm);function jm(e){return(jm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hm(e,t){return(Hm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Am(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zm(e);if(t){var o=zm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fm(this,n)}}function Fm(e,t){return!t||"object"!==jm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zm(e){return(zm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Dm("atomic-blocks/ab-container",{title:Ym("Container","atomic-blocks"),description:Ym("Add a container block to wrap several blocks in a parent container.","atomic-blocks"),icon:"editor-table",category:"atomic-blocks",keywords:[Ym("container","atomic-blocks"),Ym("section","atomic-blocks"),Ym("atomic","atomic-blocks")],supports:{align:["center","wide","full"]},attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number"},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},ab_settings_data:{ab_container_containerOptions:{title:Ym("Container Options","atomic-blocks")},ab_container_backgroundOptions:{title:Ym("Background Options","atomic-blocks")}},edit:Cm,save:function(e){return wp.element.createElement(Zf,e,wp.element.createElement(Om.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:bm});var Nm=wp.i18n.__,Bm=wp.element.Component,Im=wp.blockEditor.InspectorControls,Wm=wp.components,Um=Wm.PanelBody,Vm=Wm.RangeControl,Jm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hm(e,t)}(a,e);var t,n,r,o=Am(a);function a(e){return Pm(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return wp.element.createElement(Im,{key:"inspector"},wp.element.createElement(Um,null,wp.element.createElement(m,{id:"ab_pricing_columns"},wp.element.createElement(Vm,{label:Nm("Pricing Columns","atomic-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),wp.element.createElement(m,{id:"ab_pricing_columnsGap"},wp.element.createElement(Vm,{label:Nm("Pricing Columns Gap","atomic-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}])&&Rm(t.prototype,n),r&&Rm(t,r),a}(Bm);function Gm(e){return(Gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Km(e,t){return(Km=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xm(e);if(t){var o=Xm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zm(this,n)}}function Zm(e,t){return!t||"object"!==Gm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xm(e){return(Xm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Km(e,t)}(i,e);var t,n,r,a=Qm(i);function i(e){return qm(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r=this.props.attributes,a=r.columns,i=r.align,l=o()([this.props.className,"ab-pricing-columns-"+a],(n=i,(t="align"+i)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return wp.element.createElement("div",{className:l||void 0},this.props.children)}}])&&$m(t.prototype,n),r&&$m(t,r),i}(wp.element.Component),th=n(23),nh=n.n(th),rh=n(24),oh=n.n(rh);function ah(e){return(ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ih(){return(ih=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lh(Object(n),!0).forEach((function(t){uh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ch(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ph(e,t){return(ph=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hh(e);if(t){var o=hh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mh(this,n)}}function mh(e,t){return!t||"object"!==ah(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hh(e){return(hh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bh=wp.i18n.__,yh=wp.element.Component,_h=wp.blocks.registerBlockType,gh=wp.blockEditor,vh=gh.BlockControls,wh=gh.BlockAlignmentToolbar,kh=gh.InnerBlocks,Mh=["atomic-blocks/ab-pricing-table"],Lh=nh()((function(e){return oh()(e,(function(){return["atomic-blocks/ab-pricing-table"]}))})),Sh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ph(e,t)}(i,e);var t,n,r,a=fh(i);function i(){return ch(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.columns,r=t.columnsGap,a=t.align,i=e.setAttributes;return[wp.element.createElement(vh,{key:"controls"},wp.element.createElement(wh,{value:a,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),wp.element.createElement(Jm,ih({key:"ab-pricing-table-inspector-"+this.props.clientId},sh({setAttributes:i},this.props))),wp.element.createElement(eh,ih({key:"ab-pricing-table-"+this.props.clientId},this.props),wp.element.createElement("div",{className:o()("ab-pricing-table-wrap-admin","ab-block-pricing-table-gap-"+r)},wp.element.createElement(kh,{template:Lh(n),templateLock:"all",allowedBlocks:Mh})))]}}])&&dh(t.prototype,n),r&&dh(t,r),i}(yh);function Th(e){return(Th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xh(e,t){return(xh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ch(e);if(t){var o=Ch(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oh(this,n)}}function Oh(e,t){return!t||"object"!==Th(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ch(e){return(Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}_h("atomic-blocks/ab-pricing",{title:bh("Pricing","atomic-blocks"),description:bh("Add a pricing table.","atomic-blocks"),icon:"cart",category:"atomic-blocks",keywords:[bh("pricing table","atomic-blocks"),bh("shop","atomic-blocks"),bh("purchase","atomic-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},ab_settings_data:{ab_pricing_columns:{title:bh("Pricing Columns","atomic-blocks")},ab_pricing_columnsGap:{title:bh("Pricing Columns Gap","atomic-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:Sh,save:function(e){var t=e.attributes.columnsGap,n=o()(["ab-pricing-table-wrap","ab-block-pricing-table-gap-"+t]);return wp.element.createElement(eh,e,wp.element.createElement("div",{className:n||void 0},wp.element.createElement(kh.Content,null)))}});var jh=wp.i18n.__,Ph=wp.element.Component,Rh=wp.blockEditor,Hh=Rh.InspectorControls,Ah=Rh.PanelColorSettings,Fh=wp.components,zh=Fh.PanelBody,Nh=Fh.RangeControl,Bh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xh(e,t)}(a,e);var t,n,r,o=Dh(a);function a(e){return Eh(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderWidth,o=n.borderColor,a=n.borderRadius,i=n.backgroundColor,l=n.padding,s=t.setAttributes;return wp.element.createElement(Hh,{key:"inspector"},wp.element.createElement(zh,null,wp.element.createElement(m,{id:"ab_pricing_inner_padding"},wp.element.createElement(Nh,{label:jh("Pricing Column Padding","atomic-blocks"),value:l,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),wp.element.createElement(m,{id:"ab_pricing_inner_borderWidth"},wp.element.createElement(Nh,{label:jh("Pricing Column Border","atomic-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),wp.element.createElement(m,{id:"ab_pricing_inner_borderRadius"},wp.element.createElement(Nh,{label:jh("Pricing Column Border Radius","atomic-blocks"),value:a,onChange:function(t){return e.props.setAttributes({borderRadius:t})},min:0,max:20,step:1}))),0<r&&wp.element.createElement(m,{id:"ab_pricing_inner_borderColor"},wp.element.createElement(Ah,{title:jh("Pricing Column Border Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return s({borderColor:e})},label:jh("Border Color","atomic-blocks")}]})),wp.element.createElement(m,{id:"ab_pricing_inner_colorSettings"},wp.element.createElement(Ah,{title:jh("Pricing Column Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return s({backgroundColor:e})},label:jh("Background Color","atomic-blocks")}]})))}}])&&Yh(t.prototype,n),r&&Yh(t,r),a}(Ph);n(320),n(321);function Ih(e){return(Ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wh(){return(Wh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uh(Object(n),!0).forEach((function(t){Jh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $h(e,t){return($h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zh(e);if(t){var o=Zh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qh(this,n)}}function Qh(e,t){return!t||"object"!==Ih(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zh(e){return(Zh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xh=wp.i18n.__,eb=wp.element.Component,tb=wp.blocks.registerBlockType,nb=wp.blockEditor,rb=nb.InnerBlocks,ob=nb.AlignmentToolbar,ab=nb.BlockControls,ib=wp.element.Fragment,lb=["atomic-blocks/ab-pricing-table-description","atomic-blocks/ab-pricing-table-price","atomic-blocks/ab-pricing-table-subtitle","atomic-blocks/ab-pricing-table-title","atomic-blocks/ab-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"],sb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$h(e,t)}(i,e);var t,n,r,a=Kh(i);function i(){return Gh(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,i=t.backgroundColor,l=t.padding,s=t.alignment,u=e.setAttributes,c={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:i||null,padding:l?l+"%":null};return[wp.element.createElement(ab,{key:"controls"},wp.element.createElement(ob,{value:s,onChange:function(e){u({alignment:e})}})),wp.element.createElement(Bh,Wh({key:"ab-pricing-table-inner-inspector-"+this.props.clientId},Vh({setAttributes:u},this.props))),wp.element.createElement(ib,{key:"ab-pricing-table-inner-fragment-"+this.props.clientId},wp.element.createElement("div",{className:o()(s?"ab-block-pricing-table-"+s:"ab-block-pricing-table-center","ab-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},wp.element.createElement("div",{className:"ab-block-pricing-table-inside",style:c},wp.element.createElement(rb,{template:[["atomic-blocks/ab-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["atomic-blocks/ab-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["atomic-blocks/ab-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["atomic-blocks/ab-pricing-table-features",{features:"<li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li>",multilineTag:"li",ordered:!1,customFontSize:20,paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["atomic-blocks/ab-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:lb,templateInsertUpdatesSelection:!1}))))]}}])&&qh(t.prototype,n),r&&qh(t,r),i}(eb);tb("atomic-blocks/ab-pricing-table",{title:Xh("Pricing Column","atomic-blocks"),description:Xh("Add a pricing column.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing"],keywords:[Xh("pricing","atomic-blocks"),Xh("shop","atomic-blocks"),Xh("buy","atomic-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},ab_settings_data:{ab_pricing_inner_padding:{title:Xh("Pricing Column Padding","atomic-blocks")},ab_pricing_inner_borderWidth:{title:Xh("Pricing Column Border","atomic-blocks")},ab_pricing_inner_borderRadius:{title:Xh("Pricing Column Border Radius","atomic-blocks")},ab_pricing_inner_borderColor:{title:Xh("Pricing Column Border Color","atomic-blocks")},ab_pricing_inner_colorSettings:{title:Xh("Pricing Column Background Color","atomic-blocks")}},edit:sb,save:function(e){var t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,i=t.backgroundColor,l=t.alignment,s=t.padding,u={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:i||null,padding:s?s+"%":null};return wp.element.createElement("div",{className:o()(l?"ab-block-pricing-table-"+l:"ab-block-pricing-table-center","ab-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},wp.element.createElement("div",{className:"ab-block-pricing-table-inside",style:u},wp.element.createElement(rb.Content,null)))}});var ub=wp.i18n.__,cb=wp.element.Fragment,db=wp.components.RangeControl;function pb(e){var t=e.padding,n=e.paddingTitle,r=e.paddingHelp,o=e.paddingMin,a=e.paddingMax,i=e.paddingEnable,l=e.onChangePadding,s=void 0===l?function(){}:l,u=e.paddingTop,c=e.paddingTopMin,d=e.paddingTopMax,p=e.paddingEnableTop,f=e.onChangePaddingTop,m=void 0===f?function(){}:f,h=e.paddingRight,b=e.paddingRightMin,y=e.paddingRightMax,_=e.paddingEnableRight,g=e.onChangePaddingRight,v=void 0===g?function(){}:g,w=e.paddingBottom,k=e.paddingBottomMin,M=e.paddingBottomMax,L=e.paddingEnableBottom,S=e.onChangePaddingBottom,T=void 0===S?function(){}:S,E=e.paddingLeft,Y=e.paddingLeftMin,x=e.paddingLeftMax,D=e.paddingEnableLeft,O=e.onChangePaddingLeft,C=void 0===O?function(){}:O,j=e.paddingVertical,P=e.paddingEnableVertical,R=e.paddingVerticalMin,H=e.paddingVerticalMax,A=e.onChangePaddingVertical,F=void 0===A?function(){}:A,z=e.paddingHorizontal,N=e.paddingEnableHorizontal,B=e.paddingHorizontalMin,I=e.paddingHorizontalMax,W=e.onChangePaddingHorizontal,U=void 0===W?function(){}:W;return wp.element.createElement(cb,null,i&&wp.element.createElement(db,{label:n||ub("Padding","atomic-blocks"),help:r||null,value:t,min:o,max:a,onChange:s}),p&&wp.element.createElement(db,{label:ub("Padding Top","atomic-blocks"),value:u,min:c,max:d,onChange:m}),_&&wp.element.createElement(db,{label:ub("Padding Right","atomic-blocks"),value:h,min:b,max:y,onChange:v}),L&&wp.element.createElement(db,{label:ub("Padding Bottom","atomic-blocks"),value:w,min:k,max:M,onChange:T}),D&&wp.element.createElement(db,{label:ub("Padding Left","atomic-blocks"),value:E,min:Y,max:x,onChange:C}),P&&wp.element.createElement(db,{label:ub("Padding Vertical","atomic-blocks"),value:j,min:R,max:H,onChange:F}),N&&wp.element.createElement(db,{label:ub("Padding Horizontal","atomic-blocks"),value:z,min:B,max:I,onChange:U}))}function fb(e){return(fb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mb(){return(mb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yb(e,t){return(yb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vb(e);if(t){var o=vb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gb(this,n)}}function gb(e,t){return!t||"object"!==fb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vb(e){return(vb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wb=wp.i18n.__,kb=wp.element.Component,Mb=wp.compose.compose,Lb=wp.blockEditor,Sb=Lb.InspectorControls,Tb=Lb.FontSizePicker,Eb=Lb.withFontSizes,Yb=Lb.withColors,xb=Lb.ContrastChecker,Db=Lb.PanelColorSettings,Ob=wp.components,Cb=Ob.withFallbackStyles,jb=Ob.PanelBody,Pb=Ob.ToggleControl,Rb=Ob.TextControl,Hb=(Ob.RangeControl,Cb((function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,i=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),s=l?getComputedStyle(l):null;return{fallbackBackgroundColor:o||!s?void 0:s.backgroundColor,fallbackTextColor:r||!s?void 0:s.color,fallbackFontSize:a||i||!s?void 0:parseInt(s.fontSize)||void 0}}))),Ab=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yb(e,t)}(a,e);var t,n,r,o=_b(a);function a(e){return hb(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.showTerm,o=n.showCurrency,a=n.term,i=n.currency,l=n.paddingTop,s=n.paddingRight,u=n.paddingBottom,c=n.paddingLeft,d=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,f=t.fontSize,m=t.setFontSize,h=t.backgroundColor,b=t.textColor,y=t.setBackgroundColor,_=t.setTextColor,g=t.fallbackBackgroundColor,v=t.fallbackTextColor;return wp.element.createElement(Sb,{key:"inspector"},wp.element.createElement(jb,{title:wb("Text Settings","atomic-blocks")},wp.element.createElement(Tb,{fallbackFontSize:p,value:f.size,onChange:m}),wp.element.createElement(Pb,{label:wb("Show currency symbol","atomic-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&wp.element.createElement(Rb,{label:wb("Currency Symbol","atomic-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({currency:t})}}),wp.element.createElement(Pb,{label:wb("Show pricing duration","atomic-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&wp.element.createElement(Rb,{label:wb("Pricing Duration","atomic-blocks"),type:"text",value:a,onChange:function(t){return e.props.setAttributes({term:t})}})),wp.element.createElement(jb,{title:wb("Padding Settings","atomic-blocks"),initialOpen:!1},wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:s,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:u,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:c,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),wp.element.createElement(Db,{title:wb("Color Settings","atomic-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:y,label:wb("Background Color","atomic-blocks")},{value:b.color,onChange:_,label:wb("Text Color","atomic-blocks")}]},wp.element.createElement(xb,mb({textColor:b.color,backgroundColor:h.color,fallbackTextColor:v,fallbackBackgroundColor:g},{fontSize:f.size}))))}}])&&bb(t.prototype,n),r&&bb(t,r),a}(kb),Fb=Mb([Hb,Eb("fontSize"),Yb("backgroundColor",{textColor:"color"})])(Ab);function zb(e){return(zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ib(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wb(e,t){return(Wb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ub(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jb(e);if(t){var o=Jb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vb(this,n)}}function Vb(e,t){return!t||"object"!==zb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jb(e){return(Jb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gb=wp.i18n.__,qb=(wp.blocks.registerBlockType,wp.compose.compose),$b=wp.element,Kb=$b.Component,Qb=$b.Fragment,Zb=wp.blockEditor,Xb=Zb.RichText,ey=Zb.withFontSizes,ty=Zb.withColors,ny=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wb(e,t)}(i,e);var t,n,r,a=Ub(i);function i(){return Bb(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.price,a=n.currency,i=n.term,l=n.showTerm,s=n.showCurrency,u=n.paddingTop,c=n.paddingRight,d=n.paddingBottom,p=n.paddingLeft,f=(t.isSelected,t.className,t.setAttributes),m=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,b=t.textColor,y=o()((Nb(e={"ab-pricing-table-price-wrap":!0,"has-text-color":b.color,"has-background":h.color},h.class,h.class),Nb(e,b.class,b.class),Nb(e,"ab-pricing-has-currency",s),e)),_=o()(Nb({"ab-pricing-table-price":!0},m.class,m.class)),g={backgroundColor:h.color,color:b.color,paddingTop:u?u+"px":void 0,paddingRight:c?c+"px":void 0,paddingBottom:d?d+"px":void 0,paddingLeft:p?p+"px":void 0},v={fontSize:m.size?m.size+"px":void 0},w=Math.floor(m.size/2.5),k={fontSize:m.size?w+"px":void 0},M=Math.floor(m.size/2.5),L={fontSize:m.size?M+"px":void 0};return[wp.element.createElement(Qb,{key:"ab-pricing-table-inner-component-price-"+this.props.clientId},wp.element.createElement(Fb,this.props),wp.element.createElement("div",{className:y||void 0,style:g},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},s&&wp.element.createElement(Xb,{tagName:"span",itemProp:"priceCurrency",placeholder:Gb("$","atomic-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return f({currency:e})},className:"ab-pricing-table-currency",style:k}),wp.element.createElement(Xb,{tagName:"div",itemProp:"price",placeholder:Gb("49","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return f({price:e})},style:v,className:_||void 0}),l&&wp.element.createElement(Xb,{tagName:"span",value:i,placeholder:Gb("/mo","atomic-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return f({term:e})},className:"ab-pricing-table-term",style:L}))))]}}])&&Ib(t.prototype,n),r&&Ib(t,r),i}(Kb),ry=qb([ey("fontSize"),ty("backgroundColor",{textColor:"color"})])(ny);function oy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ay=wp.i18n.__,iy=wp.blockEditor,ly=iy.RichText,sy=iy.getFontSizeClass,uy=iy.getColorClassName,cy=[{attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,i=n.fontSize,l=n.customFontSize,s=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,f=n.showTerm,m=n.showCurrency,h=n.paddingTop,b=n.paddingRight,y=n.paddingBottom,_=n.paddingLeft,g=sy(i),v=uy("color",u),w=uy("background-color",s),k=o()((oy(t={"has-background":s||c,"ab-pricing-table-price-wrap":!0},v,v),oy(t,w,w),oy(t,"ab-pricing-has-currency",m&&a),t)),M=o()(oy({"ab-pricing-table-price":!0},g,g)),L={backgroundColor:w?void 0:c,color:v?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:b?b+"px":void 0,paddingBottom:y?y+"px":void 0,paddingLeft:_?_+"px":void 0},S={fontSize:g?void 0:l},T=g?void 0:l,E=Math.floor(T/2.5),Y={fontSize:T?E+"px":void 0},x=Math.floor(T/2.5),D={fontSize:T?x+"px":void 0};return wp.element.createElement("div",{className:k||void 0,style:L},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&m&&wp.element.createElement(ly.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:ay("$","atomic-blocks"),value:a,className:"ab-pricing-table-currency",style:Y}),wp.element.createElement(ly.Content,{tagName:"div",itemProp:"price",value:r,className:M||void 0,style:S}),p&&f&&wp.element.createElement(ly.Content,{tagName:"span",value:p,className:"ab-pricing-table-term",style:D})))}}];function dy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var py=wp.i18n.__,fy=wp.blocks.registerBlockType,my=wp.element,hy=(my.Component,my.Fragment,wp.blockEditor),by=hy.RichText,yy=hy.getFontSizeClass,_y=(hy.FontSizePicker,hy.withFontSizes,hy.getColorClassName);function gy(e){return(gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vy(){return(vy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function wy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ky(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function My(e,t){return(My=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ly(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ty(e);if(t){var o=Ty(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sy(this,n)}}function Sy(e,t){return!t||"object"!==gy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ty(e){return(Ty=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}fy("atomic-blocks/ab-pricing-table-price",{title:py("Product Price","atomic-blocks"),description:py("Adds a product price component with schema markup.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[py("pricing table","atomic-blocks"),py("price","atomic-blocks"),py("shop","atomic-blocks")],attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:ry,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,i=n.fontSize,l=n.customFontSize,s=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,f=n.showTerm,m=n.showCurrency,h=n.paddingTop,b=n.paddingRight,y=n.paddingBottom,_=n.paddingLeft,g=yy(i),v=_y("color",u),w=_y("background-color",s),k=o()((dy(t={"has-background":s||c,"ab-pricing-table-price-wrap":!0},v,v),dy(t,w,w),dy(t,"ab-pricing-has-currency",m&&a),t)),M=o()(dy({"ab-pricing-table-price":!0},g,g)),L={backgroundColor:w?void 0:c,color:v?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:b?b+"px":void 0,paddingBottom:y?y+"px":void 0,paddingLeft:_?_+"px":void 0},S={fontSize:g?void 0:l},T=g?void 0:l,E=Math.floor(T/2.5),Y={fontSize:T?E+"px":void 0},x=Math.floor(T/2.5),D={fontSize:T?x+"px":void 0};return wp.element.createElement("div",{className:k||void 0,style:L},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&m&&wp.element.createElement(by.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"ab-pricing-table-currency",style:Y}),wp.element.createElement(by.Content,{tagName:"div",itemProp:"price",value:r,className:M||void 0,style:S}),p&&f&&wp.element.createElement(by.Content,{tagName:"span",value:p,className:"ab-pricing-table-term",style:D})))},deprecated:cy});var Ey=wp.i18n.__,Yy=wp.element.Component,xy=wp.compose.compose,Dy=wp.blockEditor,Oy=Dy.InspectorControls,Cy=Dy.FontSizePicker,jy=Dy.withFontSizes,Py=Dy.withColors,Ry=Dy.ContrastChecker,Hy=Dy.PanelColorSettings,Ay=Dy.ColorPalette,Fy=wp.components,zy=Fy.withFallbackStyles,Ny=Fy.PanelBody,By=Fy.PanelRow,Iy=Fy.SelectControl,Wy=Fy.BaseControl,Uy=Fy.RangeControl,Vy=zy((function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,i=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),s=l?getComputedStyle(l):null;return{fallbackBackgroundColor:o||!s?void 0:s.backgroundColor,fallbackTextColor:r||!s?void 0:s.color,fallbackFontSize:a||i||!s?void 0:parseInt(s.fontSize)||void 0}})),Jy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&My(e,t)}(a,e);var t,n,r,o=Ly(a);function a(e){return wy(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderStyle,o=n.borderColor,a=n.borderWidth,i=n.paddingTop,l=n.paddingRight,s=n.paddingBottom,u=n.paddingLeft,c=(t.isSelected,t.setAttributes),d=t.fallbackFontSize,p=t.fontSize,f=t.setFontSize,m=t.backgroundColor,h=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,_=t.fallbackBackgroundColor,g=t.fallbackTextColor,v=[{value:"ab-list-border-none",label:Ey("None")},{value:"ab-list-border-solid",label:Ey("Solid")},{value:"ab-list-border-dotted",label:Ey("Dotted")},{value:"ab-list-border-dashed",label:Ey("Dashed")}];return wp.element.createElement(Oy,{key:"inspector"},wp.element.createElement(Ny,{title:Ey("Text Settings","atomic-blocks")},wp.element.createElement(Cy,{fallbackFontSize:d,value:p.size,onChange:f}),wp.element.createElement(Iy,{label:Ey("List Border Style","atomic-blocks"),value:r,options:v.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({borderStyle:t})}}),"ab-list-border-none"!==r&&wp.element.createElement(Uy,{label:Ey("List Border Width","atomic-blocks"),value:a,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:1,max:5,step:1}),"ab-list-border-none"!==r&&wp.element.createElement(By,null,wp.element.createElement(Wy,{label:Ey("List Border Color","atomic-blocks"),id:"ab-list-border-color-"+this.props.clientId},wp.element.createElement(Ay,{initialOpen:!1,value:o,onChange:function(e){return c({borderColor:e})}})))),wp.element.createElement(Ny,{title:Ey("Padding Settings","atomic-blocks"),initialOpen:!1},wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:i,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return c({paddingTop:e})},paddingEnableRight:!0,paddingRight:l,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return c({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:s,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return c({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:u,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return c({paddingLeft:e})}})),wp.element.createElement(Hy,{title:Ey("Color Settings","atomic-blocks"),initialOpen:!1,colorSettings:[{value:m.color,onChange:b,label:Ey("Background Color","atomic-blocks")},{value:h.color,onChange:y,label:Ey("Text Color","atomic-blocks")}]},wp.element.createElement(Ry,vy({textColor:h.color,backgroundColor:m.color,fallbackTextColor:g,fallbackBackgroundColor:_},{fontSize:p.size}))))}}])&&ky(t.prototype,n),r&&ky(t,r),a}(Yy),Gy=xy([Vy,jy("fontSize"),Py("backgroundColor",{textColor:"color"})])(Jy);function qy(e){return(qy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ky(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zy(e,t){return(Zy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=t_(e);if(t){var o=t_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return e_(this,n)}}function e_(e,t){return!t||"object"!==qy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function t_(e){return(t_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n_=wp.i18n.__,r_=(wp.blocks.registerBlockType,wp.compose.compose),o_=wp.element,a_=o_.Component,i_=o_.Fragment,l_=wp.blockEditor,s_=l_.RichText,u_=l_.withFontSizes,c_=l_.withColors,d_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zy(e,t)}(i,e);var t,n,r,a=Xy(i);function i(){return Ky(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.features,a=n.borderStyle,i=n.borderColor,l=n.borderWidth,s=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),f=(t.fallbackFontSize,t.fontSize),m=t.backgroundColor,h=t.textColor,b=o()(($y(e={"ab-pricing-table-features":!0},f.class,f.class),$y(e,"has-text-color",h.color),$y(e,"has-background",m.color),$y(e,m.class,m.class),$y(e,h.class,h.class),$y(e,a,a),$y(e,"ab-list-border-width-"+l,l),e)),y={fontSize:f.size?f.size+"px":void 0,backgroundColor:m.color,color:h.color,borderColor:i||void 0,paddingTop:s?s+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:d?d+"px":void 0};return[wp.element.createElement(i_,{key:"ab-pricing-table-inner-component-description-"+this.props.clientId},wp.element.createElement(Gy,this.props),wp.element.createElement(s_,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:n_("Add a product feature","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({features:e})},style:y,className:b||void 0}))]}}])&&Qy(t.prototype,n),r&&Qy(t,r),i}(a_),p_=r_([u_("fontSize"),c_("backgroundColor",{textColor:"color"})])(d_);function f_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m_=wp.i18n.__,h_=wp.blocks.registerBlockType,b_=(wp.element.Component,wp.blockEditor),y_=b_.RichText,__=b_.getFontSizeClass,g_=(b_.FontSizePicker,b_.withFontSizes,b_.getColorClassName);function v_(e){return(v_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w_(){return(w_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L_(e,t){return(L_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E_(e);if(t){var o=E_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T_(this,n)}}function T_(e,t){return!t||"object"!==v_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E_(e){return(E_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}h_("atomic-blocks/ab-pricing-table-features",{title:m_("Product Features","atomic-blocks"),description:m_("Adds a product feature component with schema markup.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[m_("pricing table","atomic-blocks"),m_("features","atomic-blocks"),m_("shop","atomic-blocks")],attributes:{features:{type:"string",source:"html",selector:"ol,ul",multiline:"li"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},borderStyle:{type:"string",default:"ab-list-border-none"},borderColor:{type:"string"},borderWidth:{type:"number",default:1},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:p_,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,i=n.customFontSize,l=n.backgroundColor,s=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.borderStyle,p=n.borderColor,f=n.borderWidth,m=n.paddingTop,h=n.paddingRight,b=n.paddingBottom,y=n.paddingLeft,_=__(a),g=g_("color",s),v=g_("background-color",l),w=o()((f_(t={"has-background":l||u,"ab-pricing-table-features":!0},_,_),f_(t,g,g),f_(t,v,v),f_(t,d,d),f_(t,"ab-list-border-width-"+f,f),t)),k={fontSize:_?void 0:i,backgroundColor:v?void 0:u,color:g?void 0:c,borderColor:p||void 0,paddingTop:m?m+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:b?b+"px":void 0,paddingLeft:y?y+"px":void 0};return wp.element.createElement(y_.Content,{tagName:"ul",itemProp:"description",value:r,className:w||void 0,style:k})}});var Y_=wp.i18n.__,x_=wp.element.Component,D_=wp.compose.compose,O_=wp.blockEditor,C_=O_.InspectorControls,j_=O_.FontSizePicker,P_=O_.withFontSizes,R_=O_.withColors,H_=O_.ContrastChecker,A_=O_.PanelColorSettings,F_=(O_.RangeControl,wp.components),z_=F_.withFallbackStyles,N_=F_.PanelBody,B_=z_((function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,i=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),s=l?getComputedStyle(l):null;return{fallbackBackgroundColor:o||!s?void 0:s.backgroundColor,fallbackTextColor:r||!s?void 0:s.color,fallbackFontSize:a||i||!s?void 0:parseInt(s.fontSize)||void 0}})),I_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L_(e,t)}(a,e);var t,n,r,o=S_(a);function a(e){return k_(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,a=t.paddingLeft,i=(e.isSelected,e.setAttributes),l=e.fallbackFontSize,s=e.fontSize,u=e.setFontSize,c=e.backgroundColor,d=e.textColor,p=e.setBackgroundColor,f=e.setTextColor,m=e.fallbackBackgroundColor,h=e.fallbackTextColor;return wp.element.createElement(C_,{key:"inspector"},wp.element.createElement(N_,{title:Y_("Text Settings","atomic-blocks")},wp.element.createElement(j_,{fallbackFontSize:l,value:s.size,onChange:u})),wp.element.createElement(N_,{title:Y_("Padding Settings","atomic-blocks"),initialOpen:!1},wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return i({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return i({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return i({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:a,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return i({paddingLeft:e})}})),wp.element.createElement(A_,{title:Y_("Color Settings","atomic-blocks"),initialOpen:!1,colorSettings:[{value:c.color,onChange:p,label:Y_("Background Color","atomic-blocks")},{value:d.color,onChange:f,label:Y_("Text Color","atomic-blocks")}]},wp.element.createElement(H_,w_({textColor:d.color,backgroundColor:c.color,fallbackTextColor:h,fallbackBackgroundColor:m},{fontSize:s.size}))))}}])&&M_(t.prototype,n),r&&M_(t,r),a}(x_),W_=D_([B_,P_("fontSize"),R_("backgroundColor",{textColor:"color"})])(I_);function U_(e){return(U_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q_(e,t){return(q_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q_(e);if(t){var o=Q_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return K_(this,n)}}function K_(e,t){return!t||"object"!==U_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q_(e){return(Q_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z_=wp.i18n.__,X_=(wp.blocks.registerBlockType,wp.compose.compose),eg=wp.element,tg=eg.Component,ng=eg.Fragment,rg=wp.blockEditor,og=rg.RichText,ag=rg.withFontSizes,ig=rg.withColors,lg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q_(e,t)}(i,e);var t,n,r,a=$_(i);function i(){return J_(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.title,a=n.paddingTop,i=n.paddingRight,l=n.paddingBottom,s=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,f=o()((V_(e={"ab-pricing-table-title":!0},c.class,c.class),V_(e,"has-text-color",p.color),V_(e,"has-background",d.color),V_(e,d.class,d.class),V_(e,p.class,p.class),e)),m={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:i?i+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0};return[wp.element.createElement(ng,{key:"ab-pricing-table-inner-component-title-"+this.props.clientId},wp.element.createElement(W_,this.props),wp.element.createElement(og,{tagName:"div",itemProp:"name",placeholder:Z_("Price Title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({title:e})},style:m,className:f||void 0}))]}}])&&G_(t.prototype,n),r&&G_(t,r),i}(tg),sg=X_([ag("fontSize"),ig("backgroundColor",{textColor:"color"})])(lg);function ug(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cg=wp.i18n.__,dg=wp.blocks.registerBlockType,pg=(wp.element.Component,wp.blockEditor),fg=pg.RichText,mg=pg.getFontSizeClass,hg=(pg.FontSizePicker,pg.withFontSizes,pg.getColorClassName);function bg(e){return(bg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vg(e,t){return(vg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mg(e);if(t){var o=Mg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kg(this,n)}}function kg(e,t){return!t||"object"!==bg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mg(e){return(Mg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}dg("atomic-blocks/ab-pricing-table-title",{title:cg("Product Title","atomic-blocks"),description:cg("Adds a product title component with schema markup.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[cg("pricing table","atomic-blocks"),cg("title","atomic-blocks"),cg("shop","atomic-blocks")],attributes:{title:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:sg,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,i=n.customFontSize,l=n.backgroundColor,s=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,f=n.paddingBottom,m=n.paddingLeft,h=mg(a),b=hg("color",s),y=hg("background-color",l),_={fontSize:h?void 0:i,backgroundColor:y?void 0:u,color:b?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:m?m+"px":void 0},g=o()((ug(t={"has-background":l||u,"ab-pricing-table-title":!0},h,h),ug(t,b,b),ug(t,y,y),t));return wp.element.createElement(fg.Content,{tagName:"div",itemProp:"name",value:r,style:_,className:g||void 0})}});var Lg=wp.i18n.__,Sg=(wp.blocks.registerBlockType,wp.compose.compose),Tg=wp.element,Eg=Tg.Component,Yg=Tg.Fragment,xg=wp.blockEditor,Dg=xg.RichText,Og=xg.withFontSizes,Cg=xg.withColors,jg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vg(e,t)}(i,e);var t,n,r,a=wg(i);function i(){return _g(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.subtitle,a=n.paddingTop,i=n.paddingRight,l=n.paddingBottom,s=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,f=o()((yg(e={"ab-pricing-table-subtitle":!0},c.class,c.class),yg(e,"has-text-color",p.color),yg(e,"has-background",d.color),yg(e,d.class,d.class),yg(e,p.class,p.class),e)),m={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:i?i+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0};return[wp.element.createElement(Yg,{key:"ab-pricing-table-inner-component-subtitle-"+this.props.clientId},wp.element.createElement(W_,this.props),wp.element.createElement(Dg,{tagName:"div",placeholder:Lg("Price Subtitle","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({subtitle:e})},style:m,className:f||void 0}))]}}])&&gg(t.prototype,n),r&&gg(t,r),i}(Eg),Pg=Sg([Og("fontSize"),Cg("backgroundColor",{textColor:"color"})])(jg);function Rg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hg=wp.i18n.__,Ag=wp.blocks.registerBlockType,Fg=(wp.element.Component,wp.blockEditor),zg=Fg.RichText,Ng=Fg.getFontSizeClass,Bg=(Fg.FontSizePicker,Fg.withFontSizes,Fg.getColorClassName);function Ig(e){return(Ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ug(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vg(e,t){return(Vg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qg(e);if(t){var o=qg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gg(this,n)}}function Gg(e,t){return!t||"object"!==Ig(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qg(e){return(qg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ag("atomic-blocks/ab-pricing-table-subtitle",{title:Hg("Product Subtitle","atomic-blocks"),description:Hg("Adds a product subtitle component with schema markup.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[Hg("pricing table","atomic-blocks"),Hg("subtitle","atomic-blocks"),Hg("shop","atomic-blocks")],attributes:{subtitle:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Pg,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,i=n.customFontSize,l=n.backgroundColor,s=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,f=n.paddingBottom,m=n.paddingLeft,h=Ng(a),b=Bg("color",s),y=Bg("background-color",l),_=o()((Rg(t={"has-background":l||u,"ab-pricing-table-subtitle":!0},h,h),Rg(t,b,b),Rg(t,y,y),t)),g={fontSize:h?void 0:i,backgroundColor:y?void 0:u,color:b?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:m?m+"px":void 0};return wp.element.createElement(zg.Content,{tagName:"div",value:r,className:_||void 0,style:g})}});var $g=wp.i18n.__,Kg=wp.element.Component,Qg=wp.compose.compose,Zg=wp.blockEditor,Xg=Zg.InspectorControls,ev=(Zg.FontSizePicker,Zg.withFontSizes),tv=Zg.withColors,nv=(Zg.ContrastChecker,Zg.PanelColorSettings),rv=wp.components,ov=rv.withFallbackStyles,av=rv.PanelBody,iv=(rv.ToggleControl,rv.TextControl,rv.RangeControl,ov((function(e,t){var n=t.attributes.backgroundColor,r=e.querySelector('[contenteditable="true"]'),o=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!o?void 0:o.backgroundColor}}))),lv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vg(e,t)}(a,e);var t,n,r,o=Jg(a);function a(e){return Wg(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,a=t.paddingLeft,i=(t.buttonText,t.buttonUrl,t.buttonAlignment,t.buttonBackgroundColor),l=t.buttonTextColor,s=t.buttonSize,u=t.buttonShape,c=t.buttonTarget,d=(e.isSelected,e.setAttributes),p=e.backgroundColor,f=e.setBackgroundColor;return e.fallbackBackgroundColor,wp.element.createElement(Xg,{key:"inspector"},wp.element.createElement(av,{title:$g("Button Settings","atomic-blocks")},wp.element.createElement(eo,{buttonTarget:c,onChangeButtonTarget:function(e){return d({buttonTarget:!c})},buttonSize:s,onChangeButtonSize:function(e){return d({buttonSize:e})},buttonShape:u,onChangeButtonShape:function(e){return d({buttonShape:e})},buttonBackgroundColor:i,onChangeButtonColor:function(e){return d({buttonBackgroundColor:e})},buttonTextColor:l,onChangeButtonTextColor:function(e){return d({buttonTextColor:e})}})),wp.element.createElement(av,{title:$g("Padding Settings","atomic-blocks"),initialOpen:!1},wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:a,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),wp.element.createElement(nv,{title:$g("Color Settings","atomic-blocks"),initialOpen:!1,colorSettings:[{value:p.color,onChange:f,label:$g("Background Color","atomic-blocks")}]}))}}])&&Ug(t.prototype,n),r&&Ug(t,r),a}(Kg),sv=Qg([iv,ev("fontSize"),tv("backgroundColor")])(lv);function uv(e){return(uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pv(e,t){return(pv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hv(e);if(t){var o=hv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mv(this,n)}}function mv(e,t){return!t||"object"!==uv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hv(e){return(hv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bv=wp.i18n.__,yv=(wp.blocks.registerBlockType,wp.compose.compose),_v=wp.element,gv=_v.Component,vv=_v.Fragment,wv=wp.blockEditor,kv=wv.RichText,Mv=wv.withFontSizes,Lv=wv.withColors,Sv=(wv.InnerBlocks,wv.URLInput),Tv=wp.components,Ev=Tv.Button,Yv=Tv.Dashicon,xv=Tv.Icon,Dv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pv(e,t)}(i,e);var t,n,r,a=fv(i);function i(){return cv(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.subtitle,t.paddingTop),r=t.paddingRight,a=t.paddingBottom,i=t.paddingLeft,l=t.buttonText,s=t.buttonUrl,u=t.buttonAlignment,c=t.buttonBackgroundColor,d=t.buttonTextColor,p=t.buttonSize,f=t.buttonShape,m=(t.buttonTarget,e.isSelected),h=(e.className,e.setAttributes),b=e.backgroundColor,y=o()({"ab-pricing-table-button":!0}),_={backgroundColor:b.color,paddingTop:n?n+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:a?a+"px":void 0,paddingLeft:i?i+"px":void 0};return[wp.element.createElement(vv,{key:"ab-pricing-table-inner-component-button-"+this.props.clientId},wp.element.createElement(sv,this.props),wp.element.createElement("div",{className:y||void 0,style:_},wp.element.createElement(vo,this.props,wp.element.createElement(kv,{tagName:"span",placeholder:bv("Button text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:l,allowedFormats:[],className:o()("ab-button",f,p),style:{color:d,backgroundColor:c},onChange:function(e){return h({buttonText:e})}})),m&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link ab-button-".concat(u),onSubmit:function(e){return e.preventDefault()},style:{textAlign:u}},wp.element.createElement(Yv,{icon:"admin-links"}),wp.element.createElement(Sv,{className:"button-url",value:s,onChange:function(e){return h({buttonUrl:e})}}),wp.element.createElement(Ev,{label:bv("Apply","atomic-blocks"),type:"submit"},wp.element.createElement(xv,{icon:"editor-break"})))))]}}])&&dv(t.prototype,n),r&&dv(t,r),i}(gv),Ov=yv([Mv("fontSize"),Lv("backgroundColor",{textColor:"color"})])(Dv);var Cv=wp.i18n.__,jv=wp.blocks.registerBlockType,Pv=(wp.element.Component,wp.blockEditor),Rv=Pv.RichText,Hv=(Pv.getFontSizeClass,Pv.FontSizePicker,Pv.withFontSizes,Pv.getColorClassName);jv("atomic-blocks/ab-pricing-table-button",{title:Cv("Product Button","atomic-blocks"),description:Cv("Adds a product button component.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[Cv("pricing table","atomic-blocks"),Cv("subtitle","atomic-blocks"),Cv("shop","atomic-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Ov,save:function(e){var t,n,r,a=e.attributes,i=a.backgroundColor,l=a.customBackgroundColor,s=a.paddingTop,u=a.paddingRight,c=a.paddingBottom,d=a.paddingLeft,p=a.buttonText,f=a.buttonUrl,m=(a.buttonAlignment,a.buttonBackgroundColor),h=a.buttonTextColor,b=a.buttonSize,y=a.buttonShape,_=a.buttonTarget,g=Hv("background-color",i),v=o()((r=g,(n=g)in(t={"has-background":i||l,"ab-pricing-table-button":!0})?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)),w={backgroundColor:g?void 0:l,paddingTop:s?s+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:d?d+"px":void 0};return wp.element.createElement("div",{className:v||void 0,style:w},wp.element.createElement(vo,e,p&&wp.element.createElement("a",{href:f,target:_?"_blank":null,rel:_?"noopener noreferrer":null,className:o()("ab-button",y,b),style:{color:h,backgroundColor:m}},wp.element.createElement(Rv.Content,{value:p}))))}});var Av=wp.i18n.__,Fv=wp.element.Fragment,zv=wp.components.RangeControl;function Nv(e){var t=e.marginTop,n=e.marginTopLabel,r=e.marginTopMin,o=e.marginTopMax,a=e.marginEnableTop,i=e.onChangeMarginTop,l=void 0===i?function(){}:i,s=e.marginRight,u=e.marginRightLabel,c=e.marginRightMin,d=e.marginRightMax,p=e.marginEnableRight,f=e.onChangeMarginRight,m=void 0===f?function(){}:f,h=e.marginBottom,b=e.marginBottomLabel,y=e.marginBottomMin,_=e.marginBottomMax,g=e.marginEnableBottom,v=e.onChangeMarginBottom,w=void 0===v?function(){}:v,k=e.marginLeft,M=e.marginLeftLabel,L=e.marginLeftMin,S=e.marginLeftMax,T=e.marginEnableLeft,E=e.onChangeMarginLeft,Y=void 0===E?function(){}:E,x=e.marginVertical,D=e.marginVerticalLabel,O=e.marginEnableVertical,C=e.marginVerticalMin,j=e.marginVerticalMax,P=e.onChangeMarginVertical,R=void 0===P?function(){}:P,H=e.marginHorizontal,A=e.marginHorizontalLabel,F=e.marginEnableHorizontal,z=e.marginHorizontalMin,N=e.marginHorizontalMax,B=e.onChangeMarginHorizontal,I=void 0===B?function(){}:B;return wp.element.createElement(Fv,null,a&&wp.element.createElement(zv,{label:n||Av("Margin Top","atomic-blocks"),value:t,min:r,max:o,onChange:l}),p&&wp.element.createElement(zv,{label:u||Av("Margin Right","atomic-blocks"),value:s,min:c,max:d,onChange:m}),g&&wp.element.createElement(zv,{label:b||Av("Margin Bottom","atomic-blocks"),value:h,min:y,max:_,onChange:w}),T&&wp.element.createElement(zv,{label:M||Av("Margin Left","atomic-blocks"),value:k,min:L,max:S,onChange:Y}),O&&wp.element.createElement(zv,{label:D||Av("Margin Vertical","atomic-blocks"),value:x,min:C,max:j,onChange:R}),F&&wp.element.createElement(zv,{label:A||Av("Margin Horizontal","atomic-blocks"),value:H,min:z,max:N,onChange:I}))}function Bv(e){return(Bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Iv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uv(e,t){return(Uv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gv(e);if(t){var o=Gv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jv(this,n)}}function Jv(e,t){return!t||"object"!==Bv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gv(e){return(Gv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qv=wp.i18n.__,$v=wp.element.Component,Kv=wp.compose.compose,Qv=wp.blockEditor,Zv=Qv.InspectorControls,Xv=Qv.withColors,ew=Qv.ContrastChecker,tw=Qv.PanelColorSettings,nw=wp.components,rw=nw.PanelBody,ow=nw.SelectControl,aw=nw.TextControl,iw=nw.FormToggle,lw=(0,nw.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,o=n.textColor,a=n.buttonBackgroundColor,i=n.buttonTextColor,l=e.querySelector('[contenteditable="true"]'),s=l?getComputedStyle(l):null;return{fallbackBackgroundColor:r||!s?void 0:s.backgroundColor,fallbackTextColor:o||!s?void 0:s.color,fallbackButtonBackgroundColor:a||!s?void 0:s.buttonBackgroundColor,fallbackButtonTextColor:i||!s?void 0:s.buttonTextColor}})),sw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Uv(e,t)}(a,e);var t,n,r,o=Vv(a);function a(){return Iv(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"doubleOptInChange",value:function(e){this.props.doubleOptIn&&this.props.doubleOptIn(e.target.checked)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.backgroundColor,o=e.setBackgroundColor,a=e.fallbackBackgroundColor,i=e.textColor,l=e.fallbackTextColor,s=e.setTextColor,u=e.buttonBackgroundColor,c=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,p=e.fallbackButtonTextColor,f=e.setButtonBackgroundColor,h=e.setButtonTextColor,b={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:qv("Select a list","atomic-blocks"),value:""}]}};return atomic_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((function(e){return b.mailchimp.lists.push({label:e.name,value:e.id})})),wp.element.createElement(Zv,null,wp.element.createElement(rw,{title:qv("Newsletter","atomic-blocks"),initialOpen:!t.mailingList},wp.element.createElement(m,{id:"ab_newsletter_mailingList"},wp.element.createElement(ow,{label:qv("Mailing List","atomic-blocks"),help:qv("The list people will be subscribed to.","atomic-blocks"),options:b.mailchimp.lists,value:t.mailingList,onChange:function(e){return n({mailingList:e})}})),wp.element.createElement(m,{id:"ab_newsletter_successMessage"},wp.element.createElement(aw,{type:"string",label:qv("Success Message","atomic-blocks"),help:qv("The message shown when people successfully subscribe.","atomic-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),wp.element.createElement(m,{id:"ab_newsletter_doubleOptIn"},wp.element.createElement("div",{className:"ab-newsletter-double-opt-in-setting-wrapper"},wp.element.createElement(iw,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"ab-newsletter-double-opt-in-toggle",checked:t.doubleOptIn,onChange:function(e){return n({doubleOptIn:e.target.checked})}}),wp.element.createElement("label",{className:"ab-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},qv("Enable Double Opt-In","atomic-blocks")),wp.element.createElement("p",{className:"description"},qv("Send contacts an opt-in confirmation email when they subscribe to your list.","atomic-blocks"))))),wp.element.createElement(rw,{title:qv("General","atomic-blocks"),initialOpen:!!t.mailingList},wp.element.createElement(m,{id:"ab_newsletter_containerPadding"},wp.element.createElement(pb,{paddingEnable:!0,paddingTitle:qv("Block Padding","atomic-blocks"),paddingHelp:qv("Adjust the padding applied to the inside of the block.","atomic-blocks"),padding:t.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:function(e){return n({containerPadding:e})}})),wp.element.createElement(m,{id:"ab_newsletter_containerMargin"},wp.element.createElement(Nv,{marginEnableTop:!0,marginTopLabel:qv("Block Margin Top","atomic-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:qv("Block Margin Bottom","atomic-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),wp.element.createElement(eo,{enableButtonTarget:!1,buttonSize:t.buttonSize,onChangeButtonSize:function(e){return n({buttonSize:e})},buttonShape:t.buttonShape,onChangeButtonShape:function(e){return n({buttonShape:e})},enableButtonBackgroundColor:!1,enableButtonTextColor:!1})),wp.element.createElement(m,{id:"ab_newsletter_colorOptions"},wp.element.createElement(tw,{title:qv("Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:o,label:qv("Block Background Color","atomic-blocks")},{value:i.color,onChange:s,label:qv("Block Text Color","atomic-blocks")},{value:u.color,onChange:f,label:qv("Button Background Color","atomic-blocks")},{value:d.color,onChange:h,label:qv("Button Text Color","atomic-blocks")}]},wp.element.createElement(ew,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:l,fallbackBackgroundColor:a}),wp.element.createElement(ew,{textColor:d.color,backgroundColor:u.color,fallbackButtonTextColor:p,fallbackButtonBackgroundColor:c}),wp.element.createElement(ew,{textColor:u.color,backgroundColor:r.color,fallbackButtonBackgroundColor:c,fallbackBackgroundColor:a}))))}}])&&Wv(t.prototype,n),r&&Wv(t,r),a}($v),uw=Kv([lw,Xv("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(sw);function cw(e){return(cw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mw(e,t){return(mw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yw(e);if(t){var o=yw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bw(this,n)}}function bw(e,t){return!t||"object"!==cw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yw(e){return(yw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _w=wp.element.Component,gw=(wp.blockEditor.getColorClassName,function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mw(e,t)}(i,e);var t,n,r,a=hw(i);function i(e){return pw(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r=this.props,a=r.attributes,i=r.backgroundColor,l=r.textColor;return t=a.customBackgroundColor?"ab-has-custom-background-color":a.backgroundColor?"has-"+a.backgroundColor+"-background-color":null,n=a.customTextColor?"ab-has-custom-text-color":a.textColor?"has-"+a.textColor+"-color":null,wp.element.createElement("div",{style:{backgroundColor:i.color,padding:a.containerPadding?a.containerPadding:void 0,marginTop:a.containerMarginTop?a.containerMarginTop:void 0,marginBottom:a.containerMarginBottom?a.containerMarginBottom:void 0,color:l.color},className:o()([this.props.className],(e={"ab-block-newsletter":!0,"ab-form-styles":!0,"has-background":a.backgroundColor||a.customBackgroundColor},dw(e,t,t),dw(e,n,n),e))},this.props.children)}}])&&fw(t.prototype,n),r&&fw(t,r),i}(_w));function vw(e){return(vw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ww(){return(ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kw(Object(n),!0).forEach((function(t){Lw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ew(e,t){return(Ew=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dw(e);if(t){var o=Dw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xw(this,n)}}function xw(e,t){return!t||"object"!==vw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dw(e){return(Dw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ow=wp.i18n.__,Cw=wp.compose,jw=Cw.compose,Pw=Cw.withInstanceId,Rw=wp.blockEditor,Hw=(Rw.getColorClassName,Rw.RichText),Aw=Rw.withColors,Fw=wp.element,zw=Fw.Fragment,Nw=Fw.Component,Bw=wp.components,Iw=Bw.TextControl,Ww=(0,Bw.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,o=n.textColor,a=n.buttonBackgroundColor,i=e.querySelector('[contenteditable="true"]'),l=i?getComputedStyle(i):null;return{fallbackBackgroundColor:r||!l?void 0:l.backgroundColor,fallbackTextColor:o||!l?void 0:l.color,fallbackButtonBackgroundColor:a||!l?void 0:l.buttonBackgroundColor}})),Uw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ew(e,t)}(i,e);var t,n,r,a=Yw(i);function i(){var e;return Sw(this,i),(e=a.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return t=i,(n=[{key:"render",value:function(){var e,t,n=this,r=this.props,a=r.attributes,i=r.isSelected,l=r.setAttributes,s=r.buttonBackgroundColor,u=r.buttonTextColor,c=atomic_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;return e=a.customButtonBackgroundColor?"ab-has-custom-background-color":a.buttonBackgroundColor?"has-"+a.buttonBackgroundColor+"-background-color":null,t=a.customButtonTextColor?"ab-has-custom-text-color":a.buttonTextColor?"has-"+a.buttonTextColor+"-color":null,[wp.element.createElement(uw,ww({key:"ab-newsletter-inspector-"+this.props.clientId},Mw({setAttributes:l},this.props))),wp.element.createElement(gw,ww({key:"ab-newsletter-container-"+this.props.clientId},this.props),!c&&wp.element.createElement(zw,null,wp.element.createElement("div",{className:"ab-newsletter-notice"},Ow("You must define your newsletter provider API keys to use this block.","atomic-blocks"),wp.element.createElement("p",null,wp.element.createElement("a",{href:atomic_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},Ow("Configure your settings","atomic-blocks"))))),c&&wp.element.createElement(zw,null,wp.element.createElement(Hw,{tagName:"span",className:"ab-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:a.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),wp.element.createElement(Iw,{name:"ab-newsletter-email-address"}),wp.element.createElement("div",{className:o()("ab-block-button")},wp.element.createElement(vo,this.props,wp.element.createElement(Hw,{tagName:"span",placeholder:Ow("Button text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:a.buttonText,allowedFormats:[],className:o()("ab-button",a.buttonClass,a.buttonShape,a.buttonSize,e,t,{"has-background":a.buttonBackgroundColor||a.customButtonBackgroundColor,"has-text-color":a.buttonTextColor||a.customButtonTextColor}),style:{backgroundColor:s.color,color:u.color},onChange:function(e){return n.props.setAttributes({buttonText:e})}})),i&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link ab-button-".concat(a.buttonAlignment),onSubmit:function(e){return e.preventDefault()},style:{textAlign:a.buttonAlignment}}))))]}}])&&Tw(t.prototype,n),r&&Tw(t,r),i}(Nw),Vw=jw([Ww,Aw("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Pw(Uw)),Jw=(n(322),n(323),wp.i18n.__);(0,wp.blocks.registerBlockType)("atomic-blocks/newsletter",{title:Jw("Email newsletter","atomic-blocks"),description:Jw("Add an email newsletter sign-up form.","atomic-blocks"),category:"atomic-blocks",icon:"email-alt",keywords:[Jw("Mailchimp","atomic-blocks"),Jw("Subscribe","atomic-blocks"),Jw("Newsletter","atomic-blocks")],edit:Vw,ab_settings_data:{ab_newsletter_mailingList:{title:Jw("Mailing List","atomic-blocks")},ab_newsletter_successMessage:{title:Jw("Success Message","atomic-blocks")},ab_newsletter_doubleOptIn:{title:Jw("Enable Double Opt-In","atomic-blocks")},ab_newsletter_containerPadding:{title:Jw("Form Padding","atomic-blocks")},ab_newsletter_containerMargin:{title:Jw("Form Margin","atomic-blocks")},ab_newsletter_colorOptions:{title:Jw("Color Options","atomic-blocks")}},save:function(){return null}});var Gw=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"ab-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"ab-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"ab-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"ab-background-"+e.backgroundRepeat:null,e.hasParallax?"ab-has-parallax":null];var t},qw=function(e){return{backgroundImage:e.backgroundImgURL?"url(".concat(e.backgroundImgURL,")"):void 0,backgroundPosition:e.focalPoint?"".concat(100*e.focalPoint.x,"% ").concat(100*e.focalPoint.y,"%"):void 0}};function $w(e){return($w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(e){return function(e){if(Array.isArray(e))return Xw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Xw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xw(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ek(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nk(e,t){return(nk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ak(e);if(t){var o=ak(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ok(this,n)}}function ok(e,t){return!t||"object"!==$w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ak(e){return(ak=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ik=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nk(e,t)}(i,e);var t,n,r,a=rk(i);function i(e){return ek(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.customBackgroundColor?"ab-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,t=n.customTextColor?"ab-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null;var r,a,i=o()([this.props.className,"ab-layout-columns-"+n.columns,n.layout].concat(Zw(Gw(n)),[e,t,n.columnMaxWidth&&n.centerColumns?"ab-columns-center":null]),Qw({},"align"+n.align,n.align));r=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},a=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kw(Object(n),!0).forEach((function(t){Qw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null},qw(n));return wp.element.createElement("div",{className:i||void 0,style:Object.assign(r,a,l)},this.props.children)}}])&&tk(t.prototype,n),r&&tk(t,r),i}(wp.element.Component),lk={};lk.oneEqual=wp.element.createElement("svg",{className:"dashicon",height:"26",viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),lk.twoEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),lk.twoLeftWide=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),lk.twoRightWide=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),lk.threeEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),lk.threeWideCenter=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),lk.threeWideLeft=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),lk.threeWideRight=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),lk.fourEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),lk.fourLeft=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),lk.fourRight=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),lk.fiveEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),lk.sixEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),lk.blockIcon=wp.element.createElement("svg",{viewBox:"0 0 60 34",height:"34",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));var sk=lk,uk=wp.i18n.__,ck={1:[{name:uk("1 Column","atomic-blocks"),key:"ab-1-col-equal",col:1,icon:sk.oneEqual}],2:[{name:uk("2 Columns - 50/50","atomic-blocks"),key:"ab-2-col-equal",col:2,icon:sk.twoEqual},{name:uk("2 Columns - 75/25","atomic-blocks"),key:"ab-2-col-wideleft",col:2,icon:sk.twoLeftWide},{name:uk("2 Columns - 25/75","atomic-blocks"),key:"ab-2-col-wideright",col:2,icon:sk.twoRightWide}],3:[{name:uk("3 Columns - 33/33/33","atomic-blocks"),key:"ab-3-col-equal",col:3,icon:sk.threeEqual},{name:uk("3 Columns - 25/50/25","atomic-blocks"),key:"ab-3-col-widecenter",col:3,icon:sk.threeWideCenter},{name:uk("3 Columns - 50/25/25","atomic-blocks"),key:"ab-3-col-wideleft",col:3,icon:sk.threeWideLeft},{name:uk("3 Columns - 25/25/50","atomic-blocks"),key:"ab-3-col-wideright",col:3,icon:sk.threeWideRight}],4:[{name:uk("4 Columns - 25/25/25/25","atomic-blocks"),key:"ab-4-col-equal",col:4,icon:sk.fourEqual},{name:uk("4 Columns - 40/20/20/20","atomic-blocks"),key:"ab-4-col-wideleft",col:4,icon:sk.fourLeft},{name:uk("4 Columns - 20/20/20/40","atomic-blocks"),key:"ab-4-col-wideright",col:4,icon:sk.fourRight}],5:[{name:uk("5 Columns","atomic-blocks"),key:"ab-5-col-equal",col:5,icon:sk.fiveEqual}],6:[{name:uk("6 Columns","atomic-blocks"),key:"ab-6-col-equal",col:6,icon:sk.sixEqual}]};function dk(e){return(dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bk(e,t){return(bk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gk(e);if(t){var o=gk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _k(this,n)}}function _k(e,t){return!t||"object"!==dk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gk(e){return(gk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vk=wp.i18n.__,wk=wp.element,kk=wk.Fragment,Mk=wk.Component,Lk=wp.components,Sk=Lk.PanelBody,Tk=Lk.RangeControl,Ek=Lk.Button,Yk=Lk.ButtonGroup,xk=Lk.FocalPointPicker,Dk=Lk.Icon,Ok=Lk.ToggleControl,Ck=Lk.SelectControl,jk=wp.blockEditor,Pk=jk.MediaUpload,Rk=jk.MediaUploadCheck,Hk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bk(e,t)}(a,e);var t,n,r,o=yk(a);function a(){return mk(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.setAttributes,a=[{value:"no-repeat",label:vk("No Repeat","atomic-blocks")},{value:"repeat",label:vk("Repeat","atomic-blocks")},{value:"repeat-x",label:vk("Repeat Horizontally","atomic-blocks")},{value:"repeat-y",label:vk("Repeat Vertically","atomic-blocks")}],i=[{value:"auto",label:vk("Auto","atomic-blocks")},{value:"cover",label:vk("Cover","atomic-blocks")},{value:"contain",label:vk("Contain","atomic-blocks")}];return"cover"===r.backgroundSize&&(e=vk("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","atomic-blocks")),"contain"===r.backgroundSize&&(e=vk("Scales the image as large as possible without cropping or stretching the image.","atomic-blocks")),"auto"===r.backgroundSize&&(e=vk("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","atomic-blocks")),wp.element.createElement(kk,null,wp.element.createElement(Sk,{title:vk("Background Image","atomic-blocks"),initialOpen:!1},wp.element.createElement(Rk,null,wp.element.createElement(Pk,{onSelect:function(e){o({backgroundImgURL:e.url})},type:"image",value:r.backgroundImgURL,render:function(e){var t=e.open;return wp.element.createElement("div",null,wp.element.createElement(Yk,{className:"ab-background-button-group"},wp.element.createElement(Ek,{className:"ab-inspector-icon-button ab-background-add-button is-button is-default",label:vk("Edit image","atomic-blocks"),onClick:t},wp.element.createElement(Dk,{icon:"format-image"}),vk("Select Image","atomic-blocks")),r.backgroundImgURL&&wp.element.createElement(Ek,{className:"ab-inspector-icon-button ab-background-remove-button is-button is-default",label:vk("Remove Image","atomic-blocks"),onClick:function(){return o({backgroundImgURL:null})}},wp.element.createElement(Dk,{icon:"dismiss"}),vk("Remove","atomic-blocks"))))}})),r.backgroundImgURL&&wp.element.createElement(kk,null,wp.element.createElement(xk,{label:vk("Focal Point","atomic-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return o({focalPoint:e})}}),wp.element.createElement(Tk,{label:vk("Image Opacity","atomic-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),wp.element.createElement(Ok,{label:vk("Fixed Background","atomic-blocks"),checked:r.hasParallax,onChange:function(){o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pk(Object(n),!0).forEach((function(t){fk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasParallax:!r.hasParallax},r.hasParallax?{}:{focalPoint:void 0}))}}),wp.element.createElement(Ck,{className:"ab-inspector-help-text",label:vk("Image Display","atomic-blocks"),value:r.backgroundSize,help:e,options:i,onChange:function(e){return t.props.setAttributes({backgroundSize:e})}}),"cover"!==r.backgroundSize&&wp.element.createElement(Ck,{label:vk("Image Repeat","atomic-blocks"),value:r.backgroundRepeat,options:a,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}])&&hk(t.prototype,n),r&&hk(t,r),a}(Mk);function Ak(e){return(Ak="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nk(e,t){return(Nk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wk(e);if(t){var o=Wk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ik(this,n)}}function Ik(e,t){return!t||"object"!==Ak(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wk(e){return(Wk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Uk=wp.i18n.__,Vk=wp.element,Jk=Vk.Component,Gk=Vk.Fragment,qk=wp.blockEditor,$k=qk.InspectorControls,Kk=qk.PanelColorSettings,Qk=qk.ContrastChecker,Zk=wp.components,Xk=Zk.PanelBody,eM=Zk.RangeControl,tM=Zk.ButtonGroup,nM=Zk.Button,rM=Zk.Tooltip,oM=Zk.ToggleControl,aM=Zk.SelectControl,iM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nk(e,t)}(a,e);var t,n,r,o=Bk(a);function a(e){return Fk(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.backgroundColor,a=t.setBackgroundColor,i=t.textColor,l=t.setTextColor,s=1;n.columns&&(s=parseInt(n.columns.toString().split("-")));var u=[{value:"px",label:Uk("Pixel (px)","atomic-blocks")},{value:"%",label:Uk("Percent (%)","atomic-blocks")},{value:"em",label:Uk("Em (em)","atomic-blocks")}];return wp.element.createElement($k,{key:"inspector"},n.layout&&wp.element.createElement(Xk,{title:Uk("General","atomic-blocks"),initialOpen:!0,className:"ab-column-select-panel"},wp.element.createElement(m,{id:"ab_column_columns"},wp.element.createElement(eM,{label:Uk("Column Count","atomic-blocks"),help:Uk("Note: Changing the column count after you've added content to the column can cause loss of content.","atomic-blocks"),value:n.columns,onChange:function(t){return e.props.setAttributes({columns:t,layout:"ab-"+t+"-col-equal"})},min:1,max:6,step:1})),wp.element.createElement("hr",null),(2===n.columns||3===n.columns||4===n.columns)&&wp.element.createElement(Gk,null,wp.element.createElement(m,{id:"ab_column_columnLayouts"},wp.element.createElement("p",null,Uk("Column Layout","atomic-blocks")),wp.element.createElement(tM,{"aria-label":Uk("Column Layout","atomic-blocks")},Ru()(ck[s],(function(t){var n=t.name,o=t.key,a=t.icon;return t.col,wp.element.createElement(rM,{text:n,key:o},wp.element.createElement(nM,{key:o,className:"ab-column-selector-button",isSmall:!0,onClick:function(){r({layout:o}),e.setState({selectLayout:!1})}},a))}))),wp.element.createElement("p",null,wp.element.createElement("i",null,Uk("Change the layout of your columns.","atomic-blocks"))),wp.element.createElement("hr",null))),wp.element.createElement(m,{id:"ab_column_columnsGap"},wp.element.createElement(eM,{label:Uk("Column Gap","atomic-blocks"),help:Uk("Adjust the spacing between columns.","atomic-blocks"),value:n.columnsGap,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:10,step:1})),wp.element.createElement("hr",null),wp.element.createElement(m,{id:"ab_column_columnMaxWidth"},wp.element.createElement(eM,{label:Uk("Column Inner Max Width (px)"),help:Uk("Adjust the width of the content inside the container wrapper.","atomic-blocks"),value:n.columnMaxWidth,onChange:function(t){return e.props.setAttributes({columnMaxWidth:t})},min:0,max:2e3,step:1})),0<n.columnMaxWidth&&wp.element.createElement(m,{id:"ab_column_centerColumns"},wp.element.createElement(oM,{label:Uk("Center Columns In Container","atomic-blocks"),help:Uk("Center the columns in the container when max-width is used.","atomic-blocks"),checked:n.centerColumns,onChange:function(){return e.props.setAttributes({centerColumns:!n.centerColumns})}})),wp.element.createElement("hr",null),wp.element.createElement(m,{id:"ab_column_responsiveToggle"},wp.element.createElement(oM,{label:Uk("Responsive Columns","atomic-blocks"),help:Uk("Columns will be adjusted to fit on tablets and mobile devices.","atomic-blocks"),checked:n.responsiveToggle,onChange:function(){return e.props.setAttributes({responsiveToggle:!n.responsiveToggle})}}))),wp.element.createElement(m,{id:"ab_column_marginPadding"},wp.element.createElement(Xk,{title:Uk("Margin and Padding","atomic-blocks"),initialOpen:!1},wp.element.createElement(aM,{label:Uk("Margin Unit","atomic-blocks"),help:Uk("Choose between pixel, percent, or em units.","atomic-blocks"),options:u,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),wp.element.createElement(oM,{label:Uk("Sync Margin","atomic-blocks"),help:Uk("Top and bottom margins will have the same value.","atomic-blocks"),checked:n.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!n.marginSync})}}),n.marginSync?wp.element.createElement(Nv,{marginEnableVertical:!0,marginVerticalLabel:Uk("Margin Top/Bottom","atomic-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):wp.element.createElement(Nv,{marginEnableTop:!0,marginTop:n.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return r({marginTop:e})},marginEnableBottom:!0,marginBottom:n.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return r({marginBottom:e})}}),wp.element.createElement("hr",null),wp.element.createElement(aM,{label:Uk("Padding Unit","atomic-blocks"),help:Uk("Choose between pixel, percent, or em units.","atomic-blocks"),options:u,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),wp.element.createElement(oM,{label:Uk("Sync Padding","atomic-blocks"),help:Uk("Padding on all sides will have the same value.","atomic-blocks"),checked:n.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!n.paddingSync})}}),n.paddingSync?wp.element.createElement(pb,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:n.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return r({paddingTop:e})},paddingEnableRight:!0,paddingRight:n.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return r({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:n.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return r({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:n.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return r({paddingLeft:e})}}))),wp.element.createElement(m,{id:"ab_column_colorSettings"},wp.element.createElement(Kk,{title:Uk("Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:o.color,onChange:a,label:Uk("Background Color","atomic-blocks")},{value:i.color,onChange:l,label:Uk("Text Color","atomic-blocks")}]},wp.element.createElement(Qk,{textColor:i.color,backgroundColor:o.color}))),wp.element.createElement(m,{id:"ab_column_backgroundImagePanel"},wp.element.createElement(Hk,this.props)))}}])&&zk(t.prototype,n),r&&zk(t,r),a}(Jk);function lM(e){return(lM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sM(){return(sM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function uM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dM(e,t){return(dM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mM(e);if(t){var o=mM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fM(this,n)}}function fM(e,t){return!t||"object"!==lM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mM(e){return(mM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hM=wp.i18n.__,bM=wp.element,yM=bM.Component,_M=bM.Fragment,gM=wp.compose.compose,vM=wp.blockEditor,wM=vM.BlockControls,kM=vM.BlockAlignmentToolbar,MM=vM.InnerBlocks,LM=vM.withColors,SM=wp.components,TM=SM.Placeholder,EM=SM.ButtonGroup,YM=SM.Tooltip,xM=SM.Button,DM=["atomic-blocks/ab-column"],OM=nh()((function(e){return oh()(e,(function(){return["atomic-blocks/ab-column"]}))})),CM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dM(e,t)}(i,e);var t,n,r,a=pM(i);function i(e){var t;return uM(this,i),(t=a.apply(this,arguments)).state={selectLayout:!0},t}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,a=1;n.columns&&(a=parseInt(n.columns.toString().split("-")));var i=[{name:hM("1 Column","atomic-blocks"),key:"one-column",columns:1,icon:sk.oneEqual},{name:hM("2 Columns","atomic-blocks"),key:"two-column",columns:2,icon:sk.twoEqual},{name:hM("3 Columns","atomic-blocks"),key:"three-column",columns:3,icon:sk.threeEqual},{name:hM("4 Columns","atomic-blocks"),key:"four-column",columns:4,icon:sk.fourEqual},{name:hM("5 Columns","atomic-blocks"),key:"five-column",columns:5,icon:sk.fiveEqual},{name:hM("6 Columns","atomic-blocks"),key:"six-column",columns:6,icon:sk.sixEqual}];return!n.layout&&this.state.selectLayout?[wp.element.createElement(TM,{key:"placeholder",icon:"editor-table",label:n.columns?hM("Column Layout","atomic-blocks"):hM("Column Number","atomic-blocks"),instructions:n.columns?hM("Select a layout for this column.","atomic-blocks"):hM("Select the number of columns for this layout.","atomic-blocks"),className:"ab-column-selector-placeholder"},n.columns?wp.element.createElement(_M,null,wp.element.createElement(EM,{"aria-label":hM("Select Column Layout","atomic-blocks"),className:"ab-column-selector-group"},Ru()(ck[a],(function(t){var n=t.name,o=t.key,a=t.icon;return wp.element.createElement(YM,{text:n,key:o},wp.element.createElement("div",{className:"ab-column-selector"},wp.element.createElement(xM,{key:o,className:"ab-column-selector-button",isSmall:!0,onClick:function(){r({layout:o}),e.setState({selectLayout:!1})}},a)))}))),wp.element.createElement(xM,{className:"ab-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},hM("Return to Column Selection","atomic-blocks"))):wp.element.createElement(EM,{"aria-label":hM("Select Row Columns","atomic-blocks"),className:"ab-column-selector-group"},Ru()(i,(function(t){var n=t.name,o=t.key,a=t.icon,i=t.columns;return wp.element.createElement(YM,{text:n,key:o},wp.element.createElement("div",{className:"ab-column-selector"},wp.element.createElement(xM,{className:"ab-column-selector-button",isSmall:!0,onClick:function(){r({columns:i,layout:1===i||5===i||6===i?o:null}),1===i&&e.setState({selectLayout:!1})}},a)))}))))]:[wp.element.createElement(wM,{key:"controls"},wp.element.createElement(kM,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),wp.element.createElement(iM,sM({},this.props,{key:"inspector"})),wp.element.createElement(ik,sM({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),wp.element.createElement("div",{className:o()("ab-layout-column-wrap-admin","ab-block-layout-column-gap-"+n.columnsGap,n.responsiveToggle?"ab-is-responsive-column":null),style:{maxWidth:n.columnMaxWidth?n.columnMaxWidth:null}},wp.element.createElement(MM,{template:OM(n.columns),templateLock:"all",allowedBlocks:DM})))]}}])&&cM(t.prototype,n),r&&cM(t,r),i}(yM),jM=gM([LM("backgroundColor",{textColor:"color"})])(CM);function PM(e){return(PM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function RM(){return(RM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function HM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function FM(e,t){return(FM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BM(e);if(t){var o=BM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return NM(this,n)}}function NM(e,t){return!t||"object"!==PM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function BM(e){return(BM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var IM=wp.element.Component,WM=wp.blockEditor.InnerBlocks,UM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&FM(e,t)}(i,e);var t,n,r,a=zM(i);function i(){return HM(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=o()(["ab-layout-column-wrap","ab-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"ab-is-responsive-column":null]);return wp.element.createElement(ik,RM({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),wp.element.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},wp.element.createElement(WM.Content,null)))}}])&&AM(t.prototype,n),r&&AM(t,r),i}(IM),VM={backgroundImgURL:{type:"string"},backgroundDimRatio:{type:"number",default:100},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundSize:{type:"string",default:"cover"},hasParallax:{type:"boolean",default:!1},focalPoint:{type:"object"}};function JM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JM(Object(n),!0).forEach((function(t){qM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $M=wp.i18n.__;function KM(e){return(KM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function QM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XM(e,t){return(XM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nL(e);if(t){var o=nL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tL(this,n)}}function tL(e,t){return!t||"object"!==KM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nL(e){return(nL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-columns",{title:$M("Advanced Columns","atomic-blocks"),description:$M("Add a pre-defined column layout.","atomic-blocks"),icon:"editor-table",category:"atomic-blocks",keywords:[$M("column","atomic-blocks"),$M("grid","atomic-blocks"),$M("row","atomic-blocks")],attributes:GM(GM({},VM),{},{columns:{type:"number"},layout:{type:"string"},columnsGap:{type:"number",default:2},align:{type:"string"},responsiveToggle:{type:"boolean",default:!0},marginSync:{type:"boolean",default:!1},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},marginUnit:{type:"string",default:"px"},paddingSync:{type:"boolean",default:!1},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingUnit:{type:"string",default:"px"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},columnMaxWidth:{type:"number"},centerColumns:{type:"boolean",default:!0}}),ab_settings_data:{ab_column_columns:{title:$M("Column Count","atomic-blocks")},ab_column_columnLayouts:{title:$M("Column Layout","atomic-blocks")},ab_column_columnsGap:{title:$M("Column Gap","atomic-blocks")},ab_column_columnMaxWidth:{title:$M("Column Inner Max Width","atomic-blocks")},ab_column_centerColumns:{title:$M("Center Columns In Container","atomic-blocks")},ab_column_responsiveToggle:{title:$M("Responsive Columns","atomic-blocks")},ab_column_marginPadding:{title:$M("Margin / Padding","atomic-blocks")},ab_column_colorSettings:{title:$M("Color Settings","atomic-blocks")},ab_column_backgroundImagePanel:{title:$M("Background Settings","atomic-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:function(e){return wp.element.createElement(jM,e)},save:function(e){return wp.element.createElement(UM,e)}});var rL=wp.i18n.__,oL=wp.element.Component,aL=wp.compose.compose,iL=wp.blockEditor,lL=iL.InspectorControls,sL=iL.PanelColorSettings,uL=iL.withColors,cL=iL.ContrastChecker,dL=wp.components,pL=dL.PanelBody,fL=dL.ToggleControl,mL=dL.SelectControl,hL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&XM(e,t)}(a,e);var t,n,r,o=eL(a);function a(e){return QM(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.backgroundColor,r=t.setBackgroundColor,o=t.textColor,a=t.setTextColor,i=t.attributes,l=t.setAttributes,s=[{value:"px",label:rL("Pixel (px)","atomic-blocks")},{value:"%",label:rL("Percent (%)","atomic-blocks")},{value:"em",label:rL("Em (em)","atomic-blocks")}];return wp.element.createElement(lL,{key:"inspector"},wp.element.createElement(m,{id:"ab_column_inner_marginPadding"},wp.element.createElement(pL,{title:rL("Margin and Padding","atomic-blocks"),initialOpen:!1},wp.element.createElement(mL,{label:rL("Margin Unit","atomic-blocks"),help:rL("Choose between pixel, percent, or em units.","atomic-blocks"),options:s,value:i.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),wp.element.createElement(fL,{label:rL("Sync Margin","atomic-blocks"),help:rL("Top and bottom margins will have the same value.","atomic-blocks"),checked:i.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!i.marginSync})}}),i.marginSync?wp.element.createElement(Nv,{marginEnableVertical:!0,marginVerticalLabel:rL("Margin Top/Bottom","atomic-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return l({margin:e})}}):wp.element.createElement(Nv,{marginEnableTop:!0,marginTop:i.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return l({marginTop:e})},marginEnableBottom:!0,marginBottom:i.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return l({marginBottom:e})}}),wp.element.createElement("hr",null),wp.element.createElement(mL,{label:rL("Padding Unit","atomic-blocks"),help:rL("Choose between pixel, percent, or em units.","atomic-blocks"),options:s,value:i.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),wp.element.createElement(fL,{label:rL("Sync Padding","atomic-blocks"),help:rL("Padding on all sides will have the same value.","atomic-blocks"),checked:i.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!i.paddingSync})}}),i.paddingSync?wp.element.createElement(pb,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return l({padding:e})}}):wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:i.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return l({paddingTop:e})},paddingEnableRight:!0,paddingRight:i.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return l({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:i.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return l({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return l({paddingLeft:e})}}))),wp.element.createElement(m,{id:"ab_column_inner_colorSettings"},wp.element.createElement(sL,{title:rL("Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:rL("Background Color","atomic-blocks")},{value:o.color,onChange:a,label:rL("Text Color","atomic-blocks")}]},wp.element.createElement(cL,{textColor:o.color,backgroundColor:n.color}))),wp.element.createElement(m,{id:"ab_column_inner_backgroundImagePanel"},wp.element.createElement(Hk,this.props)))}}])&&ZM(t.prototype,n),r&&ZM(t,r),a}(oL),bL=aL([uL("backgroundColor",{textColor:"color"})])(hL);function yL(e){return(yL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _L(e){return function(e){if(Array.isArray(e))return gL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gL(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ML(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function LL(e,t){return(LL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function SL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EL(e);if(t){var o=EL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TL(this,n)}}function TL(e,t){return!t||"object"!==yL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function EL(e){return(EL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var YL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&LL(e,t)}(i,e);var t,n,r,a=SL(i);function i(e){return kL(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vL(Object(n),!0).forEach((function(t){wL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null},qw(n));return r=n.customBackgroundColor?"ab-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"ab-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,wp.element.createElement("div",{className:o()(this.props.className,"ab-block-layout-column",n.columnVerticalAlignment?"ab-is-vertically-aligned-"+n.columnVerticalAlignment:null)},wp.element.createElement("div",{className:o.a.apply(void 0,["ab-block-layout-column-inner",r,a].concat(_L(Gw(n)))),style:Object.assign(e,t,i)},this.props.children))}}])&&ML(t.prototype,n),r&&ML(t,r),i}(wp.element.Component);function xL(e){return(xL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function DL(){return(DL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function OL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jL(e,t){return(jL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function PL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HL(e);if(t){var o=HL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RL(this,n)}}function RL(e,t){return!t||"object"!==xL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function HL(e){return(HL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var AL=wp.i18n.__,FL=wp.compose.compose,zL=wp.element.Component,NL=wp.components.Toolbar,BL=wp.blockEditor,IL=BL.AlignmentToolbar,WL=BL.BlockControls,UL=BL.InnerBlocks,VL=BL.withColors,JL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jL(e,t)}(a,e);var t,n,r,o=PL(a);function a(){return OL(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:AL("Vertical Align Top","atomic-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:AL("Vertical Align Middle","atomic-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:AL("Vertical Align Bottom","atomic-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[wp.element.createElement(WL,{key:"controls"},wp.element.createElement(IL,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),wp.element.createElement(NL,{controls:r})),wp.element.createElement(bL,DL({},this.props,{key:"inspector"})),wp.element.createElement(YL,DL({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),wp.element.createElement(UL,{templateLock:!1,templateInsertUpdatesSelection:!1}))]}}])&&CL(t.prototype,n),r&&CL(t,r),a}(zL),GL=FL([VL("backgroundColor",{textColor:"color"})])(JL);function qL(e){return(qL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $L(){return($L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function KL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZL(e,t){return(ZL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function XL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tS(e);if(t){var o=tS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eS(this,n)}}function eS(e,t){return!t||"object"!==qL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tS(e){return(tS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nS=wp.element.Component,rS=wp.blockEditor.InnerBlocks,oS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZL(e,t)}(a,e);var t,n,r,o=XL(a);function a(){return KL(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes;return wp.element.createElement(YL,$L({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),wp.element.createElement(rS.Content,null))}}])&&QL(t.prototype,n),r&&QL(t,r),a}(nS);function aS(e){return(aS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function iS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sS(e,t){return(sS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dS(e);if(t){var o=dS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cS(this,n)}}function cS(e,t){return!t||"object"!==aS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dS(e){return(dS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sS(e,t)}(i,e);var t,n,r,a=uS(i);function i(e){return iS(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,i={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null};return r=n.customBackgroundColor?"ab-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"ab-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,wp.element.createElement("div",{className:o()("ab-block-layout-column",n.columnVerticalAlignment?"ab-is-vertically-aligned-"+n.columnVerticalAlignment:null)},wp.element.createElement("div",{className:o()("ab-block-layout-column-inner",r,a),style:Object.assign(e,t,i)},this.props.children))}}])&&lS(t.prototype,n),r&&lS(t,r),i}(wp.element.Component);function fS(e){return(fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mS(){return(mS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yS(e,t){return(yS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vS(e);if(t){var o=vS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gS(this,n)}}function gS(e,t){return!t||"object"!==fS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vS(e){return(vS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wS=wp.element.Component,kS=wp.blockEditor.InnerBlocks,MS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yS(e,t)}(a,e);var t,n,r,o=_S(a);function a(){return hS(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes;return wp.element.createElement(pS,mS({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),wp.element.createElement(kS.Content,null))}}])&&bS(t.prototype,n),r&&bS(t,r),a}(wS),LS=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},save:function(e){return wp.element.createElement(MS,e)}}];n(324),n(325);function SS(){return(SS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function TS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ES(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TS(Object(n),!0).forEach((function(t){YS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xS=wp.i18n.__;(0,wp.blocks.registerBlockType)("atomic-blocks/ab-column",{title:xS("Advanced Column","atomic-blocks"),description:xS("Add a pre-defined column layout.","atomic-blocks"),icon:"editor-table",category:"atomic-blocks",parent:["atomic-blocks/ab-columns"],keywords:[xS("column","atomic-blocks"),xS("layout","atomic-blocks"),xS("row","atomic-blocks")],attributes:ES(ES({},VM),{},{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}}),ab_settings_data:{ab_column_inner_marginPadding:{title:xS("Margin and Padding","atomic-blocks")},ab_column_inner_colorSettings:{title:xS("Color","atomic-blocks")},ab_column_inner_backgroundImagePanel:{title:xS("Background Image","atomic-blocks")}},edit:function(e){return wp.element.createElement(GL,e)},save:function(e){return wp.element.createElement(oS,e)},deprecated:LS});var DS=wp.compose.createHigherOrderComponent((function(e){return function(t){return"atomic-blocks/ab-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?wp.element.createElement(e,SS({},t,{className:"ab-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):wp.element.createElement(e,t)}}),"withClientIdClassName");function OS(e){return(OS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function CS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function PS(e,t){return(PS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function RS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AS(e);if(t){var o=AS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HS(this,n)}}function HS(e,t){return!t||"object"!==OS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function AS(e){return(AS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}wp.hooks.addFilter("editor.BlockListBlock","atomic-blocks/add-vertical-align-class",DS);var FS=wp.i18n.__,zS=wp.element,NS=zS.Component,BS=zS.Fragment,IS=wp.components,WS=IS.Button,US=IS.Dashicon,VS=IS.Tooltip,JS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&PS(e,t)}(i,e);var t,n,r,a=RS(i);function i(){return CS(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this;return wp.element.createElement(BS,null,wp.element.createElement("div",{key:"ab-layout-design-"+this.props.itemKey,className:"ab-layout-design"},wp.element.createElement("div",{className:"ab-layout-design-inside"},wp.element.createElement("div",{className:"ab-layout-design-item"},wp.element.createElement(WS,{key:this.props.itemKey,className:"ab-layout-insert-button",isSmall:!0,onClick:function(){e.props.import(e.props.content)}},wp.element.createElement("img",{src:this.props.image,alt:this.props.name})),wp.element.createElement("div",{className:"ab-layout-design-info"},wp.element.createElement("div",{className:"ab-layout-design-title"},this.props.name,wp.element.createElement(VS,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?FS("Remove from Favorites","atomic-blocks"):FS("Add to Favorites","atomic-blocks")},wp.element.createElement(WS,{key:"buttonFavorite",className:"ab-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},wp.element.createElement(US,{icon:"heart",className:o()("ab-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"ab-layout-icon-favorite-active")})))))))))}}])&&jS(t.prototype,n),r&&jS(t,r),i}(NS);function GS(e){return(GS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KS(e,t){return(KS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function QS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XS(e);if(t){var o=XS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ZS(this,n)}}function ZS(e,t){return!t||"object"!==GS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function XS(e){return(XS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eT=wp.i18n.__,tT=wp.url.addQueryArgs,nT=wp.element,rT=nT.Component,oT=nT.Fragment,aT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&KS(e,t)}(a,e);var t,n,r,o=QS(a);function a(){return qS(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return wp.element.createElement(oT,null,wp.element.createElement("div",{className:"ab-layout-reusable"},wp.element.createElement("div",null,wp.element.createElement("a",{role:"button",key:this.props.itemKey,className:"ab-layout-insert-button",onClick:function(){e.props.import(e.props.content)}},this.props.name)),wp.element.createElement("div",{className:"ab-layout-reusable-actions"},wp.element.createElement("span",null,wp.element.createElement("a",{href:tT("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},eT("Edit","atomic-blocks"))))))}}])&&$S(t.prototype,n),r&&$S(t,r),a}(rT);function iT(e){return(iT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uT(e,t){return(uT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pT(e);if(t){var o=pT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dT(this,n)}}function dT(e,t){return!t||"object"!==iT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pT(e){return(pT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fT=wp.compose.compose,mT=wp.blocks.rawHandler,hT=wp.data,bT=hT.withSelect,yT=hT.withDispatch,_T=wp.element,gT=_T.Component,vT=_T.Fragment,wT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uT(e,t)}(a,e);var t,n,r,o=cT(a);function a(){return lT(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement(vT,null,"ab-layout-tab-reusable-blocks"!==this.props.currentTab?wp.element.createElement(JS,this.props):wp.element.createElement(aT,this.props))}}])&&sT(t.prototype,n),r&&sT(t,r),a}(gT),kT=fT(bT((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/editor").canUserUseUnfilteredHTML;return{block:r(n),canUserUseUnfilteredHTML:o()}})),yT((function(e,t){var n=t.block,r=t.canUserUseUnfilteredHTML;return{import:function(t){return e("core/block-editor").replaceBlocks(n.clientId,mT({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:r}))}}})))(wT),MT=n(7),LT=n.n(MT);function ST(e){return(ST="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function TT(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ET(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){TT(a,r,o,i,l,"next",e)}function l(e){TT(a,r,o,i,l,"throw",e)}i(void 0)}))}}function YT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function DT(e,t){return(DT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function OT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=PT(e);if(t){var o=PT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return CT(this,n)}}function CT(e,t){return!t||"object"!==ST(t)&&"function"!=typeof t?jT(e):t}function jT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PT(e){return(PT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function RT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HT=wp.apiFetch,AT=Object(ba.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:""}),FT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&DT(e,t)}(i,e);var t,n,r,o,a=OT(i);function i(){var e;YT(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RT(jT(e=a.call.apply(a,[this].concat(n))),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:""}),e}return t=i,(n=[{key:"getFavoriteKeys",value:function(){return HT({path:"/atomicblocks/v1/layouts/favorites",method:"GET"}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"getFavorites",value:function(){var e=this;return HT({path:"/atomicblocks/v1/layouts/favorites",method:"GET"}).then((function(t){var n=[];return Object.values(e.state.all).forEach((function(e){t.includes(e.key)&&n.push(e)})),n})).catch((function(e){return console.error(e)}))}},{key:"addFavorite",value:function(e){return HT({path:"/atomicblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({atomic_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"removeFavorite",value:function(e){return HT({path:"/atomicblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({atomic_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"componentDidMount",value:(o=ET(LT.a.mark((function e(){var t,n=this;return LT.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getFavoriteKeys();case 2:t=e.sent,wp.apiFetch({method:"GET",path:"/atomicblocks/v1/layouts/all?filter=allowed"}).then(function(){var e=ET(LT.a.mark((function e(r){var o,a,i,l;return LT.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=[],a=[],i=[],l=[],Object.values(r).forEach((function(e){"layout"===e.type&&o.push(e),"section"===e.type&&a.push(e),"wp_block"===e.type&&i.push(e),t.includes(e.key)&&l.push(e)})),n.setState({all:r,layouts:o,sections:a,favorites:l,favoriteKeys:t,reusableBlocks:i});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e,t=this;return this.state.all?wp.element.createElement(AT.Provider,{value:{favorites:this.state.favorites,favoriteKeys:this.state.favoriteKeys,layouts:this.state.layouts,sections:this.state.sections,all:this.state.all,reusableBlocks:this.state.reusableBlocks,toggleFavorite:(e=ET(LT.a.mark((function e(n){var r,o;return LT.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFavoriteKeys();case 2:if(!(r=e.sent).includes(n)){e.next=9;break}return e.next=6,t.removeFavorite(n);case 6:r=e.sent,e.next=12;break;case 9:return e.next=11,t.addFavorite(n);case 11:r=e.sent;case 12:return e.next=14,t.getFavorites();case 14:return o=e.sent,t.setState({favorites:o,favoriteKeys:r}),e.abrupt("return",o);case 17:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}},this.props.children):null}}])&&xT(t.prototype,n),r&&xT(t,r),i}(ba.Component);function zT(e){return(zT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function NT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function IT(e,t){return(IT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function WT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VT(e);if(t){var o=VT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return UT(this,n)}}function UT(e,t){return!t||"object"!==zT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function VT(e){return(VT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var JT=wp.i18n.__,GT=wp.url.addQueryArgs,qT=wp.element,$T=qT.Component,KT=qT.Fragment,QT=wp.components,ZT=QT.ButtonGroup,XT=QT.TextControl,eE=QT.SelectControl,tE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&IT(e,t)}(i,e);var t,n,r,a=WT(i);function i(){var e;return NT(this,i),(e=a.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return t=i,(n=[{key:"getLayoutArray",value:function(){var e=[];switch(this.props.currentTab){case"ab-layout-tab-layouts":e=this.props.context.layouts;break;case"ab-layout-tab-sections":e=this.props.context.sections;break;case"ab-layout-tab-favorites":e=this.props.context.favorites;break;case"ab-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks}return e}},{key:"render",value:function(){for(var e=this,t=this.getLayoutArray(),n=["all"],r=0;r<t.length;r++)for(var a=0;a<t[r].category.length;a++)n.includes(t[r].category[a])||n.push(t[r].category[a]);var i=n.map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}}));return wp.element.createElement(KT,{key:"layout-library-fragment-"+this.props.clientId},"ab-layout-tab-reusable-blocks"!==this.props.currentTab?wp.element.createElement(KT,null,wp.element.createElement("div",{className:"ab-layout-modal-header"},wp.element.createElement(eE,{key:"layout-library-select-categories-"+this.props.clientId,label:JT("Layout Categories","atomic-blocks"),value:this.state.category,options:i,onChange:function(t){return e.setState({category:t})}}),wp.element.createElement(XT,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:JT("Search Layouts","atomic-blocks"),onChange:function(t){return e.setState({search:t})}}))):wp.element.createElement(KT,null,wp.element.createElement("div",{className:"ab-layout-modal-header ab-layout-modal-header-reusable"},wp.element.createElement("div",null,JT("Reusable Blocks","atomic-blocks")),wp.element.createElement("div",{className:"ab-layout-modal-header-reusable-actions"},wp.element.createElement("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:GT("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},JT("Manage All Reusable Blocks","atomic-blocks"))))),wp.element.createElement(AT.Consumer,null,(function(t){return wp.element.createElement(ZT,{key:"layout-library-context-button-group-"+e.props.clientId,className:o()("ab-layout-choices","current-tab-"+e.props.currentTab,"full"===e.state.activeView?"ab-layout-view-full":null),"aria-label":JT("Layout Options","atomic-blocks")},Ru()(e.props.data,(function(n){var r=n.name,o=n.key,a=n.image,i=n.content,l=n.category,s=n.keywords;if(("all"===e.state.category||l.includes(e.state.category))&&(!e.state.search||s&&s.some((function(t){return t.toLowerCase().includes(e.state.search.toLowerCase())}))))return wp.element.createElement(kT,{key:"layout-library-item-"+o,name:r,itemKey:o,image:a,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}])&&BT(t.prototype,n),r&&BT(t,r),i}($T);function nE(e){return(nE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aE(e,t){return(aE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function iE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sE(e);if(t){var o=sE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lE(this,n)}}function lE(e,t){return!t||"object"!==nE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sE(e){return(sE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uE=wp.i18n.__,cE=wp.element,dE=cE.Component,pE=cE.Fragment,fE=wp.components,mE=fE.Button,hE=fE.Dashicon,bE=fE.Modal,yE=fE.TabPanel,_E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aE(e,t)}(a,e);var t,n,r,o=iE(a);function a(){var e;return rE(this,a),(e=o.apply(this,arguments)).state={currentTab:"ab-layout-tab-sections"},e}return t=a,(n=[{key:"componentDidMount",value:function(){this.setState({modalOpen:!0})}},{key:"render",value:function(){var e=this,t=[{name:"ab-layout-tab-sections",title:uE("Sections","atomic-blocks"),className:"ab-layout-tab-sections"},{name:"ab-layout-tab-layouts",title:uE("Layouts","atomic-blocks"),className:"ab-layout-tab-layouts"},{name:"ab-layout-tab-favorites",title:uE("Favorites","atomic-blocks"),className:"ab-layout-tab-favorites"}];return this.props.context.reusableBlocks.length&&t.push({name:"ab-layout-tab-reusable-blocks",title:uE("Reusable Blocks","atomic-blocks"),className:"ab-layout-tab-reusable-blocks"}),wp.element.createElement(pE,{key:"layout-modal-fragment-"+this.props.clientId},wp.element.createElement(mE,{key:"layout-modal-library-button-"+this.props.clientId,isPrimary:!0,isLarge:!0,className:"ab-layout-modal-button",onClick:function(){return e.setState({modalOpen:!0})}},uE("Layout Library","atomic-blocks")),this.state.modalOpen?wp.element.createElement(bE,{key:"layout-modal-modal-component-"+this.props.clientId,className:"ab-layout-modal",title:uE("Layout Selector","atomic-blocks"),onRequestClose:function(){return e.setState({modalOpen:!1,currentTab:null})}},atomic_globals.pro_activated&&wp.element.createElement("div",{className:"ab-layout-modal-footer"},wp.element.createElement(hE,{icon:"editor-help"}),wp.element.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},uE("Add Custom Layouts","atomic-blocks")),wp.element.createElement("span",null,"·"),wp.element.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/",target:"_blank",rel:"noopener noreferrer"},uE("Reusable Blocks","atomic-blocks")),wp.element.createElement("a",{href:"https://www.research.net/r/genesispro",target:"_blank",rel:"noopener noreferrer",className:"ab-pro-feedback"},wp.element.createElement(hE,{icon:"admin-comments"})," ",uE("Send Feedback","atomic-blocks"))),wp.element.createElement(yE,{key:"layout-modal-tabpanel-"+this.props.clientId,className:"ab-layout-modal-panel",activeClass:"ab-layout-modal-active-tab",onSelect:function(t){return e.setState({currentTab:t})},tabs:t},(function(t){var n=uE("Default tab content","atomic-blocks");if(t.name){if("ab-layout-tab-sections"===t.name)return[wp.element.createElement(tE,{key:"layout-library-sections-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.sections,context:e.props.context})];if("ab-layout-tab-layouts"===t.name)return[wp.element.createElement(tE,{key:"layout-library-layouts-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.layouts,context:e.props.context})];if("ab-layout-tab-favorites"===t.name)return[wp.element.createElement(tE,{key:"layout-library-favorites-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.favorites,context:e.props.context})];if("ab-layout-tab-reusable-blocks"===t.name)return[wp.element.createElement(tE,{key:"layout-library-reusable-blocks-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.reusableBlocks,context:e.props.context})]}return wp.element.createElement("div",null,n)}))):null)}}])&&oE(t.prototype,n),r&&oE(t,r),a}(dE);function gE(e){return(gE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kE(e,t){return(kE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ME(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SE(e);if(t){var o=SE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LE(this,n)}}function LE(e,t){return!t||"object"!==gE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function SE(e){return(SE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var TE=wp.i18n.__,EE=wp.components.Placeholder,YE=wp.element,xE=YE.Component,DE=YE.Fragment,OE=wp.blockEditor,CE=OE.BlockControls,jE=OE.BlockAlignmentToolbar,PE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kE(e,t)}(a,e);var t,n,r,o=ME(a);function a(e){return vE(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[wp.element.createElement(DE,{key:this.props.clientId},wp.element.createElement(CE,{key:"controls"},wp.element.createElement(jE,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),wp.element.createElement(EE,{key:"placeholder",label:TE("Layout Selector","atomic-blocks"),instructions:TE("Launch the layout library to browse pre-designed sections.","atomic-blocks"),className:"ab-layout-selector-placeholder",icon:"layout"},wp.element.createElement(AT.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return wp.element.createElement(_E,{clientId:r,context:e})}))))]}}])&&wE(t.prototype,n),r&&wE(t,r),a}(xE),RE=(n(326),n(327),wp.i18n.__);function HE(){var e=wp.blocks.createBlock("atomic-blocks/ab-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-layouts",{title:RE("Layouts","atomic-blocks"),description:RE("Add a pre-defined section or layout to posts and pages.","atomic-blocks"),icon:"layout",category:"atomic-blocks",keywords:[RE("layout","atomic-blocks"),RE("column","atomic-blocks"),RE("section","atomic-blocks")],edit:function(e){return wp.element.createElement(FT,null,wp.element.createElement(PE,e))},save:function(){return null}}),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector(".edit-post-header-toolbar");if(!e)return;var t=document.createElement("div"),n='<div class="ab-toolbar-insert-layout">';n+='<button id="abLayoutInsertButton" class="components-button components-icon-button" aria-label="'.concat(RE("Insert Layout","atomic-blocks"),'"><i class="dashicons dashicons-layout ab-toolbar-insert-layout-button"></i> ').concat(RE("Layouts","atomic-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t),document.getElementById("abLayoutInsertButton").addEventListener("click",HE)}));n(328),n(329)},function(e,t){},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]);
305
  *
306
  * This source code is licensed under the MIT license found in the
307
  * LICENSE file in the root directory of this source tree.
308
+ */var r,o,a,i,l;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(c,0))},o=function(e,t){u=setTimeout(e,t)},a=function(){clearTimeout(u)},i=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,f=window.Date,m=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var b=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var y=f.now();t.unstable_now=function(){return f.now()-y}}var _=!1,g=null,v=-1,w=5,k=0;i=function(){return t.unstable_now()>=k},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var M=new MessageChannel,L=M.port2;M.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();k=e+w;try{g(!0,e)?L.postMessage(null):(_=!1,g=null)}catch(e){throw L.postMessage(null),e}}else _=!1},r=function(e){g=e,_||(_=!0,L.postMessage(null))},o=function(e,n){v=m((function(){e(t.unstable_now())}),n)},a=function(){h(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<Y(o,t)))break e;e[r]=t,e[n]=o,n=r}}function T(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],l=a+1,s=e[l];if(void 0!==i&&0>Y(i,n))void 0!==s&&0>Y(s,i)?(e[r]=s,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==s&&0>Y(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function Y(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],D=[],O=1,C=null,j=3,P=!1,R=!1,H=!1;function A(e){for(var t=T(D);null!==t;){if(null===t.callback)E(D);else{if(!(t.startTime<=e))break;E(D),t.sortIndex=t.expirationTime,S(x,t)}t=T(D)}}function F(e){if(H=!1,A(e),!R)if(null!==T(x))R=!0,r(z);else{var t=T(D);null!==t&&o(F,t.startTime-e)}}function z(e,n){R=!1,H&&(H=!1,a()),P=!0;var r=j;try{for(A(n),C=T(x);null!==C&&(!(C.expirationTime>n)||e&&!i());){var l=C.callback;if(null!==l){C.callback=null,j=C.priorityLevel;var s=l(C.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?C.callback=s:C===T(x)&&E(x),A(n)}else E(x);C=T(x)}if(null!==C)var u=!0;else{var c=T(D);null!==c&&o(F,c.startTime-n),u=!1}return u}finally{C=null,j=r,P=!1}}function N(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||P||(R=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return T(x)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,i){var l=t.unstable_now();if("object"==typeof i&&null!==i){var s=i.delay;s="number"==typeof s&&0<s?l+s:l,i="number"==typeof i.timeout?i.timeout:N(e)}else i=N(e),s=l;return e={id:O++,callback:n,priorityLevel:e,startTime:s,expirationTime:i=s+i,sortIndex:-1},s>l?(e.sortIndex=s,S(D,e),null===T(x)&&e===T(D)&&(H?a():H=!0,o(F,s-l))):(e.sortIndex=i,S(x,e),R||P||(R=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();A(e);var n=T(x);return n!==C&&null!==C&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<C.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},function(e,t,n){"use strict";var r=n(290);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(61);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(293);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(294);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(8),o=n(21),a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;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(a,"");var n=l.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function l(e,t,n,r){var o=t&&t.prototype instanceof c?t:c,a=Object.create(o.prototype),i=new k(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return L()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=g(i,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function c(){}function d(){}function p(){}var f={};f[o]=function(){return this};var m=Object.getPrototypeOf,h=m&&m(m(M([])));h&&h!==t&&n.call(h,o)&&(f=h);var b=p.prototype=c.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function _(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,l){var u=s(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,l)}))}l(u.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function g(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function M(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=b.constructor=p,p.constructor=d,p[i]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(_.prototype),_.prototype[a]=function(){return this},e.AsyncIterator=_,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new _(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},y(b),b[i]="Generator",b[o]=function(){return this},b.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=M,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=wp.element.Component,f=wp.hooks.applyFilters,m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(a,e);var t,n,r,o=u(a);function a(){return i(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){if(void 0===this.props.children)return null;var e=!1;if(void 0!==this.props.children.props&&void 0!==this.props.children.props.name||(e=!0),e&&(void 0===this.props.children._owner||void 0===this.props.children._owner.memoizedProps||void 0===this.props.children._owner.memoizedProps.name))return this.props.children;var t=e?this.props.children._owner.memoizedProps.name:this.props.children.props.name;return f("ab_should_render_block_setting",!0,t,this.props.id,atomic_globals.user_data)?this.props.children:null}}])&&l(t.prototype,n),r&&l(t,r),a}(p);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=wp.i18n.__,M=wp.element.Component,L=wp.blockEditor,S=L.InspectorControls,T=L.PanelColorSettings,E=wp.components,Y=E.PanelBody,x=E.RangeControl,D=E.SelectControl,O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(a,e);var t,n,r,o=g(a);function a(){return b(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=[{value:"left-aligned",label:k("Left Aligned","atomic-blocks")},{value:"right-aligned",label:k("Right Aligned","atomic-blocks")}],n=this.props,r=n.attributes,o=r.testimonialBackgroundColor,a=r.testimonialTextColor,i=r.testimonialFontSize,l=r.testimonialCiteAlign,s=n.setAttributes;return wp.element.createElement(S,{key:"inspector"},wp.element.createElement(Y,null,wp.element.createElement(m,{id:"ab_testimonial_testimonialFontSize"},wp.element.createElement(x,{label:k("Font Size","atomic-blocks"),value:i,onChange:function(t){return e.props.setAttributes({testimonialFontSize:t})},min:14,max:24,step:1})),wp.element.createElement(m,{id:"ab_testimonial_testimonialCiteAlign"},wp.element.createElement(D,{label:k("Cite Alignment","atomic-blocks"),description:k("Left or right align the cite name and title.","atomic-blocks"),options:t,value:l,onChange:function(t){return e.props.setAttributes({testimonialCiteAlign:t})}}))),wp.element.createElement(m,{id:"ab_testimonial_testimonialBackgroundColor"},wp.element.createElement(T,{title:k("Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return s({testimonialBackgroundColor:e})},label:k("Background Color","atomic-blocks")}]})),wp.element.createElement(m,{id:"ab_testimonial_testimonialTextColor"},wp.element.createElement(T,{title:k("Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return s({testimonialTextColor:e})},label:k("Text Color","atomic-blocks")}]})))}}])&&y(t.prototype,n),r&&y(t,r),a}(M);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(i,e);var t,n,r,a=H(i);function i(){return j(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialImgURL,n=e.testimonialBackgroundColor,r=e.testimonialTextColor,a=e.testimonialFontSize,i=e.testimonialCiteAlign;return wp.element.createElement("div",{style:{backgroundColor:n||"#f2f2f2",color:r||"#32373c"},className:o()(this.props.className,i,{"ab-has-avatar":t},"ab-font-size-"+a,"ab-block-testimonial")},this.props.children)}}])&&P(t.prototype,n),r&&P(t,r),i}(wp.element.Component),N={};N.upload=wp.element.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),wp.element.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),wp.element.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),wp.element.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));var B=N;function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(){return(W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Z(e);if(t){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=wp.i18n.__,ee=wp.element,te=ee.Component,ne=ee.Fragment,re=wp.blockEditor,oe=re.RichText,ae=re.AlignmentToolbar,ie=re.BlockControls,le=re.MediaUpload,se=wp.components,ue=se.Button,ce=se.Dashicon,de=["image"],pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}(i,e);var t,n,r,a=K(i);function i(){return G(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.testimonialName,a=n.testimonialTitle,i=n.testimonialContent,l=n.testimonialAlignment,s=n.testimonialImgURL,u=n.testimonialImgID,c=n.testimonialTextColor,d=t.setAttributes,p=function(){d({testimonialImgURL:null,testimonialImgID:null})};return[wp.element.createElement(ie,{key:"controls"},wp.element.createElement(ae,{value:l,onChange:function(e){return d({testimonialAlignment:e})}})),wp.element.createElement(O,W({key:"ab-testimonial-inspector-"+this.props.clientId},V({setAttributes:d},this.props))),wp.element.createElement(z,W({key:"ab-testimonial-editor-"+this.props.clientId},this.props),wp.element.createElement(oe,{tagName:"div",multiline:"p",placeholder:X("Add testimonial text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:o()("ab-testimonial-text"),style:{textAlign:l},onChange:function(e){return d({testimonialContent:e})}}),wp.element.createElement("div",{className:"ab-testimonial-info"},wp.element.createElement("div",{className:"ab-testimonial-avatar-wrap"},wp.element.createElement("div",{className:"ab-testimonial-image-wrap"},wp.element.createElement(le,{buttonProps:{className:"change-image"},onSelect:function(e){return d({testimonialImgID:e.id,testimonialImgURL:e.url})},allowed:de,type:"image",value:u,render:function(e){var t=e.open;return wp.element.createElement(ne,null,wp.element.createElement(ue,{className:u?"ab-change-image":"ab-add-image",onClick:t},u?wp.element.createElement("img",{className:"ab-testimonial-avatar",src:s,alt:"avatar"}):B.upload),u&&wp.element.createElement(ue,{className:"ab-remove-image",onClick:p},wp.element.createElement(ce,{icon:"dismiss"})))}}))),wp.element.createElement(oe,{tagName:"h2",placeholder:X("Add name","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"ab-testimonial-name",style:{color:c},onChange:function(t){return e.props.setAttributes({testimonialName:t})}}),wp.element.createElement(oe,{tagName:"small",placeholder:X("Add title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:a,className:"ab-testimonial-title",style:{color:c},onChange:function(t){return e.props.setAttributes({testimonialTitle:t})}})))]}}])&&q(t.prototype,n),r&&q(t,r),i}(te);function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}function _e(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=wp.element.Component,we=wp.blockEditor.RichText,ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(a,e);var t,n,r,o=ye(a);function a(){return me(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialName,n=e.testimonialTitle,r=e.testimonialContent,o=e.testimonialAlignment,a=e.testimonialImgURL,i=e.testimonialTextColor;return wp.element.createElement(z,this.props,wp.element.createElement(we.Content,{tagName:"div",className:"ab-testimonial-text",style:{textAlign:o},value:r}),wp.element.createElement("div",{className:"ab-testimonial-info"},a&&wp.element.createElement("div",{className:"ab-testimonial-avatar-wrap"},wp.element.createElement("div",{className:"ab-testimonial-image-wrap"},wp.element.createElement("img",{className:"ab-testimonial-avatar",src:a,alt:"avatar"}))),t&&wp.element.createElement(we.Content,{tagName:"h2",className:"ab-testimonial-name",style:{color:i||"#32373c"},value:t}),n&&wp.element.createElement(we.Content,{tagName:"small",className:"ab-testimonial-title",style:{color:i||"#32373c"},value:n})))}}])&&he(t.prototype,n),r&&he(t,r),a}(ve),Me=(n(297),n(299),wp.i18n.__);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t){return(Ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=De(e);if(t){var o=De(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-testimonial",{title:Me("Testimonial","atomic-blocks"),description:Me("Add a user testimonial with a name and title.","atomic-blocks"),icon:"format-quote",category:"atomic-blocks",keywords:[Me("testimonial","atomic-blocks"),Me("quote","atomic-blocks"),Me("atomic","atomic-blocks")],attributes:{testimonialName:{type:"array",selector:".ab-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".ab-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".ab-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},ab_settings_data:{ab_testimonial_testimonialFontSize:{title:Me("Font Size","atomic-blocks")},ab_testimonial_testimonialCiteAlign:{title:Me("Cite Alignment","atomic-blocks")},ab_testimonial_testimonialBackgroundColor:{title:Me("Background Color","atomic-blocks")},ab_testimonial_testimonialTextColor:{title:Me("Text Color","atomic-blocks")}},edit:function(e){return wp.element.createElement(pe,e)},save:function(e){return wp.element.createElement(ke,e)}});var Oe=wp.i18n.__,Ce=wp.element.Component,je=wp.blockEditor,Pe=je.InspectorControls,Re=je.PanelColorSettings,He=wp.components,Ae=He.PanelBody,Fe=He.RangeControl,ze=He.SelectControl,Ne=He.TextControl,Be=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ee(e,t)}(a,e);var t,n,r,o=Ye(a);function a(e){return Se(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.profileFontSize,r=t.profileBackgroundColor,o=t.profileTextColor,a=t.profileLinkColor,i=t.twitter,l=t.facebook,s=t.instagram,u=t.pinterest,c=t.google,d=t.youtube,p=t.github,f=t.linkedin,h=t.wordpress,b=t.email,y=t.website,_=t.profileAvatarShape,g=this.props.setAttributes,v=[{value:"square",label:Oe("Square","atomic-blocks")},{value:"round",label:Oe("Round","atomic-blocks")}];return wp.element.createElement(Pe,{key:"inspector"},wp.element.createElement(Ae,null,wp.element.createElement(m,{id:"ab_author_profile_profileFontSize"},wp.element.createElement(Fe,{label:Oe("Font Size","atomic-blocks"),value:n,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1})),wp.element.createElement(m,{id:"ab_author_profile_profileAvatarShape"},wp.element.createElement(ze,{label:Oe("Avatar Shape","atomic-blocks"),description:Oe("Choose between a round or square avatar shape.","atomic-blocks"),options:v,value:_,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),wp.element.createElement(m,{id:"ab_author_profile_profileBackgroundColor"},wp.element.createElement(Re,{title:Oe("Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return g({profileBackgroundColor:e})},label:Oe("Background Color","atomic-blocks")}]})),wp.element.createElement(m,{id:"ab_author_profile_profileTextColor"},wp.element.createElement(Re,{title:Oe("Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return g({profileTextColor:e})},label:Oe("Text Color","atomic-blocks")}]})),wp.element.createElement(m,{id:"ab_author_profile_profileLinkColor"},wp.element.createElement(Re,{title:Oe("Social Link Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return g({profileLinkColor:e})},label:Oe("Social Link Color","atomic-blocks")}]}))),wp.element.createElement(m,{id:"ab_author_profile_socialLinks"},wp.element.createElement(Ae,{title:Oe("Social Links","atomic-blocks"),initialOpen:!1},wp.element.createElement("p",null,Oe("Add links to your social media site and they will appear in the bottom of the profile box.","atomic-blocks")),wp.element.createElement(Ne,{label:Oe("Twitter URL","atomic-blocks"),type:"url",value:i,onChange:function(t){return e.props.setAttributes({twitter:t})}}),wp.element.createElement(Ne,{label:Oe("Facebook URL","atomic-blocks"),type:"url",value:l,onChange:function(t){return e.props.setAttributes({facebook:t})}}),wp.element.createElement(Ne,{label:Oe("Instagram URL","atomic-blocks"),type:"url",value:s,onChange:function(t){return e.props.setAttributes({instagram:t})}}),wp.element.createElement(Ne,{label:Oe("Pinterest URL","atomic-blocks"),type:"url",value:u,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),wp.element.createElement(Ne,{label:Oe("Google URL","atomic-blocks"),type:"url",value:c,onChange:function(t){return e.props.setAttributes({google:t})}}),wp.element.createElement(Ne,{label:Oe("YouTube URL","atomic-blocks"),type:"url",value:d,onChange:function(t){return e.props.setAttributes({youtube:t})}}),wp.element.createElement(Ne,{label:Oe("Github URL","atomic-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({github:t})}}),wp.element.createElement(Ne,{label:Oe("LinkedIn URL","atomic-blocks"),type:"url",value:f,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),wp.element.createElement(Ne,{label:Oe("WordPress Profile URL","atomic-blocks"),type:"url",value:h,onChange:function(t){return e.props.setAttributes({wordpress:t})}}),wp.element.createElement(Ne,{label:Oe("Email URL","atomic-blocks"),help:Oe('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"atomic-blocks"),type:"url",value:b,onChange:function(t){return e.props.setAttributes({email:t})}}),wp.element.createElement(Ne,{label:Oe("Website URL","atomic-blocks"),type:"url",value:y,onChange:function(t){return e.props.setAttributes({website:t})}}))))}}])&&Te(t.prototype,n),r&&Te(t,r),a}(Ce);function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ve(e,t){return(Ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ge(this,n)}}function Ge(e,t){return!t||"object"!==Ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ve(e,t)}(i,e);var t,n,r,a=Je(i);function i(e){return We(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,i=e.profileTextColor,l=e.profileAvatarShape;return wp.element.createElement("div",{style:{backgroundColor:a,color:i},className:o()(this.props.className,t,l,{"ab-has-avatar":n},"ab-font-size-"+r,"ab-block-profile","ab-profile-columns")},this.props.children)}}])&&Ue(t.prototype,n),r&&Ue(t,r),i}(wp.element.Component);function Ke(e){return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nt(e);if(t){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}function tt(e,t){return!t||"object"!==Ke(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=wp.i18n.__,ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xe(e,t)}(a,e);var t,n,r,o=et(a);function a(e){return Qe(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement("ul",{className:"ab-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},rt("Website","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},rt("Twitter","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},rt("Facebook","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},rt("Instagram","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},rt("Pinterest","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},rt("Google","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},rt("YouTube","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},rt("LinkedIn","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},rt("Github","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},rt("WordPress","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&wp.element.createElement("li",null,wp.element.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},rt("Email","atomic-blocks")," ",wp.element.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}])&&Ze(t.prototype,n),r&&Ze(t,r),a}(wp.element.Component);function at(e){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function st(e,t){return(st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(e,t){return!t||"object"!==at(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&st(e,t)}(a,e);var t,n,r,o=ut(a);function a(e){return it(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement("div",{className:"ab-profile-column ab-profile-avatar-wrap"},wp.element.createElement("div",{className:"ab-profile-image-wrap"},this.props.children))}}])&&lt(t.prototype,n),r&&lt(t,r),a}(wp.element.Component);function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(){return(mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mt(e);if(t){var o=Mt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kt(this,n)}}function kt(e,t){return!t||"object"!==ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mt(e){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lt=wp.i18n.__,St=wp.element,Tt=St.Component,Et=St.Fragment,Yt=wp.blockEditor,xt=Yt.RichText,Dt=Yt.AlignmentToolbar,Ot=Yt.BlockControls,Ct=Yt.MediaUpload,jt=wp.components,Pt=jt.Button,Rt=jt.Dashicon,Ht=["image"],At=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vt(e,t)}(i,e);var t,n,r,a=wt(i);function i(){return _t(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.profileName,r=t.profileTitle,a=t.profileContent,i=t.profileAlignment,l=t.profileImgURL,s=t.profileImgID,u=t.profileImgAlt,c=t.profileTextColor,d=e.setAttributes;return[wp.element.createElement(Ot,{key:"controls"},wp.element.createElement(Dt,{value:i,onChange:function(e){return d({profileAlignment:e})}})),wp.element.createElement(Be,mt({key:"ab-author-profile-inspector-"+this.props.clientId},bt({setAttributes:d},this.props))),wp.element.createElement($e,mt({key:"ab-author-profile-"+this.props.clientId},this.props),wp.element.createElement(pt,this.props,wp.element.createElement("figure",{className:"ab-profile-image-square"},wp.element.createElement(Ct,{buttonProps:{className:"change-image"},onSelect:function(e){return d({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt})},allowed:Ht,type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(Et,null,wp.element.createElement(Pt,{onClick:t},s?wp.element.createElement("img",{className:o()("ab-profile-avatar","ab-change-image","wp-image-"+s),src:l,alt:u}):B.upload),s&&wp.element.createElement(Pt,{className:"ab-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},wp.element.createElement(Rt,{icon:"dismiss"})))}}))),wp.element.createElement("div",{className:o()("ab-profile-column ab-profile-content-wrap")},wp.element.createElement(xt,{tagName:"h2",placeholder:Lt("Add name","atomic-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"ab-profile-name",style:{color:c},onChange:function(e){return d({profileName:e})}}),wp.element.createElement(xt,{tagName:"p",placeholder:Lt("Add title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"ab-profile-title",style:{color:c},onChange:function(e){return d({profileTitle:e})}}),wp.element.createElement(xt,{tagName:"div",className:"ab-profile-text",multiline:"p",placeholder:Lt("Add profile text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:a,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:function(e){return d({profileContent:e})}}),wp.element.createElement(ot,this.props)))]}}])&&gt(t.prototype,n),r&&gt(t,r),i}(Tt);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function It(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ut(e);if(t){var o=Ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wt(this,n)}}function Wt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ut(e){return(Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vt=wp.element.Component,Jt=wp.blockEditor.RichText,Gt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}(i,e);var t,n,r,a=It(i);function i(){return zt(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,i=e.profileImgAlt,l=e.profileImgID,s=e.profileTextColor;return wp.element.createElement($e,this.props,a&&wp.element.createElement(pt,this.props,wp.element.createElement("figure",{className:"ab-profile-image-square"},wp.element.createElement("img",{className:o()("ab-profile-avatar","wp-image-"+l),src:a,alt:i}))),wp.element.createElement("div",{className:o()("ab-profile-column ab-profile-content-wrap")},t&&wp.element.createElement(Jt.Content,{tagName:"h2",className:"ab-profile-name",style:{color:s},value:t}),n&&wp.element.createElement(Jt.Content,{tagName:"p",className:"ab-profile-title",style:{color:s},value:n}),r&&wp.element.createElement(Jt.Content,{tagName:"div",className:"ab-profile-text",value:r}),wp.element.createElement(ot,this.props)))}}])&&Nt(t.prototype,n),r&&Nt(t,r),i}(Vt);n(300),n(301);function qt(e){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qt(e,t){return(Qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xt(this,n)}}function Xt(e,t){return!t||"object"!==qt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tn=wp.element.Component,nn=wp.blockEditor.RichText,rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qt(e,t)}(i,e);var t,n,r,a=Zt(i);function i(){return $t(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,i=e.profileTextColor;return wp.element.createElement($e,this.props,a&&wp.element.createElement(pt,this.props,wp.element.createElement("div",{className:"ab-profile-image-square"},wp.element.createElement("img",{className:"ab-profile-avatar",src:a,alt:"avatar"}))),wp.element.createElement("div",{className:o()("ab-profile-column ab-profile-content-wrap")},t&&wp.element.createElement(nn.Content,{tagName:"h2",className:"ab-profile-name",style:{color:i},value:t}),n&&wp.element.createElement(nn.Content,{tagName:"p",className:"ab-profile-title",style:{color:i},value:n}),r&&wp.element.createElement(nn.Content,{tagName:"div",className:"ab-profile-text",value:r}),wp.element.createElement(ot,this.props)))}}])&&Kt(t.prototype,n),r&&Kt(t,r),i}(tn),on=[{attributes:{profileName:{type:"array",source:"children",selector:".ab-profile-name"},profileTitle:{type:"array",source:"children",selector:".ab-profile-title"},profileContent:{type:"array",selector:".ab-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},website:{type:"url"}},save:function(e){return wp.element.createElement(rn,e)}}],an=wp.i18n.__;function ln(e){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cn(e,t){return(cn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fn(e);if(t){var o=fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pn(this,n)}}function pn(e,t){return!t||"object"!==ln(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fn(e){return(fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-profile-box",{title:an("Profile Box","atomic-blocks"),description:an("Add a profile box with bio info and social media links.","atomic-blocks"),icon:"admin-users",category:"atomic-blocks",keywords:[an("author","atomic-blocks"),an("profile","atomic-blocks"),an("atomic","atomic-blocks")],attributes:{profileName:{type:"array",source:"children",selector:".ab-profile-name"},profileTitle:{type:"array",source:"children",selector:".ab-profile-title"},profileContent:{type:"array",selector:".ab-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},ab_settings_data:{ab_author_profile_profileFontSize:{title:an("Font Size","atomic-blocks")},ab_author_profile_profileAvatarShape:{title:an("Avatar Shape","atomic-blocks")},ab_author_profile_profileBackgroundColor:{title:an("Background Color","atomic-blocks")},ab_author_profile_profileTextColor:{title:an("Text Color","atomic-blocks")},ab_author_profile_profileLinkColor:{title:an("Social Link Color","atomic-blocks")},ab_author_profile_socialLinks:{title:an("Social Links","atomic-blocks")}},edit:function(e){return wp.element.createElement(At,e)},save:function(e){return wp.element.createElement(Gt,e)},deprecated:on});var mn=wp.i18n.__,hn=wp.element.Component,bn=wp.blockEditor,yn=bn.PanelColorSettings,_n=bn.InspectorControls,gn=wp.components,vn=gn.PanelBody,wn=gn.RangeControl,kn=gn.SelectControl,Mn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cn(e,t)}(a,e);var t,n,r,o=dn(a);function a(e){return sn(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=[{value:null,label:mn("Always Show","atomic-blocks")},{value:"ab-dismissable",label:mn("Dismissible","atomic-blocks")}],n=this.props.attributes,r=n.noticeBackgroundColor,o=n.noticeTextColor,a=n.noticeTitleColor,i=n.noticeFontSize,l=n.noticeDismiss,s=this.props.setAttributes;return wp.element.createElement(_n,{key:"inspector"},wp.element.createElement(vn,null,wp.element.createElement(m,{id:"ab_notice_noticeFontSize"},wp.element.createElement(wn,{label:mn("Font Size","atomic-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),wp.element.createElement(m,{id:"ab_notice_noticeDismiss"},wp.element.createElement(kn,{label:mn("Notice Display","atomic-blocks"),description:mn("Do you want the message to always show or dismissible?","atomic-blocks"),options:t,value:l,onChange:function(t){return e.props.setAttributes({noticeDismiss:t})}}))),wp.element.createElement(m,{id:"ab_notice_colorSettings"},wp.element.createElement(yn,{title:mn("Notice Color","atomic-blocks"),colorValue:r,initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return s({noticeBackgroundColor:e})},colors:[{color:"#00d1b2",name:"teal"},{color:"#3373dc",name:"royal blue"},{color:"#209cef",name:"sky blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"},{color:"#392F43",name:"black"}],label:mn("Notice Color","atomic-blocks")}]}),wp.element.createElement(yn,{title:mn("Title Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return s({noticeTitleColor:e})},label:mn("Title Color","atomic-blocks")}]}),wp.element.createElement(yn,{title:mn("Text Color","atomic-blocks"),colorValue:o,initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return s({noticeTextColor:e})},label:mn("Text Color","atomic-blocks")}]})))}}])&&un(t.prototype,n),r&&un(t,r),a}(hn),Ln=n(194),Sn=n.n(Ln);function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xn(e,t){return(xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cn(e);if(t){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return On(this,n)}}function On(e,t){return!t||"object"!==Tn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xn(e,t)}(i,e);var t,n,r,a=Dn(i);function i(e){return En(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props.attributes,n=t.noticeTitle,r=t.noticeAlignment,a=t.noticeBackgroundColor,i=t.noticeTextColor,l=t.noticeFontSize,s=t.noticeDismiss,u=(e=s+n,Sn()(e).substr(0,6));return wp.element.createElement("div",{style:{color:i,textAlign:r,backgroundColor:a},className:o()(this.props.className,s,"ab-font-size-"+l,"ab-block-notice"),"data-id":u},this.props.children)}}])&&Yn(t.prototype,n),r&&Yn(t,r),i}(wp.element.Component);function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e,t){return(An=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nn(e);if(t){var o=Nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zn(this,n)}}function zn(e,t){return!t||"object"!==Pn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nn(e){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&An(e,t)}(a,e);var t,n,r,o=Fn(a);function a(e){return Rn(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes.noticeTitleColor;return wp.element.createElement("div",{className:"ab-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}])&&Hn(t.prototype,n),r&&Hn(t,r),a}(wp.element.Component),In={};In.upload=wp.element.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),wp.element.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),wp.element.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),wp.element.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),In.dismiss=wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zM15 13l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));var Wn=In;n(302),n(303);function Un(e){return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vn(){return(Vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e,t){return(Qn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=er(e);if(t){var o=er(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xn(this,n)}}function Xn(e,t){return!t||"object"!==Un(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tr=wp.i18n.__,nr=wp.element.Component,rr=wp.blocks.registerBlockType,or=wp.blockEditor,ar=or.RichText,ir=or.AlignmentToolbar,lr=or.BlockControls,sr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qn(e,t)}(i,e);var t,n,r,a=Zn(i);function i(){return $n(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.noticeTitle,r=t.noticeContent,a=t.noticeAlignment,i=t.noticeBackgroundColor,l=t.noticeTitleColor,s=t.noticeDismiss,u=e.setAttributes;return[wp.element.createElement(lr,{key:"controls"},wp.element.createElement(ir,{value:a,onChange:function(e){return u({noticeAlignment:e})}})),wp.element.createElement(Mn,Vn({key:"ab-notice-inspector-"+this.props.clientId},Gn({setAttributes:u},this.props))),wp.element.createElement(jn,Vn({key:"ab-notice-noticebox-"+this.props.clientId},this.props),s&&"ab-dismissable"===s&&wp.element.createElement(Bn,this.props,Wn.dismiss),wp.element.createElement(ar,{tagName:"p",placeholder:tr("Notice Title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:n,className:o()("ab-notice-title"),style:{color:l},onChange:function(e){return u({noticeTitle:e})}}),wp.element.createElement(ar,{tagName:"div",multiline:"p",placeholder:tr("Add notice text...","atomic-blocks"),value:r,className:o()("ab-notice-text"),style:{borderColor:i},onChange:function(e){return u({noticeContent:e})}}))]}}])&&Kn(t.prototype,n),r&&Kn(t,r),i}(nr);function ur(e){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pr(e,t){return(pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hr(e);if(t){var o=hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mr(this,n)}}function mr(e,t){return!t||"object"!==ur(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hr(e){return(hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}rr("atomic-blocks/ab-notice",{title:tr("Notice","atomic-blocks"),description:tr("Add a stylized text notice.","atomic-blocks"),icon:"format-aside",category:"atomic-blocks",keywords:[tr("notice","atomic-blocks"),tr("message","atomic-blocks"),tr("atomic","atomic-blocks")],attributes:{noticeTitle:{type:"string",selector:".ab-notice-title"},noticeContent:{type:"array",selector:".ab-notice-text",source:"children"},noticeAlignment:{type:"string"},noticeBackgroundColor:{type:"string",default:"#00d1b2"},noticeTextColor:{type:"string",default:"#32373c"},noticeTitleColor:{type:"string",default:"#fff"},noticeFontSize:{type:"number",default:18},noticeDismiss:{type:"string",default:""}},ab_settings_data:{ab_notice_noticeFontSize:{title:tr("Font Size","atomic-blocks")},ab_notice_noticeDismiss:{title:tr("Notice Display","atomic-blocks")},ab_notice_colorSettings:{title:tr("Notice Color","atomic-blocks")}},edit:sr,save:function(e){var t=e.attributes,n=t.noticeTitle,r=t.noticeContent,o=t.noticeBackgroundColor,a=t.noticeTitleColor,i=t.noticeDismiss;return wp.element.createElement(jn,e,i&&"ab-dismissable"===i&&wp.element.createElement(Bn,e,Wn.dismiss),n&&wp.element.createElement("div",{className:"ab-notice-title",style:{color:a}},wp.element.createElement(ar.Content,{tagName:"p",value:n})),r&&wp.element.createElement(ar.Content,{tagName:"div",className:"ab-notice-text",style:{borderColor:o},value:r}))}});var br=wp.i18n.__,yr=wp.element.Component,_r=wp.blockEditor.InspectorControls,gr=wp.components,vr=gr.RangeControl,wr=gr.SelectControl,kr=gr.PanelBody,Mr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pr(e,t)}(a,e);var t,n,r,o=fr(a);function a(e){return cr(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapFontSize,r=t.dropCapStyle,o=[{value:"ab-drop-cap-letter",label:br("Letter")},{value:"ab-drop-cap-square",label:br("Square")},{value:"ab-drop-cap-border",label:br("Border")}];return wp.element.createElement(_r,{key:"inspector"},wp.element.createElement(kr,null,wp.element.createElement(m,{id:"ab_dropcap_dropCapFontSize"},wp.element.createElement(vr,{label:br("Drop Cap Size"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),wp.element.createElement(m,{id:"ab_dropcap_dropCapStyle"},wp.element.createElement(wr,{label:br("Drop Cap Style"),description:br("Choose the style of the drop cap in your paragraph."),options:o,value:r,onChange:function(t){return e.props.setAttributes({dropCapStyle:t})}}))))}}])&&dr(t.prototype,n),r&&dr(t,r),a}(yr);function Lr(e){return(Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Er(e,t){return(Er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dr(e);if(t){var o=Dr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xr(this,n)}}function xr(e,t){return!t||"object"!==Lr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dr(e){return(Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Or=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Er(e,t)}(i,e);var t,n,r,a=Yr(i);function i(e){return Sr(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.dropCapAlignment,n=e.dropCapTextColor,r=e.dropCapFontSize,a=e.dropCapStyle;return wp.element.createElement("div",{style:{color:n,textAlign:t},className:o()(this.props.className,a,"ab-font-size-"+r,"ab-block-drop-cap")},this.props.children)}}])&&Tr(t.prototype,n),r&&Tr(t,r),i}(wp.element.Component);n(304),n(305);function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jr(){return(jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hr(e,t){return(Hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zr(e);if(t){var o=zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fr(this,n)}}function Fr(e,t){return!t||"object"!==Cr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zr(e){return(zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nr=wp.i18n.__,Br=wp.element.Component,Ir=wp.blocks.registerBlockType,Wr=wp.blockEditor,Ur=Wr.RichText,Vr=Wr.AlignmentToolbar,Jr=Wr.BlockControls,Gr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hr(e,t)}(i,e);var t,n,r,a=Ar(i);function i(){return Pr(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,a=t.dropCapFontSize;return[wp.element.createElement(Jr,{key:"controls"},wp.element.createElement(Vr,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),wp.element.createElement(Mr,jr({key:"ab-drop-cap-inspector-"+this.props.clientId},this.props)),wp.element.createElement(Or,jr({key:"ab-drop-cap-"+this.props.clientId},this.props),wp.element.createElement(Ur,{tagName:"div",multiline:"p",placeholder:Nr("Add paragraph text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:o()("ab-drop-cap-text","ab-font-size-"+a),onChange:function(t){return e.props.setAttributes({dropCapContent:t})}}))]}}])&&Rr(t.prototype,n),r&&Rr(t,r),i}(Br);Ir("atomic-blocks/ab-drop-cap",{title:Nr("Drop Cap","atomic-blocks"),description:Nr("Add a styled drop cap to the beginning of your paragraph.","atomic-blocks"),icon:"format-quote",category:"atomic-blocks",keywords:[Nr("drop cap","atomic-blocks"),Nr("quote","atomic-blocks"),Nr("atomic","atomic-blocks")],attributes:{dropCapContent:{type:"array",selector:".ab-drop-cap-text",source:"children"},dropCapAlignment:{type:"string"},dropCapBackgroundColor:{type:"string",default:"#f2f2f2"},dropCapTextColor:{type:"string",default:"#32373c"},dropCapFontSize:{type:"number",default:3},dropCapStyle:{type:"string",default:"drop-cap-letter"}},ab_settings_data:{ab_dropcap_dropCapFontSize:{title:Nr("Drop Cap Size","atomic-blocks")},ab_dropcap_dropCapStyle:{title:Nr("Drop Cap Style","atomic-blocks")}},edit:Gr,save:function(e){var t=e.attributes.dropCapContent;return wp.element.createElement(Or,e,t&&wp.element.createElement(Ur.Content,{tagName:"div",className:"ab-drop-cap-text",value:t}))}});var qr=wp.i18n.__,$r=wp.element.Fragment,Kr=wp.components,Qr=Kr.SelectControl,Zr=Kr.ToggleControl,Xr=wp.blockEditor.PanelColorSettings;function eo(e){var t=e.enableButtonBackgroundColor,n=e.buttonBackgroundColor,r=e.onChangeButtonColor,o=void 0===r?function(){}:r,a=e.enableButtonTextColor,i=e.buttonTextColor,l=e.onChangeButtonTextColor,s=void 0===l?function(){}:l,u=e.enableButtonSize,c=e.buttonSize,d=e.onChangeButtonSize,p=void 0===d?function(){}:d,f=e.enableButtonShape,h=e.buttonShape,b=e.onChangeButtonShape,y=void 0===b?function(){}:b,_=e.enableButtonTarget,g=e.buttonTarget,v=e.onChangeButtonTarget,w=void 0===v?function(){}:v,k=[{value:"ab-button-size-small",label:qr("Small","atomic-blocks")},{value:"ab-button-size-medium",label:qr("Medium","atomic-blocks")},{value:"ab-button-size-large",label:qr("Large","atomic-blocks")},{value:"ab-button-size-extralarge",label:qr("Extra Large","atomic-blocks")}],M=[{value:"ab-button-shape-square",label:qr("Square","atomic-blocks")},{value:"ab-button-shape-rounded",label:qr("Rounded Square","atomic-blocks")},{value:"ab-button-shape-circular",label:qr("Circular","atomic-blocks")}];return wp.element.createElement($r,null,wp.element.createElement(m,{id:"ab_button_buttonOptions"},!1!==_&&wp.element.createElement(Zr,{label:qr("Open link in new window","atomic-blocks"),checked:g,onChange:w}),!1!==u&&wp.element.createElement(Qr,{selected:c,label:qr("Button Size","atomic-blocks"),value:c,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:p}),!1!==f&&wp.element.createElement(Qr,{label:qr("Button Shape","atomic-blocks"),value:h,options:M.map((function(e){return{value:e.value,label:e.label}})),onChange:y}),!1!==t&&wp.element.createElement(Xr,{title:qr("Button Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:o,label:qr("Button Color","atomic-blocks")}]}),!1!==a&&wp.element.createElement(Xr,{title:qr("Button Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:s,label:qr("Button Text Color","atomic-blocks")}]})))}function to(e){return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function no(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oo(e,t){return(oo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ao(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lo(e);if(t){var o=lo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return io(this,n)}}function io(e,t){return!t||"object"!==to(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lo(e){return(lo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}wp.i18n.__;var so=wp.element.Component,uo=wp.blockEditor.InspectorControls,co=wp.components.PanelBody,po=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oo(e,t)}(a,e);var t,n,r,o=ao(a);function a(e){return no(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonBackgroundColor,n=e.buttonTextColor,r=e.buttonSize,o=e.buttonShape,a=e.buttonTarget,i=this.props.setAttributes;return wp.element.createElement(uo,{key:"inspector"},wp.element.createElement(co,null,wp.element.createElement(eo,{buttonTarget:a,onChangeButtonTarget:function(e){return i({buttonTarget:!a})},buttonSize:r,onChangeButtonSize:function(e){return i({buttonSize:e})},buttonShape:o,onChangeButtonShape:function(e){return i({buttonShape:e})},buttonBackgroundColor:t,onChangeButtonColor:function(e){return i({buttonBackgroundColor:e})},buttonTextColor:n,onChangeButtonTextColor:function(e){return i({buttonTextColor:e})}})))}}])&&ro(t.prototype,n),r&&ro(t,r),a}(so);function fo(e){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bo(e,t){return(bo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=go(e);if(t){var o=go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _o(this,n)}}function _o(e,t){return!t||"object"!==fo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function go(e){return(go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bo(e,t)}(i,e);var t,n,r,a=yo(i);function i(e){return mo(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return wp.element.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:o()(this.props.className,"ab-block-button")},this.props.children)}}])&&ho(t.prototype,n),r&&ho(t,r),i}(wp.element.Component);n(306),n(307);function wo(e){return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ko(){return(ko=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function So(e,t){return(So=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function To(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yo(e);if(t){var o=Yo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Eo(this,n)}}function Eo(e,t){return!t||"object"!==wo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yo(e){return(Yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xo=wp.i18n.__,Do=wp.element.Component,Oo=wp.blocks.registerBlockType,Co=wp.blockEditor,jo=Co.RichText,Po=Co.AlignmentToolbar,Ro=Co.BlockControls,Ho=Co.URLInput,Ao=wp.components,Fo=Ao.Button,zo=Ao.Dashicon,No=Ao.Icon,Bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&So(e,t)}(i,e);var t,n,r,a=To(i);function i(){return Mo(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonAlignment,i=t.buttonBackgroundColor,l=t.buttonTextColor,s=t.buttonSize,u=t.buttonShape,c=e.isSelected,d=e.setAttributes;return[wp.element.createElement(Ro,{key:"controls"},wp.element.createElement(Po,{value:a,onChange:function(e){d({buttonAlignment:e})}})),wp.element.createElement(po,ko({key:"ab-button-inspector-"+this.props.clientId},this.props)),wp.element.createElement(vo,ko({key:"ab-button-custombutton-"+this.props.clientId},this.props),wp.element.createElement(jo,{tagName:"span",placeholder:xo("Button text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:o()("ab-button",u,s),style:{color:l||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),c&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link ab-button-".concat(a),onSubmit:function(e){return e.preventDefault()},style:{textAlign:a}},wp.element.createElement(zo,{icon:"admin-links"}),wp.element.createElement(Ho,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),wp.element.createElement(Fo,{label:xo("Apply","atomic-blocks"),type:"submit"},wp.element.createElement(No,{icon:"editor-break"})))]}}])&&Lo(t.prototype,n),r&&Lo(t,r),i}(Do);function Io(e){return(Io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vo(e,t){return(Vo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qo(e);if(t){var o=qo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Go(this,n)}}function Go(e,t){return!t||"object"!==Io(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qo(e){return(qo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Oo("atomic-blocks/ab-button",{title:xo("Button","atomic-blocks"),description:xo("Add a customizable button.","atomic-blocks"),icon:"admin-links",category:"atomic-blocks",keywords:[xo("button","atomic-blocks"),xo("link","atomic-blocks"),xo("atomic","atomic-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},ab_settings_data:{ab_button_buttonOptions:{title:xo("Button Options","atomic-blocks")}},edit:Bo,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget;return wp.element.createElement(vo,e,n&&wp.element.createElement("a",{href:r,target:u?"_blank":null,rel:u?"noopener noreferrer":null,className:o()("ab-button",s,l),style:{color:i||"#ffffff",backgroundColor:a||"#3373dc"}},wp.element.createElement(jo.Content,{value:n})))}});var $o=wp.i18n.__,Ko=wp.element,Qo=Ko.Component,Zo=Ko.Fragment,Xo=wp.blockEditor,ea=Xo.InspectorControls,ta=Xo.PanelColorSettings,na=wp.components,ra=na.PanelBody,oa=na.RangeControl,aa=na.ToggleControl,ia=na.SelectControl,la=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vo(e,t)}(a,e);var t,n,r,o=Jo(a);function a(){return Wo(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.spacerHeight,o=n.spacerDivider,a=n.spacerDividerStyle,i=n.spacerDividerColor,l=n.spacerDividerHeight,s=t.setAttributes,u=[{value:"ab-divider-solid",label:$o("Solid","atomic-blocks")},{value:"ab-divider-dashed",label:$o("Dashed","atomic-blocks")},{value:"ab-divider-dotted",label:$o("Dotted","atomic-blocks")}];return wp.element.createElement(ea,{key:"inspector"},wp.element.createElement(ra,null,wp.element.createElement(m,{id:"ab_spacer_spacerHeight"},wp.element.createElement(oa,{label:$o("Spacer Height","atomic-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),wp.element.createElement(m,{id:"ab_spacer_spacerDivider"},wp.element.createElement(aa,{label:$o("Add Divider","atomic-blocks"),checked:o,onChange:function(){return e.props.setAttributes({spacerDivider:!o})}}))),o?wp.element.createElement(Zo,null,wp.element.createElement(ra,null,wp.element.createElement(m,{id:"ab_spacer_spacerDividerStyle"},wp.element.createElement(ia,{label:$o("Divider Style","atomic-blocks"),value:a,options:u.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),wp.element.createElement(m,{id:"ab_spacer_spacerDividerHeight"},wp.element.createElement(oa,{label:$o("Divider Height","atomic-blocks"),value:l||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),wp.element.createElement(m,{id:"ab_spacer_dividerColor"},wp.element.createElement(ta,{title:$o("Divider Color","atomic-blocks"),initialOpen:!1,colorSettings:[{colors:[{color:"#ddd",name:"white"},{color:"#333",name:"black"},{color:"#3373dc",name:"royal blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"}],value:i,onChange:function(e){return s({spacerDividerColor:e})},label:$o("Divider Color","atomic-blocks")}]}))):null)}}])&&Uo(t.prototype,n),r&&Uo(t,r),a}(Qo);function sa(e){return(sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function da(e,t){return(da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ma(e);if(t){var o=ma(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fa(this,n)}}function fa(e,t){return!t||"object"!==sa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ma(e){return(ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ha=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&da(e,t)}(i,e);var t,n,r,a=pa(i);function i(){return ua(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.spacerDivider,n=e.spacerDividerStyle,r=e.spacerDividerColor,a=e.spacerDividerHeight;return wp.element.createElement("div",{style:{color:r},className:o()(this.props.className,"ab-block-spacer",n,{"ab-spacer-divider":t},"ab-divider-size-"+a)},this.props.children)}}])&&ca(t.prototype,n),r&&ca(t,r),i}(wp.element.Component),ba=n(2),ya=n.n(ba),_a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},va={base:{position:"absolute",userSelect:"none",MsUserSelect:"none"},top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},wa=function(e){return Object(ba.createElement)("div",{className:e.className,style:ga({},va.base,va[e.direction],e.replaceStyles||{}),onMouseDown:function(t){e.onResizeStart(t,e.direction)},onTouchStart:function(t){e.onResizeStart(t,e.direction)}},e.children)},ka={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},Ma={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"},La=function(e,t,n){return Math.max(Math.min(e,n),t)},Sa=function(e,t){return Math.round(e/t)*t},Ta=function(e,t){return t.reduce((function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t}))},Ea=function(e,t){return e.substr(e.length-t.length,t.length)===t},Ya=function(e){return"auto"===e.toString()||Ea(e.toString(),"px")||Ea(e.toString(),"%")||Ea(e.toString(),"vh")||Ea(e.toString(),"vw")||Ea(e.toString(),"vmax")||Ea(e.toString(),"vmin")?e.toString():e+"px"},xa=["style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio"],Da=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isResizing:!1,resizeCursor:"auto",width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0}},n.updateExtendsProps(e),n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),"undefined"!=typeof window&&(window.addEventListener("mouseup",n.onMouseUp),window.addEventListener("mousemove",n.onMouseMove),window.addEventListener("mouseleave",n.onMouseUp),window.addEventListener("touchmove",n.onMouseMove),window.addEventListener("touchend",n.onMouseUp)),n}return function(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)}(t,e),_a(t,[{key:"updateExtendsProps",value:function(e){this.extendsProps=Object.keys(e).reduce((function(t,n){return-1!==xa.indexOf(n)||(t[n]=e[n]),t}),{})}},{key:"getParentSize",value:function(){var e=this.base;if(!e)return{width:window.innerWidth,height:window.innerHeight};var t=!1,n=this.parentNode.style.flexWrap,r=e.style.minWidth;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var o={width:e.offsetWidth,height:e.offsetHeight};return e.style.position="absolute",t&&(this.parentNode.style.flexWrap=n),e.style.minWidth=r,o}},{key:"componentDidMount",value:function(){var e=this.size;this.setState({width:this.state.width||e.width,height:this.state.height||e.height});var t=this.parentNode;if(t instanceof HTMLElement&&!this.base){var n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.transform="scale(0, 0)",n.style.left="0",n.style.flex="0",n.classList?n.classList.add("__resizable_base__"):n.className+="__resizable_base__",t.appendChild(n)}}},{key:"componentWillReceiveProps",value:function(e){this.updateExtendsProps(e)}},{key:"componentWillUnmount",value:function(){if("undefined"!=typeof window){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseleave",this.onMouseUp),window.removeEventListener("touchmove",this.onMouseMove),window.removeEventListener("touchend",this.onMouseUp);var e=this.parentNode,t=this.base;if(!t||!e)return;if(!(e instanceof HTMLElement&&t instanceof Node))return;e.removeChild(t)}}},{key:"calculateNewSize",value:function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"}},{key:"onResizeStart",value:function(e,t){var n=0,r=0;if(e.nativeEvent instanceof MouseEvent){if(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof TouchEvent&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY);this.props.onResizeStart&&this.props.onResizeStart(e,t,this.resizable),this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.setState({original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,resizeCursor:window.getComputedStyle(e.target).cursor,direction:t})}},{key:"onMouseMove",value:function(e){if(this.state.isResizing){var t=e instanceof MouseEvent?e.clientX:e.touches[0].clientX,n=e instanceof MouseEvent?e.clientY:e.touches[0].clientY,r=this.state,o=r.direction,a=r.original,i=r.width,l=r.height,s=this.props,u=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,d=s.lockAspectRatioExtraWidth,p=this.props.scale||1,f=this.props,m=f.maxWidth,h=f.maxHeight,b=f.minWidth,y=f.minHeight,_=this.props.resizeRatio||1,g=this.getParentSize();if(m&&"string"==typeof m&&Ea(m,"%")){var v=Number(m.replace("%",""))/100;m=g.width*v}if(h&&"string"==typeof h&&Ea(h,"%")){var w=Number(h.replace("%",""))/100;h=g.height*w}if(b&&"string"==typeof b&&Ea(b,"%")){var k=Number(b.replace("%",""))/100;b=g.width*k}if(y&&"string"==typeof y&&Ea(y,"%")){var M=Number(y.replace("%",""))/100;y=g.height*M}m=void 0===m?void 0:Number(m),h=void 0===h?void 0:Number(h),b=void 0===b?void 0:Number(b),y=void 0===y?void 0:Number(y);var L="number"==typeof u?u:a.width/a.height,S=a.width,T=a.height;if(/right/i.test(o)&&(S=a.width+(t-a.x)*_/p,u&&(T=(S-d)/L+c)),/left/i.test(o)&&(S=a.width-(t-a.x)*_/p,u&&(T=(S-d)/L+c)),/bottom/i.test(o)&&(T=a.height+(n-a.y)*_/p,u&&(S=(T-c)*L+d)),/top/i.test(o)&&(T=a.height-(n-a.y)*_/p,u&&(S=(T-c)*L+d)),"parent"===this.props.bounds){var E=this.parentNode;if(E instanceof HTMLElement){var Y=E.getBoundingClientRect(),x=Y.left,D=Y.top,O=this.resizable.getBoundingClientRect(),C=O.left,j=O.top,P=E.offsetWidth+(x-C),R=E.offsetHeight+(D-j);m=m&&m<P?m:P,h=h&&h<R?h:R}}else if("window"===this.props.bounds){if("undefined"!=typeof window){var H=this.resizable.getBoundingClientRect(),A=H.left,F=H.top,z=window.innerWidth-A,N=window.innerHeight-F;m=m&&m<z?m:z,h=h&&h<N?h:N}}else if(this.props.bounds instanceof HTMLElement){var B=this.props.bounds.getBoundingClientRect(),I=B.left,W=B.top,U=this.resizable.getBoundingClientRect(),V=U.left,J=U.top;if(!(this.props.bounds instanceof HTMLElement))return;var G=this.props.bounds.offsetWidth+(I-V),q=this.props.bounds.offsetHeight+(W-J);m=m&&m<G?m:G,h=h&&h<q?h:q}var $=void 0===b?10:b,K=void 0===m||m<0?S:m,Q=void 0===y?10:y,Z=void 0===h||h<0?T:h;if(u){var X=(Q-c)*L+d,ee=(Z-c)*L+d,te=($-d)/L+c,ne=(K-d)/L+c,re=Math.max($,X),oe=Math.min(K,ee),ae=Math.max(Q,te),ie=Math.min(Z,ne);S=La(S,re,oe),T=La(T,ae,ie)}else S=La(S,$,K),T=La(T,Q,Z);this.props.grid&&(S=Sa(S,this.props.grid[0])),this.props.grid&&(T=Sa(T,this.props.grid[1])),this.props.snap&&this.props.snap.x&&(S=Ta(S,this.props.snap.x)),this.props.snap&&this.props.snap.y&&(T=Ta(T,this.props.snap.y));var le={width:S-a.width,height:T-a.height};if(i&&"string"==typeof i&&Ea(i,"%"))S=S/g.width*100+"%";if(l&&"string"==typeof l&&Ea(l,"%"))T=T/g.height*100+"%";this.setState({width:this.calculateNewSize(S,"width"),height:this.calculateNewSize(T,"height")}),this.props.onResize&&this.props.onResize(e,o,this.resizable,le)}}},{key:"onMouseUp",value:function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n){var a={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,a),this.props.size&&this.setState(this.props.size),this.setState({isResizing:!1,resizeCursor:"auto"})}}},{key:"updateSize",value:function(e){this.setState({width:e.width,height:e.height})}},{key:"renderResizer",value:function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,a=t.handleWrapperStyle,i=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var s=Object.keys(n).map((function(t){return!1!==n[t]?Object(ba.createElement)(wa,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},l&&l[t]?Object(ba.createElement)(l[t]):null):null}));return Object(ba.createElement)("span",{className:i,style:a},s)}},{key:"render",value:function(){var e=this,t=this.state.isResizing?ka:Ma;return Object(ba.createElement)("div",ga({ref:function(t){t&&(e.resizable=t)},style:ga({position:"relative"},t,this.props.style,this.sizeStyle,{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box"}),className:this.props.className},this.extendsProps),this.state.isResizing&&Object(ba.createElement)("div",{style:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:""+(this.state.resizeCursor||"auto"),opacity:"0",position:"fixed",zIndex:"9999",top:"0",left:"0",bottom:"0",right:"0"}}),this.props.children,this.renderResizer())}},{key:"parentNode",get:function(){return this.resizable.parentNode}},{key:"propsSize",get:function(){return this.props.size||this.props.defaultSize}},{key:"base",get:function(){var e=this.parentNode;if(e)for(var t=[].slice.call(e.children),n=0;n<t.length;n+=1){var r=t[n];if(r instanceof HTMLElement&&r.classList.contains("__resizable_base__"))return r}}},{key:"size",get:function(){var e=0,t=0;if("undefined"!=typeof window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}}},{key:"sizeStyle",get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&Ea(e.propsSize[t].toString(),"%")){if(Ea(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return Ya(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Ya(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Ya(t.height):n("height")}}}]),t}(ba.Component);Da.defaultProps={onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1};var Oa=Da;n(308),n(309);function Ca(e){return(Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ja(){return(ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Aa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=za(e);if(t){var o=za(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fa(this,n)}}function Fa(e,t){return!t||"object"!==Ca(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function za(e){return(za=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Na=wp.i18n.__,Ba=wp.element.Component,Ia=wp.blocks.registerBlockType,Wa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ha(e,t)}(i,e);var t,n,r,a=Aa(i);function i(){return Pa(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacerHeight,r=t.spacerDividerColor,a=e.className,i=e.setAttributes,l=e.toggleSelection;return[wp.element.createElement(la,ja({key:"ab-spacer-inspector-"+this.props.clientId},this.props)),wp.element.createElement(ha,ja({key:"ab-spacer-editor-"+this.props.clientId},this.props),wp.element.createElement(Oa,{className:o()(a,"ab-spacer-handle"),style:{color:r},size:{width:"100%",height:n},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"ab-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:function(){l(!1)},onResizeStop:function(e,t,r,o){i({spacerHeight:parseInt(n+o.height,10)}),l(!0)}}))]}}])&&Ra(t.prototype,n),r&&Ra(t,r),i}(Ba);function Ua(e){return(Ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Va(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ga(e,t){return(Ga=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ka(e);if(t){var o=Ka(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $a(this,n)}}function $a(e,t){return!t||"object"!==Ua(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ka(e){return(Ka=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ia("atomic-blocks/ab-spacer",{title:Na("Spacer","atomic-blocks"),description:Na("Add a spacer and divider between your blocks.","atomic-blocks"),icon:"image-flip-vertical",category:"atomic-blocks",keywords:[Na("spacer","atomic-blocks"),Na("divider","atomic-blocks"),Na("atomic","atomic-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"ab-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},ab_settings_data:{ab_spacer_spacerHeight:{title:Na("Spacer Height","atomic-blocks")},ab_spacer_spacerDivider:{title:Na("Add Divider","atomic-blocks")},ab_spacer_spacerDividerStyle:{title:Na("Divider Style","atomic-blocks")},ab_spacer_spacerDividerHeight:{title:Na("Divider Height","atomic-blocks")},ab_spacer_dividerColor:{title:Na("Divider Color","atomic-blocks")}},edit:Wa,save:function(e){var t=e.attributes.spacerHeight;return wp.element.createElement(ha,e,wp.element.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var Qa=wp.i18n.__,Za=wp.element.Component,Xa=wp.blockEditor.InspectorControls,ei=wp.components,ti=ei.PanelBody,ni=ei.RangeControl,ri=ei.ToggleControl,oi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ga(e,t)}(a,e);var t,n,r,o=qa(a);function a(e){return Va(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this;return wp.element.createElement(Xa,{key:"inspector"},wp.element.createElement(ti,null,wp.element.createElement(m,{id:"ab_accordion_accordionFontSize"},wp.element.createElement(ni,{label:Qa("Title Font Size","atomic-blocks"),value:this.props.attributes.accordionFontSize,onChange:function(t){return e.props.setAttributes({accordionFontSize:t})},min:14,max:24,step:1})),wp.element.createElement(m,{id:"ab_accordion_accordionOpen"},wp.element.createElement(ri,{label:Qa("Open by default","atomic-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}])&&Ja(t.prototype,n),r&&Ja(t,r),a}(Za);function ai(e){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function si(e,t){return(si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=di(e);if(t){var o=di(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ci(this,n)}}function ci(e,t){return!t||"object"!==ai(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function di(e){return(di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&si(e,t)}(i,e);var t,n,r,a=ui(i);function i(e){return ii(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return wp.element.createElement("div",{className:o()(this.props.className,this.props.attributes.accordionAlignment?"ab-align-"+this.props.attributes.accordionAlignment:void 0,"ab-block-accordion",this.props.attributes.accordionFontSize?"ab-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}])&&li(t.prototype,n),r&&li(t,r),i}(wp.element.Component);function fi(e){return(fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mi(){return(mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yi(e,t){return(yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vi(e);if(t){var o=vi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gi(this,n)}}function gi(e,t){return!t||"object"!==fi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vi(e){return(vi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wi=wp.i18n.__,ki=wp.element.Component,Mi=wp.blockEditor,Li=Mi.RichText,Si=Mi.AlignmentToolbar,Ti=Mi.BlockControls,Ei=Mi.InnerBlocks,Yi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yi(e,t)}(a,e);var t,n,r,o=_i(a);function a(){return hi(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this;return[wp.element.createElement(Ti,{key:"controls"},wp.element.createElement(Si,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),wp.element.createElement(oi,mi({key:"ab-accordion-inspector-"+this.props.clientId},this.props)),wp.element.createElement(pi,mi({key:"ab-accordion-"+this.props.clientId},this.props),wp.element.createElement(Li,{tagName:"p",placeholder:wi("Accordion Title","atomic-blocks"),value:this.props.attributes.accordionTitle,className:"ab-accordion-title",onChange:function(t){return e.props.setAttributes({accordionTitle:t})}}),wp.element.createElement("div",{className:"ab-accordion-text"},wp.element.createElement(Ei,null)))]}}])&&bi(t.prototype,n),r&&bi(t,r),a}(ki);function xi(e){return(xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ci(e,t){return(Ci=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ri(e);if(t){var o=Ri(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pi(this,n)}}function Pi(e,t){return!t||"object"!==xi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hi=wp.element.Component,Ai=wp.blockEditor,Fi=Ai.RichText,zi=Ai.InnerBlocks,Ni=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ci(e,t)}(a,e);var t,n,r,o=ji(a);function a(){return Di(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement(pi,this.props,wp.element.createElement("details",{open:this.props.attributes.accordionOpen},wp.element.createElement("summary",{className:"ab-accordion-title"},wp.element.createElement(Fi.Content,{value:this.props.attributes.accordionTitle})),wp.element.createElement("div",{className:"ab-accordion-text"},wp.element.createElement(zi.Content,null))))}}])&&Oi(t.prototype,n),r&&Oi(t,r),a}(Hi);function Bi(e){return(Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ui(e,t){return(Ui=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gi(e);if(t){var o=Gi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ji(this,n)}}function Ji(e,t){return!t||"object"!==Bi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gi(e){return(Gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ui(e,t)}(i,e);var t,n,r,a=Vi(i);function i(e){return Ii(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=e.accordionAlignment,n=e.accordionFontSize;return wp.element.createElement("div",{style:{},className:o()(this.props.className,t,"ab-block-accordion","ab-font-size-"+n)},this.props.children)}}])&&Wi(t.prototype,n),r&&Wi(t,r),i}(wp.element.Component);function $i(e){return($i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zi(e,t){return(Zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tl(e);if(t){var o=tl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return el(this,n)}}function el(e,t){return!t||"object"!==$i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tl(e){return(tl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nl=wp.element.Component,rl=wp.blockEditor,ol=rl.RichText,al=rl.InnerBlocks,il=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zi(e,t)}(a,e);var t,n,r,o=Xi(a);function a(){return Ki(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement(qi,this.props,wp.element.createElement("details",{open:this.props.attributes.accordionOpen},wp.element.createElement("summary",{className:"ab-accordion-title"},wp.element.createElement(ol.Content,{value:this.props.attributes.accordionTitle})),wp.element.createElement("div",{className:"ab-accordion-text"},wp.element.createElement(al.Content,null))))}}])&&Qi(t.prototype,n),r&&Qi(t,r),a}(nl),ll=[{attributes:{accordionTitle:{type:"array",selector:".ab-accordion-title",source:"children"},accordionText:{type:"array",selector:".ab-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:function(e){return wp.element.createElement(il,e)}}],sl=(n(310),n(311),wp.i18n.__),ul=(wp.element.Component,{accordionTitle:{type:"array",selector:".ab-accordion-title",source:"children"},accordionText:{type:"array",selector:".ab-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}});function cl(e){return(cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fl(e,t){return(fl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ml(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bl(e);if(t){var o=bl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hl(this,n)}}function hl(e,t){return!t||"object"!==cl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bl(e){return(bl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-accordion",{title:sl("Accordion","atomic-blocks"),description:sl("Add accordion block with a title and text.","atomic-blocks"),icon:"editor-ul",category:"atomic-blocks",keywords:[sl("accordion","atomic-blocks"),sl("list","atomic-blocks"),sl("atomic","atomic-blocks")],attributes:ul,ab_settings_data:{ab_accordion_accordionFontSize:{title:sl("Title Font Size","atomic-blocks")},ab_accordion_accordionOpen:{title:sl("Open by default","atomic-blocks")}},edit:function(e){return wp.element.createElement(Yi,e)},save:function(e){return wp.element.createElement(Ni,e)},deprecated:ll});var yl=wp.i18n.__,_l=wp.element.Component,gl=wp.blockEditor,vl=gl.InspectorControls,wl=gl.PanelColorSettings,kl=gl.MediaUpload,Ml=wp.components,Ll=Ml.Button,Sl=Ml.Icon,Tl=Ml.PanelBody,El=Ml.RangeControl,Yl=Ml.SelectControl,xl=Ml.ToggleControl,Dl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fl(e,t)}(a,e);var t,n,r,o=ml(a);function a(e){return dl(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.buttonBackgroundColor,r=t.buttonTextColor,o=t.buttonSize,a=t.buttonShape,i=t.buttonTarget,l=t.titleFontSize,s=t.ctaTextFontSize,u=t.ctaBackgroundColor,c=t.ctaTextColor,d=t.dimRatio,p=t.imgURL,f=t.imgID,h=this.props.setAttributes,b=[{value:"ab-button-size-small",label:yl("Small")},{value:"ab-button-size-medium",label:yl("Medium")},{value:"ab-button-size-large",label:yl("Large")},{value:"ab-button-size-extralarge",label:yl("Extra Large")}],y=[{value:"ab-button-shape-square",label:yl("Square")},{value:"ab-button-shape-rounded",label:yl("Rounded Square")},{value:"ab-button-shape-circular",label:yl("Circular")}],_=function(){h({imgID:null,imgURL:null,imgAlt:null})};return wp.element.createElement(vl,{key:"inspector"},wp.element.createElement(m,{id:"ab_cta_textOptions"},wp.element.createElement(Tl,{title:yl("Text Options","atomic-blocks"),initialOpen:!0},wp.element.createElement(El,{label:yl("Title Font Size","atomic-blocks"),value:l,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),wp.element.createElement(El,{label:yl("Text Font Size","atomic-blocks"),value:s,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),wp.element.createElement(wl,{title:yl("Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return h({ctaTextColor:e})},label:yl("Text Color","atomic-blocks")}]}))),wp.element.createElement(m,{id:"ab_cta_backgroundOptions"},wp.element.createElement(Tl,{title:yl("Background Options","atomic-blocks"),initialOpen:!1},wp.element.createElement("p",null,yl("Select a background image:","atomic-blocks")),wp.element.createElement(kl,{onSelect:function(e){h({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:f,render:function(e){var t=e.open;return wp.element.createElement("div",null,wp.element.createElement(Ll,{className:"ab-cta-inspector-media",label:yl("Edit image","atomic-blocks"),onClick:t},wp.element.createElement(Sl,{icon:"format-image"}),yl("Select Image","atomic-blocks")),p&&!!p.length&&wp.element.createElement(Ll,{className:"ab-cta-inspector-media",label:yl("Remove Image","atomic-blocks"),onClick:_},wp.element.createElement(Sl,{icon:"dismiss"}),yl("Remove","atomic-blocks")))}}),p&&!!p.length&&wp.element.createElement(El,{label:yl("Image Opacity","atomic-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),wp.element.createElement(wl,{title:yl("Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return h({ctaBackgroundColor:e})},label:yl("Overlay Color","atomic-blocks")}]}))),wp.element.createElement(m,{id:"ab_cta_buttonOptions"},wp.element.createElement(Tl,{title:yl("Button Options","atomic-blocks"),initialOpen:!1},wp.element.createElement(xl,{label:yl("Open link in new window","atomic-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),wp.element.createElement(Yl,{label:yl("Button Size","atomic-blocks"),value:o,options:b.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonSize:t})}}),wp.element.createElement(Yl,{label:yl("Button Shape","atomic-blocks"),value:a,options:y.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonShape:t})}}),wp.element.createElement(wl,{title:yl("Button Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return h({buttonBackgroundColor:e})},label:yl("Button Color","atomic-blocks")}]}),wp.element.createElement(wl,{title:yl("Button Text Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return h({buttonTextColor:e})},label:yl("Button Text Color","atomic-blocks")}]}))))}}])&&pl(t.prototype,n),r&&pl(t,r),a}(_l);function Ol(e){return(Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rl(e,t){return(Rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fl(e);if(t){var o=Fl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Al(this,n)}}function Al(e,t){return!t||"object"!==Ol(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fl(e){return(Fl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rl(e,t)}(i,e);var t,n,r,a=Hl(i);function i(e){return jl(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,i=t.ctaBackgroundColor,l=(t.ctaTextColor,o()([this.props.className,"ab-block-cta"],(Cl(e={},"ab-font-size-"+r,r),Cl(e,"align"+a,a),e))),s={backgroundColor:i||void 0,textAlign:n||void 0};return wp.element.createElement("div",{style:s,className:l||void 0},this.props.children)}}])&&Pl(t.prototype,n),r&&Pl(t,r),i}(wp.element.Component);function Nl(e){return(Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ul(e,t){return(Ul=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gl(e);if(t){var o=Gl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jl(this,n)}}function Jl(e,t){return!t||"object"!==Nl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gl(e){return(Gl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ql=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ul(e,t)}(i,e);var t,n,r,a=Vl(i);function i(e){return Il(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,i=t.ctaBackgroundColor,l=(t.ctaTextColor,o()([this.props.className,"ab-block-cta"],(Bl(e={},"ab-font-size-"+r,r),Bl(e,"align"+a,a),e))),s={backgroundColor:i||void 0,textAlign:n||void 0};return wp.element.createElement("div",{style:s,className:l||void 0},this.props.children)}}])&&Wl(t.prototype,n),r&&Wl(t,r),i}(wp.element.Component);function $l(e){return($l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ql(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zl(e,t){return(Zl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ts(e);if(t){var o=ts(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return es(this,n)}}function es(e,t){return!t||"object"!==$l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ts(e){return(ts=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ns=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zl(e,t)}(i,e);var t,n,r,a=Xl(i);function i(e){return Kl(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r=this.props.attributes,a=(r.buttonText,r.buttonUrl,r.buttonAlignment),i=(r.buttonBackgroundColor,r.buttonTextColor,r.buttonSize,r.buttonShape,r.buttonTarget,r.ctaTitle,r.ctaText,r.ctaTitleFontSize,r.ctaTextFontSize),l=(r.ctaWidth,r.ctaBackgroundColor),s=(r.ctaTextColor,o()([this.props.className,"ab-block-cta"],(n=i,(t="ab-font-size-"+i)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e))),u={backgroundColor:l||void 0,textAlign:a||void 0};return wp.element.createElement("div",{style:u,className:s||void 0},this.props.children)}}])&&Ql(t.prototype,n),r&&Ql(t,r),i}(wp.element.Component);function rs(e){return(rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function as(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function is(e,t){return(is=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=us(e);if(t){var o=us(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ss(this,n)}}function ss(e,t){return!t||"object"!==rs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function us(e){return(us=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&is(e,t)}(i,e);var t,n,r,a=ls(i);function i(e){return os(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=e.ctaWidth,a=e.ctaBackgroundColor;return e.ctaTextColor,wp.element.createElement("div",{style:{backgroundColor:a,textAlign:t},className:o()(this.props.className,"align".concat(r),"ab-block-cta","ab-font-size-"+n)},this.props.children)}}])&&as(t.prototype,n),r&&as(t,r),i}(wp.element.Component);function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fs=wp.blockEditor.RichText,ms=[{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".ab-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".ab-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget,c=t.ctaTitle,d=t.ctaText,p=t.ctaTitleFontSize,f=t.titleFontSize,m=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),h=t.imgURL,b=(t.imgID,t.imgAlt),y=t.dimRatio;return wp.element.createElement(ql,e,h&&!!h.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",hs(y),{"has-background-dim":0!==y}),src:h,alt:b})),wp.element.createElement("div",{className:"ab-cta-content"},c&&wp.element.createElement(fs.Content,{tagName:"h2",className:o()("ab-cta-title","ab-font-size-"+f),style:{color:m},value:c}),d&&wp.element.createElement(fs.Content,{tagName:"div",className:o()("ab-cta-text","ab-font-size-"+p),style:{color:m},value:d})),n&&wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement("a",{href:r,target:u?"_blank":"_self",rel:u?"noopener noreferrer":null,className:o()("ab-button",s,l),style:{color:i,backgroundColor:a}},wp.element.createElement(fs.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".ab-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".ab-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget,c=t.ctaTitle,d=t.ctaText,p=t.ctaTitleFontSize,f=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),h=t.imgURL,b=(t.imgID,t.imgAlt),y=t.dimRatio;return wp.element.createElement(ns,e,h&&!!h.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",hs(y),{"has-background-dim":0!==y}),src:h,alt:b})),wp.element.createElement("div",{className:"ab-cta-content"},c&&wp.element.createElement(fs.Content,{tagName:"h2",className:o()("ab-cta-title","ab-font-size-"+p),style:{color:m},value:c}),d&&wp.element.createElement(fs.Content,{tagName:"div",className:o()("ab-cta-text","ab-font-size-"+f),style:{color:m},value:d})),n&&wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement("a",{href:r,target:u?"_blank":"_self",rel:u?"noopener noreferrer":null,className:o()("ab-button",s,l),style:{color:i,backgroundColor:a}},wp.element.createElement(fs.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".ab-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".ab-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string",default:"#f2f2f2"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget,c=t.ctaTitle,d=t.ctaText,p=t.ctaTitleFontSize,f=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),h=t.imgURL,b=(t.imgID,t.imgAlt),y=t.dimRatio;return wp.element.createElement(cs,e,h&&!!h.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",hs(y),{"has-background-dim":0!==y}),src:h,alt:b})),wp.element.createElement("div",{className:"ab-cta-content"},c&&wp.element.createElement(fs.Content,{tagName:"h2",className:o()("ab-cta-title","ab-font-size-"+p),style:{color:m},value:c}),d&&wp.element.createElement(fs.Content,{tagName:"div",className:o()("ab-cta-text","ab-font-size-"+f),style:{color:m},value:d})),n&&wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement("a",{href:r,target:u?"_blank":"_self",className:o()("ab-button",s,l),style:{color:i,backgroundColor:a}},wp.element.createElement(fs.Content,{value:n}))))},migrate:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){ps(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function hs(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(312),n(313);function bs(e){return(bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ys(){return(ys=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(n),!0).forEach((function(t){vs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ws(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ks(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ms(e,t){return(Ms=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ts(e);if(t){var o=Ts(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ss(this,n)}}function Ss(e,t){return!t||"object"!==bs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ts(e){return(Ts=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Es=wp.i18n.__,Ys=wp.element.Component,xs=wp.blocks.registerBlockType,Ds=wp.blockEditor,Os=Ds.AlignmentToolbar,Cs=Ds.URLInput,js=Ds.BlockControls,Ps=Ds.BlockAlignmentToolbar,Rs=Ds.RichText,Hs=wp.components,As=Hs.Button,Fs=Hs.Dashicon,zs=Hs.Icon,Ns=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ms(e,t)}(i,e);var t,n,r,a=Ls(i);function i(){return ws(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonAlignment,i=t.buttonBackgroundColor,l=t.buttonTextColor,s=t.buttonSize,u=t.buttonShape,c=t.ctaTitle,d=t.ctaText,p=t.titleFontSize,f=t.ctaTextFontSize,m=t.ctaWidth,h=t.ctaTextColor,b=t.imgURL,y=t.imgAlt,_=t.dimRatio,g=e.isSelected,v=e.setAttributes;return[wp.element.createElement(js,{key:"ab-cta-block-controls-"+this.props.clientId},wp.element.createElement(Ps,{value:m,onChange:function(e){return v({ctaWidth:e})},controls:["center","wide","full"]}),wp.element.createElement(Os,{value:a,onChange:function(e){v({buttonAlignment:e})}})),wp.element.createElement(Dl,ys({key:"ab-cta-inspector-"+this.props.clientId},gs({setAttributes:v},this.props))),wp.element.createElement(zl,ys({key:"ab-cta-"+this.props.clientId},this.props),b&&!!b.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",Bs(_),{"has-background-dim":0!==_}),src:b,alt:y})),wp.element.createElement("div",{className:"ab-cta-content"},wp.element.createElement(Rs,{tagName:"h2",placeholder:Es("Call-To-Action Title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:c,className:o()("ab-cta-title","ab-font-size-"+p),style:{color:h},onChange:function(e){return v({ctaTitle:e})}}),wp.element.createElement(Rs,{tagName:"div",multiline:"p",placeholder:Es("Call To Action Text","atomic-blocks"),keepPlaceholderOnFocus:!0,value:d,className:o()("ab-cta-text","ab-font-size-"+f),style:{color:h},onChange:function(e){return v({ctaText:e})}})),wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement(Rs,{tagName:"span",placeholder:Es("Button text...","atomic-blocks"),value:n,allowedFormats:[],className:o()("ab-button",u,s),style:{color:l,backgroundColor:i},onChange:function(e){return v({buttonText:e})}}),g&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link ab-button-".concat(a),onSubmit:function(e){return e.preventDefault()},style:{textAlign:a}},wp.element.createElement(Fs,{icon:"admin-links"}),wp.element.createElement(Cs,{className:"button-url",value:r,onChange:function(e){return v({buttonUrl:e})}}),wp.element.createElement(As,{label:Es("Apply","atomic-blocks"),type:"submit"},wp.element.createElement(zs,{icon:"editor-break"})))))]}}])&&ks(t.prototype,n),r&&ks(t,r),i}(Ys);function Bs(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Is(e){return(Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ws(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Us(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vs(e,t){return(Vs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Js(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qs(e);if(t){var o=qs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gs(this,n)}}function Gs(e,t){return!t||"object"!==Is(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qs(e){return(qs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}xs("atomic-blocks/ab-cta",{title:Es("Call To Action","atomic-blocks"),description:Es("Add a call to action section with a title, text, and a button.","atomic-blocks"),icon:"megaphone",category:"atomic-blocks",keywords:[Es("call to action","atomic-blocks"),Es("cta","atomic-blocks"),Es("atomic","atomic-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".ab-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".ab-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},ab_settings_data:{ab_cta_textOptions:{title:Es("Text Options","atomic-blocks")},ab_cta_backgroundOptions:{title:Es("Background Options","atomic-blocks")},ab_cta_buttonOptions:{title:Es("Button Options","atomic-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:Ns,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,u=t.buttonTarget,c=t.ctaTitle,d=t.ctaText,p=t.ctaTitleFontSize,f=t.titleFontSize,m=t.ctaTextColor,h=t.imgURL,b=t.imgAlt,y=t.dimRatio;return wp.element.createElement(zl,e,h&&!!h.length&&wp.element.createElement("div",{className:"ab-cta-image-wrap"},wp.element.createElement("img",{className:o()("ab-cta-image",Bs(y),{"has-background-dim":0!==y}),src:h,alt:b})),wp.element.createElement("div",{className:"ab-cta-content"},c&&wp.element.createElement(Rs.Content,{tagName:"h2",className:o()("ab-cta-title","ab-font-size-"+f),style:{color:m},value:c}),d&&wp.element.createElement(Rs.Content,{tagName:"div",className:o()("ab-cta-text","ab-font-size-"+p),style:{color:m},value:d})),n&&wp.element.createElement("div",{className:"ab-cta-button"},wp.element.createElement("a",{href:r,target:u?"_blank":"_self",rel:"noopener noreferrer",className:o()("ab-button",s,l),style:{color:i,backgroundColor:a}},wp.element.createElement(Rs.Content,{value:n}))))},deprecated:ms});var $s=wp.i18n.__,Ks=wp.element.Component,Qs=wp.blockEditor.InspectorControls,Zs=wp.components,Xs=Zs.PanelBody,eu=Zs.SelectControl,tu=Zs.ToggleControl,nu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vs(e,t)}(a,e);var t,n,r,o=Js(a);function a(){return Ws(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=[{value:"ab-share-icon-text",label:$s("Icon and Text","atomic-blocks")},{value:"ab-share-icon-only",label:$s("Icon Only","atomic-blocks")},{value:"ab-share-text-only",label:$s("Text Only","atomic-blocks")}],n=[{value:"ab-share-shape-square",label:$s("Square","atomic-blocks")},{value:"ab-share-shape-rounded",label:$s("Rounded Square","atomic-blocks")},{value:"ab-share-shape-circular",label:$s("Circular","atomic-blocks")}],r=[{value:"ab-share-size-small",label:$s("Small","atomic-blocks")},{value:"ab-share-size-medium",label:$s("Medium","atomic-blocks")},{value:"ab-share-size-large",label:$s("Large","atomic-blocks")}],o=[{value:"ab-share-color-standard",label:$s("Standard","atomic-blocks")},{value:"ab-share-color-social",label:$s("Social Colors","atomic-blocks")}];return wp.element.createElement(Qs,{key:"inspector"},wp.element.createElement(m,{id:"ab_sharing_links"},wp.element.createElement(Xs,null,wp.element.createElement("p",null,$s("Enable or disable the sharing links you want to output.")),wp.element.createElement(tu,{label:$s("Twitter","atomic-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),wp.element.createElement(tu,{label:$s("Facebook","atomic-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),wp.element.createElement(tu,{label:$s("Pinterest","atomic-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),wp.element.createElement(tu,{label:$s("LinkedIn","atomic-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),wp.element.createElement(tu,{label:$s("Reddit","atomic-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),wp.element.createElement(tu,{label:$s("Email","atomic-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),wp.element.createElement(Xs,{title:$s("Sharing Button Options","atomic-blocks"),initialOpen:!1},wp.element.createElement(m,{id:"ab_sharing_shareButtonStyle"},wp.element.createElement(eu,{label:$s("Button Style","atomic-blocks"),value:this.props.attributes.shareButtonStyle,options:t.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonStyle:t})}})),wp.element.createElement(m,{id:"ab_sharing_shareButtonShape"},wp.element.createElement(eu,{label:$s("Button Shape","atomic-blocks"),value:this.props.attributes.shareButtonShape,options:n.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonShape:t})}})),wp.element.createElement(m,{id:"ab_sharing_shareButtonSize"},wp.element.createElement(eu,{label:$s("Button Size","atomic-blocks"),value:this.props.attributes.shareButtonSize,options:r.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonSize:t})}})),wp.element.createElement(m,{id:"ab_sharing_shareButtonColor"},wp.element.createElement(eu,{label:$s("Button Color","atomic-blocks"),value:this.props.attributes.shareButtonColor,options:o.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonColor:t})}}))))}}])&&Us(t.prototype,n),r&&Us(t,r),a}(Ks);function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ou(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iu(e,t){return(iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uu(e);if(t){var o=uu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return su(this,n)}}function su(e,t){return!t||"object"!==ru(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uu(e){return(uu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&iu(e,t)}(i,e);var t,n,r,a=lu(i);function i(){return ou(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return wp.element.createElement("div",{className:o()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"ab-align-"+this.props.attributes.shareAlignment:void 0,"ab-block-sharing")},this.props.children)}}])&&au(t.prototype,n),r&&au(t,r),i}(wp.element.Component);function du(e){return(du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pu(){return(pu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function fu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hu(e,t){return(hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_u(e);if(t){var o=_u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yu(this,n)}}function yu(e,t){return!t||"object"!==du(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _u(e){return(_u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gu=wp.i18n.__,vu=wp.element.Component,wu=wp.blockEditor,ku=wu.AlignmentToolbar,Mu=wu.BlockControls,Lu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hu(e,t)}(a,e);var t,n,r,o=bu(a);function a(){return fu(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this;return[wp.element.createElement(Mu,{key:"controls"},wp.element.createElement(ku,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),wp.element.createElement(nu,pu({key:"ab-share-inspector-"+this.props.clientId},this.props)),wp.element.createElement(cu,pu({key:"ab-share-links-"+this.props.clientId},this.props),wp.element.createElement("ul",{className:"ab-share-list"},this.props.attributes.twitter&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-twitter"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on Twitter","atomic-blocks")))),this.props.attributes.facebook&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-facebook"},wp.element.createElement("i",{className:"fab fa-facebook-f"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on Facebook","atomic-blocks")))),this.props.attributes.pinterest&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-pinterest"},wp.element.createElement("i",{className:"fab fa-pinterest-p"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on Pinterest","atomic-blocks")))),this.props.attributes.linkedin&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-linkedin"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on LinkedIn","atomic-blocks")))),this.props.attributes.reddit&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-reddit"},wp.element.createElement("i",{className:"fab fa-reddit-alien"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share on reddit","atomic-blocks")))),this.props.attributes.email&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"ab-share-email"},wp.element.createElement("i",{className:"fas fa-envelope"}),wp.element.createElement("span",{className:"ab-social-text"},gu("Share via Email","atomic-blocks"))))))]}}])&&mu(t.prototype,n),r&&mu(t,r),a}(vu),Su=(n(314),n(315),wp.i18n.__);(0,wp.blocks.registerBlockType)("atomic-blocks/ab-sharing",{title:Su("Sharing","atomic-blocks"),description:Su("Add sharing buttons to your posts and pages.","atomic-blocks"),icon:"admin-links",category:"atomic-blocks",keywords:[Su("sharing","atomic-blocks"),Su("social","atomic-blocks"),Su("atomic","atomic-blocks")],ab_settings_data:{ab_sharing_links:{title:Su("Sharing Links","atomic-blocks")},ab_sharing_shareButtonStyle:{title:Su("Button Style","atomic-blocks")},ab_sharing_shareButtonShape:{title:Su("Button Shape","atomic-blocks")},ab_sharing_shareButtonSize:{title:Su("Button Size","atomic-blocks")},ab_sharing_shareButtonColor:{title:Su("Button Color","atomic-blocks")}},edit:function(e){return wp.element.createElement(Lu,e)},save:function(){return null}});var Tu=n(36),Eu=n.n(Tu),Yu=n(37),xu=n.n(Yu),Du=n(1),Ou=n.n(Du),Cu=n(38),ju=n.n(Cu),Pu=n(3),Ru=n.n(Pu);function Hu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Au=function(e,t){var n;void 0===t&&(t=Hu);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}},Fu=n(195),zu=n.n(Fu);var Nu=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Bu=function(e){function t(e,t,r){var o=t.trim().split(m);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var l=0;for(e=0===i?"":e[0]+" ";l<a;++l)t[l]=n(e,t[l],r).trim();break;default:var s=l=0;for(t=[];l<a;++l)for(var u=0;u<i;++u)t[s++]=n(e[u]+" ",o[l],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",l=2*t+3*n+4*a;if(944===l){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===x||2===x&&o(s,1)?"-webkit-"+s+s:s}if(0===x||2===x&&!o(i,1))return i;switch(l){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(s=i.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(g,"tb");break;case 232:s=i.replace(g,"tb-rl");break;case 220:s=i.replace(g,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,l=(s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(k,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(k,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===L.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),j(2!==t?r:r.replace(M,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,l,u,c){for(var d,p=0,f=t;p<C;++p)switch(d=O[p].call(s,e,f,n,r,o,a,i,l,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(j=null,e?"function"!=typeof e?x=1:(x=2,j=e):x=0),l}function s(e,n){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<C){var s=i(-1,n,l,l,E,T,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var d=function e(n,l,s,d,p){for(var f,m,h,g,w,k=0,M=0,L=0,S=0,O=0,j=0,R=h=f=0,H=0,A=0,F=0,z=0,N=s.length,B=N-1,I="",W="",U="",V="";H<N;){if(m=s.charCodeAt(H),H===B&&0!==M+S+L+k&&(0!==M&&(m=47===M?10:47),S=L=k=0,N++,B++),0===M+S+L+k){if(H===B&&(0<A&&(I=I.replace(c,"")),0<I.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:I+=s.charAt(H)}m=59}switch(m){case 123:for(f=(I=I.trim()).charCodeAt(0),h=1,z=++H;H<N;){switch(m=s.charCodeAt(H)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(H+1)){case 42:case 47:e:{for(R=H+1;R<B;++R)switch(s.charCodeAt(R)){case 47:if(42===m&&42===s.charCodeAt(R-1)&&H+2!==R){H=R+1;break e}break;case 10:if(47===m){H=R+1;break e}}H=R}}break;case 91:m++;case 40:m++;case 34:case 39:for(;H++<B&&s.charCodeAt(H)!==m;);}if(0===h)break;H++}switch(h=s.substring(z,H),0===f&&(f=(I=I.replace(u,"").trim()).charCodeAt(0)),f){case 64:switch(0<A&&(I=I.replace(c,"")),m=I.charCodeAt(1)){case 100:case 109:case 115:case 45:A=l;break;default:A=D}if(z=(h=e(l,A,h,m,p+1)).length,0<C&&(w=i(3,h,A=t(D,I,F),l,E,T,z,m,p,d),I=A.join(""),void 0!==w&&0===(z=(h=w.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:I=I.replace(v,a);case 100:case 109:case 45:h=I+"{"+h+"}";break;case 107:h=(I=I.replace(b,"$1 $2"))+"{"+h+"}",h=1===x||2===x&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=I+h,112===d&&(W+=h,h="")}else h="";break;default:h=e(l,t(l,I,F),h,d,p+1)}U+=h,h=F=A=R=f=0,I="",m=s.charCodeAt(++H);break;case 125:case 59:if(1<(z=(I=(0<A?I.replace(c,""):I).trim()).length))switch(0===R&&(f=I.charCodeAt(0),45===f||96<f&&123>f)&&(z=(I=I.replace(" ",":")).length),0<C&&void 0!==(w=i(1,I,l,n,E,T,W.length,d,p,d))&&0===(z=(I=w.trim()).length)&&(I="\0\0"),f=I.charCodeAt(0),m=I.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=I+s.charAt(H);break}default:58!==I.charCodeAt(z-1)&&(W+=r(I,f,m,I.charCodeAt(2)))}F=A=R=f=0,I="",m=s.charCodeAt(++H)}}switch(m){case 13:case 10:47===M?M=0:0===1+f&&107!==d&&0<I.length&&(A=1,I+="\0"),0<C*P&&i(0,I,l,n,E,T,W.length,d,p,d),T=1,E++;break;case 59:case 125:if(0===M+S+L+k){T++;break}default:switch(T++,g=s.charAt(H),m){case 9:case 32:if(0===S+k+M)switch(O){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+M+k&&(A=F=1,g="\f"+g);break;case 108:if(0===S+M+k+Y&&0<R)switch(H-R){case 2:112===O&&58===s.charCodeAt(H-3)&&(Y=O);case 8:111===j&&(Y=j)}break;case 58:0===S+M+k&&(R=H);break;case 44:0===M+L+S+k&&(A=1,g+="\r");break;case 34:case 39:0===M&&(S=S===m?0:0===S?m:S);break;case 91:0===S+M+L&&k++;break;case 93:0===S+M+L&&k--;break;case 41:0===S+M+k&&L--;break;case 40:if(0===S+M+k){if(0===f)switch(2*O+3*j){case 533:break;default:f=1}L++}break;case 64:0===M+L+S+k+R+h&&(h=1);break;case 42:case 47:if(!(0<S+k+L))switch(M){case 0:switch(2*m+3*s.charCodeAt(H+1)){case 235:M=47;break;case 220:z=H,M=42}break;case 42:47===m&&42===O&&z+2!==H&&(33===s.charCodeAt(z+2)&&(W+=s.substring(z,H+1)),g="",M=0)}}0===M&&(I+=g)}j=O,O=m,H++}if(0<(z=W.length)){if(A=l,0<C&&(void 0!==(w=i(2,W,A,n,E,T,z,d,p,d))&&0===(W=w).length))return V+W+U;if(W=A.join(",")+"{"+W+"}",0!=x*Y){switch(2!==x||o(W,2)||(Y=0),Y){case 111:W=W.replace(_,":-moz-$1")+W;break;case 112:W=W.replace(y,"::-webkit-input-$1")+W.replace(y,"::-moz-$1")+W.replace(y,":-ms-input-$1")+W}Y=0}}return V+W+U}(D,l,n,0,0);return 0<C&&(void 0!==(s=i(-2,d,l,l,E,T,d.length,0,0,0))&&(d=s)),"",Y=0,T=E=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,_=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,k=/-self|flex-/g,M=/[^]*?(:[rp][el]a[\w-]+)[^]*/,L=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,T=1,E=1,Y=0,x=1,D=[],O=[],C=0,j=null,P=0;return s.use=function e(t){switch(t){case void 0:case null:C=O.length=0;break;default:if("function"==typeof t)O[C++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else P=0|!!t}return e},s.set=l,void 0!==e&&l(e),s};function Iu(e){e&&Wu.current.insert(e+"}")}var Wu={current:null},Uu=function(e,t,n,r,o,a,i,l,s,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Wu.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return Wu.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Iu)}},Vu=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Bu(t);var o,a={};o=e.container||document.head;var i,l=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(l,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(Uu),i=function(e,t,n,o){var a=t.name;Wu.current=n,r(e,t.styles),o&&(s.inserted[a]=!0)};var s={key:n,sheet:new Nu({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return s};function Ju(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Gu=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var qu=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},$u={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ku=/[A-Z]|^ms/g,Qu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zu=function(e){return 45===e.charCodeAt(1)},Xu=function(e){return null!=e&&"boolean"!=typeof e},ec=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Zu(e)?e:e.replace(Ku,"-$&").toLowerCase()})),tc=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Qu,(function(e,t,n){return rc={name:t,styles:n,next:rc},t}))}return 1===$u[e]||Zu(e)||"number"!=typeof t||0===t?t:t+"px"};function nc(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return rc={name:n.name,styles:n.styles,next:rc},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)rc={name:o.name,styles:o.styles,next:rc},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nc(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Xu(i)&&(r+=ec(a)+":"+tc(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=nc(e,t,i,!1);switch(a){case"animation":case"animationName":r+=ec(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Xu(i[s])&&(r+=ec(a)+":"+tc(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=rc,i=n(e);return rc=a,nc(e,t,i,r)}break;case"string":}if(null==t)return n;var l=t[n];return void 0===l||r?n:l}var rc,oc=/label:\s*([^\s;\n{]+)\s*;/g;var ac=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";rc=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=nc(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=nc(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);oc.lastIndex=0;for(var l,s="";null!==(l=oc.exec(o));)s+="-"+l[1];return{name:qu(o)+s,styles:o,next:rc}};var ic=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ac(t)},lc=Object(ba.createContext)("undefined"!=typeof HTMLElement?Vu():null),sc=Object(ba.createContext)({}),uc=lc.Provider,cc=function(e){return Object(ba.forwardRef)((function(t,n){return Object(ba.createElement)(lc.Consumer,null,(function(r){return e(t,r,n)}))}))},dc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pc=Object.prototype.hasOwnProperty,fc=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var a=t[dc],i=[o],l="";"string"==typeof t.className?l=Ju(e.registered,i,t.className):null!=t.className&&(l=t.className+" ");var s=ac(i);Gu(e,s,"string"==typeof a);l+=e.key+"-"+s.name;var u={};for(var c in t)pc.call(t,c)&&"css"!==c&&c!==dc&&(u[c]=t[c]);return u.ref=r,u.className=l,Object(ba.createElement)(a,u)},mc=cc((function(e,t,n){return"function"==typeof e.css?Object(ba.createElement)(sc.Consumer,null,(function(r){return fc(t,e,r,n)})):fc(t,e,null,n)}));var hc=function(e,t){var n=arguments;if(null==t||!pc.call(t,"css"))return ba.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=mc;var a={};for(var i in t)pc.call(t,i)&&(a[i]=t[i]);a[dc]=e,o[1]=a;for(var l=2;l<r;l++)o[l]=n[l];return ba.createElement.apply(null,o)},bc=(ba.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var l in i="",a)a[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o});function yc(e,t,n){var r=[],o=Ju(e,r,n);return r.length<2?n:o+t(r)}var _c=cc((function(e,t){return Object(ba.createElement)(sc.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=ac(n,t.registered);return Gu(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return yc(t.registered,r,bc(n))},theme:n},a=e.children(o);return!0,a}))})),gc=n(12),vc=n(13),wc=n.n(vc),kc=function(){};function Mc(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Lc(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push(""+Mc(e,o));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Sc=function(e){return Array.isArray(e)?e.filter(Boolean):"object"==typeof e&&null!==e?[e]:[]};function Tc(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ec(e){return Tc(e)?window.pageYOffset:e.scrollTop}function Yc(e,t){Tc(e)?window.scrollTo(0,t):e.scrollTop=t}function xc(e,t,n,r){void 0===n&&(n=200),void 0===r&&(r=kc);var o=Ec(e),a=t-o,i=0;!function t(){var l,s=a*((l=(l=i+=10)/n-1)*l*l+1)+o;Yc(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function Dc(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Oc=n(35),Cc=n.n(Oc);function jc(){return(jc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Rc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,f=d.height,m=d.top,h=n.offsetParent.getBoundingClientRect().top,b=window.innerHeight,y=Ec(s),_=parseInt(getComputedStyle(n).marginBottom,10),g=parseInt(getComputedStyle(n).marginTop,10),v=h-g,w=b-m,k=v+y,M=c-y-m,L=p-b+y+_,S=y+m-g;switch(o){case"auto":case"bottom":if(w>=f)return{placement:"bottom",maxHeight:t};if(M>=f&&!i)return a&&xc(s,L,160),{placement:"bottom",maxHeight:t};if(!i&&M>=r||i&&w>=r)return a&&xc(s,L,160),{placement:"bottom",maxHeight:i?w-_:M-_};if("auto"===o||i){var T=t,E=i?v:k;return E>=r&&(T=Math.min(E-_-l.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return Yc(s,L),{placement:"bottom",maxHeight:t};break;case"top":if(v>=f)return{placement:"top",maxHeight:t};if(k>=f&&!i)return a&&xc(s,S,160),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&v>=r){var Y=t;return(!i&&k>=r||i&&v>=r)&&(Y=i?v-g:k-g),a&&xc(s,S,160),{placement:"top",maxHeight:Y}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+o+'".')}return u}var Hc=function(e){return"auto"===e?"bottom":e},Ac=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,l=n.menuShouldScrollIntoView,s=n.theme,u=t.context.getPortalPlacement;if(e){var c="fixed"===i,d=Rc({maxHeight:o,menuEl:e,minHeight:r,placement:a,shouldScroll:l&&!c,isFixedPosition:c,theme:s});u&&u(d),t.setState(d)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||Hc(e);return jc({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return Pc(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(ba.Component);Ac.contextTypes={getPortalPlacement:wc.a.func};var Fc=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},zc=Fc,Nc=Fc,Bc=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",jc({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Bc.defaultProps={children:"No options"};var Ic=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",jc({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Ic.defaultProps={children:"Loading..."};var Wc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==Hc(t.props.menuPlacement)&&t.setState({placement:n})},t}Pc(t,e);var n=t.prototype;return n.getChildContext=function(){return{getPortalPlacement:this.getPortalPlacement}},n.render=function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,a=e.menuPosition,i=e.getStyles,l="fixed"===a;if(!t&&!l||!r)return null;var s=this.state.placement||Hc(o),u=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),c=l?0:window.pageYOffset,d=u[s]+c,p=hc("div",{css:i("menuPortal",{offset:d,position:a,rect:u})},n);return t?Object(gc.createPortal)(p,t):p},t}(ba.Component);Wc.childContextTypes={getPortalPlacement:wc.a.func};var Uc=Array.isArray,Vc=Object.keys,Jc=Object.prototype.hasOwnProperty;function Gc(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,o,a,i=Uc(t),l=Uc(n);if(i&&l){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var p=Vc(t);if((o=p.length)!==Vc(n).length)return!1;for(r=o;0!=r--;)if(!Jc.call(n,p[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(a=p[r])&&t.$$typeof||e(t[a],n[a])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function qc(){return(qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $c(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);return $c=function(){return e},e}function Kc(){return(Kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Qc={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Zc=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size"]);return hc("svg",Kc({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Qc},n))},Xc=function(e){return hc(Zc,Kc({size:20},e),hc("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ed=function(e){return hc(Zc,Kc({size:20},e),hc("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},td=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},nd=td,rd=td,od=function(){var e=ic.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}($c()),ad=function(e){var t=e.delay,n=e.offset;return hc("span",{css:ic({animation:od+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},id=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return hc("div",Kc({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),hc(ad,{delay:0,offset:a}),hc(ad,{delay:160,offset:!0}),hc(ad,{delay:320,offset:!a}))};function ld(){return(ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}id.defaultProps={size:4};function sd(){return(sd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ud(){return(ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var cd=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function dd(){return(dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pd=function(e){var t=e.children,n=e.innerProps;return hc("div",n,t)},fd=pd,md=pd;var hd=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,l=e.innerProps,s=e.isDisabled,u=e.removeProps,c=e.selectProps,d=r.Container,p=r.Label,f=r.Remove;return hc(_c,null,(function(r){var m=r.css,h=r.cx;return hc(d,{data:a,innerProps:dd({},l,{className:h(m(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":s},n))}),selectProps:c},hc(p,{data:a,innerProps:{className:h(m(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),hc(f,{data:a,innerProps:dd({className:h(m(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},u),selectProps:c}))}))};function bd(){return(bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}hd.defaultProps={cropWithEllipsis:!0};function yd(){return(yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _d(){return(_d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gd(){return(gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var vd={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",Kc({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||hc(Xc,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,l=e.innerRef,s=e.innerProps,u=e.menuIsOpen;return hc("div",ld({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":u},o)},s),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",Kc({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||hc(ed,null))},DownChevron:ed,CrossIcon:Xc,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,l=e.label,s=e.theme,u=e.selectProps;return hc("div",{css:o("group",e),className:r({group:!0},n)},hc(a,sd({},i,{selectProps:u,theme:s,getStyles:o,cx:r}),l),hc("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","theme","selectProps"]));return hc("div",sd({css:r("groupHeading",sd({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return hc("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return hc("span",Kc({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,l=e.theme,s=(e.selectProps,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return hc("div",{css:r("input",ud({theme:l},s))},hc(Cc.a,ud({className:n({input:!0},t),inputRef:o,inputStyle:cd(a),disabled:i},s)))},LoadingIndicator:id,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return hc("div",jc({css:o("menu",e),className:r({menu:!0},n)},i,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,i=e.innerRef;return hc("div",{css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:i},t)},MenuPortal:Wc,LoadingMessage:Ic,NoOptionsMessage:Bc,MultiValue:hd,MultiValueContainer:fd,MultiValueLabel:md,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return hc("div",n,t||hc(Xc,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,l=e.isSelected,s=e.innerRef,u=e.innerProps;return hc("div",bd({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":l},n),ref:s},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return hc("div",yd({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,l=e.isRtl;return hc("div",qc({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":l},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return hc("div",_d({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return hc("div",{css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}},wd=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],kd=function(e){for(var t=0;t<wd.length;t++)e=e.replace(wd[t].letters,wd[t].base);return e};function Md(){return(Md=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ld=function(e){return e.replace(/^\s+|\s+$/g,"")},Sd=function(e){return e.label+" "+e.value};function Td(){return(Td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ed={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},Yd=function(e){return hc("span",Td({css:Ed},e))};function xd(){return(xd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Dd(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return hc("input",xd({ref:t},n,{css:ic({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var Od=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.props.innerRef(Object(gc.findDOMNode)(this))},o.componentWillUnmount=function(){this.props.innerRef(null)},o.render=function(){return this.props.children},r}(ba.Component),Cd=["boxSizing","height","overflow","paddingRight","position"],jd={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Pd(e){e.preventDefault()}function Rd(e){e.stopPropagation()}function Hd(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ad(){return"ontouchstart"in window||navigator.maxTouchPoints}var Fd=!(!window.document||!window.document.createElement),zd=0,Nd=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){var e=this;if(Fd){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&Cd.forEach((function(t){var n=a&&a[t];e.originalStyles[t]=n})),n&&zd<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,s=window.innerWidth-l+i||0;Object.keys(jd).forEach((function(e){var t=jd[e];a&&(a[e]=t)})),a&&(a.paddingRight=s+"px")}o&&Ad()&&(o.addEventListener("touchmove",Pd,this.listenerOptions),r&&(r.addEventListener("touchstart",Hd,this.listenerOptions),r.addEventListener("touchmove",Rd,this.listenerOptions))),zd+=1}},o.componentWillUnmount=function(){var e=this;if(Fd){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;zd=Math.max(zd-1,0),n&&zd<1&&Cd.forEach((function(t){var n=e.originalStyles[t];a&&(a[t]=n)})),o&&Ad()&&(o.removeEventListener("touchmove",Pd,this.listenerOptions),r&&(r.removeEventListener("touchstart",Hd,this.listenerOptions),r.removeEventListener("touchmove",Rd,this.listenerOptions)))}},o.render=function(){return null},r}(ba.Component);Nd.defaultProps={accountForScrollbars:!0};var Bd={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Id=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?hc("div",null,hc("div",{onClick:this.blurSelectInput,css:Bd}),hc(Od,{innerRef:this.getScrollTarget},t),r?hc(Nd,{touchScrollTarget:r}):null):t},r}(ba.PureComponent);var Wd=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},t.handleEventDelta=function(e,n){var r=t.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,l=r.onTopLeave,s=t.scrollTarget,u=s.scrollTop,c=s.scrollHeight,d=s.clientHeight,p=t.scrollTarget,f=n>0,m=c-d-u,h=!1;m>n&&t.isBottom&&(a&&a(e),t.isBottom=!1),f&&t.isTop&&(l&&l(e),t.isTop=!1),f&&n>m?(o&&!t.isBottom&&o(e),p.scrollTop=c,h=!0,t.isBottom=!0):!f&&-n>u&&(i&&!t.isTop&&i(e),p.scrollTop=0,h=!0,t.isTop=!0),h&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.startListening(this.scrollTarget)},o.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},o.startListening=function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},o.stopListening=function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},o.render=function(){return ya.a.createElement(Od,{innerRef:this.getScrollTarget},this.props.children)},r}(ba.Component);function Ud(e){var t=e.isEnabled,n=void 0===t||t,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isEnabled"]);return n?ya.a.createElement(Wd,r):r.children}var Vd=function(e,t){void 0===t&&(t={});var n=t,r=n.isSearchable,o=n.isMulti,a=n.label,i=n.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(i?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(a||"Select")+" is focused "+(r?",type to refine list":"")+", press Down to open the menu, "+(o?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Jd=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return r?"option "+n+" is disabled. Select another option.":"option "+n+", selected."}},Gd=function(e){return!!e.isDisabled};var qd={clearIndicator:rd,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+o.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:nd,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Nc,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return(t={label:"menu"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n)]="100%",t.backgroundColor=i.neutral0,t.borderRadius=o,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=a.menuGutter,t.marginTop=a.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:zc,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*a.baseUnit+"px "+3*a.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - "+2*r.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var $d={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function Kd(){return(Kd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Zd,Xd={backspaceRemovesValue:!0,blurInputOnSelect:Dc(),captureMenuScroll:!Dc(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Md({ignoreCase:!0,ignoreAccents:!0,stringify:Sd,trim:!0,matchFrom:"any"},Zd),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,s=i?Ld(t):t,u=i?Ld(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=kd(s),u=kd(u)),"start"===l?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Gd,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},ep=1,tp=function(e){var t,n;function r(t){var n;(n=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=gd({},vd,{components:e}.components)},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props;(0,r.onChange)(e,Kd({},t,{name:r.name}))},n.setValue=function(e,t,r){void 0===t&&(t="set-value");var o=n.props,a=o.closeMenuOnSelect,i=o.isMulti;n.onInputChange("",{action:"set-value"}),a&&(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,a=n.state.selectValue;if(o)if(n.isOptionSelected(e,a)){var i=n.getOptionValue(e);n.setValue(a.filter((function(e){return n.getOptionValue(e)!==i})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(a,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,r=n.getOptionValue(e),o=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var r=qd[e](t);r.boxSizing="border-box";var o=n.props.styles[e];return o?o(r,t):r},n.getElementId=function(e){return n.instancePrefix+"-"+e},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,o=t.focusedOption;if(o&&e){var a=r.focusable.indexOf(o),i=r.render[a];return i&&i.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:Jd(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:Vd(t,Kd({},r,{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Tc(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||o>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,r=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,l=t.isClearable,s=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=n.state,m=f.focusedOption,h=f.focusedValue,b=f.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)n.removeValue(h);else{if(!o)return;r?n.popValue():l&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!u||!d||!m||p&&n.isOptionSelected(m,b))return;n.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(n.isComposing)return;n.selectOption(m);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):l&&a&&n.clearValue();break;case" ":if(i)return;if(!u){n.openMenu("first");break}if(!m)return;n.selectOption(m);break;case"ArrowUp":u?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":u?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!u)return;n.focusOption("pageup");break;case"PageDown":if(!u)return;n.focusOption("pagedown");break;case"Home":if(!u)return;n.focusOption("first");break;case"End":if(!u)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var r=e.inputValue,o=void 0===r?"":r,a=e.options,i=function(e,r){var a=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),l=n.getOptionLabel(e),s=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:l,value:s,data:e},o))){var u=a?void 0:function(){return n.onOptionHover(e)},c=a?void 0:function(){return n.selectOption(e)},d=n.getElementId("option")+"-"+r;return{innerProps:{id:d,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:d,label:l,type:"option",value:s}}};return a.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map((function(t,n){var o=i(t,r+"-"+n);return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var a=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:a,data:t,options:o})}}else{var l=i(t,""+r);l&&(e.render.push(l),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var r=t.value;n.cacheComponents=Au(n.cacheComponents,Gc).bind(Qd(Qd(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++ep);var o=Sc(r);n.buildMenuOptions=Au(n.buildMenuOptions,(function(e,t){var n=e,r=n[0],o=n[1],a=t,i=a[0];return Gc(o,a[1])&&Gc(r.inputValue,i.inputValue)&&Gc(r.options,i.options)})).bind(Qd(Qd(n)));var a=t.menuIsOpen?n.buildMenuOptions(t,o):{render:[],focusable:[]};return n.state.menuOptions=a,n.state.selectValue=o,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},o.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=Sc(e.value),l=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},s=this.getNextFocusedValue(i),u=this.getNextFocusedOption(l.focusable);this.setState({menuOptions:l,selectValue:i,focusedOption:u,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},o.componentDidUpdate=function(e){var t,n,r,o,a,i=this.props,l=i.isDisabled,s=i.menuIsOpen,u=this.state.isFocused;(u&&!l&&e.isDisabled||u&&s&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?Yc(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&Yc(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)},o.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},o.onMenuOpen=function(){this.props.onMenuOpen()},o.onMenuClose=function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},o.onInputChange=function(e,t){this.props.onInputChange(e,t)},o.focusInput=function(){this.inputRef&&this.inputRef.focus()},o.blurInput=function(){this.inputRef&&this.inputRef.blur()},o.openMenu=function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildMenuOptions(this.props,r),i=this.props.isMulti,l="first"===e?0:a.focusable.length-1;if(!i){var s=a.focusable.indexOf(r[0]);s>-1&&(l=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[l]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},o.focusValue=function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var l=a.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"value"}));var s=a.length-1,u=-1;if(a.length){switch(e){case"previous":u=0===l?0:-1===l?s:l-1;break;case"next":l>-1&&l<s&&(u=l+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:a[u]})}}},o.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var a=0,i=o.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=i>0?i-1:o.length-1:"down"===e?a=(i+1)%o.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>o.length-1&&(a=o.length-1):"last"===e&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Gd(o[a])}})}},o.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($d):Kd({},$d,this.props.theme):$d},o.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,a=o.classNamePrefix,i=o.isMulti,l=o.isRtl,s=o.options,u=this.state.selectValue,c=this.hasValue();return{cx:Lc.bind(null,a),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:c,isMulti:i,isRtl:l,options:s,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}},o.getNextFocusedValue=function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null},o.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},o.hasValue=function(){return this.state.selectValue.length>0},o.hasOptions=function(){return!!this.state.menuOptions.render.length},o.countOptions=function(){return this.state.menuOptions.focusable.length},o.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},o.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},o.isOptionSelected=function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))},o.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},o.formatOptionLabel=function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)},o.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},o.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},o.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},o.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},o.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},o.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,l=a.menuIsOpen,s=a.inputValue,u=a.screenReaderStatus;return(r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value "+n(t)+" focused, "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(o&&l?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option "+n(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:s,screenReaderMessage:u({count:this.countOptions()})})+" "+t},o.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=this.components.Input,l=this.state.inputIsHidden,s=r||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return ya.a.createElement(Dd,Kd({id:s,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:kc,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,value:""},u));var c=this.commonProps,d=c.cx,p=c.theme,f=c.selectProps;return ya.a.createElement(i,Kd({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:s,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:f,spellCheck:"false",tabIndex:a,theme:p,type:"text",value:o},u))},o.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,l=t.Placeholder,s=this.commonProps,u=this.props,c=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,f=u.inputValue,m=u.placeholder,h=this.state,b=h.selectValue,y=h.focusedValue,_=h.isFocused;if(!this.hasValue()||!c)return f?null:ya.a.createElement(l,Kd({},s,{key:"placeholder",isDisabled:d,isFocused:_}),m);if(p)return b.map((function(t,i){var l=t===y;return ya.a.createElement(n,Kd({},s,{components:{Container:r,Label:o,Remove:a},isFocused:l,isDisabled:d,key:e.getOptionValue(t),index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var g=b[0];return ya.a.createElement(i,Kd({},s,{data:g,isDisabled:d}),this.formatOptionLabel(g,"value"))},o.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ya.a.createElement(e,Kd({},t,{innerProps:i,isFocused:a}))},o.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return ya.a.createElement(e,Kd({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))},o.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return ya.a.createElement(n,Kd({},r,{isDisabled:o,isFocused:a}))},o.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ya.a.createElement(e,Kd({},t,{innerProps:o,isDisabled:n,isFocused:r}))},o.renderMenu=function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,c=this.commonProps,d=this.state,p=d.focusedOption,f=d.menuOptions,m=this.props,h=m.captureMenuScroll,b=m.inputValue,y=m.isLoading,_=m.loadingMessage,g=m.minMenuHeight,v=m.maxMenuHeight,w=m.menuIsOpen,k=m.menuPlacement,M=m.menuPosition,L=m.menuPortalTarget,S=m.menuShouldBlockScroll,T=m.menuShouldScrollIntoView,E=m.noOptionsMessage,Y=m.onMenuScrollToTop,x=m.onMenuScrollToBottom;if(!w)return null;var D,O=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,ya.a.createElement(u,Kd({},c,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=f.render.map((function(t){if("group"===t.type){t.type;var o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["type"]),a=t.key+"-heading";return ya.a.createElement(n,Kd({},c,o,{Heading:r,headingProps:{id:a},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return O(e)})))}if("option"===t.type)return O(t)}));else if(y){var C=_({inputValue:b});if(null===C)return null;D=ya.a.createElement(l,c,C)}else{var j=E({inputValue:b});if(null===j)return null;D=ya.a.createElement(s,c,j)}var P={minMenuHeight:g,maxMenuHeight:v,menuPlacement:k,menuPosition:M,menuShouldScrollIntoView:T},R=ya.a.createElement(Ac,Kd({},c,P),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,l=r.maxHeight;return ya.a.createElement(o,Kd({},c,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:i}),ya.a.createElement(Ud,{isEnabled:h,onTopArrive:Y,onBottomArrive:x},ya.a.createElement(Id,{isEnabled:S},ya.a.createElement(a,Kd({},c,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:l}),D))))}));return L||"fixed"===M?ya.a.createElement(i,Kd({},c,{appendTo:L,controlElement:this.controlRef,menuPlacement:k,menuPosition:M}),R):R},o.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=this.state.selectValue;if(a&&!r){if(o){if(n){var l=i.map((function(t){return e.getOptionValue(t)})).join(n);return ya.a.createElement("input",{name:a,type:"hidden",value:l})}var s=i.length>0?i.map((function(t,n){return ya.a.createElement("input",{key:"i-"+n,name:a,type:"hidden",value:e.getOptionValue(t)})})):ya.a.createElement("input",{name:a,type:"hidden"});return ya.a.createElement("div",null,s)}var u=i[0]?this.getOptionValue(i[0]):"";return ya.a.createElement("input",{name:a,type:"hidden",value:u})}},o.renderLiveRegion=function(){return this.state.isFocused?ya.a.createElement(Yd,{"aria-live":"polite"},ya.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),ya.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},o.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,l=a.id,s=a.isDisabled,u=a.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return ya.a.createElement(r,Kd({},d,{className:i,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:c}),this.renderLiveRegion(),ya.a.createElement(t,Kd({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:c,menuIsOpen:u}),ya.a.createElement(o,Kd({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),ya.a.createElement(n,Kd({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},r}(ba.Component);function np(){return(np=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}tp.defaultProps=Xd;var rp={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};ba.Component;var op,ap,ip,lp=(op=tp,ip=ap=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).select=void 0,t.state={inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue},t.onChange=function(e,n){t.callProp("onChange",e,n),t.setState({value:e})},t.onInputChange=function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})},t.onMenuOpen=function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})},t.onMenuClose=function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.focus=function(){this.select.focus()},o.blur=function(){this.select.blur()},o.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},o.callProp=function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}},o.render=function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return ya.a.createElement(op,np({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))},r}(ba.Component),ap.defaultProps=rp,ip);function sp(e){return(sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function up(){return(up=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pp(e,t){return(pp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hp(e);if(t){var o=hp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mp(this,n)}}function mp(e,t){return!t||"object"!==sp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hp(e){return(hp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bp=wp.i18n.__,yp=wp.element,_p=yp.Component,gp=yp.Fragment,vp=wp.blockEditor.InspectorControls,kp=wp.components,Mp=kp.PanelBody,Lp=kp.QueryControls,Sp=kp.RangeControl,Tp=kp.SelectControl,Ep=kp.TextControl,Yp=kp.ToggleControl,xp=wp.url.addQueryArgs,Dp=wp.apiFetch,Op=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pp(e,t)}(a,e);var t,n,r,o=fp(a);function a(){var e;return cp(this,a),(e=o.apply(this,arguments)).state={categoriesList:[]},e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this;this.stillMounted=!0,this.fetchRequest=Dp({path:xp("/wp/v2/categories",{per_page:-1})}).then((function(t){e.stillMounted&&e.setState({categoriesList:t})})).catch((function(){e.stillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/editor").getEditorSettings();return ju()(Ru()(e.imageSizes,(function(e){var t=e.name;return{value:e.slug,label:t}})))}},{key:"pageSelect",value:function(){var e=wp.data.select("core").getEntityRecords("postType","page",{per_page:-1});return ju()(Ru()(e,(function(e){return{value:e.id,label:e.title.raw}})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.latestPosts,a=n.order,i=n.orderBy,l=this.state.categoriesList,s=[{value:"post",label:bp("Post","atomic-blocks")},{value:"page",label:bp("Page","atomic-blocks")}],u=[{value:"div",label:bp("div","atomic-blocks")},{value:"header",label:bp("header","atomic-blocks")},{value:"section",label:bp("section","atomic-blocks")},{value:"article",label:bp("article","atomic-blocks")},{value:"main",label:bp("main","atomic-blocks")},{value:"aside",label:bp("aside","atomic-blocks")},{value:"footer",label:bp("footer","atomic-blocks")}],c=[{value:"h2",label:bp("H2","atomic-blocks")},{value:"h3",label:bp("H3","atomic-blocks")},{value:"h4",label:bp("H4","atomic-blocks")},{value:"h5",label:bp("H5","atomic-blocks")},{value:"h6",label:bp("H6","atomic-blocks")}],d=Array.isArray(o)&&o.length,p="post"===n.postType,f={value:"selectimage",label:bp("Select image size")},h={value:"ab-block-post-grid-landscape",label:bp("AB Grid Landscape")},b={value:"ab-block-post-grid-square",label:bp("AB Grid Square")},y=this.imageSizeSelect();y.push(b,h),y.unshift(f);var _=this.pageSelect();return wp.element.createElement(vp,null,wp.element.createElement(Mp,{title:bp("Post and Page Grid Settings","atomic-blocks"),className:p?null:"atomic-blocks-hide-query"},wp.element.createElement(m,{id:"ab_postgrid_postType"},wp.element.createElement(Tp,{label:bp("Content Type","atomic-blocks"),options:s,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&wp.element.createElement(m,{id:"ab_postgrid_selectedPages"},wp.element.createElement("div",{className:"components-base-control select2-page"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("label",{className:"components-base-control__label",htmlFor:"inspector-select-control"},bp("Pages To Show","atomic-blocks")),wp.element.createElement(lp,{options:_,value:n.selectedPages,onChange:function(t){return e.props.setAttributes({selectedPages:t})},isMulti:!0,closeMenuOnSelect:!1})))),"post"===n.postType&&wp.element.createElement(gp,null,wp.element.createElement(m,{id:"ab_postgrid_queryControls"},wp.element.createElement(Lp,up({order:a,orderBy:i},{numberOfItems:n.postsToShow,categoriesList:l,selectedCategoryId:n.categories,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onCategoryChange:function(e){return r({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return r({postsToShow:e})}}))),wp.element.createElement(m,{id:"ab_postgrid_offset"},wp.element.createElement(Sp,{label:bp("Number of items to offset","atomic-blocks"),value:n.offset,onChange:function(e){return r({offset:e})},min:0,max:20}))),"grid"===n.postLayout&&wp.element.createElement(m,{id:"ab_postgrid_columns"},wp.element.createElement(Sp,{label:bp("Columns","atomic-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:d?Math.min(4,o.length):4}))),wp.element.createElement(Mp,{title:bp("Post and Page Grid Content","atomic-blocks"),initialOpen:!1},wp.element.createElement(m,{id:"ab_postgrid_displaySectionTitle"},wp.element.createElement(Yp,{label:bp("Display Section Title","atomic-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&wp.element.createElement(m,{id:"ab_postgrid_sectionTitle"},wp.element.createElement(Ep,{label:bp("Section Title","atomic-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),wp.element.createElement(m,{id:"ab_postgrid_displayPostImage"},wp.element.createElement(Yp,{label:bp("Display Featured Image","atomic-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&wp.element.createElement(m,{id:"ab_postgrid_imageSizeValue"},wp.element.createElement(Tp,{label:bp("Image Size","atomic-blocks"),value:function(){for(var e=0;e<y.length;e++)if(y[e].value===n.imageSize)return n.imageSize;return"full"}(),options:y,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),wp.element.createElement(m,{id:"ab_postgrid_displayPostTitle"},wp.element.createElement(Yp,{label:bp("Display Title","atomic-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),p&&wp.element.createElement(m,{id:"ab_postgrid_displayPostAuthor"},wp.element.createElement(Yp,{label:bp("Display Author","atomic-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),p&&wp.element.createElement(m,{id:"ab_postgrid_displayPostDate"},wp.element.createElement(Yp,{label:bp("Display Date","atomic-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),wp.element.createElement(m,{id:"ab_postgrid_displayPostExcerpt"},wp.element.createElement(Yp,{label:bp("Display Excerpt","atomic-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&wp.element.createElement(m,{id:"ab_postgrid_excerptLength"},wp.element.createElement(Sp,{label:bp("Excerpt Length","atomic-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),wp.element.createElement(m,{id:"ab_postgrid_displayPostLink"},wp.element.createElement(Yp,{label:bp("Display Continue Reading Link","atomic-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&wp.element.createElement(m,{id:"ab_postgrid_readMoreText"},wp.element.createElement(Ep,{label:bp("Customize Continue Reading Text","atomic-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),wp.element.createElement(Mp,{title:bp("Post and Page Grid Markup","atomic-blocks"),initialOpen:!1,className:"ab-block-post-grid-markup-settings"},wp.element.createElement(m,{id:"ab_postgrid_sectionTag"},wp.element.createElement(Tp,{label:bp("Post Grid Section Tag","atomic-blocks"),options:u,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:bp("Change the post grid section tag to match your content hierarchy.","atomic-blocks")})),n.sectionTitle&&wp.element.createElement(m,{id:"ab_postgrid_sectionTitleTag"},wp.element.createElement(Tp,{label:bp("Section Title Heading Tag","atomic-blocks"),options:c,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:bp("Change the post/page section title tag to match your content hierarchy.","atomic-blocks")})),n.displayPostTitle&&wp.element.createElement(m,{id:"ab_postgrid_postTitleTag"},wp.element.createElement(Tp,{label:bp("Post Title Heading Tag","atomic-blocks"),options:c,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:bp("Change the post/page title tag to match your content hierarchy.","atomic-blocks")}))))}}])&&dp(t.prototype,n),r&&dp(t,r),a}(_p),Cp=n(22),jp=n.n(Cp);function Pp(e){return(Pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ap(e,t){return(Ap=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Np(e);if(t){var o=Np(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zp(this,n)}}function zp(e,t){return!t||"object"!==Pp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Np(e){return(Np=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bp=wp.i18n.__,Ip=wp.element,Wp=Ip.Fragment,Up=Ip.Component,Vp=wp.components,Jp=Vp.Placeholder,Gp=Vp.Dashicon,qp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ap(e,t)}(i,e);var t,n,r,a=Fp(i);function i(e){var t;return Rp(this,i),(t=a.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},t}return t=i,(n=[{key:"componentDidUpdate",value:function(e){this.props.imgSize!==e.imgSize&&this.setImageUrl()}},{key:"componentDidMount",value:function(){var e=this;this.setState({setImageUrlSubscription:wp.data.subscribe((function(){e.setImageUrl()}))})}},{key:"componentWillUnmount",value:function(){this.state.setImageUrlSubscription()}},{key:"setImageUrl",value:function(){var e=this.getImageUrl();e||(e=this.getFullImageSize()),e&&this.setState({imageUrl:e,imageLoaded:!0})}},{key:"getImageUrl",value:function(){return jp()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return jp()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return wp.element.createElement(Wp,null,wp.element.createElement("div",{className:o()("ab-block-post-grid-image")},wp.element.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},wp.element.createElement("img",{src:this.state.imageUrl?this.state.imageUrl:this.props.imgSizeLandscape,alt:this.props.imgAlt,className:this.props.imgClass})),!this.getImageUrl()&&this.state.imageLoaded&&"selectimage"!==this.props.imgSize&&wp.element.createElement(Wp,null,wp.element.createElement("div",{className:"ab-post-grid-no-image-icon"},wp.element.createElement(Gp,{icon:"warning"})),wp.element.createElement(Jp,{className:"ab-post-grid-no-image-placeholder"},wp.element.createElement(Gp,{icon:"info"}),wp.element.createElement("div",{className:"components-placeholder__label"},Bp("There is no image generated for the selected image size, so a fallback image size is being used.","atomic-blocks")),wp.element.createElement("div",{className:"ab-post-grid-image-help"},wp.element.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":Bp("Learn more about image sizes (opens in a new tab)","atomic-blocks"),href:"https://github.com/studiopress/atomic-blocks/wiki/Post-Grid-Block#featured-image-sizes"},Bp("Learn more ","atomic-blocks"),wp.element.createElement("span",null,"→")))))))}}])&&Hp(t.prototype,n),r&&Hp(t,r),i}(Up);function $p(e){return($p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kp(){return(Kp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qp(Object(n),!0).forEach((function(t){Xp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ef(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nf(e,t){return(nf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=af(e);if(t){var o=af(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return of(this,n)}}function of(e,t){return!t||"object"!==$p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function af(e){return(af=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lf=wp.compose.compose,sf=wp.element,uf=sf.Component,cf=sf.Fragment,df=wp.i18n.__,pf=wp.htmlEntities.decodeEntities,ff=wp.data.withSelect,mf=wp.components,hf=mf.Placeholder,bf=mf.Spinner,yf=mf.Toolbar,_f=wp.blockEditor,gf=_f.BlockAlignmentToolbar,vf=_f.BlockControls,wf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nf(e,t)}(i,e);var t,n,r,a=rf(i);function i(){return ef(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,i=n.latestPosts,l=Array.isArray(i)&&i.length,s="post"===r.postType;if(!l)return wp.element.createElement(cf,null,wp.element.createElement(Op,Zp({setAttributes:a},this.props)),wp.element.createElement(hf,{icon:"admin-post",label:df("Atomic Blocks Post and Page Grid","atomic-blocks")},Array.isArray(i)?df("No posts found.","atomic-blocks"):wp.element.createElement(bf,null)));var u=i.length>r.postsToShow&&"post"===r.postType?i.slice(0,r.postsToShow):i,c=[{icon:"grid-view",title:df("Grid View","atomic-blocks"),onClick:function(){return a({postLayout:"grid"})},isActive:"grid"===r.postLayout},{icon:"list-view",title:df("List View","atomic-blocks"),onClick:function(){return a({postLayout:"list"})},isActive:"list"===r.postLayout}],d=r.sectionTag?r.sectionTag:"section",p=r.sectionTitleTag?r.sectionTitleTag:"h2",f=r.postTitleTag?r.postTitleTag:"h3";return wp.element.createElement(cf,null,wp.element.createElement(Op,Zp({setAttributes:a},this.props)),wp.element.createElement(vf,null,wp.element.createElement(gf,{value:r.align,onChange:function(e){a({align:e})},controls:["center","wide","full"]}),wp.element.createElement(yf,{controls:c})),wp.element.createElement(d,{className:o()(this.props.className,"ab-block-post-grid")},r.displaySectionTitle&&r.sectionTitle&&wp.element.createElement(p,{className:"ab-post-grid-section-title"},r.sectionTitle),wp.element.createElement("div",{className:o()((e={"is-grid":"grid"===r.postLayout,"is-list":"list"===r.postLayout},Xp(e,"columns-".concat(r.columns),"grid"===r.postLayout),Xp(e,"ab-post-grid-items","ab-post-grid-items"),e))},u.map((function(e,n){return wp.element.createElement("article",{key:n,id:"post-"+e.id,className:o()("post-"+e.id,e.featured_image_src&&r.displayPostImage?"has-post-thumbnail":null)},r.displayPostImage&&e.featured_media?wp.element.createElement(qp,Kp({},t.props,{imgAlt:pf(e.title.rendered.trim())||df("(Untitled)","atomic-blocks"),imgClass:"wp-image-".concat(e.featured_media.toString()),imgID:e.featured_media.toString(),imgSize:r.imageSize,imgSizeLandscape:e.featured_image_src,imgSizeSquare:e.featured_image_src_square,imgLink:e.link})):null,wp.element.createElement("div",{className:"ab-block-post-grid-text"},wp.element.createElement("header",{className:"ab-block-post-grid-header"},r.displayPostTitle&&wp.element.createElement(f,{className:"ab-block-post-grid-title"},wp.element.createElement("a",{href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},pf(e.title.rendered.trim())||df("(Untitled)","atomic-blocks"))),s&&wp.element.createElement("div",{className:"ab-block-post-grid-byline"},r.displayPostAuthor&&e.author_info.display_name&&wp.element.createElement("div",{className:"ab-block-post-grid-author"},wp.element.createElement("a",{className:"ab-text-link",target:"_blank",rel:"noopener noreferrer",href:e.author_info.author_link},e.author_info.display_name)),r.displayPostDate&&e.date_gmt&&wp.element.createElement("time",{dateTime:Ou()(e.date_gmt).utc().format(),className:"ab-block-post-grid-date"},Ou()(e.date_gmt).local().format("MMMM DD, Y","atomic-blocks")))),wp.element.createElement("div",{className:"ab-block-post-grid-excerpt"},r.displayPostExcerpt&&e.excerpt&&wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:(a=e.excerpt.rendered,i=r.excerptLength,a.split(" ").splice(0,i).join(" "))}}),r.displayPostLink&&wp.element.createElement("p",null,wp.element.createElement("a",{className:"ab-block-post-grid-more-link ab-text-link",href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},r.readMoreText)))));var a,i})))))}}])&&tf(t.prototype,n),r&&tf(t,r),i}(uf),kf=lf([ff((function(e,t){var n=t.attributes,r=n.order,o=n.categories,a=e("core").getEntityRecords,i=xu()({categories:o,order:r,orderby:t.attributes.orderBy,per_page:t.attributes.postsToShow,offset:t.attributes.offset,exclude:[wp.data.select("core/editor").getCurrentPostId()]},(function(e){return!Eu()(e)})),l=t.attributes.selectedPages&&t.attributes.selectedPages.length>0?t.attributes.selectedPages.map((function(e){return e.value})):null,s=xu()({include:l||null,orderby:l?"include":null,per_page:t.attributes.selectedPages.length},(function(e){return!Eu()(e)}));return{latestPosts:a("postType",t.attributes.postType,"page"===t.attributes.postType&&l?s:i)}}))])(wf);n(316),n(317);var Mf=wp.i18n.__,Lf=wp.blocks.registerBlockType,Sf=["center","wide","full"];function Tf(e){return(Tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ef(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xf(e,t){return(xf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Df(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cf(e);if(t){var o=Cf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Of(this,n)}}function Of(e,t){return!t||"object"!==Tf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cf(e){return(Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Lf("atomic-blocks/ab-post-grid",{title:Mf("Post and Page Grid","atomic-blocks"),description:Mf("Add a grid or list of customizable posts or pages.","atomic-blocks"),icon:"grid-view",category:"atomic-blocks",keywords:[Mf("post","atomic-blocks"),Mf("page","atomic-blocks"),Mf("grid","atomic-blocks")],getEditWrapperProps:function(e){var t=e.align;if(-1!==Sf.indexOf(t))return{"data-align":t}},edit:kf,ab_settings_data:{ab_postgrid_postType:{title:Mf("Content Type","atomic-blocks")},ab_postgrid_queryControls:{title:Mf("Query Controls","atomic-blocks")},ab_postgrid_offset:{title:Mf("Post Offset","atomic-blocks")},ab_postgrid_columns:{title:Mf("Columns","atomic-blocks")},ab_postgrid_displaySectionTitle:{title:Mf("Display Section Title","atomic-blocks")},ab_postgrid_sectionTitle:{title:Mf("Section Title","atomic-blocks")},ab_postgrid_displayPostImage:{title:Mf("Display Featured Image","atomic-blocks")},ab_postgrid_imageSizeValue:{title:Mf("Image Size","atomic-blocks")},ab_postgrid_displayPostTitle:{title:Mf("Display Post Title","atomic-blocks")},ab_postgrid_displayPostAuthor:{title:Mf("Display Post Author","atomic-blocks")},ab_postgrid_displayPostDate:{title:Mf("Display Post Date","atomic-blocks")},ab_postgrid_displayPostExcerpt:{title:Mf("Display Post Excerpt","atomic-blocks")},ab_postgrid_excerptLength:{title:Mf("Excerpt Length","atomic-blocks")},ab_postgrid_displayPostLink:{title:Mf("Display Continue Reading Link","atomic-blocks")},ab_postgrid_readMoreText:{title:Mf("Read More Text","atomic-blocks")},ab_postgrid_sectionTag:{title:Mf("Post Grid Section Tag","atomic-blocks")},ab_postgrid_sectionTitleTag:{title:Mf("Section Title Heading Tag","atomic-blocks")},ab_postgrid_postTitleTag:{title:Mf("Post Title Heading Tag","atomic-blocks")}},save:function(){return null}});var jf=wp.i18n.__,Pf=wp.element.Component,Rf=wp.blockEditor,Hf=Rf.InspectorControls,Af=Rf.PanelColorSettings,Ff=Rf.MediaUpload,zf=wp.components,Nf=zf.Button,Bf=zf.Icon,If=zf.PanelBody,Wf=zf.RangeControl,Uf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xf(e,t)}(a,e);var t,n,r,o=Df(a);function a(e){return Ef(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.containerPaddingTop,r=t.containerPaddingRight,o=t.containerPaddingBottom,a=t.containerPaddingLeft,i=t.containerMarginTop,l=t.containerMarginBottom,s=t.containerMaxWidth,u=t.containerBackgroundColor,c=t.containerDimRatio,d=t.containerImgURL,p=t.containerImgID,f=this.props.setAttributes,h=function(){f({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return wp.element.createElement(Hf,{key:"inspector"},wp.element.createElement(m,{id:"ab_container_containerOptions"},wp.element.createElement(If,{title:jf("Container Options","atomic-blocks"),initialOpen:!0},wp.element.createElement(Wf,{label:jf("Padding Top (%)","atomic-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Padding Bottom (%)","atomic-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Padding Left (%)","atomic-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Padding Right (%)","atomic-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Margin Top (%)","atomic-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),wp.element.createElement(Wf,{label:jf("Margin Bottom (%)","atomic-blocks"),value:l,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),wp.element.createElement(Wf,{label:jf("Inside Container Max Width (px)","atomic-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMaxWidth:t})},min:500,max:1600,step:1}))),wp.element.createElement(m,{id:"ab_container_backgroundOptions"},wp.element.createElement(If,{title:jf("Background Options","atomic-blocks"),initialOpen:!1},wp.element.createElement("p",null,jf("Select a background image:","atomic-blocks")),wp.element.createElement(Ff,{onSelect:function(e){f({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return wp.element.createElement("div",null,wp.element.createElement(Nf,{className:"ab-container-inspector-media",label:jf("Edit image","atomic-blocks"),onClick:t},wp.element.createElement(Bf,{icon:"format-image"}),jf("Select Image","atomic-blocks")),d&&!!d.length&&wp.element.createElement(Nf,{className:"ab-container-inspector-media",label:jf("Remove Image","atomic-blocks"),onClick:h},wp.element.createElement(Bf,{icon:"dismiss"}),jf("Remove","atomic-blocks")))}}),d&&!!d.length&&wp.element.createElement(Wf,{label:jf("Image Opacity","atomic-blocks"),value:c,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),wp.element.createElement(Af,{title:jf("Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:u,label:jf("Background Color","atomic-blocks"),onChange:function(e){return f({containerBackgroundColor:e})}}]}))))}}])&&Yf(t.prototype,n),r&&Yf(t,r),a}(Pf);function Vf(e){return(Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qf(e,t){return(qf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qf(e);if(t){var o=Qf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kf(this,n)}}function Kf(e,t){return!t||"object"!==Vf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qf(e){return(Qf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qf(e,t)}(i,e);var t,n,r,a=$f(i);function i(e){return Jf(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r,a=this.props.attributes,i=a.containerBackgroundColor,l=a.containerAlignment,s=a.containerPaddingTop,u=a.containerPaddingRight,c=a.containerPaddingBottom,d=a.containerPaddingLeft,p=a.containerMarginTop,f=a.containerMarginBottom,m=a.containerWidth,h=a.containerMaxWidth,b=a.containerImgURL,y=a.containerImgAlt,_=a.containerDimRatio,g={backgroundColor:i||void 0,textAlign:l||void 0,paddingLeft:d?"".concat(d,"%"):void 0,paddingRight:u?"".concat(u,"%"):void 0,paddingBottom:c?"".concat(c,"%"):void 0,paddingTop:s?"".concat(s,"%"):void 0,marginTop:p?"".concat(p,"%"):void 0,marginBottom:f?"".concat(f,"%"):void 0},v=o()([this.props.className,"ab-block-container"],(n=m,(t="align"+m)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return wp.element.createElement("div",{style:g,className:v||void 0},wp.element.createElement("div",{className:"ab-container-inside"},b&&!!b.length&&wp.element.createElement("div",{className:"ab-container-image-wrap"},wp.element.createElement("img",{className:o()("ab-container-image",(r=_,0===r||50===r?null:"has-background-dim-"+10*Math.round(r/10)),{"has-background-dim":0!==_}),src:b,alt:y})),wp.element.createElement("div",{className:"ab-container-content",style:{maxWidth:h?"".concat(h,"px"):void 0}},this.props.children)))}}])&&Gf(t.prototype,n),r&&Gf(t,r),i}(wp.element.Component);function Xf(e){return(Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function em(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nm(e,t){return(nm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=am(e);if(t){var o=am(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return om(this,n)}}function om(e,t){return!t||"object"!==Xf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function am(e){return(am=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var im=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nm(e,t)}(i,e);var t,n,r,a=rm(i);function i(e){return em(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r=this.props.attributes,a=r.containerBackgroundColor,i=r.containerAlignment,l=r.containerPaddingTop,s=r.containerPaddingRight,u=r.containerPaddingBottom,c=r.containerPaddingLeft,d=r.containerMarginTop,p=r.containerMarginBottom,f=r.containerWidth,m=(r.containerMaxWidth,o()([this.props.className,"ab-block-container"],(n=f,(t="align"+f)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)));return wp.element.createElement("div",{style:{backgroundColor:a,textAlign:i,paddingLeft:"".concat(c,"%"),paddingRight:"".concat(s,"%"),paddingBottom:"".concat(u,"%"),paddingTop:"".concat(l,"%"),marginTop:"".concat(d,"%"),marginBottom:"".concat(p,"%")},className:m||void 0},this.props.children)}}])&&tm(t.prototype,n),r&&tm(t,r),i}(wp.element.Component);function lm(e){return(lm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function um(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cm(e,t){return(cm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fm(e);if(t){var o=fm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pm(this,n)}}function pm(e,t){return!t||"object"!==lm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fm(e){return(fm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cm(e,t)}(i,e);var t,n,r,a=dm(i);function i(e){return sm(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r,a=this.props.attributes,i=a.containerBackgroundColor,l=a.containerAlignment,s=a.containerPaddingTop,u=a.containerPaddingRight,c=a.containerPaddingBottom,d=a.containerPaddingLeft,p=a.containerMarginTop,f=a.containerMarginBottom,m=a.containerWidth,h=a.containerMaxWidth,b=a.containerImgURL,y=a.containerImgAlt,_=a.containerDimRatio,g={backgroundColor:i||void 0,textAlign:l||void 0,paddingLeft:d?"".concat(d,"%"):void 0,paddingRight:u?"".concat(u,"%"):void 0,paddingBottom:c?"".concat(c,"%"):void 0,paddingTop:s?"".concat(s,"%"):void 0,marginTop:p?"".concat(p,"%"):void 0,marginBottom:f?"".concat(f,"%"):void 0},v=o()([this.props.className,"ab-block-container"],(n=m,(t="align"+m)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return wp.element.createElement("div",{style:g,className:v||void 0},wp.element.createElement("div",{className:"ab-container-inside"},b&&!!b.length&&wp.element.createElement("div",{className:"ab-container-image-wrap"},wp.element.createElement("img",{className:o()("ab-container-image",(r=_,0===r||50===r?null:"has-background-dim-"+10*Math.round(r/10)),{"has-background-dim":0!==_}),src:b,alt:y})),wp.element.createElement("div",{className:"ab-container-content",style:{maxWidth:"".concat(h,"px")}},this.props.children)))}}])&&um(t.prototype,n),r&&um(t,r),i}(wp.element.Component);var hm=wp.blockEditor.InnerBlocks;var bm=[{attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){return wp.element.createElement(mm,e,wp.element.createElement(hm.Content,null))}},{attributes:{containerPaddingTop:{type:"number",default:0},containerPaddingRight:{type:"number",default:0},containerPaddingBottom:{type:"number",default:0},containerPaddingLeft:{type:"number",default:0},containerMarginTop:{type:"number",default:0},containerMarginBottom:{type:"number",default:0},containerWidth:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string",default:"#fff"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){var t,n=e.attributes,r=n.containerMaxWidth,a=n.containerImgURL,i=n.containerImgAlt,l=n.containerDimRatio;return wp.element.createElement(im,e,wp.element.createElement("div",{className:"ab-container-inside"},a&&!!a.length&&wp.element.createElement("div",{className:"ab-container-image-wrap"},wp.element.createElement("img",{className:o()("ab-container-image",(t=l,0===t||50===t?null:"has-background-dim-"+10*Math.round(t/10)),{"has-background-dim":0!==l}),src:a,alt:i})),wp.element.createElement("div",{className:"ab-container-content",style:{maxWidth:"".concat(r,"px")}},wp.element.createElement(hm.Content,null))))}}];n(318),n(319);function ym(e){return(ym="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _m(){return(_m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gm(Object(n),!0).forEach((function(t){wm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function km(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lm(e,t){return(Lm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Em(e);if(t){var o=Em(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tm(this,n)}}function Tm(e,t){return!t||"object"!==ym(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Em(e){return(Em=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ym=wp.i18n.__,xm=wp.element.Component,Dm=wp.blocks.registerBlockType,Om=wp.blockEditor.InnerBlocks,Cm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lm(e,t)}(a,e);var t,n,r,o=Sm(a);function a(){return km(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.setAttributes;return[wp.element.createElement(Uf,_m({key:"ab-container-inspector-"+this.props.clientId},vm({setAttributes:e},this.props))),wp.element.createElement(Zf,_m({key:"ab-container-"+this.props.clientId},this.props),wp.element.createElement(Om,null))]}}])&&Mm(t.prototype,n),r&&Mm(t,r),a}(xm);function jm(e){return(jm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hm(e,t){return(Hm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Am(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zm(e);if(t){var o=zm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fm(this,n)}}function Fm(e,t){return!t||"object"!==jm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zm(e){return(zm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Dm("atomic-blocks/ab-container",{title:Ym("Container","atomic-blocks"),description:Ym("Add a container block to wrap several blocks in a parent container.","atomic-blocks"),icon:"editor-table",category:"atomic-blocks",keywords:[Ym("container","atomic-blocks"),Ym("section","atomic-blocks"),Ym("atomic","atomic-blocks")],supports:{align:["center","wide","full"]},attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number"},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},ab_settings_data:{ab_container_containerOptions:{title:Ym("Container Options","atomic-blocks")},ab_container_backgroundOptions:{title:Ym("Background Options","atomic-blocks")}},edit:Cm,save:function(e){return wp.element.createElement(Zf,e,wp.element.createElement(Om.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:bm});var Nm=wp.i18n.__,Bm=wp.element.Component,Im=wp.blockEditor.InspectorControls,Wm=wp.components,Um=Wm.PanelBody,Vm=Wm.RangeControl,Jm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hm(e,t)}(a,e);var t,n,r,o=Am(a);function a(e){return Pm(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return wp.element.createElement(Im,{key:"inspector"},wp.element.createElement(Um,null,wp.element.createElement(m,{id:"ab_pricing_columns"},wp.element.createElement(Vm,{label:Nm("Pricing Columns","atomic-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),wp.element.createElement(m,{id:"ab_pricing_columnsGap"},wp.element.createElement(Vm,{label:Nm("Pricing Columns Gap","atomic-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}])&&Rm(t.prototype,n),r&&Rm(t,r),a}(Bm);function Gm(e){return(Gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Km(e,t){return(Km=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xm(e);if(t){var o=Xm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zm(this,n)}}function Zm(e,t){return!t||"object"!==Gm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xm(e){return(Xm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Km(e,t)}(i,e);var t,n,r,a=Qm(i);function i(e){return qm(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r=this.props.attributes,a=r.columns,i=r.align,l=o()([this.props.className,"ab-pricing-columns-"+a],(n=i,(t="align"+i)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return wp.element.createElement("div",{className:l||void 0},this.props.children)}}])&&$m(t.prototype,n),r&&$m(t,r),i}(wp.element.Component),th=n(23),nh=n.n(th),rh=n(24),oh=n.n(rh);function ah(e){return(ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ih(){return(ih=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lh(Object(n),!0).forEach((function(t){uh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ch(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ph(e,t){return(ph=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hh(e);if(t){var o=hh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mh(this,n)}}function mh(e,t){return!t||"object"!==ah(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hh(e){return(hh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bh=wp.i18n.__,yh=wp.element.Component,_h=wp.blocks.registerBlockType,gh=wp.blockEditor,vh=gh.BlockControls,wh=gh.BlockAlignmentToolbar,kh=gh.InnerBlocks,Mh=["atomic-blocks/ab-pricing-table"],Lh=nh()((function(e){return oh()(e,(function(){return["atomic-blocks/ab-pricing-table"]}))})),Sh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ph(e,t)}(i,e);var t,n,r,a=fh(i);function i(){return ch(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.columns,r=t.columnsGap,a=t.align,i=e.setAttributes;return[wp.element.createElement(vh,{key:"controls"},wp.element.createElement(wh,{value:a,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),wp.element.createElement(Jm,ih({key:"ab-pricing-table-inspector-"+this.props.clientId},sh({setAttributes:i},this.props))),wp.element.createElement(eh,ih({key:"ab-pricing-table-"+this.props.clientId},this.props),wp.element.createElement("div",{className:o()("ab-pricing-table-wrap-admin","ab-block-pricing-table-gap-"+r)},wp.element.createElement(kh,{template:Lh(n),templateLock:"all",allowedBlocks:Mh})))]}}])&&dh(t.prototype,n),r&&dh(t,r),i}(yh);function Th(e){return(Th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xh(e,t){return(xh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ch(e);if(t){var o=Ch(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oh(this,n)}}function Oh(e,t){return!t||"object"!==Th(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ch(e){return(Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}_h("atomic-blocks/ab-pricing",{title:bh("Pricing","atomic-blocks"),description:bh("Add a pricing table.","atomic-blocks"),icon:"cart",category:"atomic-blocks",keywords:[bh("pricing table","atomic-blocks"),bh("shop","atomic-blocks"),bh("purchase","atomic-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},ab_settings_data:{ab_pricing_columns:{title:bh("Pricing Columns","atomic-blocks")},ab_pricing_columnsGap:{title:bh("Pricing Columns Gap","atomic-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:Sh,save:function(e){var t=e.attributes.columnsGap,n=o()(["ab-pricing-table-wrap","ab-block-pricing-table-gap-"+t]);return wp.element.createElement(eh,e,wp.element.createElement("div",{className:n||void 0},wp.element.createElement(kh.Content,null)))}});var jh=wp.i18n.__,Ph=wp.element.Component,Rh=wp.blockEditor,Hh=Rh.InspectorControls,Ah=Rh.PanelColorSettings,Fh=wp.components,zh=Fh.PanelBody,Nh=Fh.RangeControl,Bh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xh(e,t)}(a,e);var t,n,r,o=Dh(a);function a(e){return Eh(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderWidth,o=n.borderColor,a=n.borderRadius,i=n.backgroundColor,l=n.padding,s=t.setAttributes;return wp.element.createElement(Hh,{key:"inspector"},wp.element.createElement(zh,null,wp.element.createElement(m,{id:"ab_pricing_inner_padding"},wp.element.createElement(Nh,{label:jh("Pricing Column Padding","atomic-blocks"),value:l,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),wp.element.createElement(m,{id:"ab_pricing_inner_borderWidth"},wp.element.createElement(Nh,{label:jh("Pricing Column Border","atomic-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),wp.element.createElement(m,{id:"ab_pricing_inner_borderRadius"},wp.element.createElement(Nh,{label:jh("Pricing Column Border Radius","atomic-blocks"),value:a,onChange:function(t){return e.props.setAttributes({borderRadius:t})},min:0,max:20,step:1}))),0<r&&wp.element.createElement(m,{id:"ab_pricing_inner_borderColor"},wp.element.createElement(Ah,{title:jh("Pricing Column Border Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return s({borderColor:e})},label:jh("Border Color","atomic-blocks")}]})),wp.element.createElement(m,{id:"ab_pricing_inner_colorSettings"},wp.element.createElement(Ah,{title:jh("Pricing Column Background Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return s({backgroundColor:e})},label:jh("Background Color","atomic-blocks")}]})))}}])&&Yh(t.prototype,n),r&&Yh(t,r),a}(Ph);n(320),n(321);function Ih(e){return(Ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wh(){return(Wh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uh(Object(n),!0).forEach((function(t){Jh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $h(e,t){return($h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zh(e);if(t){var o=Zh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qh(this,n)}}function Qh(e,t){return!t||"object"!==Ih(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zh(e){return(Zh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xh=wp.i18n.__,eb=wp.element.Component,tb=wp.blocks.registerBlockType,nb=wp.blockEditor,rb=nb.InnerBlocks,ob=nb.AlignmentToolbar,ab=nb.BlockControls,ib=wp.element.Fragment,lb=["atomic-blocks/ab-pricing-table-description","atomic-blocks/ab-pricing-table-price","atomic-blocks/ab-pricing-table-subtitle","atomic-blocks/ab-pricing-table-title","atomic-blocks/ab-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"],sb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$h(e,t)}(i,e);var t,n,r,a=Kh(i);function i(){return Gh(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,i=t.backgroundColor,l=t.padding,s=t.alignment,u=e.setAttributes,c={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:i||null,padding:l?l+"%":null};return[wp.element.createElement(ab,{key:"controls"},wp.element.createElement(ob,{value:s,onChange:function(e){u({alignment:e})}})),wp.element.createElement(Bh,Wh({key:"ab-pricing-table-inner-inspector-"+this.props.clientId},Vh({setAttributes:u},this.props))),wp.element.createElement(ib,{key:"ab-pricing-table-inner-fragment-"+this.props.clientId},wp.element.createElement("div",{className:o()(s?"ab-block-pricing-table-"+s:"ab-block-pricing-table-center","ab-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},wp.element.createElement("div",{className:"ab-block-pricing-table-inside",style:c},wp.element.createElement(rb,{template:[["atomic-blocks/ab-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["atomic-blocks/ab-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["atomic-blocks/ab-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["atomic-blocks/ab-pricing-table-features",{features:"<li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li>",multilineTag:"li",ordered:!1,customFontSize:20,paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["atomic-blocks/ab-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:lb,templateInsertUpdatesSelection:!1}))))]}}])&&qh(t.prototype,n),r&&qh(t,r),i}(eb);tb("atomic-blocks/ab-pricing-table",{title:Xh("Pricing Column","atomic-blocks"),description:Xh("Add a pricing column.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing"],keywords:[Xh("pricing","atomic-blocks"),Xh("shop","atomic-blocks"),Xh("buy","atomic-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},ab_settings_data:{ab_pricing_inner_padding:{title:Xh("Pricing Column Padding","atomic-blocks")},ab_pricing_inner_borderWidth:{title:Xh("Pricing Column Border","atomic-blocks")},ab_pricing_inner_borderRadius:{title:Xh("Pricing Column Border Radius","atomic-blocks")},ab_pricing_inner_borderColor:{title:Xh("Pricing Column Border Color","atomic-blocks")},ab_pricing_inner_colorSettings:{title:Xh("Pricing Column Background Color","atomic-blocks")}},edit:sb,save:function(e){var t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,i=t.backgroundColor,l=t.alignment,s=t.padding,u={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:i||null,padding:s?s+"%":null};return wp.element.createElement("div",{className:o()(l?"ab-block-pricing-table-"+l:"ab-block-pricing-table-center","ab-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},wp.element.createElement("div",{className:"ab-block-pricing-table-inside",style:u},wp.element.createElement(rb.Content,null)))}});var ub=wp.i18n.__,cb=wp.element.Fragment,db=wp.components.RangeControl;function pb(e){var t=e.padding,n=e.paddingTitle,r=e.paddingHelp,o=e.paddingMin,a=e.paddingMax,i=e.paddingEnable,l=e.onChangePadding,s=void 0===l?function(){}:l,u=e.paddingTop,c=e.paddingTopMin,d=e.paddingTopMax,p=e.paddingEnableTop,f=e.onChangePaddingTop,m=void 0===f?function(){}:f,h=e.paddingRight,b=e.paddingRightMin,y=e.paddingRightMax,_=e.paddingEnableRight,g=e.onChangePaddingRight,v=void 0===g?function(){}:g,w=e.paddingBottom,k=e.paddingBottomMin,M=e.paddingBottomMax,L=e.paddingEnableBottom,S=e.onChangePaddingBottom,T=void 0===S?function(){}:S,E=e.paddingLeft,Y=e.paddingLeftMin,x=e.paddingLeftMax,D=e.paddingEnableLeft,O=e.onChangePaddingLeft,C=void 0===O?function(){}:O,j=e.paddingVertical,P=e.paddingEnableVertical,R=e.paddingVerticalMin,H=e.paddingVerticalMax,A=e.onChangePaddingVertical,F=void 0===A?function(){}:A,z=e.paddingHorizontal,N=e.paddingEnableHorizontal,B=e.paddingHorizontalMin,I=e.paddingHorizontalMax,W=e.onChangePaddingHorizontal,U=void 0===W?function(){}:W;return wp.element.createElement(cb,null,i&&wp.element.createElement(db,{label:n||ub("Padding","atomic-blocks"),help:r||null,value:t,min:o,max:a,onChange:s}),p&&wp.element.createElement(db,{label:ub("Padding Top","atomic-blocks"),value:u,min:c,max:d,onChange:m}),_&&wp.element.createElement(db,{label:ub("Padding Right","atomic-blocks"),value:h,min:b,max:y,onChange:v}),L&&wp.element.createElement(db,{label:ub("Padding Bottom","atomic-blocks"),value:w,min:k,max:M,onChange:T}),D&&wp.element.createElement(db,{label:ub("Padding Left","atomic-blocks"),value:E,min:Y,max:x,onChange:C}),P&&wp.element.createElement(db,{label:ub("Padding Vertical","atomic-blocks"),value:j,min:R,max:H,onChange:F}),N&&wp.element.createElement(db,{label:ub("Padding Horizontal","atomic-blocks"),value:z,min:B,max:I,onChange:U}))}function fb(e){return(fb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mb(){return(mb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yb(e,t){return(yb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vb(e);if(t){var o=vb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gb(this,n)}}function gb(e,t){return!t||"object"!==fb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vb(e){return(vb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wb=wp.i18n.__,kb=wp.element.Component,Mb=wp.compose.compose,Lb=wp.blockEditor,Sb=Lb.InspectorControls,Tb=Lb.FontSizePicker,Eb=Lb.withFontSizes,Yb=Lb.withColors,xb=Lb.ContrastChecker,Db=Lb.PanelColorSettings,Ob=wp.components,Cb=Ob.withFallbackStyles,jb=Ob.PanelBody,Pb=Ob.ToggleControl,Rb=Ob.TextControl,Hb=(Ob.RangeControl,Cb((function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,i=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),s=l?getComputedStyle(l):null;return{fallbackBackgroundColor:o||!s?void 0:s.backgroundColor,fallbackTextColor:r||!s?void 0:s.color,fallbackFontSize:a||i||!s?void 0:parseInt(s.fontSize)||void 0}}))),Ab=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yb(e,t)}(a,e);var t,n,r,o=_b(a);function a(e){return hb(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.showTerm,o=n.showCurrency,a=n.term,i=n.currency,l=n.paddingTop,s=n.paddingRight,u=n.paddingBottom,c=n.paddingLeft,d=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,f=t.fontSize,m=t.setFontSize,h=t.backgroundColor,b=t.textColor,y=t.setBackgroundColor,_=t.setTextColor,g=t.fallbackBackgroundColor,v=t.fallbackTextColor;return wp.element.createElement(Sb,{key:"inspector"},wp.element.createElement(jb,{title:wb("Text Settings","atomic-blocks")},wp.element.createElement(Tb,{fallbackFontSize:p,value:f.size,onChange:m}),wp.element.createElement(Pb,{label:wb("Show currency symbol","atomic-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&wp.element.createElement(Rb,{label:wb("Currency Symbol","atomic-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({currency:t})}}),wp.element.createElement(Pb,{label:wb("Show pricing duration","atomic-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&wp.element.createElement(Rb,{label:wb("Pricing Duration","atomic-blocks"),type:"text",value:a,onChange:function(t){return e.props.setAttributes({term:t})}})),wp.element.createElement(jb,{title:wb("Padding Settings","atomic-blocks"),initialOpen:!1},wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:s,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:u,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:c,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),wp.element.createElement(Db,{title:wb("Color Settings","atomic-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:y,label:wb("Background Color","atomic-blocks")},{value:b.color,onChange:_,label:wb("Text Color","atomic-blocks")}]},wp.element.createElement(xb,mb({textColor:b.color,backgroundColor:h.color,fallbackTextColor:v,fallbackBackgroundColor:g},{fontSize:f.size}))))}}])&&bb(t.prototype,n),r&&bb(t,r),a}(kb),Fb=Mb([Hb,Eb("fontSize"),Yb("backgroundColor",{textColor:"color"})])(Ab);function zb(e){return(zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ib(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wb(e,t){return(Wb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ub(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jb(e);if(t){var o=Jb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vb(this,n)}}function Vb(e,t){return!t||"object"!==zb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jb(e){return(Jb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gb=wp.i18n.__,qb=(wp.blocks.registerBlockType,wp.compose.compose),$b=wp.element,Kb=$b.Component,Qb=$b.Fragment,Zb=wp.blockEditor,Xb=Zb.RichText,ey=Zb.withFontSizes,ty=Zb.withColors,ny=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wb(e,t)}(i,e);var t,n,r,a=Ub(i);function i(){return Bb(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.price,a=n.currency,i=n.term,l=n.showTerm,s=n.showCurrency,u=n.paddingTop,c=n.paddingRight,d=n.paddingBottom,p=n.paddingLeft,f=(t.isSelected,t.className,t.setAttributes),m=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,b=t.textColor,y=o()((Nb(e={"ab-pricing-table-price-wrap":!0,"has-text-color":b.color,"has-background":h.color},h.class,h.class),Nb(e,b.class,b.class),Nb(e,"ab-pricing-has-currency",s),e)),_=o()(Nb({"ab-pricing-table-price":!0},m.class,m.class)),g={backgroundColor:h.color,color:b.color,paddingTop:u?u+"px":void 0,paddingRight:c?c+"px":void 0,paddingBottom:d?d+"px":void 0,paddingLeft:p?p+"px":void 0},v={fontSize:m.size?m.size+"px":void 0},w=Math.floor(m.size/2.5),k={fontSize:m.size?w+"px":void 0},M=Math.floor(m.size/2.5),L={fontSize:m.size?M+"px":void 0};return[wp.element.createElement(Qb,{key:"ab-pricing-table-inner-component-price-"+this.props.clientId},wp.element.createElement(Fb,this.props),wp.element.createElement("div",{className:y||void 0,style:g},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},s&&wp.element.createElement(Xb,{tagName:"span",itemProp:"priceCurrency",placeholder:Gb("$","atomic-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return f({currency:e})},className:"ab-pricing-table-currency",style:k}),wp.element.createElement(Xb,{tagName:"div",itemProp:"price",placeholder:Gb("49","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return f({price:e})},style:v,className:_||void 0}),l&&wp.element.createElement(Xb,{tagName:"span",value:i,placeholder:Gb("/mo","atomic-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return f({term:e})},className:"ab-pricing-table-term",style:L}))))]}}])&&Ib(t.prototype,n),r&&Ib(t,r),i}(Kb),ry=qb([ey("fontSize"),ty("backgroundColor",{textColor:"color"})])(ny);function oy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ay=wp.i18n.__,iy=wp.blockEditor,ly=iy.RichText,sy=iy.getFontSizeClass,uy=iy.getColorClassName,cy=[{attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,i=n.fontSize,l=n.customFontSize,s=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,f=n.showTerm,m=n.showCurrency,h=n.paddingTop,b=n.paddingRight,y=n.paddingBottom,_=n.paddingLeft,g=sy(i),v=uy("color",u),w=uy("background-color",s),k=o()((oy(t={"has-background":s||c,"ab-pricing-table-price-wrap":!0},v,v),oy(t,w,w),oy(t,"ab-pricing-has-currency",m&&a),t)),M=o()(oy({"ab-pricing-table-price":!0},g,g)),L={backgroundColor:w?void 0:c,color:v?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:b?b+"px":void 0,paddingBottom:y?y+"px":void 0,paddingLeft:_?_+"px":void 0},S={fontSize:g?void 0:l},T=g?void 0:l,E=Math.floor(T/2.5),Y={fontSize:T?E+"px":void 0},x=Math.floor(T/2.5),D={fontSize:T?x+"px":void 0};return wp.element.createElement("div",{className:k||void 0,style:L},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&m&&wp.element.createElement(ly.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:ay("$","atomic-blocks"),value:a,className:"ab-pricing-table-currency",style:Y}),wp.element.createElement(ly.Content,{tagName:"div",itemProp:"price",value:r,className:M||void 0,style:S}),p&&f&&wp.element.createElement(ly.Content,{tagName:"span",value:p,className:"ab-pricing-table-term",style:D})))}}];function dy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var py=wp.i18n.__,fy=wp.blocks.registerBlockType,my=wp.element,hy=(my.Component,my.Fragment,wp.blockEditor),by=hy.RichText,yy=hy.getFontSizeClass,_y=(hy.FontSizePicker,hy.withFontSizes,hy.getColorClassName);function gy(e){return(gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vy(){return(vy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function wy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ky(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function My(e,t){return(My=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ly(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ty(e);if(t){var o=Ty(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sy(this,n)}}function Sy(e,t){return!t||"object"!==gy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ty(e){return(Ty=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}fy("atomic-blocks/ab-pricing-table-price",{title:py("Product Price","atomic-blocks"),description:py("Adds a product price component with schema markup.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[py("pricing table","atomic-blocks"),py("price","atomic-blocks"),py("shop","atomic-blocks")],attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:ry,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,i=n.fontSize,l=n.customFontSize,s=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,f=n.showTerm,m=n.showCurrency,h=n.paddingTop,b=n.paddingRight,y=n.paddingBottom,_=n.paddingLeft,g=yy(i),v=_y("color",u),w=_y("background-color",s),k=o()((dy(t={"has-background":s||c,"ab-pricing-table-price-wrap":!0},v,v),dy(t,w,w),dy(t,"ab-pricing-has-currency",m&&a),t)),M=o()(dy({"ab-pricing-table-price":!0},g,g)),L={backgroundColor:w?void 0:c,color:v?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:b?b+"px":void 0,paddingBottom:y?y+"px":void 0,paddingLeft:_?_+"px":void 0},S={fontSize:g?void 0:l},T=g?void 0:l,E=Math.floor(T/2.5),Y={fontSize:T?E+"px":void 0},x=Math.floor(T/2.5),D={fontSize:T?x+"px":void 0};return wp.element.createElement("div",{className:k||void 0,style:L},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&m&&wp.element.createElement(by.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"ab-pricing-table-currency",style:Y}),wp.element.createElement(by.Content,{tagName:"div",itemProp:"price",value:r,className:M||void 0,style:S}),p&&f&&wp.element.createElement(by.Content,{tagName:"span",value:p,className:"ab-pricing-table-term",style:D})))},deprecated:cy});var Ey=wp.i18n.__,Yy=wp.element.Component,xy=wp.compose.compose,Dy=wp.blockEditor,Oy=Dy.InspectorControls,Cy=Dy.FontSizePicker,jy=Dy.withFontSizes,Py=Dy.withColors,Ry=Dy.ContrastChecker,Hy=Dy.PanelColorSettings,Ay=Dy.ColorPalette,Fy=wp.components,zy=Fy.withFallbackStyles,Ny=Fy.PanelBody,By=Fy.PanelRow,Iy=Fy.SelectControl,Wy=Fy.BaseControl,Uy=Fy.RangeControl,Vy=zy((function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,i=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),s=l?getComputedStyle(l):null;return{fallbackBackgroundColor:o||!s?void 0:s.backgroundColor,fallbackTextColor:r||!s?void 0:s.color,fallbackFontSize:a||i||!s?void 0:parseInt(s.fontSize)||void 0}})),Jy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&My(e,t)}(a,e);var t,n,r,o=Ly(a);function a(e){return wy(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderStyle,o=n.borderColor,a=n.borderWidth,i=n.paddingTop,l=n.paddingRight,s=n.paddingBottom,u=n.paddingLeft,c=(t.isSelected,t.setAttributes),d=t.fallbackFontSize,p=t.fontSize,f=t.setFontSize,m=t.backgroundColor,h=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,_=t.fallbackBackgroundColor,g=t.fallbackTextColor,v=[{value:"ab-list-border-none",label:Ey("None")},{value:"ab-list-border-solid",label:Ey("Solid")},{value:"ab-list-border-dotted",label:Ey("Dotted")},{value:"ab-list-border-dashed",label:Ey("Dashed")}];return wp.element.createElement(Oy,{key:"inspector"},wp.element.createElement(Ny,{title:Ey("Text Settings","atomic-blocks")},wp.element.createElement(Cy,{fallbackFontSize:d,value:p.size,onChange:f}),wp.element.createElement(Iy,{label:Ey("List Border Style","atomic-blocks"),value:r,options:v.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({borderStyle:t})}}),"ab-list-border-none"!==r&&wp.element.createElement(Uy,{label:Ey("List Border Width","atomic-blocks"),value:a,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:1,max:5,step:1}),"ab-list-border-none"!==r&&wp.element.createElement(By,null,wp.element.createElement(Wy,{label:Ey("List Border Color","atomic-blocks"),id:"ab-list-border-color-"+this.props.clientId},wp.element.createElement(Ay,{initialOpen:!1,value:o,onChange:function(e){return c({borderColor:e})}})))),wp.element.createElement(Ny,{title:Ey("Padding Settings","atomic-blocks"),initialOpen:!1},wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:i,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return c({paddingTop:e})},paddingEnableRight:!0,paddingRight:l,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return c({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:s,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return c({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:u,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return c({paddingLeft:e})}})),wp.element.createElement(Hy,{title:Ey("Color Settings","atomic-blocks"),initialOpen:!1,colorSettings:[{value:m.color,onChange:b,label:Ey("Background Color","atomic-blocks")},{value:h.color,onChange:y,label:Ey("Text Color","atomic-blocks")}]},wp.element.createElement(Ry,vy({textColor:h.color,backgroundColor:m.color,fallbackTextColor:g,fallbackBackgroundColor:_},{fontSize:p.size}))))}}])&&ky(t.prototype,n),r&&ky(t,r),a}(Yy),Gy=xy([Vy,jy("fontSize"),Py("backgroundColor",{textColor:"color"})])(Jy);function qy(e){return(qy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ky(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zy(e,t){return(Zy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=t_(e);if(t){var o=t_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return e_(this,n)}}function e_(e,t){return!t||"object"!==qy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function t_(e){return(t_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n_=wp.i18n.__,r_=(wp.blocks.registerBlockType,wp.compose.compose),o_=wp.element,a_=o_.Component,i_=o_.Fragment,l_=wp.blockEditor,s_=l_.RichText,u_=l_.withFontSizes,c_=l_.withColors,d_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zy(e,t)}(i,e);var t,n,r,a=Xy(i);function i(){return Ky(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.features,a=n.borderStyle,i=n.borderColor,l=n.borderWidth,s=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),f=(t.fallbackFontSize,t.fontSize),m=t.backgroundColor,h=t.textColor,b=o()(($y(e={"ab-pricing-table-features":!0},f.class,f.class),$y(e,"has-text-color",h.color),$y(e,"has-background",m.color),$y(e,m.class,m.class),$y(e,h.class,h.class),$y(e,a,a),$y(e,"ab-list-border-width-"+l,l),e)),y={fontSize:f.size?f.size+"px":void 0,backgroundColor:m.color,color:h.color,borderColor:i||void 0,paddingTop:s?s+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:d?d+"px":void 0};return[wp.element.createElement(i_,{key:"ab-pricing-table-inner-component-description-"+this.props.clientId},wp.element.createElement(Gy,this.props),wp.element.createElement(s_,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:n_("Add a product feature","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({features:e})},style:y,className:b||void 0}))]}}])&&Qy(t.prototype,n),r&&Qy(t,r),i}(a_),p_=r_([u_("fontSize"),c_("backgroundColor",{textColor:"color"})])(d_);function f_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m_=wp.i18n.__,h_=wp.blocks.registerBlockType,b_=(wp.element.Component,wp.blockEditor),y_=b_.RichText,__=b_.getFontSizeClass,g_=(b_.FontSizePicker,b_.withFontSizes,b_.getColorClassName);function v_(e){return(v_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w_(){return(w_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L_(e,t){return(L_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E_(e);if(t){var o=E_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T_(this,n)}}function T_(e,t){return!t||"object"!==v_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E_(e){return(E_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}h_("atomic-blocks/ab-pricing-table-features",{title:m_("Product Features","atomic-blocks"),description:m_("Adds a product feature component with schema markup.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[m_("pricing table","atomic-blocks"),m_("features","atomic-blocks"),m_("shop","atomic-blocks")],attributes:{features:{type:"string",source:"html",selector:"ol,ul",multiline:"li"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},borderStyle:{type:"string",default:"ab-list-border-none"},borderColor:{type:"string"},borderWidth:{type:"number",default:1},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:p_,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,i=n.customFontSize,l=n.backgroundColor,s=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.borderStyle,p=n.borderColor,f=n.borderWidth,m=n.paddingTop,h=n.paddingRight,b=n.paddingBottom,y=n.paddingLeft,_=__(a),g=g_("color",s),v=g_("background-color",l),w=o()((f_(t={"has-background":l||u,"ab-pricing-table-features":!0},_,_),f_(t,g,g),f_(t,v,v),f_(t,d,d),f_(t,"ab-list-border-width-"+f,f),t)),k={fontSize:_?void 0:i,backgroundColor:v?void 0:u,color:g?void 0:c,borderColor:p||void 0,paddingTop:m?m+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:b?b+"px":void 0,paddingLeft:y?y+"px":void 0};return wp.element.createElement(y_.Content,{tagName:"ul",itemProp:"description",value:r,className:w||void 0,style:k})}});var Y_=wp.i18n.__,x_=wp.element.Component,D_=wp.compose.compose,O_=wp.blockEditor,C_=O_.InspectorControls,j_=O_.FontSizePicker,P_=O_.withFontSizes,R_=O_.withColors,H_=O_.ContrastChecker,A_=O_.PanelColorSettings,F_=(O_.RangeControl,wp.components),z_=F_.withFallbackStyles,N_=F_.PanelBody,B_=z_((function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,i=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),s=l?getComputedStyle(l):null;return{fallbackBackgroundColor:o||!s?void 0:s.backgroundColor,fallbackTextColor:r||!s?void 0:s.color,fallbackFontSize:a||i||!s?void 0:parseInt(s.fontSize)||void 0}})),I_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L_(e,t)}(a,e);var t,n,r,o=S_(a);function a(e){return k_(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,a=t.paddingLeft,i=(e.isSelected,e.setAttributes),l=e.fallbackFontSize,s=e.fontSize,u=e.setFontSize,c=e.backgroundColor,d=e.textColor,p=e.setBackgroundColor,f=e.setTextColor,m=e.fallbackBackgroundColor,h=e.fallbackTextColor;return wp.element.createElement(C_,{key:"inspector"},wp.element.createElement(N_,{title:Y_("Text Settings","atomic-blocks")},wp.element.createElement(j_,{fallbackFontSize:l,value:s.size,onChange:u})),wp.element.createElement(N_,{title:Y_("Padding Settings","atomic-blocks"),initialOpen:!1},wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return i({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return i({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return i({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:a,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return i({paddingLeft:e})}})),wp.element.createElement(A_,{title:Y_("Color Settings","atomic-blocks"),initialOpen:!1,colorSettings:[{value:c.color,onChange:p,label:Y_("Background Color","atomic-blocks")},{value:d.color,onChange:f,label:Y_("Text Color","atomic-blocks")}]},wp.element.createElement(H_,w_({textColor:d.color,backgroundColor:c.color,fallbackTextColor:h,fallbackBackgroundColor:m},{fontSize:s.size}))))}}])&&M_(t.prototype,n),r&&M_(t,r),a}(x_),W_=D_([B_,P_("fontSize"),R_("backgroundColor",{textColor:"color"})])(I_);function U_(e){return(U_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q_(e,t){return(q_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q_(e);if(t){var o=Q_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return K_(this,n)}}function K_(e,t){return!t||"object"!==U_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q_(e){return(Q_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z_=wp.i18n.__,X_=(wp.blocks.registerBlockType,wp.compose.compose),eg=wp.element,tg=eg.Component,ng=eg.Fragment,rg=wp.blockEditor,og=rg.RichText,ag=rg.withFontSizes,ig=rg.withColors,lg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q_(e,t)}(i,e);var t,n,r,a=$_(i);function i(){return J_(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.title,a=n.paddingTop,i=n.paddingRight,l=n.paddingBottom,s=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,f=o()((V_(e={"ab-pricing-table-title":!0},c.class,c.class),V_(e,"has-text-color",p.color),V_(e,"has-background",d.color),V_(e,d.class,d.class),V_(e,p.class,p.class),e)),m={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:i?i+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0};return[wp.element.createElement(ng,{key:"ab-pricing-table-inner-component-title-"+this.props.clientId},wp.element.createElement(W_,this.props),wp.element.createElement(og,{tagName:"div",itemProp:"name",placeholder:Z_("Price Title","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({title:e})},style:m,className:f||void 0}))]}}])&&G_(t.prototype,n),r&&G_(t,r),i}(tg),sg=X_([ag("fontSize"),ig("backgroundColor",{textColor:"color"})])(lg);function ug(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cg=wp.i18n.__,dg=wp.blocks.registerBlockType,pg=(wp.element.Component,wp.blockEditor),fg=pg.RichText,mg=pg.getFontSizeClass,hg=(pg.FontSizePicker,pg.withFontSizes,pg.getColorClassName);function bg(e){return(bg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vg(e,t){return(vg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mg(e);if(t){var o=Mg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kg(this,n)}}function kg(e,t){return!t||"object"!==bg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mg(e){return(Mg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}dg("atomic-blocks/ab-pricing-table-title",{title:cg("Product Title","atomic-blocks"),description:cg("Adds a product title component with schema markup.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[cg("pricing table","atomic-blocks"),cg("title","atomic-blocks"),cg("shop","atomic-blocks")],attributes:{title:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:sg,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,i=n.customFontSize,l=n.backgroundColor,s=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,f=n.paddingBottom,m=n.paddingLeft,h=mg(a),b=hg("color",s),y=hg("background-color",l),_={fontSize:h?void 0:i,backgroundColor:y?void 0:u,color:b?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:m?m+"px":void 0},g=o()((ug(t={"has-background":l||u,"ab-pricing-table-title":!0},h,h),ug(t,b,b),ug(t,y,y),t));return wp.element.createElement(fg.Content,{tagName:"div",itemProp:"name",value:r,style:_,className:g||void 0})}});var Lg=wp.i18n.__,Sg=(wp.blocks.registerBlockType,wp.compose.compose),Tg=wp.element,Eg=Tg.Component,Yg=Tg.Fragment,xg=wp.blockEditor,Dg=xg.RichText,Og=xg.withFontSizes,Cg=xg.withColors,jg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vg(e,t)}(i,e);var t,n,r,a=wg(i);function i(){return _g(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.subtitle,a=n.paddingTop,i=n.paddingRight,l=n.paddingBottom,s=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,f=o()((yg(e={"ab-pricing-table-subtitle":!0},c.class,c.class),yg(e,"has-text-color",p.color),yg(e,"has-background",d.color),yg(e,d.class,d.class),yg(e,p.class,p.class),e)),m={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:i?i+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0};return[wp.element.createElement(Yg,{key:"ab-pricing-table-inner-component-subtitle-"+this.props.clientId},wp.element.createElement(W_,this.props),wp.element.createElement(Dg,{tagName:"div",placeholder:Lg("Price Subtitle","atomic-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({subtitle:e})},style:m,className:f||void 0}))]}}])&&gg(t.prototype,n),r&&gg(t,r),i}(Eg),Pg=Sg([Og("fontSize"),Cg("backgroundColor",{textColor:"color"})])(jg);function Rg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hg=wp.i18n.__,Ag=wp.blocks.registerBlockType,Fg=(wp.element.Component,wp.blockEditor),zg=Fg.RichText,Ng=Fg.getFontSizeClass,Bg=(Fg.FontSizePicker,Fg.withFontSizes,Fg.getColorClassName);function Ig(e){return(Ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ug(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vg(e,t){return(Vg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qg(e);if(t){var o=qg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gg(this,n)}}function Gg(e,t){return!t||"object"!==Ig(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qg(e){return(qg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ag("atomic-blocks/ab-pricing-table-subtitle",{title:Hg("Product Subtitle","atomic-blocks"),description:Hg("Adds a product subtitle component with schema markup.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[Hg("pricing table","atomic-blocks"),Hg("subtitle","atomic-blocks"),Hg("shop","atomic-blocks")],attributes:{subtitle:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Pg,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,i=n.customFontSize,l=n.backgroundColor,s=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,f=n.paddingBottom,m=n.paddingLeft,h=Ng(a),b=Bg("color",s),y=Bg("background-color",l),_=o()((Rg(t={"has-background":l||u,"ab-pricing-table-subtitle":!0},h,h),Rg(t,b,b),Rg(t,y,y),t)),g={fontSize:h?void 0:i,backgroundColor:y?void 0:u,color:b?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:m?m+"px":void 0};return wp.element.createElement(zg.Content,{tagName:"div",value:r,className:_||void 0,style:g})}});var $g=wp.i18n.__,Kg=wp.element.Component,Qg=wp.compose.compose,Zg=wp.blockEditor,Xg=Zg.InspectorControls,ev=(Zg.FontSizePicker,Zg.withFontSizes),tv=Zg.withColors,nv=(Zg.ContrastChecker,Zg.PanelColorSettings),rv=wp.components,ov=rv.withFallbackStyles,av=rv.PanelBody,iv=(rv.ToggleControl,rv.TextControl,rv.RangeControl,ov((function(e,t){var n=t.attributes.backgroundColor,r=e.querySelector('[contenteditable="true"]'),o=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!o?void 0:o.backgroundColor}}))),lv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vg(e,t)}(a,e);var t,n,r,o=Jg(a);function a(e){return Wg(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,a=t.paddingLeft,i=(t.buttonText,t.buttonUrl,t.buttonAlignment,t.buttonBackgroundColor),l=t.buttonTextColor,s=t.buttonSize,u=t.buttonShape,c=t.buttonTarget,d=(e.isSelected,e.setAttributes),p=e.backgroundColor,f=e.setBackgroundColor;return e.fallbackBackgroundColor,wp.element.createElement(Xg,{key:"inspector"},wp.element.createElement(av,{title:$g("Button Settings","atomic-blocks")},wp.element.createElement(eo,{buttonTarget:c,onChangeButtonTarget:function(e){return d({buttonTarget:!c})},buttonSize:s,onChangeButtonSize:function(e){return d({buttonSize:e})},buttonShape:u,onChangeButtonShape:function(e){return d({buttonShape:e})},buttonBackgroundColor:i,onChangeButtonColor:function(e){return d({buttonBackgroundColor:e})},buttonTextColor:l,onChangeButtonTextColor:function(e){return d({buttonTextColor:e})}})),wp.element.createElement(av,{title:$g("Padding Settings","atomic-blocks"),initialOpen:!1},wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:a,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),wp.element.createElement(nv,{title:$g("Color Settings","atomic-blocks"),initialOpen:!1,colorSettings:[{value:p.color,onChange:f,label:$g("Background Color","atomic-blocks")}]}))}}])&&Ug(t.prototype,n),r&&Ug(t,r),a}(Kg),sv=Qg([iv,ev("fontSize"),tv("backgroundColor")])(lv);function uv(e){return(uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pv(e,t){return(pv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hv(e);if(t){var o=hv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mv(this,n)}}function mv(e,t){return!t||"object"!==uv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hv(e){return(hv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bv=wp.i18n.__,yv=(wp.blocks.registerBlockType,wp.compose.compose),_v=wp.element,gv=_v.Component,vv=_v.Fragment,wv=wp.blockEditor,kv=wv.RichText,Mv=wv.withFontSizes,Lv=wv.withColors,Sv=(wv.InnerBlocks,wv.URLInput),Tv=wp.components,Ev=Tv.Button,Yv=Tv.Dashicon,xv=Tv.Icon,Dv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pv(e,t)}(i,e);var t,n,r,a=fv(i);function i(){return cv(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.subtitle,t.paddingTop),r=t.paddingRight,a=t.paddingBottom,i=t.paddingLeft,l=t.buttonText,s=t.buttonUrl,u=t.buttonAlignment,c=t.buttonBackgroundColor,d=t.buttonTextColor,p=t.buttonSize,f=t.buttonShape,m=(t.buttonTarget,e.isSelected),h=(e.className,e.setAttributes),b=e.backgroundColor,y=o()({"ab-pricing-table-button":!0}),_={backgroundColor:b.color,paddingTop:n?n+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:a?a+"px":void 0,paddingLeft:i?i+"px":void 0};return[wp.element.createElement(vv,{key:"ab-pricing-table-inner-component-button-"+this.props.clientId},wp.element.createElement(sv,this.props),wp.element.createElement("div",{className:y||void 0,style:_},wp.element.createElement(vo,this.props,wp.element.createElement(kv,{tagName:"span",placeholder:bv("Button text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:l,allowedFormats:[],className:o()("ab-button",f,p),style:{color:d,backgroundColor:c},onChange:function(e){return h({buttonText:e})}})),m&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link ab-button-".concat(u),onSubmit:function(e){return e.preventDefault()},style:{textAlign:u}},wp.element.createElement(Yv,{icon:"admin-links"}),wp.element.createElement(Sv,{className:"button-url",value:s,onChange:function(e){return h({buttonUrl:e})}}),wp.element.createElement(Ev,{label:bv("Apply","atomic-blocks"),type:"submit"},wp.element.createElement(xv,{icon:"editor-break"})))))]}}])&&dv(t.prototype,n),r&&dv(t,r),i}(gv),Ov=yv([Mv("fontSize"),Lv("backgroundColor",{textColor:"color"})])(Dv);var Cv=wp.i18n.__,jv=wp.blocks.registerBlockType,Pv=(wp.element.Component,wp.blockEditor),Rv=Pv.RichText,Hv=(Pv.getFontSizeClass,Pv.FontSizePicker,Pv.withFontSizes,Pv.getColorClassName);jv("atomic-blocks/ab-pricing-table-button",{title:Cv("Product Button","atomic-blocks"),description:Cv("Adds a product button component.","atomic-blocks"),icon:"cart",category:"atomic-blocks",parent:["atomic-blocks/ab-pricing-table"],keywords:[Cv("pricing table","atomic-blocks"),Cv("subtitle","atomic-blocks"),Cv("shop","atomic-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"ab-button-size-medium"},buttonShape:{type:"string",default:"ab-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Ov,save:function(e){var t,n,r,a=e.attributes,i=a.backgroundColor,l=a.customBackgroundColor,s=a.paddingTop,u=a.paddingRight,c=a.paddingBottom,d=a.paddingLeft,p=a.buttonText,f=a.buttonUrl,m=(a.buttonAlignment,a.buttonBackgroundColor),h=a.buttonTextColor,b=a.buttonSize,y=a.buttonShape,_=a.buttonTarget,g=Hv("background-color",i),v=o()((r=g,(n=g)in(t={"has-background":i||l,"ab-pricing-table-button":!0})?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)),w={backgroundColor:g?void 0:l,paddingTop:s?s+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:d?d+"px":void 0};return wp.element.createElement("div",{className:v||void 0,style:w},wp.element.createElement(vo,e,p&&wp.element.createElement("a",{href:f,target:_?"_blank":null,rel:_?"noopener noreferrer":null,className:o()("ab-button",y,b),style:{color:h,backgroundColor:m}},wp.element.createElement(Rv.Content,{value:p}))))}});var Av=wp.i18n.__,Fv=wp.element.Fragment,zv=wp.components.RangeControl;function Nv(e){var t=e.marginTop,n=e.marginTopLabel,r=e.marginTopMin,o=e.marginTopMax,a=e.marginEnableTop,i=e.onChangeMarginTop,l=void 0===i?function(){}:i,s=e.marginRight,u=e.marginRightLabel,c=e.marginRightMin,d=e.marginRightMax,p=e.marginEnableRight,f=e.onChangeMarginRight,m=void 0===f?function(){}:f,h=e.marginBottom,b=e.marginBottomLabel,y=e.marginBottomMin,_=e.marginBottomMax,g=e.marginEnableBottom,v=e.onChangeMarginBottom,w=void 0===v?function(){}:v,k=e.marginLeft,M=e.marginLeftLabel,L=e.marginLeftMin,S=e.marginLeftMax,T=e.marginEnableLeft,E=e.onChangeMarginLeft,Y=void 0===E?function(){}:E,x=e.marginVertical,D=e.marginVerticalLabel,O=e.marginEnableVertical,C=e.marginVerticalMin,j=e.marginVerticalMax,P=e.onChangeMarginVertical,R=void 0===P?function(){}:P,H=e.marginHorizontal,A=e.marginHorizontalLabel,F=e.marginEnableHorizontal,z=e.marginHorizontalMin,N=e.marginHorizontalMax,B=e.onChangeMarginHorizontal,I=void 0===B?function(){}:B;return wp.element.createElement(Fv,null,a&&wp.element.createElement(zv,{label:n||Av("Margin Top","atomic-blocks"),value:t,min:r,max:o,onChange:l}),p&&wp.element.createElement(zv,{label:u||Av("Margin Right","atomic-blocks"),value:s,min:c,max:d,onChange:m}),g&&wp.element.createElement(zv,{label:b||Av("Margin Bottom","atomic-blocks"),value:h,min:y,max:_,onChange:w}),T&&wp.element.createElement(zv,{label:M||Av("Margin Left","atomic-blocks"),value:k,min:L,max:S,onChange:Y}),O&&wp.element.createElement(zv,{label:D||Av("Margin Vertical","atomic-blocks"),value:x,min:C,max:j,onChange:R}),F&&wp.element.createElement(zv,{label:A||Av("Margin Horizontal","atomic-blocks"),value:H,min:z,max:N,onChange:I}))}function Bv(e){return(Bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Iv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uv(e,t){return(Uv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gv(e);if(t){var o=Gv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jv(this,n)}}function Jv(e,t){return!t||"object"!==Bv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gv(e){return(Gv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qv=wp.i18n.__,$v=wp.element.Component,Kv=wp.compose.compose,Qv=wp.blockEditor,Zv=Qv.InspectorControls,Xv=Qv.withColors,ew=Qv.ContrastChecker,tw=Qv.PanelColorSettings,nw=wp.components,rw=nw.PanelBody,ow=nw.SelectControl,aw=nw.TextControl,iw=nw.FormToggle,lw=(0,nw.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,o=n.textColor,a=n.buttonBackgroundColor,i=n.buttonTextColor,l=e.querySelector('[contenteditable="true"]'),s=l?getComputedStyle(l):null;return{fallbackBackgroundColor:r||!s?void 0:s.backgroundColor,fallbackTextColor:o||!s?void 0:s.color,fallbackButtonBackgroundColor:a||!s?void 0:s.buttonBackgroundColor,fallbackButtonTextColor:i||!s?void 0:s.buttonTextColor}})),sw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Uv(e,t)}(a,e);var t,n,r,o=Vv(a);function a(){return Iv(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"doubleOptInChange",value:function(e){this.props.doubleOptIn&&this.props.doubleOptIn(e.target.checked)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.backgroundColor,o=e.setBackgroundColor,a=e.fallbackBackgroundColor,i=e.textColor,l=e.fallbackTextColor,s=e.setTextColor,u=e.buttonBackgroundColor,c=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,p=e.fallbackButtonTextColor,f=e.setButtonBackgroundColor,h=e.setButtonTextColor,b={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:qv("Select a list","atomic-blocks"),value:""}]}};return atomic_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((function(e){return b.mailchimp.lists.push({label:e.name,value:e.id})})),wp.element.createElement(Zv,null,wp.element.createElement(rw,{title:qv("Newsletter","atomic-blocks"),initialOpen:!t.mailingList},wp.element.createElement(m,{id:"ab_newsletter_mailingList"},wp.element.createElement(ow,{label:qv("Mailing List","atomic-blocks"),help:qv("The list people will be subscribed to.","atomic-blocks"),options:b.mailchimp.lists,value:t.mailingList,onChange:function(e){return n({mailingList:e})}})),wp.element.createElement(m,{id:"ab_newsletter_successMessage"},wp.element.createElement(aw,{type:"string",label:qv("Success Message","atomic-blocks"),help:qv("The message shown when people successfully subscribe.","atomic-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),wp.element.createElement(m,{id:"ab_newsletter_doubleOptIn"},wp.element.createElement("div",{className:"ab-newsletter-double-opt-in-setting-wrapper"},wp.element.createElement(iw,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"ab-newsletter-double-opt-in-toggle",checked:t.doubleOptIn,onChange:function(e){return n({doubleOptIn:e.target.checked})}}),wp.element.createElement("label",{className:"ab-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},qv("Enable Double Opt-In","atomic-blocks")),wp.element.createElement("p",{className:"description"},qv("Send contacts an opt-in confirmation email when they subscribe to your list.","atomic-blocks"))))),wp.element.createElement(rw,{title:qv("General","atomic-blocks"),initialOpen:!!t.mailingList},wp.element.createElement(m,{id:"ab_newsletter_containerPadding"},wp.element.createElement(pb,{paddingEnable:!0,paddingTitle:qv("Block Padding","atomic-blocks"),paddingHelp:qv("Adjust the padding applied to the inside of the block.","atomic-blocks"),padding:t.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:function(e){return n({containerPadding:e})}})),wp.element.createElement(m,{id:"ab_newsletter_containerMargin"},wp.element.createElement(Nv,{marginEnableTop:!0,marginTopLabel:qv("Block Margin Top","atomic-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:qv("Block Margin Bottom","atomic-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),wp.element.createElement(eo,{enableButtonTarget:!1,buttonSize:t.buttonSize,onChangeButtonSize:function(e){return n({buttonSize:e})},buttonShape:t.buttonShape,onChangeButtonShape:function(e){return n({buttonShape:e})},enableButtonBackgroundColor:!1,enableButtonTextColor:!1})),wp.element.createElement(m,{id:"ab_newsletter_colorOptions"},wp.element.createElement(tw,{title:qv("Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:o,label:qv("Block Background Color","atomic-blocks")},{value:i.color,onChange:s,label:qv("Block Text Color","atomic-blocks")},{value:u.color,onChange:f,label:qv("Button Background Color","atomic-blocks")},{value:d.color,onChange:h,label:qv("Button Text Color","atomic-blocks")}]},wp.element.createElement(ew,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:l,fallbackBackgroundColor:a}),wp.element.createElement(ew,{textColor:d.color,backgroundColor:u.color,fallbackButtonTextColor:p,fallbackButtonBackgroundColor:c}),wp.element.createElement(ew,{textColor:u.color,backgroundColor:r.color,fallbackButtonBackgroundColor:c,fallbackBackgroundColor:a}))))}}])&&Wv(t.prototype,n),r&&Wv(t,r),a}($v),uw=Kv([lw,Xv("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(sw);function cw(e){return(cw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mw(e,t){return(mw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yw(e);if(t){var o=yw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bw(this,n)}}function bw(e,t){return!t||"object"!==cw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yw(e){return(yw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _w=wp.element.Component,gw=(wp.blockEditor.getColorClassName,function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mw(e,t)}(i,e);var t,n,r,a=hw(i);function i(e){return pw(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r=this.props,a=r.attributes,i=r.backgroundColor,l=r.textColor;return t=a.customBackgroundColor?"ab-has-custom-background-color":a.backgroundColor?"has-"+a.backgroundColor+"-background-color":null,n=a.customTextColor?"ab-has-custom-text-color":a.textColor?"has-"+a.textColor+"-color":null,wp.element.createElement("div",{style:{backgroundColor:i.color,padding:a.containerPadding?a.containerPadding:void 0,marginTop:a.containerMarginTop?a.containerMarginTop:void 0,marginBottom:a.containerMarginBottom?a.containerMarginBottom:void 0,color:l.color},className:o()([this.props.className],(e={"ab-block-newsletter":!0,"ab-form-styles":!0,"has-background":a.backgroundColor||a.customBackgroundColor},dw(e,t,t),dw(e,n,n),e))},this.props.children)}}])&&fw(t.prototype,n),r&&fw(t,r),i}(_w));function vw(e){return(vw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ww(){return(ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kw(Object(n),!0).forEach((function(t){Lw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ew(e,t){return(Ew=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dw(e);if(t){var o=Dw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xw(this,n)}}function xw(e,t){return!t||"object"!==vw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dw(e){return(Dw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ow=wp.i18n.__,Cw=wp.compose,jw=Cw.compose,Pw=Cw.withInstanceId,Rw=wp.blockEditor,Hw=(Rw.getColorClassName,Rw.RichText),Aw=Rw.withColors,Fw=wp.element,zw=Fw.Fragment,Nw=Fw.Component,Bw=wp.components,Iw=Bw.TextControl,Ww=(0,Bw.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,o=n.textColor,a=n.buttonBackgroundColor,i=e.querySelector('[contenteditable="true"]'),l=i?getComputedStyle(i):null;return{fallbackBackgroundColor:r||!l?void 0:l.backgroundColor,fallbackTextColor:o||!l?void 0:l.color,fallbackButtonBackgroundColor:a||!l?void 0:l.buttonBackgroundColor}})),Uw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ew(e,t)}(i,e);var t,n,r,a=Yw(i);function i(){var e;return Sw(this,i),(e=a.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return t=i,(n=[{key:"render",value:function(){var e,t,n=this,r=this.props,a=r.attributes,i=r.isSelected,l=r.setAttributes,s=r.buttonBackgroundColor,u=r.buttonTextColor,c=atomic_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;return e=a.customButtonBackgroundColor?"ab-has-custom-background-color":a.buttonBackgroundColor?"has-"+a.buttonBackgroundColor+"-background-color":null,t=a.customButtonTextColor?"ab-has-custom-text-color":a.buttonTextColor?"has-"+a.buttonTextColor+"-color":null,[wp.element.createElement(uw,ww({key:"ab-newsletter-inspector-"+this.props.clientId},Mw({setAttributes:l},this.props))),wp.element.createElement(gw,ww({key:"ab-newsletter-container-"+this.props.clientId},this.props),!c&&wp.element.createElement(zw,null,wp.element.createElement("div",{className:"ab-newsletter-notice"},Ow("You must define your newsletter provider API keys to use this block.","atomic-blocks"),wp.element.createElement("p",null,wp.element.createElement("a",{href:atomic_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},Ow("Configure your settings","atomic-blocks"))))),c&&wp.element.createElement(zw,null,wp.element.createElement(Hw,{tagName:"span",className:"ab-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:a.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),wp.element.createElement(Iw,{name:"ab-newsletter-email-address"}),wp.element.createElement("div",{className:o()("ab-block-button")},wp.element.createElement(vo,this.props,wp.element.createElement(Hw,{tagName:"span",placeholder:Ow("Button text...","atomic-blocks"),keepPlaceholderOnFocus:!0,value:a.buttonText,allowedFormats:[],className:o()("ab-button",a.buttonClass,a.buttonShape,a.buttonSize,e,t,{"has-background":a.buttonBackgroundColor||a.customButtonBackgroundColor,"has-text-color":a.buttonTextColor||a.customButtonTextColor}),style:{backgroundColor:s.color,color:u.color},onChange:function(e){return n.props.setAttributes({buttonText:e})}})),i&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link ab-button-".concat(a.buttonAlignment),onSubmit:function(e){return e.preventDefault()},style:{textAlign:a.buttonAlignment}}))))]}}])&&Tw(t.prototype,n),r&&Tw(t,r),i}(Nw),Vw=jw([Ww,Aw("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Pw(Uw)),Jw=(n(322),n(323),wp.i18n.__);(0,wp.blocks.registerBlockType)("atomic-blocks/newsletter",{title:Jw("Email newsletter","atomic-blocks"),description:Jw("Add an email newsletter sign-up form.","atomic-blocks"),category:"atomic-blocks",icon:"email-alt",keywords:[Jw("Mailchimp","atomic-blocks"),Jw("Subscribe","atomic-blocks"),Jw("Newsletter","atomic-blocks")],edit:Vw,ab_settings_data:{ab_newsletter_mailingList:{title:Jw("Mailing List","atomic-blocks")},ab_newsletter_successMessage:{title:Jw("Success Message","atomic-blocks")},ab_newsletter_doubleOptIn:{title:Jw("Enable Double Opt-In","atomic-blocks")},ab_newsletter_containerPadding:{title:Jw("Form Padding","atomic-blocks")},ab_newsletter_containerMargin:{title:Jw("Form Margin","atomic-blocks")},ab_newsletter_colorOptions:{title:Jw("Color Options","atomic-blocks")}},save:function(){return null}});var Gw=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"ab-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"ab-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"ab-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"ab-background-"+e.backgroundRepeat:null,e.hasParallax?"ab-has-parallax":null];var t},qw=function(e){return{backgroundImage:e.backgroundImgURL?"url(".concat(e.backgroundImgURL,")"):void 0,backgroundPosition:e.focalPoint?"".concat(100*e.focalPoint.x,"% ").concat(100*e.focalPoint.y,"%"):void 0}};function $w(e){return($w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(e){return function(e){if(Array.isArray(e))return Xw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Xw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xw(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ek(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nk(e,t){return(nk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ak(e);if(t){var o=ak(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ok(this,n)}}function ok(e,t){return!t||"object"!==$w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ak(e){return(ak=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ik=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nk(e,t)}(i,e);var t,n,r,a=rk(i);function i(e){return ek(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.customBackgroundColor?"ab-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,t=n.customTextColor?"ab-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null;var r,a,i=o()([this.props.className,"ab-layout-columns-"+n.columns,n.layout].concat(Zw(Gw(n)),[e,t,n.columnMaxWidth&&n.centerColumns?"ab-columns-center":null]),Qw({},"align"+n.align,n.align));r=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},a=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kw(Object(n),!0).forEach((function(t){Qw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null},qw(n));return wp.element.createElement("div",{className:i||void 0,style:Object.assign(r,a,l)},this.props.children)}}])&&tk(t.prototype,n),r&&tk(t,r),i}(wp.element.Component),lk={};lk.oneEqual=wp.element.createElement("svg",{className:"dashicon",height:"26",viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),lk.twoEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),lk.twoLeftWide=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),lk.twoRightWide=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),lk.threeEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),lk.threeWideCenter=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),lk.threeWideLeft=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),lk.threeWideRight=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),lk.fourEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),lk.fourLeft=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),lk.fourRight=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),lk.fiveEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),lk.sixEqual=wp.element.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),lk.blockIcon=wp.element.createElement("svg",{viewBox:"0 0 60 34",height:"34",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),wp.element.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));var sk=lk,uk=wp.i18n.__,ck={1:[{name:uk("1 Column","atomic-blocks"),key:"ab-1-col-equal",col:1,icon:sk.oneEqual}],2:[{name:uk("2 Columns - 50/50","atomic-blocks"),key:"ab-2-col-equal",col:2,icon:sk.twoEqual},{name:uk("2 Columns - 75/25","atomic-blocks"),key:"ab-2-col-wideleft",col:2,icon:sk.twoLeftWide},{name:uk("2 Columns - 25/75","atomic-blocks"),key:"ab-2-col-wideright",col:2,icon:sk.twoRightWide}],3:[{name:uk("3 Columns - 33/33/33","atomic-blocks"),key:"ab-3-col-equal",col:3,icon:sk.threeEqual},{name:uk("3 Columns - 25/50/25","atomic-blocks"),key:"ab-3-col-widecenter",col:3,icon:sk.threeWideCenter},{name:uk("3 Columns - 50/25/25","atomic-blocks"),key:"ab-3-col-wideleft",col:3,icon:sk.threeWideLeft},{name:uk("3 Columns - 25/25/50","atomic-blocks"),key:"ab-3-col-wideright",col:3,icon:sk.threeWideRight}],4:[{name:uk("4 Columns - 25/25/25/25","atomic-blocks"),key:"ab-4-col-equal",col:4,icon:sk.fourEqual},{name:uk("4 Columns - 40/20/20/20","atomic-blocks"),key:"ab-4-col-wideleft",col:4,icon:sk.fourLeft},{name:uk("4 Columns - 20/20/20/40","atomic-blocks"),key:"ab-4-col-wideright",col:4,icon:sk.fourRight}],5:[{name:uk("5 Columns","atomic-blocks"),key:"ab-5-col-equal",col:5,icon:sk.fiveEqual}],6:[{name:uk("6 Columns","atomic-blocks"),key:"ab-6-col-equal",col:6,icon:sk.sixEqual}]};function dk(e){return(dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bk(e,t){return(bk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gk(e);if(t){var o=gk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _k(this,n)}}function _k(e,t){return!t||"object"!==dk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gk(e){return(gk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vk=wp.i18n.__,wk=wp.element,kk=wk.Fragment,Mk=wk.Component,Lk=wp.components,Sk=Lk.PanelBody,Tk=Lk.RangeControl,Ek=Lk.Button,Yk=Lk.ButtonGroup,xk=Lk.FocalPointPicker,Dk=Lk.Icon,Ok=Lk.ToggleControl,Ck=Lk.SelectControl,jk=wp.blockEditor,Pk=jk.MediaUpload,Rk=jk.MediaUploadCheck,Hk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bk(e,t)}(a,e);var t,n,r,o=yk(a);function a(){return mk(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.setAttributes,a=[{value:"no-repeat",label:vk("No Repeat","atomic-blocks")},{value:"repeat",label:vk("Repeat","atomic-blocks")},{value:"repeat-x",label:vk("Repeat Horizontally","atomic-blocks")},{value:"repeat-y",label:vk("Repeat Vertically","atomic-blocks")}],i=[{value:"auto",label:vk("Auto","atomic-blocks")},{value:"cover",label:vk("Cover","atomic-blocks")},{value:"contain",label:vk("Contain","atomic-blocks")}];return"cover"===r.backgroundSize&&(e=vk("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","atomic-blocks")),"contain"===r.backgroundSize&&(e=vk("Scales the image as large as possible without cropping or stretching the image.","atomic-blocks")),"auto"===r.backgroundSize&&(e=vk("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","atomic-blocks")),wp.element.createElement(kk,null,wp.element.createElement(Sk,{title:vk("Background Image","atomic-blocks"),initialOpen:!1},wp.element.createElement(Rk,null,wp.element.createElement(Pk,{onSelect:function(e){o({backgroundImgURL:e.url})},type:"image",value:r.backgroundImgURL,render:function(e){var t=e.open;return wp.element.createElement("div",null,wp.element.createElement(Yk,{className:"ab-background-button-group"},wp.element.createElement(Ek,{className:"ab-inspector-icon-button ab-background-add-button is-button is-default",label:vk("Edit image","atomic-blocks"),onClick:t},wp.element.createElement(Dk,{icon:"format-image"}),vk("Select Image","atomic-blocks")),r.backgroundImgURL&&wp.element.createElement(Ek,{className:"ab-inspector-icon-button ab-background-remove-button is-button is-default",label:vk("Remove Image","atomic-blocks"),onClick:function(){return o({backgroundImgURL:null})}},wp.element.createElement(Dk,{icon:"dismiss"}),vk("Remove","atomic-blocks"))))}})),r.backgroundImgURL&&wp.element.createElement(kk,null,wp.element.createElement(xk,{label:vk("Focal Point","atomic-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return o({focalPoint:e})}}),wp.element.createElement(Tk,{label:vk("Image Opacity","atomic-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),wp.element.createElement(Ok,{label:vk("Fixed Background","atomic-blocks"),checked:r.hasParallax,onChange:function(){o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pk(Object(n),!0).forEach((function(t){fk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasParallax:!r.hasParallax},r.hasParallax?{}:{focalPoint:void 0}))}}),wp.element.createElement(Ck,{className:"ab-inspector-help-text",label:vk("Image Display","atomic-blocks"),value:r.backgroundSize,help:e,options:i,onChange:function(e){return t.props.setAttributes({backgroundSize:e})}}),"cover"!==r.backgroundSize&&wp.element.createElement(Ck,{label:vk("Image Repeat","atomic-blocks"),value:r.backgroundRepeat,options:a,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}])&&hk(t.prototype,n),r&&hk(t,r),a}(Mk);function Ak(e){return(Ak="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nk(e,t){return(Nk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wk(e);if(t){var o=Wk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ik(this,n)}}function Ik(e,t){return!t||"object"!==Ak(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wk(e){return(Wk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Uk=wp.i18n.__,Vk=wp.element,Jk=Vk.Component,Gk=Vk.Fragment,qk=wp.blockEditor,$k=qk.InspectorControls,Kk=qk.PanelColorSettings,Qk=qk.ContrastChecker,Zk=wp.components,Xk=Zk.PanelBody,eM=Zk.RangeControl,tM=Zk.ButtonGroup,nM=Zk.Button,rM=Zk.Tooltip,oM=Zk.ToggleControl,aM=Zk.SelectControl,iM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nk(e,t)}(a,e);var t,n,r,o=Bk(a);function a(e){return Fk(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.backgroundColor,a=t.setBackgroundColor,i=t.textColor,l=t.setTextColor,s=1;n.columns&&(s=parseInt(n.columns.toString().split("-")));var u=[{value:"px",label:Uk("Pixel (px)","atomic-blocks")},{value:"%",label:Uk("Percent (%)","atomic-blocks")},{value:"em",label:Uk("Em (em)","atomic-blocks")}];return wp.element.createElement($k,{key:"inspector"},n.layout&&wp.element.createElement(Xk,{title:Uk("General","atomic-blocks"),initialOpen:!0,className:"ab-column-select-panel"},wp.element.createElement(m,{id:"ab_column_columns"},wp.element.createElement(eM,{label:Uk("Column Count","atomic-blocks"),help:Uk("Note: Changing the column count after you've added content to the column can cause loss of content.","atomic-blocks"),value:n.columns,onChange:function(t){return e.props.setAttributes({columns:t,layout:"ab-"+t+"-col-equal"})},min:1,max:6,step:1})),wp.element.createElement("hr",null),(2===n.columns||3===n.columns||4===n.columns)&&wp.element.createElement(Gk,null,wp.element.createElement(m,{id:"ab_column_columnLayouts"},wp.element.createElement("p",null,Uk("Column Layout","atomic-blocks")),wp.element.createElement(tM,{"aria-label":Uk("Column Layout","atomic-blocks")},Ru()(ck[s],(function(t){var n=t.name,o=t.key,a=t.icon;return t.col,wp.element.createElement(rM,{text:n,key:o},wp.element.createElement(nM,{key:o,className:"ab-column-selector-button",isSmall:!0,onClick:function(){r({layout:o}),e.setState({selectLayout:!1})}},a))}))),wp.element.createElement("p",null,wp.element.createElement("i",null,Uk("Change the layout of your columns.","atomic-blocks"))),wp.element.createElement("hr",null))),wp.element.createElement(m,{id:"ab_column_columnsGap"},wp.element.createElement(eM,{label:Uk("Column Gap","atomic-blocks"),help:Uk("Adjust the spacing between columns.","atomic-blocks"),value:n.columnsGap,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:10,step:1})),wp.element.createElement("hr",null),wp.element.createElement(m,{id:"ab_column_columnMaxWidth"},wp.element.createElement(eM,{label:Uk("Column Inner Max Width (px)"),help:Uk("Adjust the width of the content inside the container wrapper.","atomic-blocks"),value:n.columnMaxWidth,onChange:function(t){return e.props.setAttributes({columnMaxWidth:t})},min:0,max:2e3,step:1})),0<n.columnMaxWidth&&wp.element.createElement(m,{id:"ab_column_centerColumns"},wp.element.createElement(oM,{label:Uk("Center Columns In Container","atomic-blocks"),help:Uk("Center the columns in the container when max-width is used.","atomic-blocks"),checked:n.centerColumns,onChange:function(){return e.props.setAttributes({centerColumns:!n.centerColumns})}})),wp.element.createElement("hr",null),wp.element.createElement(m,{id:"ab_column_responsiveToggle"},wp.element.createElement(oM,{label:Uk("Responsive Columns","atomic-blocks"),help:Uk("Columns will be adjusted to fit on tablets and mobile devices.","atomic-blocks"),checked:n.responsiveToggle,onChange:function(){return e.props.setAttributes({responsiveToggle:!n.responsiveToggle})}}))),wp.element.createElement(m,{id:"ab_column_marginPadding"},wp.element.createElement(Xk,{title:Uk("Margin and Padding","atomic-blocks"),initialOpen:!1},wp.element.createElement(aM,{label:Uk("Margin Unit","atomic-blocks"),help:Uk("Choose between pixel, percent, or em units.","atomic-blocks"),options:u,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),wp.element.createElement(oM,{label:Uk("Sync Margin","atomic-blocks"),help:Uk("Top and bottom margins will have the same value.","atomic-blocks"),checked:n.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!n.marginSync})}}),n.marginSync?wp.element.createElement(Nv,{marginEnableVertical:!0,marginVerticalLabel:Uk("Margin Top/Bottom","atomic-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):wp.element.createElement(Nv,{marginEnableTop:!0,marginTop:n.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return r({marginTop:e})},marginEnableBottom:!0,marginBottom:n.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return r({marginBottom:e})}}),wp.element.createElement("hr",null),wp.element.createElement(aM,{label:Uk("Padding Unit","atomic-blocks"),help:Uk("Choose between pixel, percent, or em units.","atomic-blocks"),options:u,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),wp.element.createElement(oM,{label:Uk("Sync Padding","atomic-blocks"),help:Uk("Padding on all sides will have the same value.","atomic-blocks"),checked:n.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!n.paddingSync})}}),n.paddingSync?wp.element.createElement(pb,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:n.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return r({paddingTop:e})},paddingEnableRight:!0,paddingRight:n.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return r({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:n.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return r({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:n.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return r({paddingLeft:e})}}))),wp.element.createElement(m,{id:"ab_column_colorSettings"},wp.element.createElement(Kk,{title:Uk("Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:o.color,onChange:a,label:Uk("Background Color","atomic-blocks")},{value:i.color,onChange:l,label:Uk("Text Color","atomic-blocks")}]},wp.element.createElement(Qk,{textColor:i.color,backgroundColor:o.color}))),wp.element.createElement(m,{id:"ab_column_backgroundImagePanel"},wp.element.createElement(Hk,this.props)))}}])&&zk(t.prototype,n),r&&zk(t,r),a}(Jk);function lM(e){return(lM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sM(){return(sM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function uM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dM(e,t){return(dM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mM(e);if(t){var o=mM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fM(this,n)}}function fM(e,t){return!t||"object"!==lM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mM(e){return(mM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hM=wp.i18n.__,bM=wp.element,yM=bM.Component,_M=bM.Fragment,gM=wp.compose.compose,vM=wp.blockEditor,wM=vM.BlockControls,kM=vM.BlockAlignmentToolbar,MM=vM.InnerBlocks,LM=vM.withColors,SM=wp.components,TM=SM.Placeholder,EM=SM.ButtonGroup,YM=SM.Tooltip,xM=SM.Button,DM=["atomic-blocks/ab-column"],OM=nh()((function(e){return oh()(e,(function(){return["atomic-blocks/ab-column"]}))})),CM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dM(e,t)}(i,e);var t,n,r,a=pM(i);function i(e){var t;return uM(this,i),(t=a.apply(this,arguments)).state={selectLayout:!0},t}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,a=1;n.columns&&(a=parseInt(n.columns.toString().split("-")));var i=[{name:hM("1 Column","atomic-blocks"),key:"one-column",columns:1,icon:sk.oneEqual},{name:hM("2 Columns","atomic-blocks"),key:"two-column",columns:2,icon:sk.twoEqual},{name:hM("3 Columns","atomic-blocks"),key:"three-column",columns:3,icon:sk.threeEqual},{name:hM("4 Columns","atomic-blocks"),key:"four-column",columns:4,icon:sk.fourEqual},{name:hM("5 Columns","atomic-blocks"),key:"five-column",columns:5,icon:sk.fiveEqual},{name:hM("6 Columns","atomic-blocks"),key:"six-column",columns:6,icon:sk.sixEqual}];return!n.layout&&this.state.selectLayout?[wp.element.createElement(TM,{key:"placeholder",icon:"editor-table",label:n.columns?hM("Column Layout","atomic-blocks"):hM("Column Number","atomic-blocks"),instructions:n.columns?hM("Select a layout for this column.","atomic-blocks"):hM("Select the number of columns for this layout.","atomic-blocks"),className:"ab-column-selector-placeholder"},n.columns?wp.element.createElement(_M,null,wp.element.createElement(EM,{"aria-label":hM("Select Column Layout","atomic-blocks"),className:"ab-column-selector-group"},Ru()(ck[a],(function(t){var n=t.name,o=t.key,a=t.icon;return wp.element.createElement(YM,{text:n,key:o},wp.element.createElement("div",{className:"ab-column-selector"},wp.element.createElement(xM,{key:o,className:"ab-column-selector-button",isSmall:!0,onClick:function(){r({layout:o}),e.setState({selectLayout:!1})}},a)))}))),wp.element.createElement(xM,{className:"ab-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},hM("Return to Column Selection","atomic-blocks"))):wp.element.createElement(EM,{"aria-label":hM("Select Row Columns","atomic-blocks"),className:"ab-column-selector-group"},Ru()(i,(function(t){var n=t.name,o=t.key,a=t.icon,i=t.columns;return wp.element.createElement(YM,{text:n,key:o},wp.element.createElement("div",{className:"ab-column-selector"},wp.element.createElement(xM,{className:"ab-column-selector-button",isSmall:!0,onClick:function(){r({columns:i,layout:1===i||5===i||6===i?o:null}),1===i&&e.setState({selectLayout:!1})}},a)))}))))]:[wp.element.createElement(wM,{key:"controls"},wp.element.createElement(kM,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),wp.element.createElement(iM,sM({},this.props,{key:"inspector"})),wp.element.createElement(ik,sM({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),wp.element.createElement("div",{className:o()("ab-layout-column-wrap-admin","ab-block-layout-column-gap-"+n.columnsGap,n.responsiveToggle?"ab-is-responsive-column":null),style:{maxWidth:n.columnMaxWidth?n.columnMaxWidth:null}},wp.element.createElement(MM,{template:OM(n.columns),templateLock:"all",allowedBlocks:DM})))]}}])&&cM(t.prototype,n),r&&cM(t,r),i}(yM),jM=gM([LM("backgroundColor",{textColor:"color"})])(CM);function PM(e){return(PM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function RM(){return(RM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function HM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function FM(e,t){return(FM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BM(e);if(t){var o=BM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return NM(this,n)}}function NM(e,t){return!t||"object"!==PM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function BM(e){return(BM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var IM=wp.element.Component,WM=wp.blockEditor.InnerBlocks,UM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&FM(e,t)}(i,e);var t,n,r,a=zM(i);function i(){return HM(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.attributes,t=o()(["ab-layout-column-wrap","ab-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"ab-is-responsive-column":null]);return wp.element.createElement(ik,RM({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),wp.element.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},wp.element.createElement(WM.Content,null)))}}])&&AM(t.prototype,n),r&&AM(t,r),i}(IM),VM={backgroundImgURL:{type:"string"},backgroundDimRatio:{type:"number",default:100},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundSize:{type:"string",default:"cover"},hasParallax:{type:"boolean",default:!1},focalPoint:{type:"object"}};function JM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JM(Object(n),!0).forEach((function(t){qM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $M=wp.i18n.__;function KM(e){return(KM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function QM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XM(e,t){return(XM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nL(e);if(t){var o=nL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tL(this,n)}}function tL(e,t){return!t||"object"!==KM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nL(e){return(nL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-columns",{title:$M("Advanced Columns","atomic-blocks"),description:$M("Add a pre-defined column layout.","atomic-blocks"),icon:"editor-table",category:"atomic-blocks",keywords:[$M("column","atomic-blocks"),$M("grid","atomic-blocks"),$M("row","atomic-blocks")],attributes:GM(GM({},VM),{},{columns:{type:"number"},layout:{type:"string"},columnsGap:{type:"number",default:2},align:{type:"string"},responsiveToggle:{type:"boolean",default:!0},marginSync:{type:"boolean",default:!1},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},marginUnit:{type:"string",default:"px"},paddingSync:{type:"boolean",default:!1},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingUnit:{type:"string",default:"px"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},columnMaxWidth:{type:"number"},centerColumns:{type:"boolean",default:!0}}),ab_settings_data:{ab_column_columns:{title:$M("Column Count","atomic-blocks")},ab_column_columnLayouts:{title:$M("Column Layout","atomic-blocks")},ab_column_columnsGap:{title:$M("Column Gap","atomic-blocks")},ab_column_columnMaxWidth:{title:$M("Column Inner Max Width","atomic-blocks")},ab_column_centerColumns:{title:$M("Center Columns In Container","atomic-blocks")},ab_column_responsiveToggle:{title:$M("Responsive Columns","atomic-blocks")},ab_column_marginPadding:{title:$M("Margin / Padding","atomic-blocks")},ab_column_colorSettings:{title:$M("Color Settings","atomic-blocks")},ab_column_backgroundImagePanel:{title:$M("Background Settings","atomic-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:function(e){return wp.element.createElement(jM,e)},save:function(e){return wp.element.createElement(UM,e)}});var rL=wp.i18n.__,oL=wp.element.Component,aL=wp.compose.compose,iL=wp.blockEditor,lL=iL.InspectorControls,sL=iL.PanelColorSettings,uL=iL.withColors,cL=iL.ContrastChecker,dL=wp.components,pL=dL.PanelBody,fL=dL.ToggleControl,mL=dL.SelectControl,hL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&XM(e,t)}(a,e);var t,n,r,o=eL(a);function a(e){return QM(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.backgroundColor,r=t.setBackgroundColor,o=t.textColor,a=t.setTextColor,i=t.attributes,l=t.setAttributes,s=[{value:"px",label:rL("Pixel (px)","atomic-blocks")},{value:"%",label:rL("Percent (%)","atomic-blocks")},{value:"em",label:rL("Em (em)","atomic-blocks")}];return wp.element.createElement(lL,{key:"inspector"},wp.element.createElement(m,{id:"ab_column_inner_marginPadding"},wp.element.createElement(pL,{title:rL("Margin and Padding","atomic-blocks"),initialOpen:!1},wp.element.createElement(mL,{label:rL("Margin Unit","atomic-blocks"),help:rL("Choose between pixel, percent, or em units.","atomic-blocks"),options:s,value:i.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),wp.element.createElement(fL,{label:rL("Sync Margin","atomic-blocks"),help:rL("Top and bottom margins will have the same value.","atomic-blocks"),checked:i.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!i.marginSync})}}),i.marginSync?wp.element.createElement(Nv,{marginEnableVertical:!0,marginVerticalLabel:rL("Margin Top/Bottom","atomic-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return l({margin:e})}}):wp.element.createElement(Nv,{marginEnableTop:!0,marginTop:i.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return l({marginTop:e})},marginEnableBottom:!0,marginBottom:i.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return l({marginBottom:e})}}),wp.element.createElement("hr",null),wp.element.createElement(mL,{label:rL("Padding Unit","atomic-blocks"),help:rL("Choose between pixel, percent, or em units.","atomic-blocks"),options:s,value:i.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),wp.element.createElement(fL,{label:rL("Sync Padding","atomic-blocks"),help:rL("Padding on all sides will have the same value.","atomic-blocks"),checked:i.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!i.paddingSync})}}),i.paddingSync?wp.element.createElement(pb,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return l({padding:e})}}):wp.element.createElement(pb,{paddingEnableTop:!0,paddingTop:i.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return l({paddingTop:e})},paddingEnableRight:!0,paddingRight:i.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return l({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:i.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return l({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return l({paddingLeft:e})}}))),wp.element.createElement(m,{id:"ab_column_inner_colorSettings"},wp.element.createElement(sL,{title:rL("Color","atomic-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:rL("Background Color","atomic-blocks")},{value:o.color,onChange:a,label:rL("Text Color","atomic-blocks")}]},wp.element.createElement(cL,{textColor:o.color,backgroundColor:n.color}))),wp.element.createElement(m,{id:"ab_column_inner_backgroundImagePanel"},wp.element.createElement(Hk,this.props)))}}])&&ZM(t.prototype,n),r&&ZM(t,r),a}(oL),bL=aL([uL("backgroundColor",{textColor:"color"})])(hL);function yL(e){return(yL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _L(e){return function(e){if(Array.isArray(e))return gL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gL(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ML(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function LL(e,t){return(LL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function SL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EL(e);if(t){var o=EL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TL(this,n)}}function TL(e,t){return!t||"object"!==yL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function EL(e){return(EL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var YL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&LL(e,t)}(i,e);var t,n,r,a=SL(i);function i(e){return kL(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vL(Object(n),!0).forEach((function(t){wL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null},qw(n));return r=n.customBackgroundColor?"ab-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"ab-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,wp.element.createElement("div",{className:o()(this.props.className,"ab-block-layout-column",n.columnVerticalAlignment?"ab-is-vertically-aligned-"+n.columnVerticalAlignment:null)},wp.element.createElement("div",{className:o.a.apply(void 0,["ab-block-layout-column-inner",r,a].concat(_L(Gw(n)))),style:Object.assign(e,t,i)},this.props.children))}}])&&ML(t.prototype,n),r&&ML(t,r),i}(wp.element.Component);function xL(e){return(xL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function DL(){return(DL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function OL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jL(e,t){return(jL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function PL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HL(e);if(t){var o=HL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RL(this,n)}}function RL(e,t){return!t||"object"!==xL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function HL(e){return(HL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var AL=wp.i18n.__,FL=wp.compose.compose,zL=wp.element.Component,NL=wp.components.Toolbar,BL=wp.blockEditor,IL=BL.AlignmentToolbar,WL=BL.BlockControls,UL=BL.InnerBlocks,VL=BL.withColors,JL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jL(e,t)}(a,e);var t,n,r,o=PL(a);function a(){return OL(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:AL("Vertical Align Top","atomic-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:AL("Vertical Align Middle","atomic-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:AL("Vertical Align Bottom","atomic-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[wp.element.createElement(WL,{key:"controls"},wp.element.createElement(IL,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),wp.element.createElement(NL,{controls:r})),wp.element.createElement(bL,DL({},this.props,{key:"inspector"})),wp.element.createElement(YL,DL({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),wp.element.createElement(UL,{templateLock:!1,templateInsertUpdatesSelection:!1}))]}}])&&CL(t.prototype,n),r&&CL(t,r),a}(zL),GL=FL([VL("backgroundColor",{textColor:"color"})])(JL);function qL(e){return(qL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $L(){return($L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function KL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZL(e,t){return(ZL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function XL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tS(e);if(t){var o=tS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eS(this,n)}}function eS(e,t){return!t||"object"!==qL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tS(e){return(tS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nS=wp.element.Component,rS=wp.blockEditor.InnerBlocks,oS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZL(e,t)}(a,e);var t,n,r,o=XL(a);function a(){return KL(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes;return wp.element.createElement(YL,$L({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),wp.element.createElement(rS.Content,null))}}])&&QL(t.prototype,n),r&&QL(t,r),a}(nS);function aS(e){return(aS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function iS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sS(e,t){return(sS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dS(e);if(t){var o=dS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cS(this,n)}}function cS(e,t){return!t||"object"!==aS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dS(e){return(dS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sS(e,t)}(i,e);var t,n,r,a=uS(i);function i(e){return iS(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,i={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null};return r=n.customBackgroundColor?"ab-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"ab-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,wp.element.createElement("div",{className:o()("ab-block-layout-column",n.columnVerticalAlignment?"ab-is-vertically-aligned-"+n.columnVerticalAlignment:null)},wp.element.createElement("div",{className:o()("ab-block-layout-column-inner",r,a),style:Object.assign(e,t,i)},this.props.children))}}])&&lS(t.prototype,n),r&&lS(t,r),i}(wp.element.Component);function fS(e){return(fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mS(){return(mS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yS(e,t){return(yS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vS(e);if(t){var o=vS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gS(this,n)}}function gS(e,t){return!t||"object"!==fS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vS(e){return(vS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wS=wp.element.Component,kS=wp.blockEditor.InnerBlocks,MS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yS(e,t)}(a,e);var t,n,r,o=_S(a);function a(){return hS(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.attributes;return wp.element.createElement(pS,mS({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),wp.element.createElement(kS.Content,null))}}])&&bS(t.prototype,n),r&&bS(t,r),a}(wS),LS=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},save:function(e){return wp.element.createElement(MS,e)}}];n(324),n(325);function SS(){return(SS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function TS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ES(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TS(Object(n),!0).forEach((function(t){YS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xS=wp.i18n.__;(0,wp.blocks.registerBlockType)("atomic-blocks/ab-column",{title:xS("Advanced Column","atomic-blocks"),description:xS("Add a pre-defined column layout.","atomic-blocks"),icon:"editor-table",category:"atomic-blocks",parent:["atomic-blocks/ab-columns"],keywords:[xS("column","atomic-blocks"),xS("layout","atomic-blocks"),xS("row","atomic-blocks")],attributes:ES(ES({},VM),{},{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}}),ab_settings_data:{ab_column_inner_marginPadding:{title:xS("Margin and Padding","atomic-blocks")},ab_column_inner_colorSettings:{title:xS("Color","atomic-blocks")},ab_column_inner_backgroundImagePanel:{title:xS("Background Image","atomic-blocks")}},edit:function(e){return wp.element.createElement(GL,e)},save:function(e){return wp.element.createElement(oS,e)},deprecated:LS});var DS=wp.compose.createHigherOrderComponent((function(e){return function(t){return"atomic-blocks/ab-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?wp.element.createElement(e,SS({},t,{className:"ab-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):wp.element.createElement(e,t)}}),"withClientIdClassName");function OS(e){return(OS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function CS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function PS(e,t){return(PS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function RS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AS(e);if(t){var o=AS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HS(this,n)}}function HS(e,t){return!t||"object"!==OS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function AS(e){return(AS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}wp.hooks.addFilter("editor.BlockListBlock","atomic-blocks/add-vertical-align-class",DS);var FS=wp.i18n.__,zS=wp.element,NS=zS.Component,BS=zS.Fragment,IS=wp.components,WS=IS.Button,US=IS.Dashicon,VS=IS.Tooltip,JS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&PS(e,t)}(i,e);var t,n,r,a=RS(i);function i(){return CS(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this;return wp.element.createElement(BS,null,wp.element.createElement("div",{key:"ab-layout-design-"+this.props.itemKey,className:"ab-layout-design"},wp.element.createElement("div",{className:"ab-layout-design-inside"},wp.element.createElement("div",{className:"ab-layout-design-item"},wp.element.createElement(WS,{key:this.props.itemKey,className:"ab-layout-insert-button",isSmall:!0,onClick:function(){e.props.import(e.props.content)}},wp.element.createElement("img",{src:this.props.image,alt:this.props.name})),wp.element.createElement("div",{className:"ab-layout-design-info"},wp.element.createElement("div",{className:"ab-layout-design-title"},this.props.name,wp.element.createElement(VS,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?FS("Remove from Favorites","atomic-blocks"):FS("Add to Favorites","atomic-blocks")},wp.element.createElement(WS,{key:"buttonFavorite",className:"ab-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},wp.element.createElement(US,{icon:"heart",className:o()("ab-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"ab-layout-icon-favorite-active")})))))))))}}])&&jS(t.prototype,n),r&&jS(t,r),i}(NS);function GS(e){return(GS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KS(e,t){return(KS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function QS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XS(e);if(t){var o=XS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ZS(this,n)}}function ZS(e,t){return!t||"object"!==GS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function XS(e){return(XS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eT=wp.i18n.__,tT=wp.url.addQueryArgs,nT=wp.element,rT=nT.Component,oT=nT.Fragment,aT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&KS(e,t)}(a,e);var t,n,r,o=QS(a);function a(){return qS(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return wp.element.createElement(oT,null,wp.element.createElement("div",{className:"ab-layout-reusable"},wp.element.createElement("div",null,wp.element.createElement("a",{role:"button",key:this.props.itemKey,className:"ab-layout-insert-button",onClick:function(){e.props.import(e.props.content)}},this.props.name)),wp.element.createElement("div",{className:"ab-layout-reusable-actions"},wp.element.createElement("span",null,wp.element.createElement("a",{href:tT("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},eT("Edit","atomic-blocks"))))))}}])&&$S(t.prototype,n),r&&$S(t,r),a}(rT);function iT(e){return(iT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uT(e,t){return(uT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pT(e);if(t){var o=pT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dT(this,n)}}function dT(e,t){return!t||"object"!==iT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pT(e){return(pT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fT=wp.compose.compose,mT=wp.blocks.rawHandler,hT=wp.data,bT=hT.withSelect,yT=hT.withDispatch,_T=wp.element,gT=_T.Component,vT=_T.Fragment,wT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uT(e,t)}(a,e);var t,n,r,o=cT(a);function a(){return lT(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return wp.element.createElement(vT,null,"ab-layout-tab-reusable-blocks"!==this.props.currentTab?wp.element.createElement(JS,this.props):wp.element.createElement(aT,this.props))}}])&&sT(t.prototype,n),r&&sT(t,r),a}(gT),kT=fT(bT((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/editor").canUserUseUnfilteredHTML;return{block:r(n),canUserUseUnfilteredHTML:o()}})),yT((function(e,t){var n=t.block,r=t.canUserUseUnfilteredHTML;return{import:function(t){return e("core/block-editor").replaceBlocks(n.clientId,mT({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:r}))}}})))(wT),MT=n(7),LT=n.n(MT);function ST(e){return(ST="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function TT(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ET(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){TT(a,r,o,i,l,"next",e)}function l(e){TT(a,r,o,i,l,"throw",e)}i(void 0)}))}}function YT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function DT(e,t){return(DT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function OT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=PT(e);if(t){var o=PT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return CT(this,n)}}function CT(e,t){return!t||"object"!==ST(t)&&"function"!=typeof t?jT(e):t}function jT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PT(e){return(PT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function RT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HT=wp.apiFetch,AT=Object(ba.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:""}),FT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&DT(e,t)}(i,e);var t,n,r,o,a=OT(i);function i(){var e;YT(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RT(jT(e=a.call.apply(a,[this].concat(n))),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:""}),e}return t=i,(n=[{key:"getFavoriteKeys",value:function(){return HT({path:"/atomicblocks/v1/layouts/favorites",method:"GET"}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"getFavorites",value:function(){var e=this;return HT({path:"/atomicblocks/v1/layouts/favorites",method:"GET"}).then((function(t){var n=[];return Object.values(e.state.all).forEach((function(e){t.includes(e.key)&&n.push(e)})),n})).catch((function(e){return console.error(e)}))}},{key:"addFavorite",value:function(e){return HT({path:"/atomicblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({atomic_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"removeFavorite",value:function(e){return HT({path:"/atomicblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({atomic_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"componentDidMount",value:(o=ET(LT.a.mark((function e(){var t,n=this;return LT.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getFavoriteKeys();case 2:t=e.sent,wp.apiFetch({method:"GET",path:"/atomicblocks/v1/layouts/all?filter=allowed"}).then(function(){var e=ET(LT.a.mark((function e(r){var o,a,i,l;return LT.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=[],a=[],i=[],l=[],Object.values(r).forEach((function(e){"layout"===e.type&&o.push(e),"section"===e.type&&a.push(e),"wp_block"===e.type&&i.push(e),t.includes(e.key)&&l.push(e)})),n.setState({all:r,layouts:o,sections:a,favorites:l,favoriteKeys:t,reusableBlocks:i});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e,t=this;return this.state.all?wp.element.createElement(AT.Provider,{value:{favorites:this.state.favorites,favoriteKeys:this.state.favoriteKeys,layouts:this.state.layouts,sections:this.state.sections,all:this.state.all,reusableBlocks:this.state.reusableBlocks,toggleFavorite:(e=ET(LT.a.mark((function e(n){var r,o;return LT.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFavoriteKeys();case 2:if(!(r=e.sent).includes(n)){e.next=9;break}return e.next=6,t.removeFavorite(n);case 6:r=e.sent,e.next=12;break;case 9:return e.next=11,t.addFavorite(n);case 11:r=e.sent;case 12:return e.next=14,t.getFavorites();case 14:return o=e.sent,t.setState({favorites:o,favoriteKeys:r}),e.abrupt("return",o);case 17:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}},this.props.children):null}}])&&xT(t.prototype,n),r&&xT(t,r),i}(ba.Component);function zT(e){return(zT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function NT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function IT(e,t){return(IT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function WT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VT(e);if(t){var o=VT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return UT(this,n)}}function UT(e,t){return!t||"object"!==zT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function VT(e){return(VT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var JT=wp.i18n.__,GT=wp.url.addQueryArgs,qT=wp.element,$T=qT.Component,KT=qT.Fragment,QT=wp.components,ZT=QT.ButtonGroup,XT=QT.TextControl,eE=QT.SelectControl,tE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&IT(e,t)}(i,e);var t,n,r,a=WT(i);function i(){var e;return NT(this,i),(e=a.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return t=i,(n=[{key:"getLayoutArray",value:function(){var e=[];switch(this.props.currentTab){case"ab-layout-tab-layouts":e=this.props.context.layouts;break;case"ab-layout-tab-sections":e=this.props.context.sections;break;case"ab-layout-tab-favorites":e=this.props.context.favorites;break;case"ab-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks}return e}},{key:"render",value:function(){for(var e=this,t=this.getLayoutArray(),n=["all"],r=0;r<t.length;r++)for(var a=0;a<t[r].category.length;a++)n.includes(t[r].category[a])||n.push(t[r].category[a]);var i=n.map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}}));return wp.element.createElement(KT,{key:"layout-library-fragment-"+this.props.clientId},"ab-layout-tab-reusable-blocks"!==this.props.currentTab?wp.element.createElement(KT,null,wp.element.createElement("div",{className:"ab-layout-modal-header"},wp.element.createElement(eE,{key:"layout-library-select-categories-"+this.props.clientId,label:JT("Layout Categories","atomic-blocks"),value:this.state.category,options:i,onChange:function(t){return e.setState({category:t})}}),wp.element.createElement(XT,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:JT("Search Layouts","atomic-blocks"),onChange:function(t){return e.setState({search:t})}}))):wp.element.createElement(KT,null,wp.element.createElement("div",{className:"ab-layout-modal-header ab-layout-modal-header-reusable"},wp.element.createElement("div",null,JT("Reusable Blocks","atomic-blocks")),wp.element.createElement("div",{className:"ab-layout-modal-header-reusable-actions"},wp.element.createElement("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:GT("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},JT("Manage All Reusable Blocks","atomic-blocks"))))),wp.element.createElement(AT.Consumer,null,(function(t){return wp.element.createElement(ZT,{key:"layout-library-context-button-group-"+e.props.clientId,className:o()("ab-layout-choices","current-tab-"+e.props.currentTab,"full"===e.state.activeView?"ab-layout-view-full":null),"aria-label":JT("Layout Options","atomic-blocks")},Ru()(e.props.data,(function(n){var r=n.name,o=n.key,a=n.image,i=n.content,l=n.category,s=n.keywords;if(("all"===e.state.category||l.includes(e.state.category))&&(!e.state.search||s&&s.some((function(t){return t.toLowerCase().includes(e.state.search.toLowerCase())}))))return wp.element.createElement(kT,{key:"layout-library-item-"+o,name:r,itemKey:o,image:a,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}])&&BT(t.prototype,n),r&&BT(t,r),i}($T);function nE(e){return(nE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aE(e,t){return(aE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function iE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sE(e);if(t){var o=sE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lE(this,n)}}function lE(e,t){return!t||"object"!==nE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sE(e){return(sE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uE=wp.i18n.__,cE=wp.element,dE=cE.Component,pE=cE.Fragment,fE=wp.components,mE=fE.Button,hE=fE.Dashicon,bE=fE.Modal,yE=fE.TabPanel,_E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aE(e,t)}(a,e);var t,n,r,o=iE(a);function a(){var e;return rE(this,a),(e=o.apply(this,arguments)).state={currentTab:"ab-layout-tab-sections"},e}return t=a,(n=[{key:"componentDidMount",value:function(){this.setState({modalOpen:!0})}},{key:"render",value:function(){var e=this,t=[{name:"ab-layout-tab-sections",title:uE("Sections","atomic-blocks"),className:"ab-layout-tab-sections"},{name:"ab-layout-tab-layouts",title:uE("Layouts","atomic-blocks"),className:"ab-layout-tab-layouts"},{name:"ab-layout-tab-favorites",title:uE("Favorites","atomic-blocks"),className:"ab-layout-tab-favorites"}];return this.props.context.reusableBlocks.length&&t.push({name:"ab-layout-tab-reusable-blocks",title:uE("Reusable Blocks","atomic-blocks"),className:"ab-layout-tab-reusable-blocks"}),wp.element.createElement(pE,{key:"layout-modal-fragment-"+this.props.clientId},wp.element.createElement(mE,{key:"layout-modal-library-button-"+this.props.clientId,isPrimary:!0,isLarge:!0,className:"ab-layout-modal-button",onClick:function(){return e.setState({modalOpen:!0})}},uE("Layout Library","atomic-blocks")),this.state.modalOpen?wp.element.createElement(bE,{key:"layout-modal-modal-component-"+this.props.clientId,className:"ab-layout-modal",title:uE("Layout Selector","atomic-blocks"),onRequestClose:function(){return e.setState({modalOpen:!1,currentTab:null})}},atomic_globals.pro_activated&&wp.element.createElement("div",{className:"ab-layout-modal-footer"},wp.element.createElement(hE,{icon:"editor-help"}),wp.element.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},uE("Add Custom Layouts","atomic-blocks")),wp.element.createElement("span",null,"·"),wp.element.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/",target:"_blank",rel:"noopener noreferrer"},uE("Reusable Blocks","atomic-blocks")),wp.element.createElement("a",{href:"https://www.research.net/r/genesispro",target:"_blank",rel:"noopener noreferrer",className:"ab-pro-feedback"},wp.element.createElement(hE,{icon:"admin-comments"})," ",uE("Send Feedback","atomic-blocks"))),wp.element.createElement(yE,{key:"layout-modal-tabpanel-"+this.props.clientId,className:"ab-layout-modal-panel",activeClass:"ab-layout-modal-active-tab",onSelect:function(t){return e.setState({currentTab:t})},tabs:t},(function(t){var n=uE("Default tab content","atomic-blocks");if(t.name){if("ab-layout-tab-sections"===t.name)return[wp.element.createElement(tE,{key:"layout-library-sections-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.sections,context:e.props.context})];if("ab-layout-tab-layouts"===t.name)return[wp.element.createElement(tE,{key:"layout-library-layouts-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.layouts,context:e.props.context})];if("ab-layout-tab-favorites"===t.name)return[wp.element.createElement(tE,{key:"layout-library-favorites-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.favorites,context:e.props.context})];if("ab-layout-tab-reusable-blocks"===t.name)return[wp.element.createElement(tE,{key:"layout-library-reusable-blocks-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.reusableBlocks,context:e.props.context})]}return wp.element.createElement("div",null,n)}))):null)}}])&&oE(t.prototype,n),r&&oE(t,r),a}(dE);function gE(e){return(gE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kE(e,t){return(kE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ME(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SE(e);if(t){var o=SE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LE(this,n)}}function LE(e,t){return!t||"object"!==gE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function SE(e){return(SE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var TE=wp.i18n.__,EE=wp.components.Placeholder,YE=wp.element,xE=YE.Component,DE=YE.Fragment,OE=wp.blockEditor,CE=OE.BlockControls,jE=OE.BlockAlignmentToolbar,PE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kE(e,t)}(a,e);var t,n,r,o=ME(a);function a(e){return vE(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[wp.element.createElement(DE,{key:this.props.clientId},wp.element.createElement(CE,{key:"controls"},wp.element.createElement(jE,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),wp.element.createElement(EE,{key:"placeholder",label:TE("Layout Selector","atomic-blocks"),instructions:TE("Launch the layout library to browse pre-designed sections.","atomic-blocks"),className:"ab-layout-selector-placeholder",icon:"layout"},wp.element.createElement(AT.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return wp.element.createElement(_E,{clientId:r,context:e})}))))]}}])&&wE(t.prototype,n),r&&wE(t,r),a}(xE),RE=(n(326),n(327),wp.i18n.__);function HE(){var e=wp.blocks.createBlock("atomic-blocks/ab-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}(0,wp.blocks.registerBlockType)("atomic-blocks/ab-layouts",{title:RE("Layouts","atomic-blocks"),description:RE("Add a pre-defined section or layout to posts and pages.","atomic-blocks"),icon:"layout",category:"atomic-blocks",keywords:[RE("layout","atomic-blocks"),RE("column","atomic-blocks"),RE("section","atomic-blocks")],edit:function(e){return wp.element.createElement(FT,null,wp.element.createElement(PE,e))},save:function(){return null}}),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector(".edit-post-header-toolbar");if(!e)return;var t=document.createElement("div"),n='<div class="ab-toolbar-insert-layout">';n+='<button id="abLayoutInsertButton" class="components-button components-icon-button" aria-label="'.concat(RE("Insert Layout","atomic-blocks"),'"><i class="dashicons dashicons-layout ab-toolbar-insert-layout-button"></i> ').concat(RE("Layouts","atomic-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t),document.getElementById("abLayoutInsertButton").addEventListener("click",HE)}));n(328),n(329)},function(e,t){},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]);
dist/blocks.editor.build.css CHANGED
@@ -7,7 +7,7 @@
7
  .ab-block-accordion{margin-bottom:0}
8
  .ab-block-cta{margin-bottom:0}.block-editor-block-list__layout [data-type="atomic-blocks/ab-cta"]{margin-bottom:1.2em}.ab-cta-button .blocks-button__inline-link .editor-url-input{display:inline-block;width:auto}.ab-cta-button .blocks-button__inline-link .components-button{display:inline-block;padding:8px}.ab-cta-button .blocks-button__inline-link svg{vertical-align:middle;margin-right:8px}.ab-block-cta h2.editor-rich-text__tinymce.mce-content-body{line-height:1.2}.ab-cta-inspector-media.components-button{padding:8px}
9
  .ab-block-sharing{margin-bottom:0}
10
- .ab-block-post-grid .ab-block-post-grid-title a{text-decoration:none}.atomic-blocks-hide-query .components-base-control:nth-of-type(3){display:none}.ab-block-post-grid-markup-settings .components-base-control__help{margin-top:8px}.block-editor__container .block-editor-block-list__block .ab-block-post-grid a{color:inherit}.ab-block-post-grid-image{position:relative}.ab-block-post-grid-image:hover .ab-post-grid-no-image-placeholder{opacity:1;z-index:1}.ab-post-grid-no-image-placeholder{padding:40px;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;background:#f3f3f4;transition:.2s ease}.ab-post-grid-no-image-placeholder svg{margin-bottom:10px}.ab-post-grid-no-image-icon{position:absolute;top:10px;background:#ffe606;right:10px;padding:6px;line-height:1;height:32px;transition:.2s ease;border-radius:5px;z-index:1}.block-editor__container .components-placeholder__fieldset .ab-post-grid-image-help{display:inline-block;font-weight:bold}.block-editor__container .components-placeholder__fieldset .ab-post-grid-image-help a{color:#0073aa;text-decoration:underline}.block-editor__container .components-placeholder__fieldset .ab-post-grid-image-help a:hover{color:#00a0d2}[data-type="atomic-blocks/ab-post-grid"] .components-placeholder{align-items:center}[data-type="atomic-blocks/ab-post-grid"] .components-placeholder .components-placeholder__fieldset{width:auto}
11
  [data-type="atomic-blocks/ab-container"][data-align="full"] .ab-container-content>.block-editor-inner-blocks>.block-editor-block-list__layout{padding-left:58px;padding-right:58px}.ab-container-inspector-media{padding:8px}
12
  .edit-post-visual-editor .editor-block-list__block [data-type="atomic-blocks/ab-pricing-table"],.edit-post-visual-editor .block-editor-block-list__block [data-type="atomic-blocks/ab-pricing-table"]{margin-left:0;margin-right:0;overflow:hidden;min-width:0}.ab-pricing-table-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.ab-pricing-table-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-gap:0 2em;min-height:0}.ab-block-pricing-table-gap-0>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-0>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 0}.ab-block-pricing-table-gap-1>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-1>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 1em}.ab-block-pricing-table-gap-2>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-2>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 2em}.ab-block-pricing-table-gap-3>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-3>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 3em}.ab-block-pricing-table-gap-4>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-4>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 4em}.ab-block-pricing-table-gap-5>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-5>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 5em}.ab-pricing-columns-2 .editor-block-list__layout,.ab-pricing-columns-2 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}@media only screen and (max-width: 600px){.ab-pricing-columns-2 .editor-block-list__layout,.ab-pricing-columns-2 .block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-pricing-columns-3 .editor-block-list__layout,.ab-pricing-columns-3 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}@media only screen and (max-width: 600px){.ab-pricing-columns-3 .editor-block-list__layout,.ab-pricing-columns-3 .block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-pricing-columns-4 .editor-block-list__layout,.ab-pricing-columns-4 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}@media only screen and (max-width: 800px){.ab-pricing-columns-4 .editor-block-list__layout,.ab-pricing-columns-4 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}}@media only screen and (max-width: 600px){.ab-pricing-columns-4 .editor-block-list__layout,.ab-pricing-columns-4 .block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-pricing-columns-5 .editor-block-list__layout,.ab-pricing-columns-5 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr}@media only screen and (max-width: 800px){.ab-pricing-columns-5 .editor-block-list__layout,.ab-pricing-columns-5 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}}@media only screen and (max-width: 600px){.ab-pricing-columns-5 .editor-block-list__layout,.ab-pricing-columns-5 .block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-block-pricing-table-inside .editor-block-list__block[data-align=full],.ab-block-pricing-table-inside .editor-block-list__block[data-align=wide],.ab-block-pricing-table-inside .block-editor-block-list__block[data-align=full],.ab-block-pricing-table-inside .block-editor-block-list__block[data-align=wide]{margin-left:auto;margin-right:auto}.ab-block-pricing-table-inside .editor-url-input input[type=text],.ab-block-pricing-table-inside .block-editor-block-list__block .block-editor-url-input input[type="text"]{width:100%}.ab-pricing-has-currency div .block-editor-rich-text:first-child{vertical-align:top;margin-top:.7em;margin-right:3px;line-height:1}.ab-pricing-table-title.editor-rich-text__tinymce:focus strong[data-mce-selected]{background:transparent;color:inherit}div[data-type="atomic-blocks/ab-pricing-table-price"] .block-editor-block-list__block-edit div .editor-rich-text{display:inline-block}.ab-block-pricing-table .block-editor-block-list__layout div:first-child .block-editor-block-list__block-edit{margin-top:0}[data-type="atomic-blocks/ab-pricing"][data-align="full"] .ab-pricing-table-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{padding-left:58px;padding-right:58px}.ab-pricing-table-button .ab-block-button .components-button{padding:8px}
13
  .ab-block-newsletter .ab-newsletter-title.mce-content-body{margin-top:0;line-height:1.3}.ab-form-styles label{margin-bottom:8px;width:100%;display:block}.ab-form-styles input{width:100%;height:auto;border:solid 1px #ccc;min-height:45px;margin-bottom:15px;padding:15px;font-size:16px}.ab-newsletter-double-opt-in-setting-wrapper{margin-bottom:24px}.ab-newsletter-double-opt-in-setting-wrapper .description{margin-bottom:5px}.ab-newsletter-double-opt-in-toggle{margin-right:5px}
7
  .ab-block-accordion{margin-bottom:0}
8
  .ab-block-cta{margin-bottom:0}.block-editor-block-list__layout [data-type="atomic-blocks/ab-cta"]{margin-bottom:1.2em}.ab-cta-button .blocks-button__inline-link .editor-url-input{display:inline-block;width:auto}.ab-cta-button .blocks-button__inline-link .components-button{display:inline-block;padding:8px}.ab-cta-button .blocks-button__inline-link svg{vertical-align:middle;margin-right:8px}.ab-block-cta h2.editor-rich-text__tinymce.mce-content-body{line-height:1.2}.ab-cta-inspector-media.components-button{padding:8px}
9
  .ab-block-sharing{margin-bottom:0}
10
+ .ab-block-post-grid .ab-block-post-grid-title a{text-decoration:none}.ab-block-post-grid-markup-settings .components-base-control__help{margin-top:8px}.block-editor__container .block-editor-block-list__block .ab-block-post-grid a{color:inherit}.ab-block-post-grid-image{position:relative}.ab-block-post-grid-image:hover .ab-post-grid-no-image-placeholder{opacity:1;z-index:1}.ab-post-grid-no-image-placeholder{padding:40px;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;background:#f3f3f4;transition:.2s ease}.ab-post-grid-no-image-placeholder svg{margin-bottom:10px}.ab-post-grid-no-image-icon{position:absolute;top:10px;background:#ffe606;right:10px;padding:6px;line-height:1;height:32px;transition:.2s ease;border-radius:5px;z-index:1}.block-editor__container .components-placeholder__fieldset .ab-post-grid-image-help{display:inline-block;font-weight:bold}.block-editor__container .components-placeholder__fieldset .ab-post-grid-image-help a{color:#0073aa;text-decoration:underline}.block-editor__container .components-placeholder__fieldset .ab-post-grid-image-help a:hover{color:#00a0d2}[data-type="atomic-blocks/ab-post-grid"] .components-placeholder{align-items:center}[data-type="atomic-blocks/ab-post-grid"] .components-placeholder .components-placeholder__fieldset{width:auto}
11
  [data-type="atomic-blocks/ab-container"][data-align="full"] .ab-container-content>.block-editor-inner-blocks>.block-editor-block-list__layout{padding-left:58px;padding-right:58px}.ab-container-inspector-media{padding:8px}
12
  .edit-post-visual-editor .editor-block-list__block [data-type="atomic-blocks/ab-pricing-table"],.edit-post-visual-editor .block-editor-block-list__block [data-type="atomic-blocks/ab-pricing-table"]{margin-left:0;margin-right:0;overflow:hidden;min-width:0}.ab-pricing-table-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.ab-pricing-table-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-gap:0 2em;min-height:0}.ab-block-pricing-table-gap-0>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-0>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 0}.ab-block-pricing-table-gap-1>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-1>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 1em}.ab-block-pricing-table-gap-2>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-2>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 2em}.ab-block-pricing-table-gap-3>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-3>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 3em}.ab-block-pricing-table-gap-4>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-4>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 4em}.ab-block-pricing-table-gap-5>.editor-inner-blocks>.editor-block-list__layout,.ab-block-pricing-table-gap-5>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 5em}.ab-pricing-columns-2 .editor-block-list__layout,.ab-pricing-columns-2 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}@media only screen and (max-width: 600px){.ab-pricing-columns-2 .editor-block-list__layout,.ab-pricing-columns-2 .block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-pricing-columns-3 .editor-block-list__layout,.ab-pricing-columns-3 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}@media only screen and (max-width: 600px){.ab-pricing-columns-3 .editor-block-list__layout,.ab-pricing-columns-3 .block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-pricing-columns-4 .editor-block-list__layout,.ab-pricing-columns-4 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}@media only screen and (max-width: 800px){.ab-pricing-columns-4 .editor-block-list__layout,.ab-pricing-columns-4 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}}@media only screen and (max-width: 600px){.ab-pricing-columns-4 .editor-block-list__layout,.ab-pricing-columns-4 .block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-pricing-columns-5 .editor-block-list__layout,.ab-pricing-columns-5 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr}@media only screen and (max-width: 800px){.ab-pricing-columns-5 .editor-block-list__layout,.ab-pricing-columns-5 .block-editor-block-list__layout{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}}@media only screen and (max-width: 600px){.ab-pricing-columns-5 .editor-block-list__layout,.ab-pricing-columns-5 .block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-block-pricing-table-inside .editor-block-list__block[data-align=full],.ab-block-pricing-table-inside .editor-block-list__block[data-align=wide],.ab-block-pricing-table-inside .block-editor-block-list__block[data-align=full],.ab-block-pricing-table-inside .block-editor-block-list__block[data-align=wide]{margin-left:auto;margin-right:auto}.ab-block-pricing-table-inside .editor-url-input input[type=text],.ab-block-pricing-table-inside .block-editor-block-list__block .block-editor-url-input input[type="text"]{width:100%}.ab-pricing-has-currency div .block-editor-rich-text:first-child{vertical-align:top;margin-top:.7em;margin-right:3px;line-height:1}.ab-pricing-table-title.editor-rich-text__tinymce:focus strong[data-mce-selected]{background:transparent;color:inherit}div[data-type="atomic-blocks/ab-pricing-table-price"] .block-editor-block-list__block-edit div .editor-rich-text{display:inline-block}.ab-block-pricing-table .block-editor-block-list__layout div:first-child .block-editor-block-list__block-edit{margin-top:0}[data-type="atomic-blocks/ab-pricing"][data-align="full"] .ab-pricing-table-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{padding-left:58px;padding-right:58px}.ab-pricing-table-button .ab-block-button .components-button{padding:8px}
13
  .ab-block-newsletter .ab-newsletter-title.mce-content-body{margin-top:0;line-height:1.3}.ab-form-styles label{margin-bottom:8px;width:100%;display:block}.ab-form-styles input{width:100%;height:auto;border:solid 1px #ccc;min-height:45px;margin-bottom:15px;padding:15px;font-size:16px}.ab-newsletter-double-opt-in-setting-wrapper{margin-bottom:24px}.ab-newsletter-double-opt-in-setting-wrapper .description{margin-bottom:5px}.ab-newsletter-double-opt-in-toggle{margin-right:5px}
dist/blocks.style.build.css CHANGED
@@ -11,6 +11,6 @@
11
  .ab-block-post-grid{margin:0 0 1.2em 0;position:relative}.ab-block-post-grid .is-grid,.ab-block-post-grid .ab-is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-gap:0 2em}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid,.ab-block-post-grid .ab-is-grid{display:block}}.ab-block-post-grid .is-grid article,.ab-block-post-grid .ab-is-grid article{margin-bottom:2.5em;min-width:0}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid article,.ab-block-post-grid .ab-is-grid article{padding-left:10px;padding-right:10px;display:inline-block;vertical-align:top}}.ab-block-post-grid .is-grid.columns-1,.ab-block-post-grid .ab-is-grid.ab-columns-1{-ms-grid-columns:1fr;grid-template-columns:1fr}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid.columns-1 article,.ab-block-post-grid .ab-is-grid.ab-columns-1 article{width:100%}}.ab-block-post-grid .is-grid.columns-2,.ab-block-post-grid .ab-is-grid.ab-columns-2{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid.columns-2 article,.ab-block-post-grid .ab-is-grid.ab-columns-2 article{width:48%}}.ab-block-post-grid .is-grid.columns-3,.ab-block-post-grid .ab-is-grid.ab-columns-3{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid.columns-3 article,.ab-block-post-grid .ab-is-grid.ab-columns-3 article{width:32%}}.ab-block-post-grid .is-grid.columns-4,.ab-block-post-grid .ab-is-grid.ab-columns-4{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid.columns-4 article,.ab-block-post-grid .ab-is-grid.ab-columns-4 article{width:24%}}@media only screen and (max-width: 600px){.ab-block-post-grid div[class*="columns"].is-grid,.ab-block-post-grid div[class*="columns"].ab-is-grid{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-block-post-grid .ab-post-grid-section-title{text-align:left}.ab-block-post-grid .ab-block-post-grid-image{margin-bottom:1.2em}.ab-block-post-grid .ab-block-post-grid-image img{display:block;width:100%}.ab-block-post-grid .ab-block-post-grid-text{text-align:left}.ab-block-post-grid a{text-decoration:none}.ab-block-post-grid header .ab-block-post-grid-title{margin-top:0;margin-bottom:15px;font-size:28px;line-height:1.2}.ab-block-post-grid header .ab-block-post-grid-title a{color:#293038;text-decoration:none}.ab-block-post-grid header .ab-block-post-grid-title a:hover{text-decoration:underline;color:inherit}.ab-block-post-grid .ab-block-post-grid-byline{font-size:14px;color:#626e81;margin-bottom:15px}.ab-block-post-grid .ab-block-post-grid-author,.ab-block-post-grid .ab-block-post-grid-date{display:inline-block}.ab-block-post-grid .ab-block-post-grid-author:not(:last-child):after,.ab-block-post-grid .ab-block-post-grid-date:not(:last-child):after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.ab-block-post-grid .ab-block-post-grid-author a{color:inherit;text-decoration:none}.ab-block-post-grid .ab-block-post-grid-author a:hover{color:inherit;text-decoration:underline}.ab-block-post-grid .ab-block-post-grid-text p{margin:0 0 15px 0;font-size:inherit}.ab-block-post-grid .ab-block-post-grid-text p:last-of-type{margin-bottom:0}.ab-block-post-grid .ab-block-post-grid-more-link{display:inline-block;box-shadow:none;transition:.3s ease;font-weight:bold;color:#293038;text-decoration:none}.ab-block-post-grid .ab-block-post-grid-more-link:hover{text-decoration:underline}.ab-block-post-grid .ab-block-post-grid-excerpt div+p{margin-top:15px}.ab-block-post-grid .is-list article,.ab-block-post-grid .ab-is-list article{display:-ms-grid;display:grid;-ms-grid-columns:30% 1fr;grid-template-columns:30% 1fr;grid-template-rows:1fr;grid-gap:0 2em}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-list article,.ab-block-post-grid .ab-is-list article{display:block}}.ab-block-post-grid .is-list article:before,.ab-block-post-grid .ab-is-list article:before{display:none}.ab-block-post-grid .is-list article:not(:last-child),.ab-block-post-grid .ab-is-list article:not(:last-child){margin-bottom:5%;padding-bottom:5%}@media only screen and (min-width: 600px){.ab-block-post-grid .is-list article:not(:last-child),.ab-block-post-grid .ab-is-list article:not(:last-child){border-bottom:solid 1px #eee}}@media only screen and (max-width: 600px){.ab-block-post-grid .is-list article,.ab-block-post-grid .ab-is-list article{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-block-post-grid .is-list article:not(.has-post-thumbnail),.ab-block-post-grid .ab-is-list article:not(.has-post-thumbnail){-ms-grid-columns:1fr;grid-template-columns:1fr}.ab-block-post-grid .is-list .ab-block-post-grid-image,.ab-block-post-grid .ab-is-list .ab-block-post-grid-image{margin-bottom:0}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-list .ab-block-post-grid-image,.ab-block-post-grid .ab-is-list .ab-block-post-grid-image{width:30%;display:inline-block;vertical-align:top}}@media only screen and (max-width: 600px){.ab-block-post-grid .is-list .ab-block-post-grid-image,.ab-block-post-grid .ab-is-list .ab-block-post-grid-image{margin-bottom:5%}}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-list .ab-block-post-grid-text,.ab-block-post-grid .ab-is-list .ab-block-post-grid-text{width:65%;padding-left:5%;display:inline-block;vertical-align:top}.ab-block-post-grid .is-list .post:not(.has-post-thumbnail) .ab-block-post-grid-text,.ab-block-post-grid .ab-is-list .post:not(.has-post-thumbnail) .ab-block-post-grid-text{width:100%;padding-left:0}}@media only screen and (min-width: 600px){.ab-block-post-grid .is-list .ab-block-post-grid-title,.ab-block-post-grid .ab-is-list .ab-block-post-grid-title{font-size:34px}}.ab-block-post-grid .is-list .no-thumb .ab-block-post-grid-text,.ab-block-post-grid .ab-is-list .no-thumb .ab-block-post-grid-text{grid-column:span 2}.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px;word-wrap:normal !important}
12
  .wp-block-atomic-blocks-ab-pricing{margin-bottom:1.5em}.ab-pricing-table-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-template-areas:"col1";grid-gap:0 2em}[data-type="atomic-blocks/ab-pricing-table"],.wp-block-atomic-blocks-ab-pricing-table{display:inline-block;vertical-align:top}@media only screen and (max-width: 600px){[data-type="atomic-blocks/ab-pricing-table"],.wp-block-atomic-blocks-ab-pricing-table{margin-bottom:1.5em}}.ab-block-pricing-table-inside{display:inline-block;width:100%;border-color:#272c30}.ab-block-pricing-table-gap-0{grid-gap:0 0}.ab-block-pricing-table-gap-1{grid-gap:0 1em}.ab-block-pricing-table-gap-2{grid-gap:0 2em}.ab-block-pricing-table-gap-3{grid-gap:0 3em}.ab-block-pricing-table-gap-4{grid-gap:0 4em}.ab-block-pricing-table-gap-5{grid-gap:0 5em}.ab-pricing-columns-2 .ab-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}@media only screen and (max-width: 600px){.ab-pricing-columns-2 .ab-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.ab-pricing-columns-3 .ab-pricing-table-wrap{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}@media only screen and (max-width: 600px){.ab-pricing-columns-3 .ab-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.ab-pricing-columns-4 .ab-pricing-table-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}@media only screen and (max-width: 800px){.ab-pricing-columns-4 .ab-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}.ab-pricing-columns-4 .ab-pricing-table-wrap .wp-block-atomic-blocks-ab-pricing-table{margin-bottom:1.5em}}@media only screen and (max-width: 600px){.ab-pricing-columns-4 .ab-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.ab-pricing-table-price{line-height:1}.ab-pricing-table-currency{vertical-align:top;margin-top:.4em;margin-right:3px;display:inline-block;line-height:1}.wp-block-atomic-blocks-ab-pricing-table{vertical-align:top}.wp-block-atomic-blocks-ab-pricing-table .ab-pricing-table-features,.block-library-list .wp-block-atomic-blocks-ab-pricing-table ul{margin:0;padding:0;border:none}.ab-block-pricing-table:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.ab-block-pricing-table:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.ab-block-pricing-table:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.ab-block-pricing-table:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.editor-styles-wrapper [data-type="atomic-blocks/ab-pricing-table-features"] ul{list-style-type:none;display:block;white-space:initial;margin-left:0;margin-right:0}.ab-list-border-solid li{border-bottom-style:solid}.ab-list-border-dashed li{border-bottom-style:dashed}.ab-list-border-dotted li{border-bottom-style:dotted}ul.ab-pricing-table-features li{list-style:none;margin:0;padding:4px 0;border-color:inherit}ul.ab-pricing-table-features li:last-child{border-bottom:none}.ab-list-border-width-1 li{border-width:1px}.ab-list-border-width-2 li{border-width:2px}.ab-list-border-width-3 li{border-width:3px}.ab-list-border-width-4 li{border-width:4px}.ab-list-border-width-5 li{border-width:5px}.ab-pricing-table-price,.ab-pricing-table-term{display:inline}span.ab-pricing-table-term{margin-left:5px}.ab-pricing-table-wrap .ab-block-pricing-table-inside>*:last-child{margin-bottom:0}.wp-block-atomic-blocks-ab-pricing .alignwide,.wp-block-atomic-blocks-ab-pricing .alignfull{width:100%;margin-left:auto}.ab-block-pricing-table-center{text-align:center}.ab-block-pricing-table-center .ab-block-button{text-align:center !important}.ab-block-pricing-table-center .blocks-button__inline-link{margin:0 auto;text-align:center}.ab-block-pricing-table-left{text-align:left}.ab-block-pricing-table-right{text-align:right}.ab-pricing-table-button .ab-block-button{margin-bottom:0}
13
  .ab-block-newsletter .ab-newsletter-title{margin-top:0;line-height:1.3}.ab-block-newsletter .ab-block-button{margin-bottom:0}.ab-block-newsletter-label{font-size:16px}.ab-form-styles label{margin-bottom:8px;width:100%;display:block}.ab-form-styles input:not(.ab-newsletter-submit){width:100%;height:auto;min-height:45px;margin-bottom:15px}
14
- .wp-block-atomic-blocks-ab-layout{margin-bottom:1.5em}.wp-block-atomic-blocks-ab-columns{position:relative}.ab-layout-column-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-gap:0 2em;position:relative;z-index:1}[data-type="atomic-blocks/ab-column"],.ab-block-layout-column{display:block;vertical-align:top;min-width:0}.ab-block-layout-column.ab-is-vertically-aligned-top{align-self:flex-start}.ab-block-layout-column.ab-is-vertically-aligned-center{align-self:center}.ab-block-layout-column.ab-is-vertically-aligned-bottom{align-self:flex-end}.ab-block-layout-column-inner,.ab-layout-column-wrap>.ab-block-layout-column-inner,.ab-has-background-dim>*{position:relative;z-index:1}.wp-block-atomic-blocks-ab-layout.alignfull{padding:0 2em}@media only screen and (max-width: 600px){.wp-block-atomic-blocks-ab-layout.alignfull{padding:0 15px}}.ab-block-layout-column{display:block;width:100%}.ab-columns-center .ab-layout-column-wrap{margin:0 auto}.ab-block-layout-column-gap-0{grid-gap:0 0}.ab-block-layout-column-gap-1{grid-gap:0 1em}.ab-block-layout-column-gap-2{grid-gap:0 2em}.ab-block-layout-column-gap-3{grid-gap:0 3em}.ab-block-layout-column-gap-4{grid-gap:0 4em}.ab-block-layout-column-gap-5{grid-gap:0 5em}.ab-block-layout-column-gap-6{grid-gap:0 6em}.ab-block-layout-column-gap-7{grid-gap:0 7em}.ab-block-layout-column-gap-8{grid-gap:0 8em}.ab-block-layout-column-gap-9{grid-gap:0 9em}.ab-block-layout-column-gap-10{grid-gap:0 10em}.ab-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.ab-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.ab-block-layout-column:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.ab-block-layout-column:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.ab-block-layout-column:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.ab-block-layout-column:nth-child(5){-ms-grid-row:1;-ms-grid-column:5;grid-area:col5}.ab-block-layout-column:nth-child(6){-ms-grid-row:1;-ms-grid-column:6;grid-area:col6}.ab-layout-columns-1>.ab-layout-column-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1"}.ab-layout-columns-2>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}@media only screen and (max-width: 600px){.ab-layout-columns-2>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.ab-2-col-wideleft>.ab-layout-column-wrap{-ms-grid-columns:2fr 1fr;grid-template-columns:2fr 1fr}.ab-2-col-wideright>.ab-layout-column-wrap{-ms-grid-columns:1fr 2fr;grid-template-columns:1fr 2fr}.ab-layout-columns-3>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}@media only screen and (max-width: 600px){.ab-layout-columns-3>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.ab-3-col-widecenter>.ab-layout-column-wrap{-ms-grid-columns:1fr 2fr 1fr;grid-template-columns:1fr 2fr 1fr}@media only screen and (max-width: 600px){.ab-3-col-widecenter>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-3-col-wideleft>.ab-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr}@media only screen and (max-width: 600px){.ab-3-col-wideleft>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-3-col-wideright>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 2fr;grid-template-columns:1fr 1fr 2fr}@media only screen and (max-width: 600px){.ab-3-col-wideright>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-layout-columns-4>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}@media only screen and (max-width: 800px){.ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column{grid-template-rows:auto;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}}@media only screen and (max-width: 600px){.ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.ab-4-col-wideleft>.ab-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr 1fr}.ab-4-col-wideright>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 2fr;grid-template-columns:1fr 1fr 1fr 2fr}.ab-layout-columns-5>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5"}@media only screen and (max-width: 800px){.ab-layout-columns-5>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5"}}.ab-layout-columns-6>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5 col6"}@media only screen and (max-width: 800px){.ab-layout-columns-6>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4" "col5 col6"}}@media only screen and (max-width: 600px){.ab-layout-columns-6>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5" "col6"}}.ab-layout-columns-4,.ab-layout-columns-5,.ab-layout-columns-6{overflow-x:auto}.ab-column-selector-group{margin-top:10px;display:flex;width:100%;text-align:center;justify-content:center}@media only screen and (max-width: 1175px){.ab-column-selector-group{flex-wrap:wrap}}.ab-column-selector{margin:0 5px}@media only screen and (max-width: 1175px){.ab-column-selector{margin-top:10px}}.ab-column-selector button.ab-column-selector-button{padding:15px;height:auto;border-radius:5px !important;background:#fff;margin:0}.ab-column-selector button.ab-column-selector-button:hover{background:#fff;margin:0}.ab-column-selector button.components-button.is-button:last-child{border-radius:5px}
15
  .ab-layout-column-button .ab-block-button{margin-bottom:0}.ab-layout-selector-group{margin-top:10px}.ab-layout-selector{display:inline-block;margin:0 5px}.ab-layout-selector button.ab-layout-selector-button{padding:15px;height:auto;border-radius:5px;background:#fff}.ab-layout-selector button.ab-layout-selector-button:hover{background:#fff}.ab-layout-selector button.components-button.is-button:last-child{border-radius:5px}.ab-toolbar-insert-layout-button{margin-right:3px}.ab-layout-team-1 .ab-profile-column{flex:100%}.ab-layout-team-1 .ab-social-links{padding-top:25px}.ab-layout-hero-cover .wp-block-cover__inner-container{max-width:800px}.ab-layout-hero-cover h2,.ab-layout-hero-cover h3,.ab-layout-hero-cover h4{max-width:100%}.ab-white-text,.editor-styles-wrapper [data-type="core/heading"] .ab-white-text{color:#fff}.ab-layout-landing-2 .ab-block-profile{padding:0;text-align:center}.ab-layout-landing-2 .ab-block-profile .ab-profile-avatar-wrap,.ab-layout-landing-2 .ab-block-profile .ab-profile-column{flex:0 0 100%}.ab-layout-landing-2 .round .ab-profile-image-wrap{max-width:220px;margin:0 auto}.ab-layout-landing-2 .ab-block-cta .ab-cta-content{max-width:700px;margin:0 auto}.ab-layout-landing-2 .ab-block-cta .ab-button{font-weight:normal}.ab-layout-landing-3 .ab-layout-landing-3-cover h2,.ab-layout-landing-3 .ab-layout-landing-3-cover h3,.ab-layout-landing-3 .ab-layout-landing-3-cover h4,.ab-layout-landing-3 .ab-layout-landing-3-cover h5,.ab-layout-landing-3 .ab-layout-landing-3-cover h6{margin-left:auto;margin-right:auto}@media only screen and (min-width: 600px){.ab-layout-landing-3 .ab-layout-landing-3-cover h2,.ab-layout-landing-3 .ab-layout-landing-3-cover h3,.ab-layout-landing-3 .ab-layout-landing-3-cover h4,.ab-layout-landing-3 .ab-layout-landing-3-cover h5,.ab-layout-landing-3 .ab-layout-landing-3-cover h6{font-size:42px}}@media only screen and (min-width: 600px){.ab-layout-landing-3 .ab-block-post-grid header .ab-block-post-grid-title{font-size:24px}}div[class*="ab-section-"].alignfull,div[class*="ab-layout-"].alignfull{margin-top:auto;margin-bottom:auto}
 
16
  .gpb-overflow-hidden{overflow:hidden}.gpb-grid-mobile-space .ab-is-responsive-column{grid-row-gap:1em}.gpb-rounded-grid .ab-block-layout-column-inner{border-radius:10px}.gpb-rounded-sm,.gpb-rounded-sm img{border-radius:5px}.gpb-rounded-md,.gpb-rounded-md img{border-radius:10px}.gpb-rounded-lg,.gpb-rounded-lg img{border-radius:20px}.gpb-rounded-xl,.gpb-rounded-xl img{border-radius:30px}.gpb-rounded-full,.gpb-rounded-full img{border-radius:500px}@media only screen and (max-width: 600px){.gpb-mobile-align-reset{float:none;text-align:left;margin-left:0 !important;margin-right:0}}@media only screen and (max-width: 600px){.gpb-grid-mobile-reorder .ab-is-responsive-column .ab-block-layout-column:nth-of-type(1){grid-area:col2}.gpb-grid-mobile-reorder .ab-is-responsive-column .ab-block-layout-column:nth-of-type(2){grid-area:col1}}.gpb-mb-1{margin-bottom:1rem}@media only screen and (min-width: 600px){div[class*="wp-block-atomic"].ab-font-size-14.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-14.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-14.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-14.ab-block-cta p{font-size:14px}div[class*="wp-block-atomic"].ab-font-size-15.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-15.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-15.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-15.ab-block-cta p{font-size:15px}div[class*="wp-block-atomic"].ab-font-size-16.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-16.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-16.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-16.ab-block-cta p{font-size:16px}div[class*="wp-block-atomic"].ab-font-size-17.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-17.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-17.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-17.ab-block-cta p{font-size:17px}div[class*="wp-block-atomic"].ab-font-size-18.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-18.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-18.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-18.ab-block-cta p{font-size:18px}div[class*="wp-block-atomic"].ab-font-size-19.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-19.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-19.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-19.ab-block-cta p{font-size:19px}div[class*="wp-block-atomic"].ab-font-size-20.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-20.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-20.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-20.ab-block-cta p{font-size:20px}div[class*="wp-block-atomic"].ab-font-size-21.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-21.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-21.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-21.ab-block-cta p{font-size:21px}div[class*="wp-block-atomic"].ab-font-size-22.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-22.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-22.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-22.ab-block-cta p{font-size:22px}div[class*="wp-block-atomic"].ab-font-size-23.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-23.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-23.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-23.ab-block-cta p{font-size:23px}div[class*="wp-block-atomic"].ab-font-size-24.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-24.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-24.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-24.ab-block-cta p{font-size:24px}}*[class*="gpb-fluid"],.entry-content *[class*="gpb-fluid"]{margin:0 0 1rem 0;line-height:1.2;font-weight:normal}.gpb-fluid-1{font-size:20px}@media (min-width: 600px){.gpb-fluid-1{font-size:calc(11.50943px + 100vw * .01415)}}@media (min-width: 1024px){.gpb-fluid-1{font-size:26px}}.gpb-fluid-2{font-size:22px}@media (min-width: 600px){.gpb-fluid-2{font-size:calc(10.67925px + 100vw * .01887)}}@media (min-width: 1024px){.gpb-fluid-2{font-size:30px}}.gpb-fluid-3{font-size:24px}@media (min-width: 600px){.gpb-fluid-3{font-size:calc(4.18868px + 100vw * .03302)}}@media (min-width: 1024px){.gpb-fluid-3{font-size:38px}}.gpb-fluid-4{font-size:28px}@media (min-width: 600px){.gpb-fluid-4{font-size:calc(5.35849px + 100vw * .03774)}}@media (min-width: 1024px){.gpb-fluid-4{font-size:44px}}.gpb-fluid-5{font-size:32px}@media (min-width: 600px){.gpb-fluid-5{font-size:calc(3.69811px + 100vw * .04717)}}@media (min-width: 1024px){.gpb-fluid-5{font-size:52px}}.gpb-fluid-6{font-size:36px}@media (min-width: 600px){.gpb-fluid-6{font-size:calc(2.03774px + 100vw * .0566)}}@media (min-width: 1024px){.gpb-fluid-6{font-size:60px}}.ab-align-center{text-align:center}.ab-align-left{text-align:left}.ab-align-right{text-align:right}.center{text-align:center}.left{text-align:left}.right{text-align:right}@media only screen and (min-width: 600px){.wp-block-columns .layout-column-1,.wp-block-columns .layout-column-2{margin-right:5%}}.wp-block-image{margin-bottom:1.2em}.ab-text-link{color:inherit;text-decoration:none}.ab-text-link:hover{color:inherit;text-decoration:underline}.ab-has-parallax{background-attachment:fixed;background-size:cover;background-position:50%}.ab-has-background-dim:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-color:inherit;opacity:0;z-index:1}.ab-has-background-dim.has-theme-primary-background-color:before,.ab-has-background-dim.ab-has-custom-background-color:before{background-color:inherit}.ab-has-background-dim-0:before{opacity:1}.ab-has-background-dim-10:before{opacity:.9}.ab-has-background-dim-20:before{opacity:.8}.ab-has-background-dim-30:before{opacity:.7}.ab-has-background-dim-40:before{opacity:.6}.ab-has-background-dim-50:before{opacity:.5}.ab-has-background-dim-60:before{opacity:.4}.ab-has-background-dim-70:before{opacity:.3}.ab-has-background-dim-80:before{opacity:.2}.ab-has-background-dim-90:before{opacity:.1}.ab-has-background-dim-100:before{opacity:0}div.ab-background-auto{background-size:auto;background-position:center center}div.ab-background-cover{background-size:cover}div.ab-background-contain{background-size:contain;background-position:center center}div.ab-background-no-repeat{background-repeat:no-repeat}div.ab-background-repeat{background-repeat:repeat}div.ab-background-repeat-x{background-repeat:repeat-x}div.ab-background-repeat-y{background-repeat:repeat-y;background-position:center center}ol.gpb-number-list,.editor-styles-wrapper ol.gpb-number-list{list-style:none;counter-reset:gpb-list-counter;padding:0;margin-left:0}ol.gpb-number-list li,.editor-styles-wrapper ol.gpb-number-list li{list-style-type:none;counter-increment:gpb-list-counter;position:relative;padding-left:65px;margin-bottom:1.2em}ol.gpb-number-list li::before{content:counter(gpb-list-counter) "";color:#fff;background:#333;position:absolute;left:0;top:10px;text-align:center;border-radius:100px;height:42px;width:42px;line-height:41px}
11
  .ab-block-post-grid{margin:0 0 1.2em 0;position:relative}.ab-block-post-grid .is-grid,.ab-block-post-grid .ab-is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-gap:0 2em}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid,.ab-block-post-grid .ab-is-grid{display:block}}.ab-block-post-grid .is-grid article,.ab-block-post-grid .ab-is-grid article{margin-bottom:2.5em;min-width:0}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid article,.ab-block-post-grid .ab-is-grid article{padding-left:10px;padding-right:10px;display:inline-block;vertical-align:top}}.ab-block-post-grid .is-grid.columns-1,.ab-block-post-grid .ab-is-grid.ab-columns-1{-ms-grid-columns:1fr;grid-template-columns:1fr}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid.columns-1 article,.ab-block-post-grid .ab-is-grid.ab-columns-1 article{width:100%}}.ab-block-post-grid .is-grid.columns-2,.ab-block-post-grid .ab-is-grid.ab-columns-2{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid.columns-2 article,.ab-block-post-grid .ab-is-grid.ab-columns-2 article{width:48%}}.ab-block-post-grid .is-grid.columns-3,.ab-block-post-grid .ab-is-grid.ab-columns-3{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid.columns-3 article,.ab-block-post-grid .ab-is-grid.ab-columns-3 article{width:32%}}.ab-block-post-grid .is-grid.columns-4,.ab-block-post-grid .ab-is-grid.ab-columns-4{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-grid.columns-4 article,.ab-block-post-grid .ab-is-grid.ab-columns-4 article{width:24%}}@media only screen and (max-width: 600px){.ab-block-post-grid div[class*="columns"].is-grid,.ab-block-post-grid div[class*="columns"].ab-is-grid{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-block-post-grid .ab-post-grid-section-title{text-align:left}.ab-block-post-grid .ab-block-post-grid-image{margin-bottom:1.2em}.ab-block-post-grid .ab-block-post-grid-image img{display:block;width:100%}.ab-block-post-grid .ab-block-post-grid-text{text-align:left}.ab-block-post-grid a{text-decoration:none}.ab-block-post-grid header .ab-block-post-grid-title{margin-top:0;margin-bottom:15px;font-size:28px;line-height:1.2}.ab-block-post-grid header .ab-block-post-grid-title a{color:#293038;text-decoration:none}.ab-block-post-grid header .ab-block-post-grid-title a:hover{text-decoration:underline;color:inherit}.ab-block-post-grid .ab-block-post-grid-byline{font-size:14px;color:#626e81;margin-bottom:15px}.ab-block-post-grid .ab-block-post-grid-author,.ab-block-post-grid .ab-block-post-grid-date{display:inline-block}.ab-block-post-grid .ab-block-post-grid-author:not(:last-child):after,.ab-block-post-grid .ab-block-post-grid-date:not(:last-child):after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.ab-block-post-grid .ab-block-post-grid-author a{color:inherit;text-decoration:none}.ab-block-post-grid .ab-block-post-grid-author a:hover{color:inherit;text-decoration:underline}.ab-block-post-grid .ab-block-post-grid-text p{margin:0 0 15px 0;font-size:inherit}.ab-block-post-grid .ab-block-post-grid-text p:last-of-type{margin-bottom:0}.ab-block-post-grid .ab-block-post-grid-more-link{display:inline-block;box-shadow:none;transition:.3s ease;font-weight:bold;color:#293038;text-decoration:none}.ab-block-post-grid .ab-block-post-grid-more-link:hover{text-decoration:underline}.ab-block-post-grid .ab-block-post-grid-excerpt div+p{margin-top:15px}.ab-block-post-grid .is-list article,.ab-block-post-grid .ab-is-list article{display:-ms-grid;display:grid;-ms-grid-columns:30% 1fr;grid-template-columns:30% 1fr;grid-template-rows:1fr;grid-gap:0 2em}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-list article,.ab-block-post-grid .ab-is-list article{display:block}}.ab-block-post-grid .is-list article:before,.ab-block-post-grid .ab-is-list article:before{display:none}.ab-block-post-grid .is-list article:not(:last-child),.ab-block-post-grid .ab-is-list article:not(:last-child){margin-bottom:5%;padding-bottom:5%}@media only screen and (min-width: 600px){.ab-block-post-grid .is-list article:not(:last-child),.ab-block-post-grid .ab-is-list article:not(:last-child){border-bottom:solid 1px #eee}}@media only screen and (max-width: 600px){.ab-block-post-grid .is-list article,.ab-block-post-grid .ab-is-list article{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-block-post-grid .is-list article:not(.has-post-thumbnail),.ab-block-post-grid .ab-is-list article:not(.has-post-thumbnail){-ms-grid-columns:1fr;grid-template-columns:1fr}.ab-block-post-grid .is-list .ab-block-post-grid-image,.ab-block-post-grid .ab-is-list .ab-block-post-grid-image{margin-bottom:0}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-list .ab-block-post-grid-image,.ab-block-post-grid .ab-is-list .ab-block-post-grid-image{width:30%;display:inline-block;vertical-align:top}}@media only screen and (max-width: 600px){.ab-block-post-grid .is-list .ab-block-post-grid-image,.ab-block-post-grid .ab-is-list .ab-block-post-grid-image{margin-bottom:5%}}@media all and (-ms-high-contrast: none){.ab-block-post-grid .is-list .ab-block-post-grid-text,.ab-block-post-grid .ab-is-list .ab-block-post-grid-text{width:65%;padding-left:5%;display:inline-block;vertical-align:top}.ab-block-post-grid .is-list .post:not(.has-post-thumbnail) .ab-block-post-grid-text,.ab-block-post-grid .ab-is-list .post:not(.has-post-thumbnail) .ab-block-post-grid-text{width:100%;padding-left:0}}@media only screen and (min-width: 600px){.ab-block-post-grid .is-list .ab-block-post-grid-title,.ab-block-post-grid .ab-is-list .ab-block-post-grid-title{font-size:34px}}.ab-block-post-grid .is-list .no-thumb .ab-block-post-grid-text,.ab-block-post-grid .ab-is-list .no-thumb .ab-block-post-grid-text{grid-column:span 2}.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px;word-wrap:normal !important}
12
  .wp-block-atomic-blocks-ab-pricing{margin-bottom:1.5em}.ab-pricing-table-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-template-areas:"col1";grid-gap:0 2em}[data-type="atomic-blocks/ab-pricing-table"],.wp-block-atomic-blocks-ab-pricing-table{display:inline-block;vertical-align:top}@media only screen and (max-width: 600px){[data-type="atomic-blocks/ab-pricing-table"],.wp-block-atomic-blocks-ab-pricing-table{margin-bottom:1.5em}}.ab-block-pricing-table-inside{display:inline-block;width:100%;border-color:#272c30}.ab-block-pricing-table-gap-0{grid-gap:0 0}.ab-block-pricing-table-gap-1{grid-gap:0 1em}.ab-block-pricing-table-gap-2{grid-gap:0 2em}.ab-block-pricing-table-gap-3{grid-gap:0 3em}.ab-block-pricing-table-gap-4{grid-gap:0 4em}.ab-block-pricing-table-gap-5{grid-gap:0 5em}.ab-pricing-columns-2 .ab-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}@media only screen and (max-width: 600px){.ab-pricing-columns-2 .ab-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.ab-pricing-columns-3 .ab-pricing-table-wrap{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}@media only screen and (max-width: 600px){.ab-pricing-columns-3 .ab-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.ab-pricing-columns-4 .ab-pricing-table-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}@media only screen and (max-width: 800px){.ab-pricing-columns-4 .ab-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}.ab-pricing-columns-4 .ab-pricing-table-wrap .wp-block-atomic-blocks-ab-pricing-table{margin-bottom:1.5em}}@media only screen and (max-width: 600px){.ab-pricing-columns-4 .ab-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.ab-pricing-table-price{line-height:1}.ab-pricing-table-currency{vertical-align:top;margin-top:.4em;margin-right:3px;display:inline-block;line-height:1}.wp-block-atomic-blocks-ab-pricing-table{vertical-align:top}.wp-block-atomic-blocks-ab-pricing-table .ab-pricing-table-features,.block-library-list .wp-block-atomic-blocks-ab-pricing-table ul{margin:0;padding:0;border:none}.ab-block-pricing-table:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.ab-block-pricing-table:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.ab-block-pricing-table:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.ab-block-pricing-table:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.editor-styles-wrapper [data-type="atomic-blocks/ab-pricing-table-features"] ul{list-style-type:none;display:block;white-space:initial;margin-left:0;margin-right:0}.ab-list-border-solid li{border-bottom-style:solid}.ab-list-border-dashed li{border-bottom-style:dashed}.ab-list-border-dotted li{border-bottom-style:dotted}ul.ab-pricing-table-features li{list-style:none;margin:0;padding:4px 0;border-color:inherit}ul.ab-pricing-table-features li:last-child{border-bottom:none}.ab-list-border-width-1 li{border-width:1px}.ab-list-border-width-2 li{border-width:2px}.ab-list-border-width-3 li{border-width:3px}.ab-list-border-width-4 li{border-width:4px}.ab-list-border-width-5 li{border-width:5px}.ab-pricing-table-price,.ab-pricing-table-term{display:inline}span.ab-pricing-table-term{margin-left:5px}.ab-pricing-table-wrap .ab-block-pricing-table-inside>*:last-child{margin-bottom:0}.wp-block-atomic-blocks-ab-pricing .alignwide,.wp-block-atomic-blocks-ab-pricing .alignfull{width:100%;margin-left:auto}.ab-block-pricing-table-center{text-align:center}.ab-block-pricing-table-center .ab-block-button{text-align:center !important}.ab-block-pricing-table-center .blocks-button__inline-link{margin:0 auto;text-align:center}.ab-block-pricing-table-left{text-align:left}.ab-block-pricing-table-right{text-align:right}.ab-pricing-table-button .ab-block-button{margin-bottom:0}
13
  .ab-block-newsletter .ab-newsletter-title{margin-top:0;line-height:1.3}.ab-block-newsletter .ab-block-button{margin-bottom:0}.ab-block-newsletter-label{font-size:16px}.ab-form-styles label{margin-bottom:8px;width:100%;display:block}.ab-form-styles input:not(.ab-newsletter-submit){width:100%;height:auto;min-height:45px;margin-bottom:15px}
 
14
  .ab-layout-column-button .ab-block-button{margin-bottom:0}.ab-layout-selector-group{margin-top:10px}.ab-layout-selector{display:inline-block;margin:0 5px}.ab-layout-selector button.ab-layout-selector-button{padding:15px;height:auto;border-radius:5px;background:#fff}.ab-layout-selector button.ab-layout-selector-button:hover{background:#fff}.ab-layout-selector button.components-button.is-button:last-child{border-radius:5px}.ab-toolbar-insert-layout-button{margin-right:3px}.ab-layout-team-1 .ab-profile-column{flex:100%}.ab-layout-team-1 .ab-social-links{padding-top:25px}.ab-layout-hero-cover .wp-block-cover__inner-container{max-width:800px}.ab-layout-hero-cover h2,.ab-layout-hero-cover h3,.ab-layout-hero-cover h4{max-width:100%}.ab-white-text,.editor-styles-wrapper [data-type="core/heading"] .ab-white-text{color:#fff}.ab-layout-landing-2 .ab-block-profile{padding:0;text-align:center}.ab-layout-landing-2 .ab-block-profile .ab-profile-avatar-wrap,.ab-layout-landing-2 .ab-block-profile .ab-profile-column{flex:0 0 100%}.ab-layout-landing-2 .round .ab-profile-image-wrap{max-width:220px;margin:0 auto}.ab-layout-landing-2 .ab-block-cta .ab-cta-content{max-width:700px;margin:0 auto}.ab-layout-landing-2 .ab-block-cta .ab-button{font-weight:normal}.ab-layout-landing-3 .ab-layout-landing-3-cover h2,.ab-layout-landing-3 .ab-layout-landing-3-cover h3,.ab-layout-landing-3 .ab-layout-landing-3-cover h4,.ab-layout-landing-3 .ab-layout-landing-3-cover h5,.ab-layout-landing-3 .ab-layout-landing-3-cover h6{margin-left:auto;margin-right:auto}@media only screen and (min-width: 600px){.ab-layout-landing-3 .ab-layout-landing-3-cover h2,.ab-layout-landing-3 .ab-layout-landing-3-cover h3,.ab-layout-landing-3 .ab-layout-landing-3-cover h4,.ab-layout-landing-3 .ab-layout-landing-3-cover h5,.ab-layout-landing-3 .ab-layout-landing-3-cover h6{font-size:42px}}@media only screen and (min-width: 600px){.ab-layout-landing-3 .ab-block-post-grid header .ab-block-post-grid-title{font-size:24px}}div[class*="ab-section-"].alignfull,div[class*="ab-layout-"].alignfull{margin-top:auto;margin-bottom:auto}
15
+ .wp-block-atomic-blocks-ab-layout{margin-bottom:1.5em}.wp-block-atomic-blocks-ab-columns{position:relative}.ab-layout-column-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-gap:0 2em;position:relative;z-index:1}[data-type="atomic-blocks/ab-column"],.ab-block-layout-column{display:block;vertical-align:top;min-width:0}.ab-block-layout-column.ab-is-vertically-aligned-top{align-self:flex-start}.ab-block-layout-column.ab-is-vertically-aligned-center{align-self:center}.ab-block-layout-column.ab-is-vertically-aligned-bottom{align-self:flex-end}.ab-block-layout-column-inner,.ab-layout-column-wrap>.ab-block-layout-column-inner,.ab-has-background-dim>*{position:relative;z-index:1}.wp-block-atomic-blocks-ab-layout.alignfull{padding:0 2em}@media only screen and (max-width: 600px){.wp-block-atomic-blocks-ab-layout.alignfull{padding:0 15px}}.ab-block-layout-column{display:block;width:100%}.ab-columns-center .ab-layout-column-wrap{margin:0 auto}.ab-block-layout-column-gap-0{grid-gap:0 0}.ab-block-layout-column-gap-1{grid-gap:0 1em}.ab-block-layout-column-gap-2{grid-gap:0 2em}.ab-block-layout-column-gap-3{grid-gap:0 3em}.ab-block-layout-column-gap-4{grid-gap:0 4em}.ab-block-layout-column-gap-5{grid-gap:0 5em}.ab-block-layout-column-gap-6{grid-gap:0 6em}.ab-block-layout-column-gap-7{grid-gap:0 7em}.ab-block-layout-column-gap-8{grid-gap:0 8em}.ab-block-layout-column-gap-9{grid-gap:0 9em}.ab-block-layout-column-gap-10{grid-gap:0 10em}.ab-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.ab-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.ab-block-layout-column:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.ab-block-layout-column:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.ab-block-layout-column:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.ab-block-layout-column:nth-child(5){-ms-grid-row:1;-ms-grid-column:5;grid-area:col5}.ab-block-layout-column:nth-child(6){-ms-grid-row:1;-ms-grid-column:6;grid-area:col6}.ab-layout-columns-1>.ab-layout-column-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1"}.ab-layout-columns-2>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}@media only screen and (max-width: 600px){.ab-layout-columns-2>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.ab-2-col-wideleft>.ab-layout-column-wrap{-ms-grid-columns:2fr 1fr;grid-template-columns:2fr 1fr}.ab-2-col-wideright>.ab-layout-column-wrap{-ms-grid-columns:1fr 2fr;grid-template-columns:1fr 2fr}.ab-layout-columns-3>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}@media only screen and (max-width: 600px){.ab-layout-columns-3>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.ab-3-col-widecenter>.ab-layout-column-wrap{-ms-grid-columns:1fr 2fr 1fr;grid-template-columns:1fr 2fr 1fr}@media only screen and (max-width: 600px){.ab-3-col-widecenter>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-3-col-wideleft>.ab-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr}@media only screen and (max-width: 600px){.ab-3-col-wideleft>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-3-col-wideright>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 2fr;grid-template-columns:1fr 1fr 2fr}@media only screen and (max-width: 600px){.ab-3-col-wideright>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.ab-layout-columns-4>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}@media only screen and (max-width: 800px){.ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column{grid-template-rows:auto;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}}@media only screen and (max-width: 600px){.ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.ab-4-col-wideleft>.ab-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr 1fr}.ab-4-col-wideright>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 2fr;grid-template-columns:1fr 1fr 1fr 2fr}.ab-layout-columns-5>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5"}@media only screen and (max-width: 800px){.ab-layout-columns-5>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5"}}.ab-layout-columns-6>.ab-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5 col6"}@media only screen and (max-width: 800px){.ab-layout-columns-6>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4" "col5 col6"}}@media only screen and (max-width: 600px){.ab-layout-columns-6>.ab-layout-column-wrap.ab-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5" "col6"}}.ab-layout-columns-4,.ab-layout-columns-5,.ab-layout-columns-6{overflow-x:auto}.ab-column-selector-group{margin-top:10px;display:flex;width:100%;text-align:center;justify-content:center}@media only screen and (max-width: 1175px){.ab-column-selector-group{flex-wrap:wrap}}.ab-column-selector{margin:0 5px}@media only screen and (max-width: 1175px){.ab-column-selector{margin-top:10px}}.ab-column-selector button.ab-column-selector-button{padding:15px;height:auto;border-radius:5px !important;background:#fff;margin:0}.ab-column-selector button.ab-column-selector-button:hover{background:#fff;margin:0}.ab-column-selector button.components-button.is-button:last-child{border-radius:5px}
16
  .gpb-overflow-hidden{overflow:hidden}.gpb-grid-mobile-space .ab-is-responsive-column{grid-row-gap:1em}.gpb-rounded-grid .ab-block-layout-column-inner{border-radius:10px}.gpb-rounded-sm,.gpb-rounded-sm img{border-radius:5px}.gpb-rounded-md,.gpb-rounded-md img{border-radius:10px}.gpb-rounded-lg,.gpb-rounded-lg img{border-radius:20px}.gpb-rounded-xl,.gpb-rounded-xl img{border-radius:30px}.gpb-rounded-full,.gpb-rounded-full img{border-radius:500px}@media only screen and (max-width: 600px){.gpb-mobile-align-reset{float:none;text-align:left;margin-left:0 !important;margin-right:0}}@media only screen and (max-width: 600px){.gpb-grid-mobile-reorder .ab-is-responsive-column .ab-block-layout-column:nth-of-type(1){grid-area:col2}.gpb-grid-mobile-reorder .ab-is-responsive-column .ab-block-layout-column:nth-of-type(2){grid-area:col1}}.gpb-mb-1{margin-bottom:1rem}@media only screen and (min-width: 600px){div[class*="wp-block-atomic"].ab-font-size-14.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-14.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-14.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-14.ab-block-cta p{font-size:14px}div[class*="wp-block-atomic"].ab-font-size-15.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-15.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-15.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-15.ab-block-cta p{font-size:15px}div[class*="wp-block-atomic"].ab-font-size-16.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-16.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-16.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-16.ab-block-cta p{font-size:16px}div[class*="wp-block-atomic"].ab-font-size-17.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-17.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-17.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-17.ab-block-cta p{font-size:17px}div[class*="wp-block-atomic"].ab-font-size-18.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-18.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-18.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-18.ab-block-cta p{font-size:18px}div[class*="wp-block-atomic"].ab-font-size-19.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-19.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-19.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-19.ab-block-cta p{font-size:19px}div[class*="wp-block-atomic"].ab-font-size-20.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-20.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-20.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-20.ab-block-cta p{font-size:20px}div[class*="wp-block-atomic"].ab-font-size-21.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-21.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-21.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-21.ab-block-cta p{font-size:21px}div[class*="wp-block-atomic"].ab-font-size-22.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-22.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-22.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-22.ab-block-cta p{font-size:22px}div[class*="wp-block-atomic"].ab-font-size-23.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-23.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-23.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-23.ab-block-cta p{font-size:23px}div[class*="wp-block-atomic"].ab-font-size-24.ab-block-testimonial p,div[class*="wp-block-atomic"].ab-font-size-24.ab-block-notice p,div[class*="wp-block-atomic"].ab-font-size-24.ab-block-profile p,div[class*="wp-block-atomic"].ab-font-size-24.ab-block-cta p{font-size:24px}}*[class*="gpb-fluid"],.entry-content *[class*="gpb-fluid"]{margin:0 0 1rem 0;line-height:1.2;font-weight:normal}.gpb-fluid-1{font-size:20px}@media (min-width: 600px){.gpb-fluid-1{font-size:calc(11.50943px + 100vw * .01415)}}@media (min-width: 1024px){.gpb-fluid-1{font-size:26px}}.gpb-fluid-2{font-size:22px}@media (min-width: 600px){.gpb-fluid-2{font-size:calc(10.67925px + 100vw * .01887)}}@media (min-width: 1024px){.gpb-fluid-2{font-size:30px}}.gpb-fluid-3{font-size:24px}@media (min-width: 600px){.gpb-fluid-3{font-size:calc(4.18868px + 100vw * .03302)}}@media (min-width: 1024px){.gpb-fluid-3{font-size:38px}}.gpb-fluid-4{font-size:28px}@media (min-width: 600px){.gpb-fluid-4{font-size:calc(5.35849px + 100vw * .03774)}}@media (min-width: 1024px){.gpb-fluid-4{font-size:44px}}.gpb-fluid-5{font-size:32px}@media (min-width: 600px){.gpb-fluid-5{font-size:calc(3.69811px + 100vw * .04717)}}@media (min-width: 1024px){.gpb-fluid-5{font-size:52px}}.gpb-fluid-6{font-size:36px}@media (min-width: 600px){.gpb-fluid-6{font-size:calc(2.03774px + 100vw * .0566)}}@media (min-width: 1024px){.gpb-fluid-6{font-size:60px}}.ab-align-center{text-align:center}.ab-align-left{text-align:left}.ab-align-right{text-align:right}.center{text-align:center}.left{text-align:left}.right{text-align:right}@media only screen and (min-width: 600px){.wp-block-columns .layout-column-1,.wp-block-columns .layout-column-2{margin-right:5%}}.wp-block-image{margin-bottom:1.2em}.ab-text-link{color:inherit;text-decoration:none}.ab-text-link:hover{color:inherit;text-decoration:underline}.ab-has-parallax{background-attachment:fixed;background-size:cover;background-position:50%}.ab-has-background-dim:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-color:inherit;opacity:0;z-index:1}.ab-has-background-dim.has-theme-primary-background-color:before,.ab-has-background-dim.ab-has-custom-background-color:before{background-color:inherit}.ab-has-background-dim-0:before{opacity:1}.ab-has-background-dim-10:before{opacity:.9}.ab-has-background-dim-20:before{opacity:.8}.ab-has-background-dim-30:before{opacity:.7}.ab-has-background-dim-40:before{opacity:.6}.ab-has-background-dim-50:before{opacity:.5}.ab-has-background-dim-60:before{opacity:.4}.ab-has-background-dim-70:before{opacity:.3}.ab-has-background-dim-80:before{opacity:.2}.ab-has-background-dim-90:before{opacity:.1}.ab-has-background-dim-100:before{opacity:0}div.ab-background-auto{background-size:auto;background-position:center center}div.ab-background-cover{background-size:cover}div.ab-background-contain{background-size:contain;background-position:center center}div.ab-background-no-repeat{background-repeat:no-repeat}div.ab-background-repeat{background-repeat:repeat}div.ab-background-repeat-x{background-repeat:repeat-x}div.ab-background-repeat-y{background-repeat:repeat-y;background-position:center center}ol.gpb-number-list,.editor-styles-wrapper ol.gpb-number-list{list-style:none;counter-reset:gpb-list-counter;padding:0;margin-left:0}ol.gpb-number-list li,.editor-styles-wrapper ol.gpb-number-list li{list-style-type:none;counter-increment:gpb-list-counter;position:relative;padding-left:65px;margin-bottom:1.2em}ol.gpb-number-list li::before{content:counter(gpb-list-counter) "";color:#fff;background:#333;position:absolute;left:0;top:10px;text-align:center;border-radius:100px;height:42px;width:42px;line-height:41px}
languages/atomic-blocks.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Atomic Blocks - Gutenberg Blocks Collection plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Atomic Blocks - Gutenberg Blocks Collection 2.8.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/atomic-blocks\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2020-06-10T20:46:29+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: atomic-blocks\n"
@@ -798,7 +798,7 @@ msgstr ""
798
  msgid "Thanks for subscribing."
799
  msgstr ""
800
 
801
- #: src/blocks/block-post-grid/index.php:121
802
  msgid "Untitled"
803
  msgstr ""
804
 
2
  # This file is distributed under the same license as the Atomic Blocks - Gutenberg Blocks Collection plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Atomic Blocks - Gutenberg Blocks Collection 2.8.5\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/atomic-blocks\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2020-07-15T19:06:51+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: atomic-blocks\n"
798
  msgid "Thanks for subscribing."
799
  msgstr ""
800
 
801
+ #: src/blocks/block-post-grid/index.php:123
802
  msgid "Untitled"
803
  msgstr ""
804
 
src/blocks/block-post-grid/components/edit.js CHANGED
@@ -56,7 +56,7 @@ class LatestPostsBlock extends Component {
56
 
57
  // Removing posts from display should be instant.
58
  const displayPosts =
59
- latestPosts.length > attributes.postsToShow
60
  ? latestPosts.slice( 0, attributes.postsToShow )
61
  : latestPosts;
62
 
@@ -295,6 +295,7 @@ export default compose( [
295
  {
296
  include: pageIDs ? pageIDs : null,
297
  orderby: pageIDs ? 'include' : null,
 
298
  },
299
  ( value ) => ! isUndefined( value )
300
  );
56
 
57
  // Removing posts from display should be instant.
58
  const displayPosts =
59
+ ( latestPosts.length > attributes.postsToShow ) && attributes.postType === 'post'
60
  ? latestPosts.slice( 0, attributes.postsToShow )
61
  : latestPosts;
62
 
295
  {
296
  include: pageIDs ? pageIDs : null,
297
  orderby: pageIDs ? 'include' : null,
298
+ per_page: props.attributes.selectedPages.length
299
  },
300
  ( value ) => ! isUndefined( value )
301
  );
src/blocks/block-post-grid/index.php CHANGED
@@ -26,16 +26,18 @@ function atomic_blocks_render_block_core_latest_posts( $attributes ) {
26
  $categories = isset( $attributes['categories'] ) ? $attributes['categories'] : '';
27
 
28
  /* Get the selected pages */
29
- $page_selection = isset( $attributes['selectedPages'] ) ? array_column( $attributes['selectedPages'], 'value' ) : null;
30
 
31
  if ( isset( $attributes['postType'] ) && 'page' === $attributes['postType'] ) {
32
  /* Page query args */
33
  $args = array(
34
- 'post_status' => 'publish',
35
- 'orderby' => 'post__in',
36
- 'post__in' => $page_selection,
37
- 'post_type' => 'page',
 
38
  );
 
39
  } else {
40
  /* Post query args */
41
  $args = array(
26
  $categories = isset( $attributes['categories'] ) ? $attributes['categories'] : '';
27
 
28
  /* Get the selected pages */
29
+ $page_selection = isset( $attributes['selectedPages'] ) ? array_column( $attributes['selectedPages'], 'value' ) : [];
30
 
31
  if ( isset( $attributes['postType'] ) && 'page' === $attributes['postType'] ) {
32
  /* Page query args */
33
  $args = array(
34
+ 'post_status' => 'publish',
35
+ 'orderby' => 'post__in',
36
+ 'post__in' => $page_selection,
37
+ 'post_type' => 'page',
38
+ 'posts_per_page' => count( $page_selection ),
39
  );
40
+
41
  } else {
42
  /* Post query args */
43
  $args = array(
src/blocks/block-post-grid/styles/editor.scss CHANGED
@@ -8,10 +8,6 @@
8
  }
9
  }
10
 
11
- .atomic-blocks-hide-query .components-base-control:nth-of-type(3) {
12
- display: none;
13
- }
14
-
15
  .ab-block-post-grid-markup-settings {
16
  .components-base-control__help {
17
  margin-top: 8px;
8
  }
9
  }
10
 
 
 
 
 
11
  .ab-block-post-grid-markup-settings {
12
  .components-base-control__help {
13
  margin-top: 8px;