Version Description
- Fixed: Corrected the settings link in the Newsletter Block.
- Added: Collection images to layout modal.
- Added: Fallback images for section/layout previews that fail to load.
- Added: Ability to use section keys to build layouts.
Download this release
Release Info
Developer | studiopress |
Plugin | Genesis Blocks |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- dist/assets/images/gb-fallback-image.jpg +0 -0
- dist/blocks.build.js +1 -1
- dist/blocks.style.build.css +1 -1
- genesis-blocks.php +1 -1
- includes/layout/class-component-registry.php +2 -1
- includes/load-scripts.php +5 -4
- includes/patterns/gb_slate_layout_about.php +3 -2
- includes/patterns/gb_slate_layout_homepage.php +3 -2
- languages/genesis-blocks.pot +28 -32
- readme.txt +8 -2
- src/blocks/block-column-inner/components/edit.js +2 -3
- src/blocks/block-layout/components/layout/collections/views/CollectionCard.js +8 -2
- src/blocks/block-layout/components/layout/layout-library-item-card.js +6 -1
- src/blocks/block-newsletter/includes/newsletter-functions.php +1 -1
- src/blocks/block-post-grid/components/edit.js +2 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
dist/assets/images/gb-fallback-image.jpg
ADDED
Binary file
|
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,a,o,i,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},a=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},i=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,m=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var g=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 g&&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 _=m.now();t.unstable_now=function(){return m.now()-_}}var b=!1,y=null,v=-1,k=5,M=0;i=function(){return t.unstable_now()>=M},s=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"):k=0<e?Math.floor(1e3/e):5};var L=new MessageChannel,w=L.port2;L.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();M=e+k;try{y(!0,e)?w.postMessage(null):(b=!1,y=null)}catch(e){throw w.postMessage(null),e}}else b=!1},r=function(e){y=e,b||(b=!0,w.postMessage(null))},a=function(e,n){v=f((function(){e(t.unstable_now())}),n)},o=function(){h(v),v=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<S(a,t)))break e;e[r]=t,e[n]=a,n=r}}function Y(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,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],s=o+1,l=e[s];if(void 0!==i&&0>S(i,n))void 0!==l&&0>S(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==l&&0>S(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],D=[],C=1,R=null,O=3,P=!1,j=!1,H=!1;function A(e){for(var t=Y(D);null!==t;){if(null===t.callback)E(D);else{if(!(t.startTime<=e))break;E(D),t.sortIndex=t.expirationTime,T(x,t)}t=Y(D)}}function z(e){if(H=!1,A(e),!j)if(null!==Y(x))j=!0,r(F);else{var t=Y(D);null!==t&&a(z,t.startTime-e)}}function F(e,n){j=!1,H&&(H=!1,o()),P=!0;var r=O;try{for(A(n),R=Y(x);null!==R&&(!(R.expirationTime>n)||e&&!i());){var s=R.callback;if(null!==s){R.callback=null,O=R.priorityLevel;var l=s(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?R.callback=l:R===Y(x)&&E(x),A(n)}else E(x);R=Y(x)}if(null!==R)var u=!0;else{var c=Y(D);null!==c&&a(z,c.startTime-n),u=!1}return u}finally{R=null,O=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=s;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(){j||P||(j=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return Y(x)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=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=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,n,i){var s=t.unstable_now();if("object"==typeof i&&null!==i){var l=i.delay;l="number"==typeof l&&0<l?s+l:s,i="number"==typeof i.timeout?i.timeout:N(e)}else i=N(e),l=s;return e={id:C++,callback:n,priorityLevel:e,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>s?(e.sortIndex=l,T(D,e),null===Y(x)&&e===Y(D)&&(H?o():H=!0,a(z,l-s))):(e.sortIndex=i,T(x,e),j||P||(j=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();A(e);var n=Y(x);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},function(e,t,n){"use strict";var r=n(307);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}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:o,resetWarningCache:a};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(74);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(310);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(311);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(17),a=n(31),o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(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(o,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(207);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=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(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var a=t&&t.prototype instanceof c?t:c,o=Object.create(a.prototype),i=new M(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return w()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=y(i,n);if(s){if(s===u)continue;return s}}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=l(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),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function c(){}function d(){}function p(){}var m={};m[a]=function(){return this};var f=Object.getPrototypeOf,h=f&&f(f(L([])));h&&h!==t&&n.call(h,a)&&(m=h);var g=p.prototype=c.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var r;this._invoke=function(a,o){function i(){return new t((function(r,i){!function r(a,o,i,s){var u=l(e[a],e,o);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,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(u.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function y(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,y(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=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=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 o.next=o}}return{next:w}}function w(){return{value:void 0,done:!0}}return d.prototype=g.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(g),e},e.awrap=function(e){return{__await:e}},_(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new b(s(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(g),g[i]="Generator",g[a]=function(){return this},g.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=L,M.prototype={constructor:M,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(k),!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 a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.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),k(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 a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(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(10),a=n.n(r),o=n(8),i=n.n(o),s=n(1),l=n.n(s),u=n(2),c=n.n(u),d=n(3),p=n.n(d),m=n(4),f=n.n(m),h=n(0),g=n.n(h),_=n(5),b=n.n(_);function y(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var v=wp.element.Component,k=wp.hooks.applyFilters,M=function(e){p()(n,e);var t=y(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(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 k("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}]),n}(v);function L(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=wp.i18n.__,T=wp.element.Component,Y=wp.blockEditor,E=Y.InspectorControls,S=Y.PanelColorSettings,x=wp.components,D=x.PanelBody,C=x.RangeControl,R=x.SelectControl,O=function(e){p()(n,e);var t=L(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:"left-aligned",label:w("Left Aligned","genesis-blocks")},{value:"right-aligned",label:w("Right Aligned","genesis-blocks")}],n=this.props,r=n.attributes,a=r.testimonialBackgroundColor,o=r.testimonialTextColor,i=r.testimonialFontSize,s=r.testimonialCiteAlign,l=n.setAttributes;return React.createElement(E,{key:"inspector"},React.createElement(D,null,React.createElement(M,{id:"gb_testimonial_testimonialFontSize"},React.createElement(C,{label:w("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({testimonialFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(R,{label:w("Cite Alignment","genesis-blocks"),description:w("Left or right align the cite name and title.","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({testimonialCiteAlign:t})}}))),React.createElement(M,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(S,{title:w("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({testimonialBackgroundColor:e})},label:w("Background Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_testimonial_testimonialTextColor"},React.createElement(S,{title:w("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({testimonialTextColor:e})},label:w("Text Color","genesis-blocks")}]})))}}]),n}(T);function P(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(e){p()(n,e);var t=P(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialImgURL,n=e.testimonialBackgroundColor,r=e.testimonialTextColor,a=e.testimonialFontSize,o=e.testimonialCiteAlign;return React.createElement("div",{style:{backgroundColor:n||"#f2f2f2",color:r||"#32373c"},className:b()(this.props.className,o,{"gb-has-avatar":t},"gb-font-size-"+a,"gb-block-testimonial")},this.props.children)}}]),n}(wp.element.Component),H={};H.upload=React.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.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"}),React.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"}),React.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"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));var A=H;function z(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 F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var B=wp.i18n.__,I=wp.element,W=I.Component,U=I.Fragment,V=wp.blockEditor,J=V.RichText,G=V.AlignmentToolbar,q=V.BlockControls,$=V.MediaUpload,K=wp.components,Q=K.Button,Z=K.Dashicon,X=["image"],ee=function(e){p()(n,e);var t=N(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.testimonialName,o=n.testimonialTitle,i=n.testimonialContent,s=n.testimonialAlignment,l=n.testimonialImgURL,u=n.testimonialImgID,c=n.testimonialImgAlt,d=n.testimonialTextColor,p=t.setAttributes,m=function(){p({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(q,{key:"controls"},React.createElement(G,{value:s,onChange:function(e){return p({testimonialAlignment:e})}})),React.createElement(O,a()({key:"gb-testimonial-inspector-"+this.props.clientId},F({setAttributes:p},this.props))),React.createElement(j,a()({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(J,{tagName:"div",multiline:"p",placeholder:B("Add testimonial text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-testimonial-text"),style:{textAlign:s},onChange:function(e){return p({testimonialContent:e})}}),React.createElement("div",{className:"gb-testimonial-info"},React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement($,{buttonProps:{className:"change-image"},onSelect:function(e){return p({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt})},allowed:X,type:"image",value:u,render:function(e){var t=e.open;return React.createElement(U,null,React.createElement(Q,{className:u?"gb-change-image":"gb-add-image",onClick:t},u?React.createElement("img",{className:"gb-testimonial-avatar",src:l,alt:c||null}):A.upload),u&&React.createElement(Q,{className:"gb-remove-image",onClick:m},React.createElement(Z,{icon:"dismiss"})))}}))),React.createElement(J,{tagName:"h2",placeholder:B("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-testimonial-name",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialName:t})}}),React.createElement(J,{tagName:"small",placeholder:B("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,className:"gb-testimonial-title",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialTitle:t})}})))]}}]),n}(W);function te(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ne=wp.element.Component,re=wp.blockEditor.RichText,ae=function(e){p()(n,e);var t=te(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialName,n=e.testimonialTitle,r=e.testimonialContent,a=e.testimonialAlignment,o=e.testimonialImgURL,i=e.testimonialImgAlt,s=e.testimonialTextColor;return React.createElement(j,this.props,React.createElement(re.Content,{tagName:"div",className:"gb-testimonial-text",style:{textAlign:a},value:r}),React.createElement("div",{className:"gb-testimonial-info"},o&&React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement("img",{className:"gb-testimonial-avatar",src:o,alt:i||null}))),t&&React.createElement(re.Content,{tagName:"h2",className:"gb-testimonial-name",style:{color:s||"#32373c"},value:t}),n&&React.createElement(re.Content,{tagName:"small",className:"gb-testimonial-title",style:{color:s||"#32373c"},value:n})))}}]),n}(ne),oe=(n(344),n(346),wp.i18n.__);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-testimonial",{title:oe("Testimonial","genesis-blocks"),description:oe("Add a user testimonial with a name and title.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[oe("testimonial","genesis-blocks"),oe("quote","genesis-blocks"),oe("atomic","genesis-blocks")],attributes:{testimonialName:{type:"array",selector:".gb-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".gb-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".gb-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},gb_settings_data:{gb_testimonial_testimonialFontSize:{title:oe("Font Size","genesis-blocks")},gb_testimonial_testimonialCiteAlign:{title:oe("Cite Alignment","genesis-blocks")},gb_testimonial_testimonialBackgroundColor:{title:oe("Background Color","genesis-blocks")},gb_testimonial_testimonialTextColor:{title:oe("Text Color","genesis-blocks")}},edit:function(e){return React.createElement(ee,e)},save:function(e){return React.createElement(ae,e)}});var se=wp.i18n.__,le=wp.element.Component,ue=wp.blockEditor,ce=ue.InspectorControls,de=ue.PanelColorSettings,pe=wp.components,me=pe.PanelBody,fe=pe.RangeControl,he=pe.SelectControl,ge=pe.TextControl,_e=function(e){p()(n,e);var t=ie(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.profileFontSize,r=t.profileBackgroundColor,a=t.profileTextColor,o=t.profileLinkColor,i=t.twitter,s=t.facebook,l=t.instagram,u=t.pinterest,c=t.google,d=t.youtube,p=t.github,m=t.linkedin,f=t.wordpress,h=t.email,g=t.website,_=t.profileAvatarShape,b=this.props.setAttributes,y=[{value:"square",label:se("Square","genesis-blocks")},{value:"round",label:se("Round","genesis-blocks")}];return React.createElement(ce,{key:"inspector"},React.createElement(me,null,React.createElement(M,{id:"gb_author_profile_profileFontSize"},React.createElement(fe,{label:se("Font Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_author_profile_profileAvatarShape"},React.createElement(he,{label:se("Avatar Shape","genesis-blocks"),description:se("Choose between a round or square avatar shape.","genesis-blocks"),options:y,value:_,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),React.createElement(M,{id:"gb_author_profile_profileBackgroundColor"},React.createElement(de,{title:se("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return b({profileBackgroundColor:e})},label:se("Background Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_author_profile_profileTextColor"},React.createElement(de,{title:se("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return b({profileTextColor:e})},label:se("Text Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_author_profile_profileLinkColor"},React.createElement(de,{title:se("Social Link Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return b({profileLinkColor:e})},label:se("Social Link Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_author_profile_socialLinks"},React.createElement(me,{title:se("Social Links","genesis-blocks"),initialOpen:!1},React.createElement("p",null,se("Add links to your social media site and they will appear in the bottom of the profile box.","genesis-blocks")),React.createElement(ge,{label:se("Twitter URL","genesis-blocks"),type:"url",value:i,onChange:function(t){return e.props.setAttributes({twitter:t})}}),React.createElement(ge,{label:se("Facebook URL","genesis-blocks"),type:"url",value:s,onChange:function(t){return e.props.setAttributes({facebook:t})}}),React.createElement(ge,{label:se("Instagram URL","genesis-blocks"),type:"url",value:l,onChange:function(t){return e.props.setAttributes({instagram:t})}}),React.createElement(ge,{label:se("Pinterest URL","genesis-blocks"),type:"url",value:u,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),React.createElement(ge,{label:se("Google URL","genesis-blocks"),type:"url",value:c,onChange:function(t){return e.props.setAttributes({google:t})}}),React.createElement(ge,{label:se("YouTube URL","genesis-blocks"),type:"url",value:d,onChange:function(t){return e.props.setAttributes({youtube:t})}}),React.createElement(ge,{label:se("Github URL","genesis-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({github:t})}}),React.createElement(ge,{label:se("LinkedIn URL","genesis-blocks"),type:"url",value:m,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),React.createElement(ge,{label:se("WordPress Profile URL","genesis-blocks"),type:"url",value:f,onChange:function(t){return e.props.setAttributes({wordpress:t})}}),React.createElement(ge,{label:se("Email URL","genesis-blocks"),help:se('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"genesis-blocks"),type:"url",value:h,onChange:function(t){return e.props.setAttributes({email:t})}}),React.createElement(ge,{label:se("Website URL","genesis-blocks"),type:"url",value:g,onChange:function(t){return e.props.setAttributes({website:t})}}))))}}]),n}(le);function be(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ye=function(e){p()(n,e);var t=be(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,o=e.profileTextColor,i=e.profileAvatarShape;return React.createElement("div",{style:{backgroundColor:a,color:o},className:b()(this.props.className,t,i,{"gb-has-avatar":n},"gb-font-size-"+r,"gb-block-profile","gb-profile-columns")},this.props.children)}}]),n}(wp.element.Component);function ve(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ke=wp.i18n.__,Me=function(e){p()(n,e);var t=ve(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},ke("Website","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},ke("Twitter","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},ke("Facebook","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},ke("Instagram","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},ke("Pinterest","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},ke("Google","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},ke("YouTube","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},ke("LinkedIn","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},ke("Github","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},ke("WordPress","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},ke("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}]),n}(wp.element.Component);function Le(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var we=function(e){p()(n,e);var t=Le(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}]),n}(wp.element.Component);function Te(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Se=wp.i18n.__,xe=wp.element,De=xe.Component,Ce=xe.Fragment,Re=wp.blockEditor,Oe=Re.RichText,Pe=Re.AlignmentToolbar,je=Re.BlockControls,He=Re.MediaUpload,Ae=wp.components,ze=Ae.Button,Fe=Ae.Dashicon,Ne=["image"],Be=function(e){p()(n,e);var t=Ee(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.profileName,r=t.profileTitle,o=t.profileContent,i=t.profileAlignment,s=t.profileImgURL,l=t.profileImgID,u=t.profileImgAlt,c=t.profileTextColor,d=e.setAttributes;return[React.createElement(je,{key:"controls"},React.createElement(Pe,{value:i,onChange:function(e){return d({profileAlignment:e})}})),React.createElement(_e,a()({key:"gb-author-profile-inspector-"+this.props.clientId},Ye({setAttributes:d},this.props))),React.createElement(ye,a()({key:"gb-author-profile-"+this.props.clientId},this.props),React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement(He,{buttonProps:{className:"change-image"},onSelect:function(e){return d({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt})},allowed:Ne,type:"image",value:l,render:function(e){var t=e.open;return React.createElement(Ce,null,React.createElement(ze,{onClick:t},l?React.createElement("img",{className:b()("gb-profile-avatar","gb-change-image","wp-image-"+l),src:s,alt:u}):A.upload),l&&React.createElement(ze,{className:"gb-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(Fe,{icon:"dismiss"})))}}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},React.createElement(Oe,{tagName:"h2",placeholder:Se("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"gb-profile-name",style:{color:c},onChange:function(e){return d({profileName:e})}}),React.createElement(Oe,{tagName:"p",placeholder:Se("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-profile-title",style:{color:c},onChange:function(e){return d({profileTitle:e})}}),React.createElement(Oe,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Se("Add profile text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:function(e){return d({profileContent:e})}}),React.createElement(Me,this.props)))]}}]),n}(De);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var We=wp.element.Component,Ue=wp.blockEditor.RichText,Ve=function(e){p()(n,e);var t=Ie(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileImgAlt,i=e.profileImgID,s=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:b()("gb-profile-avatar","wp-image-"+i),src:a,alt:o}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(Ue.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(Ue.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(Ue.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Me,this.props)))}}]),n}(We);n(347),n(348);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ge=wp.element.Component,qe=wp.blockEditor.RichText,$e=function(e){p()(n,e);var t=Je(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("div",{className:"gb-profile-image-square"},React.createElement("img",{className:"gb-profile-avatar",src:a,alt:"avatar"}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(qe.Content,{tagName:"h2",className:"gb-profile-name",style:{color:o},value:t}),n&&React.createElement(qe.Content,{tagName:"p",className:"gb-profile-title",style:{color:o},value:n}),r&&React.createElement(qe.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Me,this.props)))}}]),n}(Ge),Ke=[{attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-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 React.createElement($e,e)}}],Qe=wp.i18n.__;function Ze(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-profile-box",{title:Qe("Profile Box","genesis-blocks"),description:Qe("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[Qe("author","genesis-blocks"),Qe("profile","genesis-blocks"),Qe("atomic","genesis-blocks"),Qe("genesis","genesis-blocks")],attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-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"}},gb_settings_data:{gb_author_profile_profileFontSize:{title:Qe("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:Qe("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:Qe("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:Qe("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:Qe("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:Qe("Social Links","genesis-blocks")}},edit:function(e){return React.createElement(Be,e)},save:function(e){return React.createElement(Ve,e)},deprecated:Ke});var Xe=wp.i18n.__,et=wp.element.Component,tt=wp.blockEditor,nt=tt.PanelColorSettings,rt=tt.InspectorControls,at=wp.components,ot=at.PanelBody,it=at.RangeControl,st=at.SelectControl,lt=function(e){p()(n,e);var t=Ze(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:null,label:Xe("Always Show","genesis-blocks")},{value:"gb-dismissable",label:Xe("Dismissible","genesis-blocks")}],n=this.props.attributes,r=n.noticeBackgroundColor,a=n.noticeTextColor,o=n.noticeTitleColor,i=n.noticeFontSize,s=n.noticeDismiss,l=this.props.setAttributes;return React.createElement(rt,{key:"inspector"},React.createElement(ot,null,React.createElement(M,{id:"gb_notice_noticeFontSize"},React.createElement(it,{label:Xe("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_notice_noticeDismiss"},React.createElement(st,{label:Xe("Notice Display","genesis-blocks"),description:Xe("Do you want the message to always show or dismissible?","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({noticeDismiss:t})}}))),React.createElement(M,{id:"gb_notice_colorSettings"},React.createElement(nt,{title:Xe("Notice Color","genesis-blocks"),colorValue:r,initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return l({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:Xe("Notice Color","genesis-blocks")}]}),React.createElement(nt,{title:Xe("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({noticeTitleColor:e})},label:Xe("Title Color","genesis-blocks")}]}),React.createElement(nt,{title:Xe("Text Color","genesis-blocks"),colorValue:a,initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({noticeTextColor:e})},label:Xe("Text Color","genesis-blocks")}]})))}}]),n}(et),ut=n(209),ct=n.n(ut);function dt(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var pt=function(e){p()(n,e);var t=dt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.noticeTitle,r=t.noticeAlignment,a=t.noticeBackgroundColor,o=t.noticeTextColor,i=t.noticeFontSize,s=t.noticeDismiss,l=(e=s+n,ct()(e).substr(0,6));return React.createElement("div",{style:{color:o,textAlign:r,backgroundColor:a},className:b()(this.props.className,s,"gb-font-size-"+i,"gb-block-notice"),"data-id":l},this.props.children)}}]),n}(wp.element.Component);function mt(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ft=function(e){p()(n,e);var t=mt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes.noticeTitleColor;return React.createElement("div",{className:"gb-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}]),n}(wp.element.Component),ht={};ht.upload=React.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.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"}),React.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"}),React.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"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),ht.dismiss=React.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},React.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 gt=ht;n(349),n(350);function _t(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?_t(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var vt=wp.i18n.__,kt=wp.element.Component,Mt=wp.blocks.registerBlockType,Lt=wp.blockEditor,wt=Lt.RichText,Tt=Lt.AlignmentToolbar,Yt=Lt.BlockControls,Et=function(e){p()(n,e);var t=yt(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.noticeTitle,r=t.noticeContent,o=t.noticeAlignment,i=t.noticeBackgroundColor,s=t.noticeTitleColor,l=t.noticeDismiss,u=e.setAttributes;return[React.createElement(Yt,{key:"controls"},React.createElement(Tt,{value:o,onChange:function(e){return u({noticeAlignment:e})}})),React.createElement(lt,a()({key:"gb-notice-inspector-"+this.props.clientId},bt({setAttributes:u},this.props))),React.createElement(pt,a()({key:"gb-notice-noticebox-"+this.props.clientId},this.props),l&&"gb-dismissable"===l&&React.createElement(ft,this.props,gt.dismiss),React.createElement(wt,{tagName:"p",placeholder:vt("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:b()("gb-notice-title"),style:{color:s},onChange:function(e){return u({noticeTitle:e})}}),React.createElement(wt,{tagName:"div",multiline:"p",placeholder:vt("Add notice text…","genesis-blocks"),value:r,className:b()("gb-notice-text"),style:{borderColor:i},onChange:function(e){return u({noticeContent:e})}}))]}}]),n}(kt);function St(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Mt("genesis-blocks/gb-notice",{title:vt("Notice","genesis-blocks"),description:vt("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[vt("notice","genesis-blocks"),vt("message","genesis-blocks"),vt("atomic","genesis-blocks")],attributes:{noticeTitle:{type:"string",selector:".gb-notice-title"},noticeContent:{type:"array",selector:".gb-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:""}},gb_settings_data:{gb_notice_noticeFontSize:{title:vt("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:vt("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:vt("Notice Color","genesis-blocks")}},edit:Et,save:function(e){var t=e.attributes,n=t.noticeTitle,r=t.noticeContent,a=t.noticeBackgroundColor,o=t.noticeTitleColor,i=t.noticeDismiss;return React.createElement(pt,e,i&&"gb-dismissable"===i&&React.createElement(ft,e,gt.dismiss),n&&React.createElement("div",{className:"gb-notice-title",style:{color:o}},React.createElement(wt.Content,{tagName:"p",value:n})),r&&React.createElement(wt.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:a},value:r}))}});var xt=wp.i18n.__,Dt=wp.element.Component,Ct=wp.blockEditor.InspectorControls,Rt=wp.components,Ot=Rt.RangeControl,Pt=Rt.SelectControl,jt=Rt.PanelBody,Ht=function(e){p()(n,e);var t=St(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapFontSize,r=t.dropCapStyle,a=[{value:"gb-drop-cap-letter",label:xt("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:xt("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:xt("Border","genesis-blocks")}];return React.createElement(Ct,{key:"inspector"},React.createElement(jt,null,React.createElement(M,{id:"gb_dropcap_dropCapFontSize"},React.createElement(Ot,{label:xt("Drop Cap Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),React.createElement(M,{id:"gb_dropcap_dropCapStyle"},React.createElement(Pt,{label:xt("Drop Cap Style","genesis-blocks"),description:xt("Choose the style of the drop cap in your paragraph","genesis-blocks"),options:a,value:r,onChange:function(t){return e.props.setAttributes({dropCapStyle:t})}}))))}}]),n}(Dt);function At(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var zt=function(e){p()(n,e);var t=At(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.dropCapAlignment,n=e.dropCapTextColor,r=e.dropCapFontSize,a=e.dropCapStyle;return React.createElement("div",{style:{color:n,textAlign:t},className:b()(this.props.className,a,"gb-font-size-"+r,"gb-block-drop-cap")},this.props.children)}}]),n}(wp.element.Component);n(351),n(352);function Ft(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Nt=wp.i18n.__,Bt=wp.element.Component,It=wp.blocks.registerBlockType,Wt=wp.blockEditor,Ut=Wt.RichText,Vt=Wt.AlignmentToolbar,Jt=Wt.BlockControls,Gt=function(e){p()(n,e);var t=Ft(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,o=t.dropCapFontSize;return[React.createElement(Jt,{key:"controls"},React.createElement(Vt,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),React.createElement(Ht,a()({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(zt,a()({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(Ut,{tagName:"div",multiline:"p",placeholder:Nt("Add paragraph text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-drop-cap-text","gb-font-size-"+o),onChange:function(t){return e.props.setAttributes({dropCapContent:t})}}))]}}]),n}(Bt);It("genesis-blocks/gb-drop-cap",{title:Nt("Drop Cap","genesis-blocks"),description:Nt("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[Nt("drop cap","genesis-blocks"),Nt("quote","genesis-blocks"),Nt("genesis","genesis-blocks")],attributes:{dropCapContent:{type:"array",selector:".gb-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"}},gb_settings_data:{gb_dropcap_dropCapFontSize:{title:Nt("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:Nt("Drop Cap Style","genesis-blocks")}},edit:Gt,save:function(e){var t=e.attributes.dropCapContent;return React.createElement(zt,e,t&&React.createElement(Ut.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});var qt=wp.i18n.__,$t=wp.element.Fragment,Kt=wp.components,Qt=Kt.SelectControl,Zt=Kt.ToggleControl,Xt=wp.blockEditor.PanelColorSettings;function en(e){var t=e.enableButtonBackgroundColor,n=e.buttonBackgroundColor,r=e.onChangeButtonColor,a=void 0===r?function(){}:r,o=e.enableButtonTextColor,i=e.buttonTextColor,s=e.onChangeButtonTextColor,l=void 0===s?function(){}:s,u=e.enableButtonSize,c=e.buttonSize,d=e.onChangeButtonSize,p=void 0===d?function(){}:d,m=e.enableButtonShape,f=e.buttonShape,h=e.onChangeButtonShape,g=void 0===h?function(){}:h,_=e.enableButtonTarget,b=e.buttonTarget,y=e.onChangeButtonTarget,v=void 0===y?function(){}:y,k=[{value:"gb-button-size-small",label:qt("Small","genesis-blocks")},{value:"gb-button-size-medium",label:qt("Medium","genesis-blocks")},{value:"gb-button-size-large",label:qt("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:qt("Extra Large","genesis-blocks")}],L=[{value:"gb-button-shape-square",label:qt("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:qt("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:qt("Circular","genesis-blocks")}];return React.createElement($t,null,React.createElement(M,{id:"gb_button_buttonOptions"},!1!==_&&React.createElement(Zt,{label:qt("Open link in new window","genesis-blocks"),checked:b,onChange:v}),!1!==u&&React.createElement(Qt,{selected:c,label:qt("Button Size","genesis-blocks"),value:c,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:p}),!1!==m&&React.createElement(Qt,{label:qt("Button Shape","genesis-blocks"),value:f,options:L.map((function(e){return{value:e.value,label:e.label}})),onChange:g}),!1!==t&&React.createElement(Xt,{title:qt("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:a,label:qt("Button Color","genesis-blocks")}]}),!1!==o&&React.createElement(Xt,{title:qt("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:l,label:qt("Button Text Color","genesis-blocks")}]})))}function tn(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}wp.i18n.__;var nn=wp.element.Component,rn=wp.blockEditor.InspectorControls,an=wp.components.PanelBody,on=function(e){p()(n,e);var t=tn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonBackgroundColor,n=e.buttonTextColor,r=e.buttonSize,a=e.buttonShape,o=e.buttonTarget,i=this.props.setAttributes;return React.createElement(rn,{key:"inspector"},React.createElement(an,null,React.createElement(en,{buttonTarget:o,onChangeButtonTarget:function(e){return i({buttonTarget:!o})},buttonSize:r,onChangeButtonSize:function(e){return i({buttonSize:e})},buttonShape:a,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})}})))}}]),n}(nn);function sn(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ln=function(e){p()(n,e);var t=sn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:b()(this.props.className,"gb-block-button")},this.props.children)}}]),n}(wp.element.Component);n(353),n(354);function un(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var cn=wp.i18n.__,dn=wp.element.Component,pn=wp.blocks.registerBlockType,mn=wp.blockEditor,fn=mn.RichText,hn=mn.AlignmentToolbar,gn=mn.BlockControls,_n=mn.URLInput,bn=wp.components,yn=bn.Button,vn=bn.Dashicon,kn=bn.Icon,Mn=function(e){p()(n,e);var t=un(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=e.isSelected,d=e.setAttributes;return[React.createElement(gn,{key:"controls"},React.createElement(hn,{value:o,onChange:function(e){d({buttonAlignment:e})}})),React.createElement(on,a()({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(ln,a()({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(fn,{tagName:"span",placeholder:cn("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:b()("gb-button",u,l),style:{color:s||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),c&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(vn,{icon:"admin-links"}),React.createElement(_n,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),React.createElement(yn,{label:cn("Apply","genesis-blocks"),type:"submit"},React.createElement(kn,{icon:"editor-break"})))]}}]),n}(dn);function Ln(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}pn("genesis-blocks/gb-button",{title:cn("Button","genesis-blocks"),description:cn("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[cn("button","genesis-blocks"),cn("link","genesis-blocks"),cn("genesis","genesis-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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},gb_settings_data:{gb_button_buttonOptions:{title:cn("Button Options","genesis-blocks")}},edit:Mn,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget;return React.createElement(ln,e,n&&React.createElement("a",{href:r,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o||"#ffffff",backgroundColor:a||"#3373dc"}},React.createElement(fn.Content,{value:n})))}});var wn=wp.i18n.__,Tn=wp.element,Yn=Tn.Component,En=Tn.Fragment,Sn=wp.blockEditor,xn=Sn.InspectorControls,Dn=Sn.PanelColorSettings,Cn=wp.components,Rn=Cn.PanelBody,On=Cn.RangeControl,Pn=Cn.ToggleControl,jn=Cn.SelectControl,Hn=function(e){p()(n,e);var t=Ln(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.spacerHeight,a=n.spacerDivider,o=n.spacerDividerStyle,i=n.spacerDividerColor,s=n.spacerDividerHeight,l=t.setAttributes,u=[{value:"gb-divider-solid",label:wn("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:wn("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:wn("Dotted","genesis-blocks")}];return React.createElement(xn,{key:"inspector"},React.createElement(Rn,null,React.createElement(M,{id:"gb_spacer_spacerHeight"},React.createElement(On,{label:wn("Spacer Height","genesis-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),React.createElement(M,{id:"gb_spacer_spacerDivider"},React.createElement(Pn,{label:wn("Add Divider","genesis-blocks"),checked:a,onChange:function(){return e.props.setAttributes({spacerDivider:!a})}}))),a?React.createElement(En,null,React.createElement(Rn,null,React.createElement(M,{id:"gb_spacer_spacerDividerStyle"},React.createElement(jn,{label:wn("Divider Style","genesis-blocks"),value:o,options:u.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),React.createElement(M,{id:"gb_spacer_spacerDividerHeight"},React.createElement(On,{label:wn("Divider Height","genesis-blocks"),value:s||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),React.createElement(M,{id:"gb_spacer_dividerColor"},React.createElement(Dn,{title:wn("Divider Color","genesis-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 l({spacerDividerColor:e})},label:wn("Divider Color","genesis-blocks")}]}))):null)}}]),n}(Yn);function An(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var zn,Fn=function(e){p()(n,e);var t=An(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.spacerDivider,n=e.spacerDividerStyle,r=e.spacerDividerColor,a=e.spacerDividerHeight;return React.createElement("div",{style:{color:r},className:b()(this.props.className,"gb-block-spacer",n,{"gb-spacer-divider":t},"gb-divider-size-"+a)},this.props.children)}}]),n}(wp.element.Component),Nn=n(9),Bn=n.n(Nn),In=(zn=function(e,t){return(zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}zn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Wn=function(){return(Wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Un={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"}},Vn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return In(t,e),t.prototype.render=function(){return Nn.createElement("div",{className:this.props.className||"",style:Wn(Wn({position:"absolute",userSelect:"none"},Un[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(Nn.PureComponent),Jn=n(14),Gn=n.n(Jn),qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$n=function(){return($n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Kn={width:"auto",height:"auto"},Qn=Gn()((function(e,t,n){return Math.max(Math.min(e,n),t)})),Zn=Gn()((function(e,t){return Math.round(e/t)*t})),Xn=Gn()((function(e,t){return new RegExp(e,"i").test(t)})),er=Gn()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n}),0),a=Math.abs(t[r]-e);return 0===n||a<n?t[r]:e})),tr=Gn()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),nr=Gn()((function(e){return"auto"===(e=e.toString())||tr(e,"px")||tr(e,"%")||tr(e,"vh")||tr(e,"vw")||tr(e,"vmax")||tr(e,"vmin")?e:e+"px"})),rr=function(e,t,n,r){if(e&&"string"==typeof e){if(tr(e,"%"))return t*(Number(e.replace("%",""))/100);if(tr(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(tr(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},ar=Gn()((function(e,t,n,r,a,o,i){return r=rr(r,e.width,t,n),a=rr(a,e.height,t,n),o=rr(o,e.width,t,n),i=rr(i,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===a?void 0:Number(a),minWidth:void 0===o?void 0:Number(o),minHeight:void 0===i?void 0:Number(i)}})),or=["as","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","snapGap"],ir=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,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},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return qn(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Kn},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){var e=this.parentNode;if(e)for(var t=0,n=[].slice.call(e.children);t<n.length;t++){var r=n[t];if(r.classList.contains("__resizable_base__"))return r}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(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=a}return{width:e,height:t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"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]&&tr(e.propsSize[t].toString(),"%")){if(tr(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 nr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?nr(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?nr(t.height):n("height")}},enumerable:!0,configurable:!0}),t.prototype.getParentSize=function(){if(!this.base||!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=!1,t=this.parentNode.style.flexWrap,n=this.base.style.minWidth;"wrap"!==t&&(e=!0,this.parentNode.style.flexWrap="wrap"),this.base.style.position="relative",this.base.style.minWidth="100%";var r={width:this.base.offsetWidth,height:this.base.offsetHeight};return this.base.style.position="absolute",e&&(this.parentNode.style.flexWrap=t),this.base.style.minWidth=n,r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0});var t=this.parentNode;if(t&&!this.base){var n=this.window.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)}}},t.prototype.componentWillUnmount=function(){if(this.window){this.unbindEvents();var e=this.parentNode;if(!this.base||!e)return;if(!e||!this.base)return;e.removeChild(this.base)}},t.prototype.createSizeForCssProperty=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"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),a=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}}else if("window"===this.props.bounds){if(this.window){r=this.window.innerWidth-this.resizableLeft,a=this.window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<a?t:a}}else if(this.props.bounds){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),a=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,a=this.state,o=a.direction,i=a.original,s=this.props,l=s.lockAspectRatio,u=s.lockAspectRatioExtraHeight,c=s.lockAspectRatioExtraWidth,d=i.width,p=i.height,m=u||0,f=c||0;return Xn("right",o)&&(d=i.width+(e-i.x)*r/n,l&&(p=(d-f)/this.ratio+m)),Xn("left",o)&&(d=i.width-(e-i.x)*r/n,l&&(p=(d-f)/this.ratio+m)),Xn("bottom",o)&&(p=i.height+(t-i.y)*r/n,l&&(d=(p-m)*this.ratio+f)),Xn("top",o)&&(p=i.height-(t-i.y)*r/n,l&&(d=(p-m)*this.ratio+f)),{newWidth:d,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var a=this.props,o=a.lockAspectRatio,i=a.lockAspectRatioExtraHeight,s=a.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,u=void 0===n.width||n.width<0?e:n.width,c=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,p=i||0,m=s||0;if(o){var f=(c-p)*this.ratio+m,h=(d-p)*this.ratio+m,g=(l-m)/this.ratio+p,_=(u-m)/this.ratio+p,b=Math.max(l,f),y=Math.min(u,h),v=Math.max(c,g),k=Math.min(d,_);e=Qn(e,b,y),t=Qn(t,v,k)}else e=Qn(e,l,u),t=Qn(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,o=r.top;this.resizableLeft=a,this.resizableTop=o}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,a=0;if(e.nativeEvent instanceof this.window.MouseEvent){if(r=e.nativeEvent.clientX,a=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof this.window.TouchEvent&&(r=e.nativeEvent.touches[0].clientX,a=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;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.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var i=this.parentNode;if(i){var s=this.window.getComputedStyle(i).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:$n($n({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){var t=this.props,n=t.maxWidth,r=t.maxHeight,a=t.minWidth,o=t.minHeight,i=e instanceof this.window.MouseEvent?e.clientX:e.touches[0].clientX,s=e instanceof this.window.MouseEvent?e.clientY:e.touches[0].clientY,l=this.state,u=l.direction,c=l.original,d=l.width,p=l.height,m=this.getParentSize(),f=ar(m,this.window.innerWidth,this.window.innerHeight,n,r,a,o);n=f.maxWidth,r=f.maxHeight,a=f.minWidth,o=f.minHeight;var h=this.calculateNewSizeFromDirection(i,s),g=h.newHeight,_=h.newWidth,b=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(_,g,{width:b.maxWidth,height:b.maxHeight},{width:a,height:o});if(_=y.newWidth,g=y.newHeight,this.props.grid){var v=Zn(_,this.props.grid[0]),k=Zn(g,this.props.grid[1]),M=this.props.snapGap||0;_=0===M||Math.abs(v-_)<=M?v:_,g=0===M||Math.abs(k-g)<=M?k:g}this.props.snap&&this.props.snap.x&&(_=er(_,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=er(g,this.props.snap.y,this.props.snapGap));var L={width:_-c.width,height:g-c.height};if(d&&"string"==typeof d)if(tr(d,"%"))_=_/m.width*100+"%";else if(tr(d,"vw")){_=_/this.window.innerWidth*100+"vw"}else if(tr(d,"vh")){_=_/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(tr(p,"%"))g=g/m.height*100+"%";else if(tr(p,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(tr(p,"vh")){g=g/this.window.innerHeight*100+"vh"}var w={width:this.createSizeForCssProperty(_,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?w.flexBasis=w.width:"column"===this.flexDir&&(w.flexBasis=w.height),this.setState(w),this.props.onResize&&this.props.onResize(e,u,this.resizable,L)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,a=t.original;if(n&&this.resizable){var o={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:$n($n({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,a=t.handleClasses,o=t.handleWrapperStyle,i=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?Nn.createElement(Vn,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:a&&a[t]},s&&s[t]?s[t]:null):null}));return Nn.createElement("span",{className:i,style:o},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==or.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=$n($n($n({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as;return Nn.createElement(r,$n({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&Nn.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",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,snapGap:0},t}(Nn.PureComponent);n(355),n(356);function sr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var lr=wp.i18n.__,ur=wp.element.Component,cr=wp.blocks.registerBlockType,dr=function(e){p()(n,e);var t=sr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacerHeight,r=t.spacerDividerColor,o=e.className,i=e.setAttributes,s=e.toggleSelection;return[React.createElement(Hn,a()({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement(Fn,a()({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(ir,{className:b()(o,"gb-spacer-handle"),style:{color:r},size:{width:"100%",height:n},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"gb-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:function(){s(!1)},onResizeStop:function(e,t,r,a){i({spacerHeight:parseInt(n+a.height,10)}),s(!0)}}))]}}]),n}(ur);function pr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}cr("genesis-blocks/gb-spacer",{title:lr("Spacer","genesis-blocks"),description:lr("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[lr("spacer","genesis-blocks"),lr("divider","genesis-blocks"),lr("atomic","genesis-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"gb-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},gb_settings_data:{gb_spacer_spacerHeight:{title:lr("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:lr("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:lr("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:lr("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:lr("Divider Color","genesis-blocks")}},edit:dr,save:function(e){var t=e.attributes.spacerHeight;return React.createElement(Fn,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var mr=wp.i18n.__,fr=wp.element.Component,hr=wp.blockEditor.InspectorControls,gr=wp.components,_r=gr.PanelBody,br=gr.RangeControl,yr=gr.ToggleControl,vr=function(e){p()(n,e);var t=pr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return React.createElement(hr,{key:"inspector"},React.createElement(_r,null,React.createElement(M,{id:"gb_accordion_accordionFontSize"},React.createElement(br,{label:mr("Title Font Size","genesis-blocks"),value:this.props.attributes.accordionFontSize,onChange:function(t){return e.props.setAttributes({accordionFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_accordion_accordionOpen"},React.createElement(yr,{label:mr("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}]),n}(fr);function kr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mr=function(e){p()(n,e);var t=kr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.accordionAlignment?"gb-align-"+this.props.attributes.accordionAlignment:void 0,"gb-block-accordion",this.props.attributes.accordionFontSize?"gb-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}]),n}(wp.element.Component);function Lr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var wr=wp.i18n.__,Tr=wp.element.Component,Yr=wp.blockEditor,Er=Yr.RichText,Sr=Yr.AlignmentToolbar,xr=Yr.BlockControls,Dr=Yr.InnerBlocks,Cr=function(e){p()(n,e);var t=Lr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return[React.createElement(xr,{key:"controls"},React.createElement(Sr,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),React.createElement(vr,a()({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(Mr,a()({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(Er,{tagName:"p",placeholder:wr("Accordion Title","genesis-blocks"),value:this.props.attributes.accordionTitle,className:"gb-accordion-title",onChange:function(t){return e.props.setAttributes({accordionTitle:t})}}),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Dr,null)))]}}]),n}(Tr);function Rr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Or=wp.element.Component,Pr=wp.blockEditor,jr=Pr.RichText,Hr=Pr.InnerBlocks,Ar=function(e){p()(n,e);var t=Rr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement(Mr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(jr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Hr.Content,null))))}}]),n}(Or);function zr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Fr=function(e){p()(n,e);var t=zr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.accordionAlignment,n=e.accordionFontSize;return React.createElement("div",{style:{},className:b()(this.props.className,t,"gb-block-accordion","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function Nr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Br=wp.element.Component,Ir=wp.blockEditor,Wr=Ir.RichText,Ur=Ir.InnerBlocks,Vr=function(e){p()(n,e);var t=Nr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement(Fr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Wr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Ur.Content,null))))}}]),n}(Br),Jr=[{attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:function(e){return React.createElement(Vr,e)}}],Gr=(n(357),n(358),wp.i18n.__),qr=(wp.element.Component,{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}});function $r(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-accordion",{title:Gr("Accordion","genesis-blocks"),description:Gr("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[Gr("accordion","genesis-blocks"),Gr("list","genesis-blocks"),Gr("genesis","genesis-blocks")],attributes:qr,gb_settings_data:{gb_accordion_accordionFontSize:{title:Gr("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:Gr("Open by default","genesis-blocks")}},edit:function(e){return React.createElement(Cr,e)},save:function(e){return React.createElement(Ar,e)},deprecated:Jr});var Kr=wp.i18n.__,Qr=wp.element.Component,Zr=wp.blockEditor,Xr=Zr.InspectorControls,ea=Zr.PanelColorSettings,ta=Zr.MediaUpload,na=wp.components,ra=na.Button,aa=na.Icon,oa=na.PanelBody,ia=na.RangeControl,sa=na.SelectControl,la=na.ToggleControl,ua=function(e){p()(n,e);var t=$r(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.buttonBackgroundColor,r=t.buttonTextColor,a=t.buttonSize,o=t.buttonShape,i=t.buttonTarget,s=t.titleFontSize,l=t.ctaTextFontSize,u=t.ctaBackgroundColor,c=t.ctaTextColor,d=t.dimRatio,p=t.imgURL,m=t.imgID,f=this.props.setAttributes,h=[{value:"gb-button-size-small",label:Kr("Small")},{value:"gb-button-size-medium",label:Kr("Medium")},{value:"gb-button-size-large",label:Kr("Large")},{value:"gb-button-size-extralarge",label:Kr("Extra Large")}],g=[{value:"gb-button-shape-square",label:Kr("Square")},{value:"gb-button-shape-rounded",label:Kr("Rounded Square")},{value:"gb-button-shape-circular",label:Kr("Circular")}],_=function(){f({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(Xr,{key:"inspector"},React.createElement(M,{id:"gb_cta_textOptions"},React.createElement(oa,{title:Kr("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(ia,{label:Kr("Title Font Size","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),React.createElement(ia,{label:Kr("Text Font Size","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),React.createElement(ea,{title:Kr("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return f({ctaTextColor:e})},label:Kr("Text Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_cta_backgroundOptions"},React.createElement(oa,{title:Kr("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,Kr("Select a background image:","genesis-blocks")),React.createElement(ta,{onSelect:function(e){f({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:m,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(ra,{className:"gb-cta-inspector-media",label:Kr("Edit image","genesis-blocks"),onClick:t},React.createElement(aa,{icon:"format-image"}),Kr("Select Image","genesis-blocks")),p&&!!p.length&&React.createElement(ra,{className:"gb-cta-inspector-media",label:Kr("Remove Image","genesis-blocks"),onClick:_},React.createElement(aa,{icon:"dismiss"}),Kr("Remove","genesis-blocks")))}}),p&&!!p.length&&React.createElement(ia,{label:Kr("Image Opacity","genesis-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),React.createElement(ea,{title:Kr("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return f({ctaBackgroundColor:e})},label:Kr("Overlay Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_cta_buttonOptions"},React.createElement(oa,{title:Kr("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(la,{label:Kr("Open link in new window","genesis-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),React.createElement(sa,{label:Kr("Button Size","genesis-blocks"),value:a,options:h.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonSize:t})}}),React.createElement(sa,{label:Kr("Button Shape","genesis-blocks"),value:o,options:g.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonShape:t})}}),React.createElement(ea,{title:Kr("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return f({buttonBackgroundColor:e})},label:Kr("Button Color","genesis-blocks")}]}),React.createElement(ea,{title:Kr("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return f({buttonTextColor:e})},label:Kr("Button Text Color","genesis-blocks")}]}))))}}]),n}(Qr);function ca(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var da=function(e){p()(n,e);var t=ca(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ma=function(e){p()(n,e);var t=pa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function fa(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ha=function(e){p()(n,e);var t=fa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,e.ctaBackgroundColor),a=(e.ctaTextColor,b()([this.props.className,"gb-block-cta"],i()({},"gb-font-size-"+n,n))),o={backgroundColor:r||void 0,textAlign:t||void 0};return React.createElement("div",{style:o,className:a||void 0},this.props.children)}}]),n}(wp.element.Component);function ga(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var _a=function(e){p()(n,e);var t=ga(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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;e.ctaTextColor;return React.createElement("div",{style:{backgroundColor:a,textAlign:t},className:b()(this.props.className,"align".concat(r),"gb-block-cta","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function ba(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}var ya=wp.blockEditor.RichText,va=[{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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-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),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.titleFontSize,m=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(ma,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+p),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-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),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(ha,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+p),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".gb-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),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(_a,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+p),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.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?ba(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function ka(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(359),n(360);function Ma(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 La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ta=wp.i18n.__,Ya=wp.element.Component,Ea=wp.blocks.registerBlockType,Sa=wp.blockEditor,xa=Sa.AlignmentToolbar,Da=Sa.URLInput,Ca=Sa.BlockControls,Ra=Sa.BlockAlignmentToolbar,Oa=Sa.RichText,Pa=wp.components,ja=Pa.Button,Ha=Pa.Dashicon,Aa=Pa.Icon,za=function(e){p()(n,e);var t=wa(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=t.ctaTitle,d=t.ctaText,p=t.titleFontSize,m=t.ctaTextFontSize,f=t.ctaWidth,h=t.ctaTextColor,g=t.imgURL,_=t.imgAlt,y=t.dimRatio,v=e.isSelected,k=e.setAttributes;return[React.createElement(Ca,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(Ra,{value:f,onChange:function(e){return k({ctaWidth:e})},controls:["center","wide","full"]}),React.createElement(xa,{value:o,onChange:function(e){k({buttonAlignment:e})}})),React.createElement(ua,a()({key:"gb-cta-inspector-"+this.props.clientId},La({setAttributes:k},this.props))),React.createElement(da,a()({key:"gb-cta-"+this.props.clientId},this.props),g&&!!g.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Fa(y),{"has-background-dim":0!==y}),src:g,alt:_})),React.createElement("div",{className:"gb-cta-content"},React.createElement(Oa,{tagName:"h2",placeholder:Ta("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:c,className:b()("gb-cta-title","gb-font-size-"+p),style:{color:h},onChange:function(e){return k({ctaTitle:e})}}),React.createElement(Oa,{tagName:"div",multiline:"p",placeholder:Ta("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:d,className:b()("gb-cta-text","gb-font-size-"+m),style:{color:h},onChange:function(e){return k({ctaText:e})}})),React.createElement("div",{className:"gb-cta-button"},React.createElement(Oa,{tagName:"span",placeholder:Ta("Button text…","genesis-blocks"),value:n,allowedFormats:[],className:b()("gb-button",u,l),style:{color:s,backgroundColor:i},onChange:function(e){return k({buttonText:e})}}),v&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(Ha,{icon:"admin-links"}),React.createElement(Da,{className:"button-url",value:r,onChange:function(e){return k({buttonUrl:e})}}),React.createElement(ja,{label:Ta("Apply","genesis-blocks"),type:"submit"},React.createElement(Aa,{icon:"editor-break"})))))]}}]),n}(Ya);function Fa(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Na(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Ea("genesis-blocks/gb-cta",{title:Ta("Call To Action","genesis-blocks"),description:Ta("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[Ta("call to action","genesis-blocks"),Ta("cta","genesis-blocks"),Ta("atomic","genesis-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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-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"}},gb_settings_data:{gb_cta_textOptions:{title:Ta("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:Ta("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:Ta("Button Options","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:za,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.titleFontSize,m=t.ctaTextColor,f=t.imgURL,h=t.imgAlt,g=t.dimRatio;return React.createElement(da,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Fa(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(Oa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+p),style:{color:m},value:u}),c&&React.createElement(Oa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:"noopener noreferrer",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Oa.Content,{value:n}))))},deprecated:va});var Ba=wp.i18n.__,Ia=wp.element.Component,Wa=wp.blockEditor.InspectorControls,Ua=wp.components,Va=Ua.PanelBody,Ja=Ua.SelectControl,Ga=Ua.ToggleControl,qa=function(e){p()(n,e);var t=Na(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:"gb-share-icon-text",label:Ba("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:Ba("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:Ba("Text Only","genesis-blocks")}],n=[{value:"gb-share-shape-square",label:Ba("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:Ba("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:Ba("Circular","genesis-blocks")}],r=[{value:"gb-share-size-small",label:Ba("Small","genesis-blocks")},{value:"gb-share-size-medium",label:Ba("Medium","genesis-blocks")},{value:"gb-share-size-large",label:Ba("Large","genesis-blocks")}],a=[{value:"gb-share-color-standard",label:Ba("Standard","genesis-blocks")},{value:"gb-share-color-social",label:Ba("Social Colors","genesis-blocks")}];return React.createElement(Wa,{key:"inspector"},React.createElement(M,{id:"gb_sharing_links"},React.createElement(Va,null,React.createElement("p",null,Ba("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(Ga,{label:Ba("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),React.createElement(Ga,{label:Ba("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),React.createElement(Ga,{label:Ba("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),React.createElement(Ga,{label:Ba("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),React.createElement(Ga,{label:Ba("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),React.createElement(Ga,{label:Ba("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),React.createElement(Va,{title:Ba("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(M,{id:"gb_sharing_shareButtonStyle"},React.createElement(Ja,{label:Ba("Button Style","genesis-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})}})),React.createElement(M,{id:"gb_sharing_shareButtonShape"},React.createElement(Ja,{label:Ba("Button Shape","genesis-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})}})),React.createElement(M,{id:"gb_sharing_shareButtonSize"},React.createElement(Ja,{label:Ba("Button Size","genesis-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})}})),React.createElement(M,{id:"gb_sharing_shareButtonColor"},React.createElement(Ja,{label:Ba("Button Color","genesis-blocks"),value:this.props.attributes.shareButtonColor,options:a.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonColor:t})}}))))}}]),n}(Ia);function $a(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ka=function(e){p()(n,e);var t=$a(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"gb-align-"+this.props.attributes.shareAlignment:void 0,"gb-block-sharing")},this.props.children)}}]),n}(wp.element.Component);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Za=wp.i18n.__,Xa=wp.element.Component,eo=wp.blockEditor,to=eo.AlignmentToolbar,no=eo.BlockControls,ro=function(e){p()(n,e);var t=Qa(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return[React.createElement(no,{key:"controls"},React.createElement(to,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),React.createElement(qa,a()({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(Ka,a()({key:"gb-share-links-"+this.props.clientId},this.props),React.createElement("ul",{className:"gb-share-list"},this.props.attributes.twitter&&React.createElement("li",null,React.createElement("a",{className:"gb-share-twitter"},React.createElement("i",{className:"fab fa-twitter"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("i",{className:"fab fa-facebook-f"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("i",{className:"fab fa-pinterest-p"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("i",{className:"fab fa-linkedin"}),React.createElement("span",{className:"gb-social-text"},Za("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("i",{className:"fab fa-reddit-alien"}),React.createElement("span",{className:"gb-social-text"},Za("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("i",{className:"fas fa-envelope"}),React.createElement("span",{className:"gb-social-text"},Za("Share via Email","genesis-blocks"))))))]}}]),n}(Xa),ao=(n(361),n(362),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-sharing",{title:ao("Sharing","genesis-blocks"),description:ao("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[ao("sharing","genesis-blocks"),ao("social","genesis-blocks"),ao("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:ao("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:ao("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:ao("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:ao("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:ao("Button Color","genesis-blocks")}},edit:function(e){return React.createElement(ro,e)},save:function(){return null}});var oo=n(49),io=n.n(oo),so=n(50),lo=n.n(so),uo=n(6),co=n.n(uo),po=n(51),mo=n.n(po),fo=n(11),ho=n.n(fo);function go(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 _o=function(e,t){var n;void 0===t&&(t=go);var r,a=[],o=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return o&&n===this&&t(i,a)||(r=e.apply(this,i),o=!0,n=this,a=i),r}},bo=n(210),yo=n.n(bo);var vo=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 a=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 o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);a.insertRule(e,o?0:a.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 ko=function(e){function t(e,t,r){var a=t.trim().split(f);t=a;var o=a.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<i;++u)t[l++]=n(e[u]+" ",a[s],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,o){var i=e+";",s=2*t+3*n+4*o;if(944===s){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===x||2===x&&a(l,1)?"-webkit-"+l+l:l}if(0===x||2===x&&!a(i,1))return i;switch(s){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(T,"$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"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(l=i.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=i.replace(y,"tb");break;case 232:l=i.replace(y,"tb-rl");break;case 220:l=i.replace(y,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(l=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(M,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(M,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===w.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+o&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+i}return i}function a(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),O(2!==t?r:r.replace(L,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,a,o,i,s,u,c){for(var d,p=0,m=t;p<R;++p)switch(d=C[p].call(l,e,m,n,r,a,o,i,s,u,c)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?x=1:(x=2,O=e):x=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<R){var l=i(-1,n,s,s,E,Y,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,p){for(var m,f,h,y,k,M=0,L=0,w=0,T=0,C=0,O=0,j=h=m=0,H=0,A=0,z=0,F=0,N=l.length,B=N-1,I="",W="",U="",V="";H<N;){if(f=l.charCodeAt(H),H===B&&0!==L+T+w+M&&(0!==L&&(f=47===L?10:47),T=w=M=0,N++,B++),0===L+T+w+M){if(H===B&&(0<A&&(I=I.replace(c,"")),0<I.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:I+=l.charAt(H)}f=59}switch(f){case 123:for(m=(I=I.trim()).charCodeAt(0),h=1,F=++H;H<N;){switch(f=l.charCodeAt(H)){case 123:h++;break;case 125:h--;break;case 47:switch(f=l.charCodeAt(H+1)){case 42:case 47:e:{for(j=H+1;j<B;++j)switch(l.charCodeAt(j)){case 47:if(42===f&&42===l.charCodeAt(j-1)&&H+2!==j){H=j+1;break e}break;case 10:if(47===f){H=j+1;break e}}H=j}}break;case 91:f++;case 40:f++;case 34:case 39:for(;H++<B&&l.charCodeAt(H)!==f;);}if(0===h)break;H++}switch(h=l.substring(F,H),0===m&&(m=(I=I.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<A&&(I=I.replace(c,"")),f=I.charCodeAt(1)){case 100:case 109:case 115:case 45:A=s;break;default:A=D}if(F=(h=e(s,A,h,f,p+1)).length,0<R&&(k=i(3,h,A=t(D,I,z),s,E,Y,F,f,p,d),I=A.join(""),void 0!==k&&0===(F=(h=k.trim()).length)&&(f=0,h="")),0<F)switch(f){case 115:I=I.replace(v,o);case 100:case 109:case 45:h=I+"{"+h+"}";break;case 107:h=(I=I.replace(g,"$1 $2"))+"{"+h+"}",h=1===x||2===x&&a("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=I+h,112===d&&(W+=h,h="")}else h="";break;default:h=e(s,t(s,I,z),h,d,p+1)}U+=h,h=z=A=j=m=0,I="",f=l.charCodeAt(++H);break;case 125:case 59:if(1<(F=(I=(0<A?I.replace(c,""):I).trim()).length))switch(0===j&&(m=I.charCodeAt(0),45===m||96<m&&123>m)&&(F=(I=I.replace(" ",":")).length),0<R&&void 0!==(k=i(1,I,s,n,E,Y,W.length,d,p,d))&&0===(F=(I=k.trim()).length)&&(I="\0\0"),m=I.charCodeAt(0),f=I.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){V+=I+l.charAt(H);break}default:58!==I.charCodeAt(F-1)&&(W+=r(I,m,f,I.charCodeAt(2)))}z=A=j=m=0,I="",f=l.charCodeAt(++H)}}switch(f){case 13:case 10:47===L?L=0:0===1+m&&107!==d&&0<I.length&&(A=1,I+="\0"),0<R*P&&i(0,I,s,n,E,Y,W.length,d,p,d),Y=1,E++;break;case 59:case 125:if(0===L+T+w+M){Y++;break}default:switch(Y++,y=l.charAt(H),f){case 9:case 32:if(0===T+M+L)switch(C){case 44:case 58:case 9:case 32:y="";break;default:32!==f&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===T+L+M&&(A=z=1,y="\f"+y);break;case 108:if(0===T+L+M+S&&0<j)switch(H-j){case 2:112===C&&58===l.charCodeAt(H-3)&&(S=C);case 8:111===O&&(S=O)}break;case 58:0===T+L+M&&(j=H);break;case 44:0===L+w+T+M&&(A=1,y+="\r");break;case 34:case 39:0===L&&(T=T===f?0:0===T?f:T);break;case 91:0===T+L+w&&M++;break;case 93:0===T+L+w&&M--;break;case 41:0===T+L+M&&w--;break;case 40:if(0===T+L+M){if(0===m)switch(2*C+3*O){case 533:break;default:m=1}w++}break;case 64:0===L+w+T+M+j+h&&(h=1);break;case 42:case 47:if(!(0<T+M+w))switch(L){case 0:switch(2*f+3*l.charCodeAt(H+1)){case 235:L=47;break;case 220:F=H,L=42}break;case 42:47===f&&42===C&&F+2!==H&&(33===l.charCodeAt(F+2)&&(W+=l.substring(F,H+1)),y="",L=0)}}0===L&&(I+=y)}O=C,C=f,H++}if(0<(F=W.length)){if(A=s,0<R&&(void 0!==(k=i(2,W,A,n,E,Y,F,d,p,d))&&0===(W=k).length))return V+W+U;if(W=A.join(",")+"{"+W+"}",0!=x*S){switch(2!==x||a(W,2)||(S=0),S){case 111:W=W.replace(b,":-moz-$1")+W;break;case 112:W=W.replace(_,"::-webkit-input-$1")+W.replace(_,"::-moz-$1")+W.replace(_,":-ms-input-$1")+W}S=0}}return V+W+U}(D,s,n,0,0);return 0<R&&(void 0!==(l=i(-2,d,s,s,E,Y,d.length,0,0,0))&&(d=l)),"",S=0,Y=E=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,m=/([,: ])(transform)/g,f=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,M=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,w=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,Y=1,E=1,S=0,x=1,D=[],C=[],R=0,O=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:R=C.length=0;break;default:if("function"==typeof t)C[R++]=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},l.set=s,void 0!==e&&s(e),l};function Mo(e){e&&Lo.current.insert(e+"}")}var Lo={current:null},wo=function(e,t,n,r,a,o,i,s,l,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Lo.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return Lo.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Mo)}},To=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new ko(t);var a,o={};a=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),r.use(e.stylisPlugins)(wo),i=function(e,t,n,a){var o=t.name;Lo.current=n,r(e,t.styles),a&&(l.inserted[o]=!0)};var l={key:n,sheet:new vo({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:i};return l};function Yo(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Eo=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 a=t;do{e.insert("."+r,a,e.sheet,!0);a=a.next}while(void 0!==a)}};var So=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=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(a){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)},xo={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 Do=/[A-Z]|^ms/g,Co=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ro=function(e){return 45===e.charCodeAt(1)},Oo=function(e){return null!=e&&"boolean"!=typeof e},Po=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Ro(e)?e:e.replace(Do,"-$&").toLowerCase()})),jo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Co,(function(e,t,n){return Ao={name:t,styles:n,next:Ao},t}))}return 1===xo[e]||Ro(e)||"number"!=typeof t||0===t?t:t+"px"};function Ho(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 Ao={name:n.name,styles:n.styles,next:Ao},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)Ao={name:a.name,styles:a.styles,next:Ao},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Ho(e,t,n[a],!1);else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":Oo(i)&&(r+=Po(o)+":"+jo(o,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Ho(e,t,i,!1);switch(o){case"animation":case"animationName":r+=Po(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Oo(i[l])&&(r+=Po(o)+":"+jo(o,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ao,i=n(e);return Ao=o,Ho(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Ao,zo=/label:\s*([^\s;\n{]+)\s*;/g;var Fo=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,a="";Ao=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=Ho(n,t,o,!1)):a+=o[0];for(var i=1;i<e.length;i++)a+=Ho(n,t,e[i],46===a.charCodeAt(a.length-1)),r&&(a+=o[i]);zo.lastIndex=0;for(var s,l="";null!==(s=zo.exec(a));)l+="-"+s[1];return{name:So(a)+l,styles:a,next:Ao}};var No=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fo(t)},Bo=Object(Nn.createContext)("undefined"!=typeof HTMLElement?To():null),Io=Object(Nn.createContext)({}),Wo=Bo.Provider,Uo=function(e){return Object(Nn.forwardRef)((function(t,n){return Object(Nn.createElement)(Bo.Consumer,null,(function(r){return e(t,r,n)}))}))},Vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jo=Object.prototype.hasOwnProperty,Go=function(e,t,n,r){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var o=t[Vo],i=[a],s="";"string"==typeof t.className?s=Yo(e.registered,i,t.className):null!=t.className&&(s=t.className+" ");var l=Fo(i);Eo(e,l,"string"==typeof o);s+=e.key+"-"+l.name;var u={};for(var c in t)Jo.call(t,c)&&"css"!==c&&c!==Vo&&(u[c]=t[c]);return u.ref=r,u.className=s,Object(Nn.createElement)(o,u)},qo=Uo((function(e,t,n){return"function"==typeof e.css?Object(Nn.createElement)(Io.Consumer,null,(function(r){return Go(t,e,r,n)})):Go(t,e,null,n)}));var $o=function(e,t){var n=arguments;if(null==t||!Jo.call(t,"css"))return Nn.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=qo;var o={};for(var i in t)Jo.call(t,i)&&(o[i]=t[i]);o[Vo]=e,a[1]=o;for(var s=2;s<r;s++)a[s]=n[s];return Nn.createElement.apply(null,a)},Ko=(Nn.Component,function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a});function Qo(e,t,n){var r=[],a=Yo(e,r,n);return r.length<2?n:a+t(r)}var Zo=Uo((function(e,t){return Object(Nn.createElement)(Io.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 a=Fo(n,t.registered);return Eo(t,a,!1),t.key+"-"+a.name},a={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return Qo(t.registered,r,Ko(n))},theme:n},o=e.children(a);return!0,o}))})),Xo=n(22),ei=n(23),ti=n.n(ei),ni=function(){};function ri(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ai(e,t,n){var r=[n];if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push(""+ri(e,a));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var oi=function(e){return Array.isArray(e)?e.filter(Boolean):"object"==typeof e&&null!==e?[e]:[]};function ii(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function si(e){return ii(e)?window.pageYOffset:e.scrollTop}function li(e,t){ii(e)?window.scrollTo(0,t):e.scrollTop=t}function ui(e,t,n,r){void 0===n&&(n=200),void 0===r&&(r=ni);var a=si(e),o=t-a,i=0;!function t(){var s,l=o*((s=(s=i+=10)/n-1)*s*s+1)+a;li(e,l),i<n?window.requestAnimationFrame(t):r(e)}()}function ci(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var di=n(48),pi=n.n(di);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 fi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function hi(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,a=document.documentElement;if("fixed"===t.position)return a;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return a}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,m=d.height,f=d.top,h=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,_=si(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),v=h-y,k=g-f,M=v+_,L=c-_-f,w=p-g+_+b,T=_+f-y;switch(a){case"auto":case"bottom":if(k>=m)return{placement:"bottom",maxHeight:t};if(L>=m&&!i)return o&&ui(l,w,160),{placement:"bottom",maxHeight:t};if(!i&&L>=r||i&&k>=r)return o&&ui(l,w,160),{placement:"bottom",maxHeight:i?k-b:L-b};if("auto"===a||i){var Y=t,E=i?v:M;return E>=r&&(Y=Math.min(E-b-s.controlHeight,t)),{placement:"top",maxHeight:Y}}if("bottom"===a)return li(l,w),{placement:"bottom",maxHeight:t};break;case"top":if(v>=m)return{placement:"top",maxHeight:t};if(M>=m&&!i)return o&&ui(l,T,160),{placement:"top",maxHeight:t};if(!i&&M>=r||i&&v>=r){var S=t;return(!i&&M>=r||i&&v>=r)&&(S=i?v-y:M-y),o&&ui(l,T,160),{placement:"top",maxHeight:S}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+a+'".')}return u}var gi=function(e){return"auto"===e?"bottom":e},_i=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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,a=n.maxMenuHeight,o=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme,u=t.context.getPortalPlacement;if(e){var c="fixed"===i,d=hi({maxHeight:a,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!c,isFixedPosition:c,theme:l});u&&u(d),t.setState(d)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||gi(e);return mi({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return fi(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(Nn.Component);_i.contextTypes={getPortalPlacement:ti.a.func};var bi=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},yi=bi,vi=bi,ki=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",mi({css:a("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};ki.defaultProps={children:"No options"};var Mi=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",mi({css:a("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};Mi.defaultProps={children:"Loading..."};var Li=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==gi(t.props.menuPlacement)&&t.setState({placement:n})},t}fi(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,a=e.menuPlacement,o=e.menuPosition,i=e.getStyles,s="fixed"===o;if(!t&&!s||!r)return null;var l=this.state.placement||gi(a),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=s?0:window.pageYOffset,d=u[l]+c,p=$o("div",{css:i("menuPortal",{offset:d,position:o,rect:u})},n);return t?Object(Xo.createPortal)(p,t):p},t}(Nn.Component);Li.childContextTypes={getPortalPlacement:ti.a.func};var wi=Array.isArray,Ti=Object.keys,Yi=Object.prototype.hasOwnProperty;function Ei(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,a,o,i=wi(t),s=wi(n);if(i&&s){if((a=t.length)!=n.length)return!1;for(r=a;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=s)return!1;var l=t instanceof Date,u=n instanceof Date;if(l!=u)return!1;if(l&&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=Ti(t);if((a=p.length)!==Ti(n).length)return!1;for(r=a;0!=r--;)if(!Yi.call(n,p[r]))return!1;for(r=a;0!=r--;)if(!("_owner"===(o=p[r])&&t.$$typeof||e(t[o],n[o])))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 Si(){return(Si=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 xi(){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 xi=function(){return e},e}function Di(){return(Di=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 Ci={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Ri=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["size"]);return $o("svg",Di({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ci},n))},Oi=function(e){return $o(Ri,Di({size:20},e),$o("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"}))},Pi=function(e){return $o(Ri,Di({size:20},e),$o("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"}))},ji=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorContainer",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?a.neutral80:a.neutral40}}},Hi=ji,Ai=ji,zi=function(){var e=No.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_"}}}(xi()),Fi=function(e){var t=e.delay,n=e.offset;return $o("span",{css:No({animation:zi+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ni=function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps,o=e.isRtl;return $o("div",Di({},a,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),$o(Fi,{delay:0,offset:o}),$o(Fi,{delay:160,offset:!0}),$o(Fi,{delay:320,offset:!o}))};function Bi(){return(Bi=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)}Ni.defaultProps={size:4};function Ii(){return(Ii=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 Wi(){return(Wi=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 Ui=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Vi(){return(Vi=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 Ji=function(e){var t=e.children,n=e.innerProps;return $o("div",n,t)},Gi=Ji,qi=Ji;var $i=function(e){var t=e.children,n=e.className,r=e.components,a=e.cx,o=e.data,i=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,d=r.Container,p=r.Label,m=r.Remove;return $o(Zo,null,(function(r){var f=r.css,h=r.cx;return $o(d,{data:o,innerProps:Vi({},s,{className:h(f(i("multiValue",e)),a({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:c},$o(p,{data:o,innerProps:{className:h(f(i("multiValueLabel",e)),a({"multi-value__label":!0},n))},selectProps:c},t),$o(m,{data:o,innerProps:Vi({className:h(f(i("multiValueRemove",e)),a({"multi-value__remove":!0},n))},u),selectProps:c}))}))};function Ki(){return(Ki=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)}$i.defaultProps={cropWithEllipsis:!0};function Qi(){return(Qi=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 Zi(){return(Zi=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 Xi(){return(Xi=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 es={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Di({},o,{css:a("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||$o(Oi,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.className,o=e.isDisabled,i=e.isFocused,s=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return $o("div",Bi({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":u},a)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Di({},o,{css:a("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||$o(Pi,null))},DownChevron:Pi,CrossIcon:Oi,Group:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.Heading,i=e.headingProps,s=e.label,l=e.theme,u=e.selectProps;return $o("div",{css:a("group",e),className:r({group:!0},n)},$o(o,Ii({},i,{selectProps:u,theme:l,getStyles:a,cx:r}),s),$o("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.theme,o=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","theme","selectProps"]));return $o("div",Ii({css:r("groupHeading",Ii({theme:a},o)),className:n({"group-heading":!0},t)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles;return $o("div",{css:a("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps;return $o("span",Di({},a,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerRef,o=e.isHidden,i=e.isDisabled,s=e.theme,l=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return $o("div",{css:r("input",Wi({theme:s},l))},$o(pi.a,Wi({className:n({input:!0},t),inputRef:a,inputStyle:Ui(o),disabled:i},l)))},LoadingIndicator:Ni,Menu:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerRef,i=e.innerProps;return $o("div",mi({css:a("menu",e),className:r({menu:!0},n)},i,{ref:o}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isMulti,i=e.innerRef;return $o("div",{css:a("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":o},n),ref:i},t)},MenuPortal:Li,LoadingMessage:Mi,NoOptionsMessage:ki,MultiValue:$i,MultiValueContainer:Gi,MultiValueLabel:qi,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return $o("div",n,t||$o(Oi,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.isFocused,s=e.isSelected,l=e.innerRef,u=e.innerProps;return $o("div",Ki({css:a("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":s},n),ref:l},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Qi({css:a("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps,i=e.isDisabled,s=e.isRtl;return $o("div",Si({css:a("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.innerProps;return $o("div",Zi({css:a("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.isMulti,o=e.getStyles,i=e.hasValue;return $o("div",{css:o("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i},n)},t)}},ts=[{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}],ns=function(e){for(var t=0;t<ts.length;t++)e=e.replace(ts[t].letters,ts[t].base);return e};function rs(){return(rs=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 as=function(e){return e.replace(/^\s+|\s+$/g,"")},os=function(e){return e.label+" "+e.value};function is(){return(is=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 ss={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;"},ls=function(e){return $o("span",is({css:ss},e))};function us(){return(us=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 cs(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,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return $o("input",us({ref:t},n,{css:No({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 ds=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 a=r.prototype;return a.componentDidMount=function(){this.props.innerRef(Object(Xo.findDOMNode)(this))},a.componentWillUnmount=function(){this.props.innerRef(null)},a.render=function(){return this.props.children},r}(Nn.Component),ps=["boxSizing","height","overflow","paddingRight","position"],ms={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function fs(e){e.preventDefault()}function hs(e){e.stopPropagation()}function gs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _s(){return"ontouchstart"in window||navigator.maxTouchPoints}var bs=!(!window.document||!window.document.createElement),ys=0,vs=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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 a=r.prototype;return a.componentDidMount=function(){var e=this;if(bs){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;if(n&&ps.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&ys<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+i||0;Object.keys(ms).forEach((function(e){var t=ms[e];o&&(o[e]=t)})),o&&(o.paddingRight=l+"px")}a&&_s()&&(a.addEventListener("touchmove",fs,this.listenerOptions),r&&(r.addEventListener("touchstart",gs,this.listenerOptions),r.addEventListener("touchmove",hs,this.listenerOptions))),ys+=1}},a.componentWillUnmount=function(){var e=this;if(bs){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;ys=Math.max(ys-1,0),n&&ys<1&&ps.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),a&&_s()&&(a.removeEventListener("touchmove",fs,this.listenerOptions),r&&(r.removeEventListener("touchstart",gs,this.listenerOptions),r.removeEventListener("touchmove",hs,this.listenerOptions)))}},a.render=function(){return null},r}(Nn.Component);vs.defaultProps={accountForScrollbars:!0};var ks={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Ms=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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?$o("div",null,$o("div",{onClick:this.blurSelectInput,css:ks}),$o(ds,{innerRef:this.getScrollTarget},t),r?$o(vs,{touchScrollTarget:r}):null):t},r}(Nn.PureComponent);var Ls=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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,a=r.onBottomArrive,o=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,l=t.scrollTarget,u=l.scrollTop,c=l.scrollHeight,d=l.clientHeight,p=t.scrollTarget,m=n>0,f=c-d-u,h=!1;f>n&&t.isBottom&&(o&&o(e),t.isBottom=!1),m&&t.isTop&&(s&&s(e),t.isTop=!1),m&&n>f?(a&&!t.isBottom&&a(e),p.scrollTop=c,h=!0,t.isBottom=!0):!m&&-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 a=r.prototype;return a.componentDidMount=function(){this.startListening(this.scrollTarget)},a.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},a.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))},a.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)},a.render=function(){return Bn.a.createElement(ds,{innerRef:this.getScrollTarget},this.props.children)},r}(Nn.Component);function ws(e){var t=e.isEnabled,n=void 0===t||t,r=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["isEnabled"]);return n?Bn.a.createElement(Ls,r):r.children}var Ts=function(e,t){void 0===t&&(t={});var n=t,r=n.isSearchable,a=n.isMulti,o=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(o||"Select")+" is focused "+(r?",type to refine list":"")+", press Down to open the menu, "+(a?" 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"}},Ys=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."}},Es=function(e){return!!e.isDisabled};var Ss={clearIndicator:Ai,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,a=r.colors,o=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?a.neutral5:a.neutral0,borderColor:t?a.neutral10:n?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+a.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?a.primary:a.neutral30}}},dropdownIndicator:Hi,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,a=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,a=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:vi,menu:function(e){var t,n=e.placement,r=e.theme,a=r.borderRadius,o=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=a,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=o.menuGutter,t.marginTop=o.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,a=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:a?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,a=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&a.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}}},noOptionsMessage:yi,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,a=e.theme,o=a.spacing,i=a.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*o.baseUnit+"px "+3*o.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,a=n.colors;return{label:"singleValue",color:t?a.neutral40:a.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 xs={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 Ds(){return(Ds=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 Cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Rs,Os={backspaceRemovesValue:!0,blurInputOnSelect:ci(),captureMenuScroll:!ci(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=rs({ignoreCase:!0,ignoreAccents:!0,stringify:os,trim:!0,matchFrom:"any"},Rs),r=n.ignoreCase,a=n.ignoreAccents,o=n.stringify,i=n.trim,s=n.matchFrom,l=i?as(t):t,u=i?as(o(e)):o(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=ns(l),u=ns(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-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:Es,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},Ps=1,js=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=Xi({},es,{components:e}.components)},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props;(0,r.onChange)(e,Ds({},t,{name:r.name}))},n.setValue=function(e,t,r){void 0===t&&(t="set-value");var a=n.props,o=a.closeMenuOnSelect,i=a.isMulti;n.onInputChange("",{action:"set-value"}),o&&(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,a=t.isMulti,o=n.state.selectValue;if(a)if(n.isOptionSelected(e,o)){var i=n.getOptionValue(e);n.setValue(o.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,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(o,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,o)?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),a=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(a.length?a: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=Ss[e](t);r.boxSizing="border-box";var a=n.props.styles[e];return a?a(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,a=t.focusedOption;if(a&&e){var o=r.focusable.indexOf(a),i=r.render[o];return i&&i.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:Ys(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:Ts(t,Ds({},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,a=t.menuIsOpen;n.focusInput(),a?(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&&ii(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),a=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||a>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,a=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:a}}),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,a=t.backspaceRemovesValue,o=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,m=n.state,f=m.focusedOption,h=m.focusedValue,g=m.selectValue;if(!(l||"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(!a)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!u||!d||!f||p&&n.isOptionSelected(f,g))return;n.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(n.isComposing)return;n.selectOption(f);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&o&&n.clearValue();break;case" ":if(i)return;if(!u){n.openMenu("first");break}if(!f)return;n.selectOption(f);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,a=void 0===r?"":r,o=e.options,i=function(e,r){var o=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),s=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:s,value:l,data:e},a))){var u=o?void 0:function(){return n.onOptionHover(e)},c=o?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:o,isSelected:i,key:d,label:s,type:"option",value:l}}};return o.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var a=t.options.map((function(t,n){var a=i(t,r+"-"+n);return a&&e.focusable.push(t),a})).filter(Boolean);if(a.length){var o=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:o,data:t,options:a})}}else{var s=i(t,""+r);s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var r=t.value;n.cacheComponents=_o(n.cacheComponents,Ei).bind(Cs(Cs(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Ps);var a=oi(r);n.buildMenuOptions=_o(n.buildMenuOptions,(function(e,t){var n=e,r=n[0],a=n[1],o=t,i=o[0];return Ei(a,o[1])&&Ei(r.inputValue,i.inputValue)&&Ei(r.options,i.options)})).bind(Cs(Cs(n)));var o=t.menuIsOpen?n.buildMenuOptions(t,a):{render:[],focusable:[]};return n.state.menuOptions=o,n.state.selectValue=a,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},a.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,r=t.value,a=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==a||e.inputValue!==o){var i=oi(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},l=this.getNextFocusedValue(i),u=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:u,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},a.componentDidUpdate=function(e){var t,n,r,a,o,i=this.props,s=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=n.offsetHeight/3,a.bottom+o>r.bottom?li(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):a.top-o<r.top&&li(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)},a.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},a.onMenuOpen=function(){this.props.onMenuOpen()},a.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()},a.onInputChange=function(e,t){this.props.onInputChange(e,t)},a.focusInput=function(){this.inputRef&&this.inputRef.focus()},a.blurInput=function(){this.inputRef&&this.inputRef.blur()},a.openMenu=function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,o=this.buildMenuOptions(this.props,r),i=this.props.isMulti,s="first"===e?0:o.focusable.length-1;if(!i){var l=o.focusable.indexOf(r[0]);l>-1&&(s=l)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[s]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},a.focusValue=function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,a=this.state,o=a.selectValue,i=a.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=o.length-1,u=-1;if(o.length){switch(e){case"previous":u=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(u=s+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:o[u]})}}},a.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,r=n.focusedOption,a=n.menuOptions.focusable;if(a.length){var o=0,i=a.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?o=i>0?i-1:a.length-1:"down"===e?o=(i+1)%a.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>a.length-1&&(o=a.length-1):"last"===e&&(o=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[o],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Es(a[o])}})}},a.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(xs):Ds({},xs,this.props.theme):xs},a.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,a=this.props,o=a.classNamePrefix,i=a.isMulti,s=a.isRtl,l=a.options,u=this.state.selectValue,c=this.hasValue();return{cx:ai.bind(null,o),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:c,isMulti:i,isRtl:s,options:l,selectOption:r,setValue:n,selectProps:a,theme:this.getTheme()}},a.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},a.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},a.hasValue=function(){return this.state.selectValue.length>0},a.hasOptions=function(){return!!this.state.menuOptions.render.length},a.countOptions=function(){return this.state.menuOptions.focusable.length},a.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},a.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},a.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}))},a.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},a.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)},a.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},a.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},a.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},a.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},a.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},a.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,a=e.focusedOption,o=this.props,i=o.options,s=o.menuIsOpen,l=o.inputValue,u=o.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}):"")+" "+(a&&s?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:a,getOptionLabel:this.getOptionLabel,options:i}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:l,screenReaderMessage:u({count:this.countOptions()})})+" "+t},a.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,o=e.tabIndex,i=this.components.Input,s=this.state.inputIsHidden,l=r||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return Bn.a.createElement(cs,Ds({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ni,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:o,value:""},u));var c=this.commonProps,d=c.cx,p=c.theme,m=c.selectProps;return Bn.a.createElement(i,Ds({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:o,theme:p,type:"text",value:a},u))},a.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,o=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,m=u.inputValue,f=u.placeholder,h=this.state,g=h.selectValue,_=h.focusedValue,b=h.isFocused;if(!this.hasValue()||!c)return m?null:Bn.a.createElement(s,Ds({},l,{key:"placeholder",isDisabled:d,isFocused:b}),f);if(p)return g.map((function(t,i){var s=t===_;return Bn.a.createElement(n,Ds({},l,{components:{Container:r,Label:a,Remove:o},isFocused:s,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(m)return null;var y=g[0];return Bn.a.createElement(i,Ds({},l,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))},a.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Bn.a.createElement(e,Ds({},t,{innerProps:i,isFocused:o}))},a.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!e||!a)return null;return Bn.a.createElement(e,Ds({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))},a.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return Bn.a.createElement(n,Ds({},r,{isDisabled:a,isFocused:o}))},a.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Bn.a.createElement(e,Ds({},t,{innerProps:a,isDisabled:n,isFocused:r}))},a.renderMenu=function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,o=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,c=this.commonProps,d=this.state,p=d.focusedOption,m=d.menuOptions,f=this.props,h=f.captureMenuScroll,g=f.inputValue,_=f.isLoading,b=f.loadingMessage,y=f.minMenuHeight,v=f.maxMenuHeight,k=f.menuIsOpen,M=f.menuPlacement,L=f.menuPosition,w=f.menuPortalTarget,T=f.menuShouldBlockScroll,Y=f.menuShouldScrollIntoView,E=f.noOptionsMessage,S=f.onMenuScrollToTop,x=f.onMenuScrollToBottom;if(!k)return null;var D,C=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,Bn.a.createElement(u,Ds({},c,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=m.render.map((function(t){if("group"===t.type){t.type;var a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["type"]),o=t.key+"-heading";return Bn.a.createElement(n,Ds({},c,a,{Heading:r,headingProps:{id:o},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e)})))}if("option"===t.type)return C(t)}));else if(_){var R=b({inputValue:g});if(null===R)return null;D=Bn.a.createElement(s,c,R)}else{var O=E({inputValue:g});if(null===O)return null;D=Bn.a.createElement(l,c,O)}var P={minMenuHeight:y,maxMenuHeight:v,menuPlacement:M,menuPosition:L,menuShouldScrollIntoView:Y},j=Bn.a.createElement(_i,Ds({},c,P),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return Bn.a.createElement(a,Ds({},c,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:_,placement:i}),Bn.a.createElement(ws,{isEnabled:h,onTopArrive:S,onBottomArrive:x},Bn.a.createElement(Ms,{isEnabled:T},Bn.a.createElement(o,Ds({},c,{innerRef:e.getMenuListRef,isLoading:_,maxHeight:s}),D))))}));return w||"fixed"===L?Bn.a.createElement(i,Ds({},c,{appendTo:w,controlElement:this.controlRef,menuPlacement:M,menuPosition:L}),j):j},a.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,o=t.name,i=this.state.selectValue;if(o&&!r){if(a){if(n){var s=i.map((function(t){return e.getOptionValue(t)})).join(n);return Bn.a.createElement("input",{name:o,type:"hidden",value:s})}var l=i.length>0?i.map((function(t,n){return Bn.a.createElement("input",{key:"i-"+n,name:o,type:"hidden",value:e.getOptionValue(t)})})):Bn.a.createElement("input",{name:o,type:"hidden"});return Bn.a.createElement("div",null,l)}var u=i[0]?this.getOptionValue(i[0]):"";return Bn.a.createElement("input",{name:o,type:"hidden",value:u})}},a.renderLiveRegion=function(){return this.state.isFocused?Bn.a.createElement(ls,{"aria-live":"polite"},Bn.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),Bn.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},a.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,o=this.props,i=o.className,s=o.id,l=o.isDisabled,u=o.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return Bn.a.createElement(r,Ds({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),Bn.a.createElement(t,Ds({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),Bn.a.createElement(a,Ds({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),Bn.a.createElement(n,Ds({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},r}(Nn.Component);function Hs(){return(Hs=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)}js.defaultProps=Os;var As={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};Nn.Component;var zs,Fs,Ns,Bs=(zs=js,Ns=Fs=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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 a=r.prototype;return a.focus=function(){this.select.focus()},a.blur=function(){this.select.blur()},a.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},a.callProp=function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return(t=this.props)[e].apply(t,r)}},a.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,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return Bn.a.createElement(zs,Hs({},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}(Nn.Component),Fs.defaultProps=As,Ns);function Is(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ws=wp.i18n.__,Us=wp.element,Vs=Us.Component,Js=Us.Fragment,Gs=wp.blockEditor.InspectorControls,qs=wp.components,$s=qs.PanelBody,Ks=qs.QueryControls,Qs=qs.RangeControl,Zs=qs.SelectControl,Xs=qs.TextControl,el=qs.ToggleControl,tl=wp.url.addQueryArgs,nl=wp.apiFetch,rl=function(e){p()(n,e);var t=Is(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={categoriesList:[]},e}return c()(n,[{key:"componentDidMount",value:function(){var e=this;this.stillMounted=!0,this.fetchRequest=nl({path:tl("/wp/v2/categories",{per_page:-1})}).then((function(t){e.stillMounted&&e.setState({categoriesList:t})})).catch((function(){e.stillMounted&&e.setState({categoriesList:[]})})),"page"===this.props.attributes.postType&&this.props.attributes.selectedPages.length!==this.props.attributes.selectedPages.postsToShow&&this.props.setAttributes({postsToShow:this.props.attributes.selectedPages.length})}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/editor").getEditorSettings();return mo()(ho()(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 mo()(ho()(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,i=n.order,s=n.orderBy,l=this.state.categoriesList,u=[{value:"post",label:Ws("Post","genesis-blocks")},{value:"page",label:Ws("Page","genesis-blocks")}],c=[{value:"div",label:Ws("div","genesis-blocks")},{value:"header",label:Ws("header","genesis-blocks")},{value:"section",label:Ws("section","genesis-blocks")},{value:"article",label:Ws("article","genesis-blocks")},{value:"main",label:Ws("main","genesis-blocks")},{value:"aside",label:Ws("aside","genesis-blocks")},{value:"footer",label:Ws("footer","genesis-blocks")}],d=[{value:"h2",label:Ws("H2","genesis-blocks")},{value:"h3",label:Ws("H3","genesis-blocks")},{value:"h4",label:Ws("H4","genesis-blocks")},{value:"h5",label:Ws("H5","genesis-blocks")},{value:"h6",label:Ws("H6","genesis-blocks")}],p=Array.isArray(o)&&o.length,m="post"===n.postType,f={value:"selectimage",label:Ws("Select image size","genesis-blocks")},h={value:"gb-block-post-grid-landscape",label:Ws("GB Grid Landscape","genesis-blocks")},g={value:"gb-block-post-grid-square",label:Ws("GB Grid Square","genesis-blocks")},_=this.imageSizeSelect();_.push(g,h),_.unshift(f);var b=this.pageSelect();return React.createElement(Gs,null,React.createElement($s,{title:Ws("Post and Page Grid Settings","genesis-blocks"),className:m?null:"genesis-blocks-hide-query"},React.createElement(M,{id:"gb_postgrid_postType"},React.createElement(Zs,{label:Ws("Content Type","genesis-blocks"),options:u,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&React.createElement(M,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control select2-page"},React.createElement("div",{className:"components-base-control__field"},React.createElement("label",{className:"components-base-control__label",htmlFor:"inspector-select-control"},Ws("Pages To Show","genesis-blocks")),React.createElement(Bs,{options:b,value:n.selectedPages,onChange:function(t){e.props.setAttributes({selectedPages:t,postsToShow:t.length})},isMulti:!0,closeMenuOnSelect:!1})))),"post"===n.postType&&React.createElement(Js,null,React.createElement(M,{id:"gb_postgrid_queryControls"},React.createElement(Ks,a()({order:i,orderBy:s},{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})}}))),React.createElement(M,{id:"gb_postgrid_offset"},React.createElement(Qs,{label:Ws("Number of items to offset","genesis-blocks"),value:n.offset,onChange:function(e){return r({offset:e})},min:0,max:20}))),"grid"===n.postLayout&&React.createElement(M,{id:"gb_postgrid_columns"},React.createElement(Qs,{label:Ws("Columns","genesis-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:p?Math.min(4,o.length):4}))),React.createElement($s,{title:Ws("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(M,{id:"gb_postgrid_displaySectionTitle"},React.createElement(el,{label:Ws("Display Section Title","genesis-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&React.createElement(M,{id:"gb_postgrid_sectionTitle"},React.createElement(Xs,{label:Ws("Section Title","genesis-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),React.createElement(M,{id:"gb_postgrid_displayPostImage"},React.createElement(el,{label:Ws("Display Featured Image","genesis-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&React.createElement(M,{id:"gb_postgrid_imageSizeValue"},React.createElement(Zs,{label:Ws("Image Size","genesis-blocks"),value:function(){for(var e=0;e<_.length;e++)if(_[e].value===n.imageSize)return n.imageSize;return"full"}(),options:_,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),React.createElement(M,{id:"gb_postgrid_displayPostTitle"},React.createElement(el,{label:Ws("Display Title","genesis-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),m&&React.createElement(M,{id:"gb_postgrid_displayPostAuthor"},React.createElement(el,{label:Ws("Display Author","genesis-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),m&&React.createElement(M,{id:"gb_postgrid_displayPostDate"},React.createElement(el,{label:Ws("Display Date","genesis-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),React.createElement(M,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(el,{label:Ws("Display Excerpt","genesis-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&React.createElement(M,{id:"gb_postgrid_excerptLength"},React.createElement(Qs,{label:Ws("Excerpt Length","genesis-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),React.createElement(M,{id:"gb_postgrid_displayPostLink"},React.createElement(el,{label:Ws("Display Continue Reading Link","genesis-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&React.createElement(M,{id:"gb_postgrid_readMoreText"},React.createElement(Xs,{label:Ws("Customize Continue Reading Text","genesis-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),React.createElement($s,{title:Ws("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(M,{id:"gb_postgrid_sectionTag"},React.createElement(Zs,{label:Ws("Post Grid Section Tag","genesis-blocks"),options:c,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:Ws("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),n.sectionTitle&&React.createElement(M,{id:"gb_postgrid_sectionTitleTag"},React.createElement(Zs,{label:Ws("Section Title Heading Tag","genesis-blocks"),options:d,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:Ws("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),n.displayPostTitle&&React.createElement(M,{id:"gb_postgrid_postTitleTag"},React.createElement(Zs,{label:Ws("Post Title Heading Tag","genesis-blocks"),options:d,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:Ws("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}]),n}(Vs),al=n(32),ol=n.n(al);function il(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var sl=wp.i18n.__,ll=wp.element,ul=ll.Fragment,cl=ll.Component,dl=wp.components,pl=dl.Placeholder,ml=dl.Dashicon,fl=function(e){p()(n,e);var t=il(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},r}return c()(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 ol()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return ol()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return React.createElement(ul,null,React.createElement("div",{className:b()("gb-block-post-grid-image")},React.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},React.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&&React.createElement(ul,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(ml,{icon:"warning"})),React.createElement(pl,{className:"gb-post-grid-no-image-placeholder"},React.createElement(ml,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},sl("There is no image generated for the selected image size, so a fallback image size is being used.","genesis-blocks")),React.createElement("div",{className:"gb-post-grid-image-help"},React.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":sl("Learn more about image sizes (opens in a new tab)","genesis-blocks"),href:"https://github.com/studiopress/genesis-blocks/wiki/Post-Grid-Block#featured-image-sizes"},sl("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}]),n}(cl);function hl(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 gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hl(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _l(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var bl=wp.compose.compose,yl=wp.element,vl=yl.Component,kl=yl.Fragment,Ml=wp.i18n.__,Ll=wp.htmlEntities.decodeEntities,wl=wp.data.withSelect,Tl=wp.components,Yl=Tl.Placeholder,El=Tl.Spinner,Sl=Tl.Toolbar,xl=wp.blockEditor,Dl=xl.BlockAlignmentToolbar,Cl=xl.BlockControls,Rl=function(e){p()(n,e);var t=_l(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.setAttributes,s=n.latestPosts,l=Array.isArray(s)&&s.length,u="post"===r.postType;if(!l)return React.createElement(kl,null,React.createElement(rl,gl({setAttributes:o},this.props)),React.createElement(Yl,{icon:"admin-post",label:Ml("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(s)?Ml("No posts found.","genesis-blocks"):React.createElement(El,null)));var c=s.length>r.postsToShow?s.slice(0,r.postsToShow):s,d=[{icon:"grid-view",title:Ml("Grid View","genesis-blocks"),onClick:function(){return o({postLayout:"grid"})},isActive:"grid"===r.postLayout},{icon:"list-view",title:Ml("List View","genesis-blocks"),onClick:function(){return o({postLayout:"list"})},isActive:"list"===r.postLayout}],p=r.sectionTag?r.sectionTag:"section",m=r.sectionTitleTag?r.sectionTitleTag:"h2",f=r.postTitleTag?r.postTitleTag:"h3";return React.createElement(kl,null,React.createElement(rl,gl({setAttributes:o},this.props)),React.createElement(Cl,null,React.createElement(Dl,{value:r.align,onChange:function(e){o({align:e})},controls:["center","wide","full"]}),React.createElement(Sl,{controls:d})),React.createElement(p,{className:b()(this.props.className,"gb-block-post-grid")},r.displaySectionTitle&&r.sectionTitle&&React.createElement(m,{className:"gb-post-grid-section-title"},r.sectionTitle),React.createElement("div",{className:b()((e={"is-grid":"grid"===r.postLayout,"is-list":"list"===r.postLayout},i()(e,"columns-".concat(r.columns),"grid"===r.postLayout),i()(e,"gb-post-grid-items","gb-post-grid-items"),e))},c.map((function(e,n){return React.createElement("article",{key:n,id:"post-"+e.id,className:b()("post-"+e.id,e.featured_image_src&&r.displayPostImage?"has-post-thumbnail":null)},r.displayPostImage&&e.featured_media?React.createElement(fl,a()({},t.props,{imgAlt:Ll(e.title.rendered.trim())||Ml("(Untitled)","genesis-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,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},r.displayPostTitle&&React.createElement(f,{className:"gb-block-post-grid-title"},React.createElement("a",{href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},Ll(e.title.rendered.trim())||Ml("(Untitled)","genesis-blocks"))),u&&React.createElement("div",{className:"gb-block-post-grid-byline"},r.displayPostAuthor&&e.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-author"},React.createElement("a",{className:"gb-text-link",target:"_blank",rel:"noopener noreferrer",href:e.author_info.author_link},e.author_info.display_name)),r.displayPostDate&&e.date_gmt&&React.createElement("time",{dateTime:co()(e.date_gmt).utc().format(),className:"gb-block-post-grid-date"},co()(e.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},r.displayPostExcerpt&&e.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(o=e.excerpt.rendered,i=r.excerptLength,o.split(" ").splice(0,i).join(" "))}}),r.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},r.readMoreText)))));var o,i})))))}}]),n}(vl),Ol=bl([wl((function(e,t){var n=t.attributes,r=n.order,a=n.categories,o=e("core").getEntityRecords,i=lo()({categories:a,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!io()(e)})),s=t.attributes.selectedPages&&t.attributes.selectedPages.length>0?t.attributes.selectedPages.map((function(e){return e.value})):null,l=lo()({include:s||null,orderby:s?"include":null},(function(e){return!io()(e)}));return{latestPosts:o("postType",t.attributes.postType,"page"===t.attributes.postType&&s?l:i)}}))])(Rl);n(363),n(364);var Pl=wp.i18n.__,jl=wp.blocks.registerBlockType,Hl=["center","wide","full"];function Al(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}jl("genesis-blocks/gb-post-grid",{title:Pl("Post and Page Grid","genesis-blocks"),description:Pl("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[Pl("post","genesis-blocks"),Pl("page","genesis-blocks"),Pl("grid","genesis-blocks"),Pl("atomic","genesis-blocks")],getEditWrapperProps:function(e){var t=e.align;if(-1!==Hl.indexOf(t))return{"data-align":t}},edit:Ol,gb_settings_data:{gb_postgrid_postType:{title:Pl("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:Pl("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:Pl("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:Pl("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:Pl("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:Pl("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:Pl("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:Pl("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:Pl("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:Pl("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:Pl("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:Pl("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:Pl("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:Pl("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:Pl("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:Pl("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:Pl("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:Pl("Post Title Heading Tag","genesis-blocks")}},save:function(){return null}});var zl=wp.i18n.__,Fl=wp.element.Component,Nl=wp.blockEditor,Bl=Nl.InspectorControls,Il=Nl.PanelColorSettings,Wl=Nl.MediaUpload,Ul=wp.components,Vl=Ul.Button,Jl=Ul.Icon,Gl=Ul.PanelBody,ql=Ul.RangeControl,$l=function(e){p()(n,e);var t=Al(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.containerPaddingTop,r=t.containerPaddingRight,a=t.containerPaddingBottom,o=t.containerPaddingLeft,i=t.containerMarginTop,s=t.containerMarginBottom,l=t.containerMaxWidth,u=t.containerBackgroundColor,c=t.containerDimRatio,d=t.containerImgURL,p=t.containerImgID,m=this.props.setAttributes,f=function(){m({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Bl,{key:"inspector"},React.createElement(M,{id:"gb_container_containerOptions"},React.createElement(Gl,{title:zl("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(ql,{label:zl("Padding Top (%)","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Bottom (%)","genesis-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Left (%)","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Right (%)","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Margin Top (%)","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),React.createElement(ql,{label:zl("Margin Bottom (%)","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Inside Container Max Width (px)","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({containerMaxWidth:t})},min:500,max:1600,step:1}))),React.createElement(M,{id:"gb_container_backgroundOptions"},React.createElement(Gl,{title:zl("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,zl("Select a background image:","genesis-blocks")),React.createElement(Wl,{onSelect:function(e){m({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Vl,{className:"gb-container-inspector-media",label:zl("Edit image","genesis-blocks"),onClick:t},React.createElement(Jl,{icon:"format-image"}),zl("Select Image","genesis-blocks")),d&&!!d.length&&React.createElement(Vl,{className:"gb-container-inspector-media",label:zl("Remove Image","genesis-blocks"),onClick:f},React.createElement(Jl,{icon:"dismiss"}),zl("Remove","genesis-blocks")))}}),d&&!!d.length&&React.createElement(ql,{label:zl("Image Opacity","genesis-blocks"),value:c,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),React.createElement(Il,{title:zl("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,label:zl("Background Color","genesis-blocks"),onChange:function(e){return m({containerBackgroundColor:e})}}]}))))}}]),n}(Fl);function Kl(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ql=function(e){p()(n,e);var t=Kl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,u=t.containerMarginTop,c=t.containerMarginBottom,d=t.containerWidth,p=t.containerMaxWidth,m=t.containerImgURL,f=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:u?"".concat(u,"%"):void 0,marginBottom:c?"".concat(c,"%"):void 0},_=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:_||void 0},React.createElement("div",{className:"gb-container-inside"},m&&!!m.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:m,alt:f})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:p?"".concat(p,"px"):void 0}},this.props.children)))}}]),n}(wp.element.Component);function Zl(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xl=function(e){p()(n,e);var t=Zl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.containerBackgroundColor,n=e.containerAlignment,r=e.containerPaddingTop,a=e.containerPaddingRight,o=e.containerPaddingBottom,s=e.containerPaddingLeft,l=e.containerMarginTop,u=e.containerMarginBottom,c=e.containerWidth,d=(e.containerMaxWidth,b()([this.props.className,"gb-block-container"],i()({},"align"+c,c)));return React.createElement("div",{style:{backgroundColor:t,textAlign:n,paddingLeft:"".concat(s,"%"),paddingRight:"".concat(a,"%"),paddingBottom:"".concat(o,"%"),paddingTop:"".concat(r,"%"),marginTop:"".concat(l,"%"),marginBottom:"".concat(u,"%")},className:d||void 0},this.props.children)}}]),n}(wp.element.Component);function eu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var tu=function(e){p()(n,e);var t=eu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,u=t.containerMarginTop,c=t.containerMarginBottom,d=t.containerWidth,p=t.containerMaxWidth,m=t.containerImgURL,f=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:u?"".concat(u,"%"):void 0,marginBottom:c?"".concat(c,"%"):void 0},_=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:_||void 0},React.createElement("div",{className:"gb-container-inside"},m&&!!m.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:m,alt:f})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(p,"px")}},this.props.children)))}}]),n}(wp.element.Component);var nu=wp.blockEditor.InnerBlocks;var ru=[{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 React.createElement(tu,e,React.createElement(nu.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,o=n.containerImgAlt,i=n.containerDimRatio;return React.createElement(Xl,e,React.createElement("div",{className:"gb-container-inside"},a&&!!a.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(t=i,0===t||50===t?null:"has-background-dim-"+10*Math.round(t/10)),{"has-background-dim":0!==i}),src:a,alt:o})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(r,"px")}},React.createElement(nu.Content,null))))}}];n(365),n(366);function au(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 ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var su=wp.i18n.__,lu=wp.element.Component,uu=wp.blocks.registerBlockType,cu=wp.blockEditor.InnerBlocks,du=function(e){p()(n,e);var t=iu(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.setAttributes;return[React.createElement($l,a()({key:"gb-container-inspector-"+this.props.clientId},ou({setAttributes:e},this.props))),React.createElement(Ql,a()({key:"gb-container-"+this.props.clientId},this.props),React.createElement(cu,null))]}}]),n}(lu);function pu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}uu("genesis-blocks/gb-container",{title:su("Container","genesis-blocks"),description:su("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[su("container","genesis-blocks"),su("section","genesis-blocks"),su("genesis","genesis-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}},gb_settings_data:{gb_container_containerOptions:{title:su("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:su("Background Options","genesis-blocks")}},edit:du,save:function(e){return React.createElement(Ql,e,React.createElement(cu.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:ru});var mu=wp.i18n.__,fu=wp.element.Component,hu=wp.blockEditor.InspectorControls,gu=wp.components,_u=gu.PanelBody,bu=gu.RangeControl,yu=function(e){p()(n,e);var t=pu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return React.createElement(hu,{key:"inspector"},React.createElement(_u,null,React.createElement(M,{id:"gb_pricing_columns"},React.createElement(bu,{label:mu("Pricing Columns","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),React.createElement(M,{id:"gb_pricing_columnsGap"},React.createElement(bu,{label:mu("Pricing Columns Gap","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}]),n}(fu);function vu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ku=function(e){p()(n,e);var t=vu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.columns,n=e.align,r=b()([this.props.className,"gb-pricing-columns-"+t],i()({},"align"+n,n));return React.createElement("div",{className:r||void 0},this.props.children)}}]),n}(wp.element.Component),Mu=n(33),Lu=n.n(Mu),wu=n(34),Tu=n.n(wu);function Yu(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 Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yu(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var xu=wp.i18n.__,Du=wp.element.Component,Cu=wp.blocks.registerBlockType,Ru=wp.blockEditor,Ou=Ru.BlockControls,Pu=Ru.BlockAlignmentToolbar,ju=Ru.InnerBlocks,Hu=wp.data.dispatch,Au=["genesis-blocks/gb-pricing-table"],zu=Lu()((function(e){return Tu()(e,(function(){return["genesis-blocks/gb-pricing-table"]}))})),Fu=function(e){p()(n,e);var t=Su(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&Hu("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.columns,r=t.columnsGap,o=t.align,i=e.setAttributes;return[React.createElement(Ou,{key:"controls"},React.createElement(Pu,{value:o,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),React.createElement(yu,a()({key:"gb-pricing-table-inspector-"+this.props.clientId},Eu({setAttributes:i},this.props))),React.createElement(ku,a()({key:"gb-pricing-table-"+this.props.clientId},this.props),React.createElement("div",{className:b()("gb-pricing-table-wrap-admin","gb-block-pricing-table-gap-"+r)},React.createElement(ju,{template:zu(n),templateLock:"all",allowedBlocks:Au})))]}}]),n}(Du);function Nu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Cu("genesis-blocks/gb-pricing",{title:xu("Pricing","genesis-blocks"),description:xu("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[xu("pricing table","genesis-blocks"),xu("shop","genesis-blocks"),xu("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:xu("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:xu("Pricing Columns Gap","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:Fu,save:function(e){var t=e.attributes.columnsGap,n=b()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(ku,e,React.createElement("div",{className:n||void 0},React.createElement(ju.Content,null)))}});var Bu=wp.i18n.__,Iu=wp.element.Component,Wu=wp.blockEditor,Uu=Wu.InspectorControls,Vu=Wu.PanelColorSettings,Ju=wp.components,Gu=Ju.PanelBody,qu=Ju.RangeControl,$u=function(e){p()(n,e);var t=Nu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderWidth,a=n.borderColor,o=n.borderRadius,i=n.backgroundColor,s=n.padding,l=t.setAttributes;return React.createElement(Uu,{key:"inspector"},React.createElement(Gu,null,React.createElement(M,{id:"gb_pricing_inner_padding"},React.createElement(qu,{label:Bu("Pricing Column Padding","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),React.createElement(M,{id:"gb_pricing_inner_borderWidth"},React.createElement(qu,{label:Bu("Pricing Column Border","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),React.createElement(M,{id:"gb_pricing_inner_borderRadius"},React.createElement(qu,{label:Bu("Pricing Column Border Radius","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({borderRadius:t})},min:0,max:20,step:1}))),0<r&&React.createElement(M,{id:"gb_pricing_inner_borderColor"},React.createElement(Vu,{title:Bu("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({borderColor:e})},label:Bu("Border Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_pricing_inner_colorSettings"},React.createElement(Vu,{title:Bu("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return l({backgroundColor:e})},label:Bu("Background Color","genesis-blocks")}]})))}}]),n}(Iu);n(367),n(368);function Ku(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 Qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ku(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xu=wp.i18n.__,ec=wp.element.Component,tc=wp.blocks.registerBlockType,nc=wp.blockEditor,rc=nc.InnerBlocks,ac=nc.AlignmentToolbar,oc=nc.BlockControls,ic=wp.element.Fragment,sc=["genesis-blocks/gb-pricing-table-description","genesis-blocks/gb-pricing-table-price","genesis-blocks/gb-pricing-table-subtitle","genesis-blocks/gb-pricing-table-title","genesis-blocks/gb-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"],lc=function(e){p()(n,e);var t=Zu(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.borderWidth,r=t.borderColor,o=t.borderRadius,i=t.backgroundColor,s=t.padding,l=t.alignment,u=e.setAttributes,c={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:o||null,backgroundColor:i||null,padding:s?s+"%":null};return[React.createElement(oc,{key:"controls"},React.createElement(ac,{value:l,onChange:function(e){u({alignment:e})}})),React.createElement($u,a()({key:"gb-pricing-table-inner-inspector-"+this.props.clientId},Qu({setAttributes:u},this.props))),React.createElement(ic,{key:"gb-pricing-table-inner-fragment-"+this.props.clientId},React.createElement("div",{className:b()(l?"gb-block-pricing-table-"+l:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:c},React.createElement(rc,{template:[["genesis-blocks/gb-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-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}],["genesis-blocks/gb-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:sc,templateInsertUpdatesSelection:!1}))))]}}]),n}(ec);tc("genesis-blocks/gb-pricing-table",{title:Xu("Pricing Column","genesis-blocks"),description:Xu("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[Xu("pricing","genesis-blocks"),Xu("shop","genesis-blocks"),Xu("buy","genesis-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},gb_settings_data:{gb_pricing_inner_padding:{title:Xu("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:Xu("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:Xu("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:Xu("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:Xu("Pricing Column Background Color","genesis-blocks")}},edit:lc,save:function(e){var t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,o=t.backgroundColor,i=t.alignment,s=t.padding,l={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:o||null,padding:s?s+"%":null};return React.createElement("div",{className:b()(i?"gb-block-pricing-table-"+i:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:l},React.createElement(rc.Content,null)))}});var uc=wp.i18n.__,cc=wp.element.Fragment,dc=wp.components.RangeControl;function pc(e){var t=e.padding,n=e.paddingTitle,r=e.paddingHelp,a=e.paddingMin,o=e.paddingMax,i=e.paddingEnable,s=e.onChangePadding,l=void 0===s?function(){}:s,u=e.paddingTop,c=e.paddingTopMin,d=e.paddingTopMax,p=e.paddingEnableTop,m=e.onChangePaddingTop,f=void 0===m?function(){}:m,h=e.paddingRight,g=e.paddingRightMin,_=e.paddingRightMax,b=e.paddingEnableRight,y=e.onChangePaddingRight,v=void 0===y?function(){}:y,k=e.paddingBottom,M=e.paddingBottomMin,L=e.paddingBottomMax,w=e.paddingEnableBottom,T=e.onChangePaddingBottom,Y=void 0===T?function(){}:T,E=e.paddingLeft,S=e.paddingLeftMin,x=e.paddingLeftMax,D=e.paddingEnableLeft,C=e.onChangePaddingLeft,R=void 0===C?function(){}:C,O=e.paddingVertical,P=e.paddingEnableVertical,j=e.paddingVerticalMin,H=e.paddingVerticalMax,A=e.onChangePaddingVertical,z=void 0===A?function(){}:A,F=e.paddingHorizontal,N=e.paddingEnableHorizontal,B=e.paddingHorizontalMin,I=e.paddingHorizontalMax,W=e.onChangePaddingHorizontal,U=void 0===W?function(){}:W;return React.createElement(cc,null,i&&React.createElement(dc,{label:n||uc("Padding","genesis-blocks"),help:r||null,value:t,min:a,max:o,onChange:l}),p&&React.createElement(dc,{label:uc("Padding Top","genesis-blocks"),value:u,min:c,max:d,onChange:f}),b&&React.createElement(dc,{label:uc("Padding Right","genesis-blocks"),value:h,min:g,max:_,onChange:v}),w&&React.createElement(dc,{label:uc("Padding Bottom","genesis-blocks"),value:k,min:M,max:L,onChange:Y}),D&&React.createElement(dc,{label:uc("Padding Left","genesis-blocks"),value:E,min:S,max:x,onChange:R}),P&&React.createElement(dc,{label:uc("Padding Vertical","genesis-blocks"),value:O,min:j,max:H,onChange:z}),N&&React.createElement(dc,{label:uc("Padding Horizontal","genesis-blocks"),value:F,min:B,max:I,onChange:U}))}function mc(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var fc=wp.i18n.__,hc=wp.element.Component,gc=wp.compose.compose,_c=wp.blockEditor,bc=_c.InspectorControls,yc=_c.FontSizePicker,vc=_c.withFontSizes,kc=_c.withColors,Mc=_c.ContrastChecker,Lc=_c.PanelColorSettings,wc=wp.components,Tc=wc.withFallbackStyles,Yc=wc.PanelBody,Ec=wc.ToggleControl,Sc=wc.TextControl,xc=(wc.RangeControl,Tc((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}}))),Dc=function(e){p()(n,e);var t=mc(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.showTerm,o=n.showCurrency,i=n.term,s=n.currency,l=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.setAttributes),m=t.fallbackFontSize,f=t.fontSize,h=t.setFontSize,g=t.backgroundColor,_=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,v=t.fallbackBackgroundColor,k=t.fallbackTextColor;return React.createElement(bc,{key:"inspector"},React.createElement(Yc,{title:fc("Text Settings","genesis-blocks")},React.createElement(yc,{fallbackFontSize:m,value:f.size,onChange:h}),React.createElement(Ec,{label:fc("Show currency symbol","genesis-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&React.createElement(Sc,{label:fc("Currency Symbol","genesis-blocks"),type:"text",value:s,onChange:function(t){return e.props.setAttributes({currency:t})}}),React.createElement(Ec,{label:fc("Show pricing duration","genesis-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&React.createElement(Sc,{label:fc("Pricing Duration","genesis-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({term:t})}})),React.createElement(Yc,{title:fc("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return p({paddingTop:e})},paddingEnableRight:!0,paddingRight:u,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return p({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:c,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return p({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:d,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return p({paddingLeft:e})}})),React.createElement(Lc,{title:fc("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:g.color,onChange:b,label:fc("Background Color","genesis-blocks")},{value:_.color,onChange:y,label:fc("Text Color","genesis-blocks")}]},React.createElement(Mc,a()({textColor:_.color,backgroundColor:g.color,fallbackTextColor:k,fallbackBackgroundColor:v},{fontSize:f.size}))))}}]),n}(hc),Cc=gc([xc,vc("fontSize"),kc("backgroundColor",{textColor:"color"})])(Dc);function Rc(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Oc=wp.i18n.__,Pc=(wp.blocks.registerBlockType,wp.compose.compose),jc=wp.element,Hc=jc.Component,Ac=jc.Fragment,zc=wp.blockEditor,Fc=zc.RichText,Nc=zc.withFontSizes,Bc=zc.withColors,Ic=function(e){p()(n,e);var t=Rc(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.price,a=n.currency,o=n.term,s=n.showTerm,l=n.showCurrency,u=n.paddingTop,c=n.paddingRight,d=n.paddingBottom,p=n.paddingLeft,m=(t.isSelected,t.className,t.setAttributes),f=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,g=t.textColor,_=b()((e={"gb-pricing-table-price-wrap":!0,"has-text-color":g.color,"has-background":h.color},i()(e,h.class,h.class),i()(e,g.class,g.class),i()(e,"gb-pricing-has-currency",l),e)),y=b()(i()({"gb-pricing-table-price":!0},f.class,f.class)),v={backgroundColor:h.color,color:g.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},k={fontSize:f.size?f.size+"px":void 0},M=Math.floor(f.size/2.5),L={fontSize:f.size?M+"px":void 0},w=Math.floor(f.size/2.5),T={fontSize:f.size?w+"px":void 0};return[React.createElement(Ac,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(Cc,this.props),React.createElement("div",{className:_||void 0,style:v},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},l&&React.createElement(Fc,{tagName:"span",itemProp:"priceCurrency",placeholder:Oc("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return m({currency:e})},className:"gb-pricing-table-currency",style:L}),React.createElement(Fc,{tagName:"div",itemProp:"price",placeholder:Oc("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return m({price:e})},style:k,className:y||void 0}),s&&React.createElement(Fc,{tagName:"span",value:o,placeholder:Oc("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return m({term:e})},className:"gb-pricing-table-term",style:T}))))]}}]),n}(Hc),Wc=Pc([Nc("fontSize"),Bc("backgroundColor",{textColor:"color"})])(Ic),Uc=wp.i18n.__,Vc=wp.blockEditor,Jc=Vc.RichText,Gc=Vc.getFontSizeClass,qc=Vc.getColorClassName,$c=[{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,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,m=n.showTerm,f=n.showCurrency,h=n.paddingTop,g=n.paddingRight,_=n.paddingBottom,y=n.paddingLeft,v=Gc(o),k=qc("color",u),M=qc("background-color",l),L=b()((t={"has-background":l||c,"gb-pricing-table-price-wrap":!0},i()(t,k,k),i()(t,M,M),i()(t,"gb-pricing-has-currency",f&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},v,v)),T={backgroundColor:M?void 0:c,color:k?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:_?_+"px":void 0,paddingLeft:y?y+"px":void 0},Y={fontSize:v?void 0:s},E=v?void 0:s,S=Math.floor(E/2.5),x={fontSize:E?S+"px":void 0},D=Math.floor(E/2.5),C={fontSize:E?D+"px":void 0};return React.createElement("div",{className:L||void 0,style:T},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&f&&React.createElement(Jc.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:Uc("$","genesis-blocks"),value:a,className:"gb-pricing-table-currency",style:x}),React.createElement(Jc.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:Y}),p&&m&&React.createElement(Jc.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:C})))}}],Kc=wp.i18n.__,Qc=wp.blocks.registerBlockType,Zc=wp.element,Xc=(Zc.Component,Zc.Fragment,wp.blockEditor),ed=Xc.RichText,td=Xc.getFontSizeClass,nd=(Xc.FontSizePicker,Xc.withFontSizes,Xc.getColorClassName);function rd(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Qc("genesis-blocks/gb-pricing-table-price",{title:Kc("Product Price","genesis-blocks"),description:Kc("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Kc("pricing table","genesis-blocks"),Kc("price","genesis-blocks"),Kc("shop","genesis-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:Wc,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,m=n.showTerm,f=n.showCurrency,h=n.paddingTop,g=n.paddingRight,_=n.paddingBottom,y=n.paddingLeft,v=td(o),k=nd("color",u),M=nd("background-color",l),L=b()((t={"has-background":l||c,"gb-pricing-table-price-wrap":!0},i()(t,k,k),i()(t,M,M),i()(t,"gb-pricing-has-currency",f&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},v,v)),T={backgroundColor:M?void 0:c,color:k?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:_?_+"px":void 0,paddingLeft:y?y+"px":void 0},Y={fontSize:v?void 0:s},E=v?void 0:s,S=Math.floor(E/2.5),x={fontSize:E?S+"px":void 0},D=Math.floor(E/2.5),C={fontSize:E?D+"px":void 0};return React.createElement("div",{className:L||void 0,style:T},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&f&&React.createElement(ed.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"gb-pricing-table-currency",style:x}),React.createElement(ed.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:Y}),p&&m&&React.createElement(ed.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:C})))},deprecated:$c});var ad=wp.i18n.__,od=wp.element.Component,id=wp.compose.compose,sd=wp.blockEditor,ld=sd.InspectorControls,ud=sd.FontSizePicker,cd=sd.withFontSizes,dd=sd.withColors,pd=sd.ContrastChecker,md=sd.PanelColorSettings,fd=sd.ColorPalette,hd=wp.components,gd=hd.withFallbackStyles,_d=hd.PanelBody,bd=hd.PanelRow,yd=hd.SelectControl,vd=hd.BaseControl,kd=hd.RangeControl,Md=gd((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),Ld=function(e){p()(n,e);var t=rd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderStyle,o=n.borderColor,i=n.borderWidth,s=n.paddingTop,l=n.paddingRight,u=n.paddingBottom,c=n.paddingLeft,d=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,m=t.fontSize,f=t.setFontSize,h=t.backgroundColor,g=t.textColor,_=t.setBackgroundColor,b=t.setTextColor,y=t.fallbackBackgroundColor,v=t.fallbackTextColor,k=[{value:"gb-list-border-none",label:ad("None")},{value:"gb-list-border-solid",label:ad("Solid")},{value:"gb-list-border-dotted",label:ad("Dotted")},{value:"gb-list-border-dashed",label:ad("Dashed")}];return React.createElement(ld,{key:"inspector"},React.createElement(_d,{title:ad("Text Settings","genesis-blocks")},React.createElement(ud,{fallbackFontSize:p,value:m.size,onChange:f}),React.createElement(yd,{label:ad("List Border Style","genesis-blocks"),value:r,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({borderStyle:t})}}),"gb-list-border-none"!==r&&React.createElement(kd,{label:ad("List Border Width","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:1,max:5,step:1}),"gb-list-border-none"!==r&&React.createElement(bd,null,React.createElement(vd,{label:ad("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(fd,{initialOpen:!1,value:o,onChange:function(e){return d({borderColor:e})}})))),React.createElement(_d,{title:ad("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:s,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:l,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})}})),React.createElement(md,{title:ad("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:_,label:ad("Background Color","genesis-blocks")},{value:g.color,onChange:b,label:ad("Text Color","genesis-blocks")}]},React.createElement(pd,a()({textColor:g.color,backgroundColor:h.color,fallbackTextColor:v,fallbackBackgroundColor:y},{fontSize:m.size}))))}}]),n}(od),wd=id([Md,cd("fontSize"),dd("backgroundColor",{textColor:"color"})])(Ld);function Td(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Yd=wp.i18n.__,Ed=(wp.blocks.registerBlockType,wp.compose.compose),Sd=wp.element,xd=Sd.Component,Dd=Sd.Fragment,Cd=wp.blockEditor,Rd=Cd.RichText,Od=Cd.withFontSizes,Pd=Cd.withColors,jd=function(e){p()(n,e);var t=Td(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.features,a=n.borderStyle,o=n.borderColor,s=n.borderWidth,l=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),m=(t.fallbackFontSize,t.fontSize),f=t.backgroundColor,h=t.textColor,g=b()((e={"gb-pricing-table-features":!0},i()(e,m.class,m.class),i()(e,"has-text-color",h.color),i()(e,"has-background",f.color),i()(e,f.class,f.class),i()(e,h.class,h.class),i()(e,a,a),i()(e,"gb-list-border-width-"+s,s),e)),_={fontSize:m.size?m.size+"px":void 0,backgroundColor:f.color,color:h.color,borderColor:o||void 0,paddingTop:l?l+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:d?d+"px":void 0};return[React.createElement(Dd,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(wd,this.props),React.createElement(Rd,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:Yd("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({features:e})},style:_,className:g||void 0}))]}}]),n}(xd),Hd=Ed([Od("fontSize"),Pd("backgroundColor",{textColor:"color"})])(jd),Ad=wp.i18n.__,zd=wp.blocks.registerBlockType,Fd=(wp.element.Component,wp.blockEditor),Nd=Fd.RichText,Bd=Fd.getFontSizeClass,Id=(Fd.FontSizePicker,Fd.withFontSizes,Fd.getColorClassName);function Wd(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}zd("genesis-blocks/gb-pricing-table-features",{title:Ad("Product Features","genesis-blocks"),description:Ad("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ad("pricing table","genesis-blocks"),Ad("features","genesis-blocks"),Ad("shop","genesis-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:"gb-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:Hd,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.borderStyle,p=n.borderColor,m=n.borderWidth,f=n.paddingTop,h=n.paddingRight,g=n.paddingBottom,_=n.paddingLeft,y=Bd(a),v=Id("color",l),k=Id("background-color",s),M=b()((t={"has-background":s||u,"gb-pricing-table-features":!0},i()(t,y,y),i()(t,v,v),i()(t,k,k),i()(t,d,d),i()(t,"gb-list-border-width-"+m,m),t)),L={fontSize:y?void 0:o,backgroundColor:k?void 0:u,color:v?void 0:c,borderColor:p||void 0,paddingTop:f?f+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:_?_+"px":void 0};return React.createElement(Nd.Content,{tagName:"ul",itemProp:"description",value:r,className:M||void 0,style:L})}});var Ud=wp.i18n.__,Vd=wp.element.Component,Jd=wp.compose.compose,Gd=wp.blockEditor,qd=Gd.InspectorControls,$d=Gd.FontSizePicker,Kd=Gd.withFontSizes,Qd=Gd.withColors,Zd=Gd.ContrastChecker,Xd=Gd.PanelColorSettings,ep=(Gd.RangeControl,wp.components),tp=ep.withFallbackStyles,np=ep.PanelBody,rp=tp((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),ap=function(e){p()(n,e);var t=Wd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,s=(e.isSelected,e.setAttributes),l=e.fallbackFontSize,u=e.fontSize,c=e.setFontSize,d=e.backgroundColor,p=e.textColor,m=e.setBackgroundColor,f=e.setTextColor,h=e.fallbackBackgroundColor,g=e.fallbackTextColor;return React.createElement(qd,{key:"inspector"},React.createElement(np,{title:Ud("Text Settings","genesis-blocks")},React.createElement($d,{fallbackFontSize:l,value:u.size,onChange:c})),React.createElement(np,{title:Ud("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return s({paddingLeft:e})}})),React.createElement(Xd,{title:Ud("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:m,label:Ud("Background Color","genesis-blocks")},{value:p.color,onChange:f,label:Ud("Text Color","genesis-blocks")}]},React.createElement(Zd,a()({textColor:p.color,backgroundColor:d.color,fallbackTextColor:g,fallbackBackgroundColor:h},{fontSize:u.size}))))}}]),n}(Vd),op=Jd([rp,Kd("fontSize"),Qd("backgroundColor",{textColor:"color"})])(ap);function ip(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var sp=wp.i18n.__,lp=(wp.blocks.registerBlockType,wp.compose.compose),up=wp.element,cp=up.Component,dp=up.Fragment,pp=wp.blockEditor,mp=pp.RichText,fp=pp.withFontSizes,hp=pp.withColors,gp=function(e){p()(n,e);var t=ip(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.title,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,m=b()((e={"gb-pricing-table-title":!0},i()(e,c.class,c.class),i()(e,"has-text-color",p.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,p.class,p.class),e)),f={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(dp,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(op,this.props),React.createElement(mp,{tagName:"div",itemProp:"name",placeholder:sp("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({title:e})},style:f,className:m||void 0}))]}}]),n}(cp),_p=lp([fp("fontSize"),hp("backgroundColor",{textColor:"color"})])(gp),bp=wp.i18n.__,yp=wp.blocks.registerBlockType,vp=(wp.element.Component,wp.blockEditor),kp=vp.RichText,Mp=vp.getFontSizeClass,Lp=(vp.FontSizePicker,vp.withFontSizes,vp.getColorClassName);function Tp(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}yp("genesis-blocks/gb-pricing-table-title",{title:bp("Product Title","genesis-blocks"),description:bp("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[bp("pricing table","genesis-blocks"),bp("title","genesis-blocks"),bp("shop","genesis-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:_p,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,m=n.paddingBottom,f=n.paddingLeft,h=Mp(a),g=Lp("color",l),_=Lp("background-color",s),y={fontSize:h?void 0:o,backgroundColor:_?void 0:u,color:g?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:f?f+"px":void 0},v=b()((t={"has-background":s||u,"gb-pricing-table-title":!0},i()(t,h,h),i()(t,g,g),i()(t,_,_),t));return React.createElement(kp.Content,{tagName:"div",itemProp:"name",value:r,style:y,className:v||void 0})}});var Yp=wp.i18n.__,Ep=(wp.blocks.registerBlockType,wp.compose.compose),Sp=wp.element,xp=Sp.Component,Dp=Sp.Fragment,Cp=wp.blockEditor,Rp=Cp.RichText,Op=Cp.withFontSizes,Pp=Cp.withColors,jp=function(e){p()(n,e);var t=Tp(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.subtitle,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,m=b()((e={"gb-pricing-table-subtitle":!0},i()(e,c.class,c.class),i()(e,"has-text-color",p.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,p.class,p.class),e)),f={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(Dp,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(op,this.props),React.createElement(Rp,{tagName:"div",placeholder:Yp("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({subtitle:e})},style:f,className:m||void 0}))]}}]),n}(xp),Hp=Ep([Op("fontSize"),Pp("backgroundColor",{textColor:"color"})])(jp),Ap=wp.i18n.__,zp=wp.blocks.registerBlockType,Fp=(wp.element.Component,wp.blockEditor),Np=Fp.RichText,Bp=Fp.getFontSizeClass,Ip=(Fp.FontSizePicker,Fp.withFontSizes,Fp.getColorClassName);function Wp(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}zp("genesis-blocks/gb-pricing-table-subtitle",{title:Ap("Product Subtitle","genesis-blocks"),description:Ap("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ap("pricing table","genesis-blocks"),Ap("subtitle","genesis-blocks"),Ap("shop","genesis-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:Hp,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,m=n.paddingBottom,f=n.paddingLeft,h=Bp(a),g=Ip("color",l),_=Ip("background-color",s),y=b()((t={"has-background":s||u,"gb-pricing-table-subtitle":!0},i()(t,h,h),i()(t,g,g),i()(t,_,_),t)),v={fontSize:h?void 0:o,backgroundColor:_?void 0:u,color:g?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:f?f+"px":void 0};return React.createElement(Np.Content,{tagName:"div",value:r,className:y||void 0,style:v})}});var Up=wp.i18n.__,Vp=wp.element.Component,Jp=wp.compose.compose,Gp=wp.blockEditor,qp=Gp.InspectorControls,$p=(Gp.FontSizePicker,Gp.withFontSizes),Kp=Gp.withColors,Qp=(Gp.ContrastChecker,Gp.PanelColorSettings),Zp=wp.components,Xp=Zp.withFallbackStyles,em=Zp.PanelBody,tm=(Zp.ToggleControl,Zp.TextControl,Zp.RangeControl,Xp((function(e,t){var n=t.attributes.backgroundColor,r=e.querySelector('[contenteditable="true"]'),a=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!a?void 0:a.backgroundColor}}))),nm=function(e){p()(n,e);var t=Wp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=(t.buttonText,t.buttonUrl,t.buttonAlignment,t.buttonBackgroundColor),s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=t.buttonTarget,d=(e.isSelected,e.setAttributes),p=e.backgroundColor,m=e.setBackgroundColor;e.fallbackBackgroundColor;return React.createElement(qp,{key:"inspector"},React.createElement(em,{title:Up("Button Settings","genesis-blocks")},React.createElement(en,{buttonTarget:c,onChangeButtonTarget:function(e){return d({buttonTarget:!c})},buttonSize:l,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:s,onChangeButtonTextColor:function(e){return d({buttonTextColor:e})}})),React.createElement(em,{title:Up("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{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:a,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:o,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(Qp,{title:Up("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:p.color,onChange:m,label:Up("Background Color","genesis-blocks")}]}))}}]),n}(Vp),rm=Jp([tm,$p("fontSize"),Kp("backgroundColor")])(nm);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var om=wp.i18n.__,im=(wp.blocks.registerBlockType,wp.compose.compose),sm=wp.element,lm=sm.Component,um=sm.Fragment,cm=wp.blockEditor,dm=cm.RichText,pm=cm.withFontSizes,mm=cm.withColors,fm=(cm.InnerBlocks,cm.URLInput),hm=wp.components,gm=hm.Button,_m=hm.Dashicon,bm=hm.Icon,ym=function(e){p()(n,e);var t=am(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.subtitle,t.paddingTop),r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=t.buttonText,s=t.buttonUrl,l=t.buttonAlignment,u=t.buttonBackgroundColor,c=t.buttonTextColor,d=t.buttonSize,p=t.buttonShape,m=(t.buttonTarget,e.isSelected),f=(e.className,e.setAttributes),h=e.backgroundColor,g=b()({"gb-pricing-table-button":!0}),_={backgroundColor:h.color,paddingTop:n?n+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:a?a+"px":void 0,paddingLeft:o?o+"px":void 0};return[React.createElement(um,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(rm,this.props),React.createElement("div",{className:g||void 0,style:_},React.createElement(ln,this.props,React.createElement(dm,{tagName:"span",placeholder:om("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:[],className:b()("gb-button",p,d),style:{color:c,backgroundColor:u},onChange:function(e){return f({buttonText:e})}})),m&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(l),onSubmit:function(e){return e.preventDefault()},style:{textAlign:l}},React.createElement(_m,{icon:"admin-links"}),React.createElement(fm,{className:"button-url",value:s,onChange:function(e){return f({buttonUrl:e})}}),React.createElement(gm,{label:om("Apply","genesis-blocks"),type:"submit"},React.createElement(bm,{icon:"editor-break"})))))]}}]),n}(lm),vm=im([pm("fontSize"),mm("backgroundColor",{textColor:"color"})])(ym),km=wp.i18n.__,Mm=wp.blocks.registerBlockType,Lm=(wp.element.Component,wp.blockEditor),wm=Lm.RichText,Tm=(Lm.getFontSizeClass,Lm.FontSizePicker,Lm.withFontSizes,Lm.getColorClassName);Mm("genesis-blocks/gb-pricing-table-button",{title:km("Product Button","genesis-blocks"),description:km("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[km("pricing table","genesis-blocks"),km("subtitle","genesis-blocks"),km("shop","genesis-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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-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:vm,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,a=t.paddingTop,o=t.paddingRight,s=t.paddingBottom,l=t.paddingLeft,u=t.buttonText,c=t.buttonUrl,d=(t.buttonAlignment,t.buttonBackgroundColor),p=t.buttonTextColor,m=t.buttonSize,f=t.buttonShape,h=t.buttonTarget,g=Tm("background-color",n),_=b()(i()({"has-background":n||r,"gb-pricing-table-button":!0},g,g)),y={backgroundColor:g?void 0:r,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return React.createElement("div",{className:_||void 0,style:y},React.createElement(ln,e,u&&React.createElement("a",{href:c,target:h?"_blank":null,rel:h?"noopener noreferrer":null,className:b()("gb-button",f,m),style:{color:p,backgroundColor:d}},React.createElement(wm.Content,{value:u}))))}});var Ym=wp.i18n.__,Em=wp.element.Fragment,Sm=wp.components.RangeControl;function xm(e){var t=e.marginTop,n=e.marginTopLabel,r=e.marginTopMin,a=e.marginTopMax,o=e.marginEnableTop,i=e.onChangeMarginTop,s=void 0===i?function(){}:i,l=e.marginRight,u=e.marginRightLabel,c=e.marginRightMin,d=e.marginRightMax,p=e.marginEnableRight,m=e.onChangeMarginRight,f=void 0===m?function(){}:m,h=e.marginBottom,g=e.marginBottomLabel,_=e.marginBottomMin,b=e.marginBottomMax,y=e.marginEnableBottom,v=e.onChangeMarginBottom,k=void 0===v?function(){}:v,M=e.marginLeft,L=e.marginLeftLabel,w=e.marginLeftMin,T=e.marginLeftMax,Y=e.marginEnableLeft,E=e.onChangeMarginLeft,S=void 0===E?function(){}:E,x=e.marginVertical,D=e.marginVerticalLabel,C=e.marginEnableVertical,R=e.marginVerticalMin,O=e.marginVerticalMax,P=e.onChangeMarginVertical,j=void 0===P?function(){}:P,H=e.marginHorizontal,A=e.marginHorizontalLabel,z=e.marginEnableHorizontal,F=e.marginHorizontalMin,N=e.marginHorizontalMax,B=e.onChangeMarginHorizontal,I=void 0===B?function(){}:B;return React.createElement(Em,null,o&&React.createElement(Sm,{label:n||Ym("Margin Top","genesis-blocks"),value:t,min:r,max:a,onChange:s}),p&&React.createElement(Sm,{label:u||Ym("Margin Right","genesis-blocks"),value:l,min:c,max:d,onChange:f}),y&&React.createElement(Sm,{label:g||Ym("Margin Bottom","genesis-blocks"),value:h,min:_,max:b,onChange:k}),Y&&React.createElement(Sm,{label:L||Ym("Margin Left","genesis-blocks"),value:M,min:w,max:T,onChange:S}),C&&React.createElement(Sm,{label:D||Ym("Margin Vertical","genesis-blocks"),value:x,min:R,max:O,onChange:j}),z&&React.createElement(Sm,{label:A||Ym("Margin Horizontal","genesis-blocks"),value:H,min:F,max:N,onChange:I}))}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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Cm=wp.i18n.__,Rm=wp.element.Component,Om=wp.compose.compose,Pm=wp.blockEditor,jm=Pm.InspectorControls,Hm=Pm.withColors,Am=Pm.ContrastChecker,zm=Pm.PanelColorSettings,Fm=wp.components,Nm=Fm.PanelBody,Bm=Fm.SelectControl,Im=Fm.TextControl,Wm=Fm.FormToggle,Um=(0,Fm.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=n.buttonTextColor,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:r||!l?void 0:l.backgroundColor,fallbackTextColor:a||!l?void 0:l.color,fallbackButtonBackgroundColor:o||!l?void 0:l.buttonBackgroundColor,fallbackButtonTextColor:i||!l?void 0:l.buttonTextColor}})),Vm=function(e){p()(n,e);var t=Dm(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(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,a=e.setBackgroundColor,o=e.fallbackBackgroundColor,i=e.textColor,s=e.fallbackTextColor,l=e.setTextColor,u=e.buttonBackgroundColor,c=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,p=e.fallbackButtonTextColor,m=e.setButtonBackgroundColor,f=e.setButtonTextColor,h={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:Cm("Select a list","genesis-blocks"),value:""}]}};return genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((function(e){return h.mailchimp.lists.push({label:e.name,value:e.id})})),React.createElement(jm,null,React.createElement(Nm,{title:Cm("Newsletter","genesis-blocks"),initialOpen:!t.mailingList},React.createElement(M,{id:"gb_newsletter_mailingList"},React.createElement(Bm,{label:Cm("Mailing List","genesis-blocks"),help:Cm("The list people will be subscribed to.","genesis-blocks"),options:h.mailchimp.lists,value:t.mailingList,onChange:function(e){return n({mailingList:e})}})),React.createElement(M,{id:"gb_newsletter_successMessage"},React.createElement(Im,{type:"string",label:Cm("Success Message","genesis-blocks"),help:Cm("The message shown when people successfully subscribe.","genesis-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),React.createElement(M,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(Wm,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"gb-newsletter-double-opt-in-toggle",checked:t.doubleOptIn,onChange:function(e){return n({doubleOptIn:e.target.checked})}}),React.createElement("label",{className:"gb-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},Cm("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},Cm("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(Nm,{title:Cm("General","genesis-blocks"),initialOpen:!!t.mailingList},React.createElement(M,{id:"gb_newsletter_containerPadding"},React.createElement(pc,{paddingEnable:!0,paddingTitle:Cm("Block Padding","genesis-blocks"),paddingHelp:Cm("Adjust the padding applied to the inside of the block.","genesis-blocks"),padding:t.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:function(e){return n({containerPadding:e})}})),React.createElement(M,{id:"gb_newsletter_containerMargin"},React.createElement(xm,{marginEnableTop:!0,marginTopLabel:Cm("Block Margin Top","genesis-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:Cm("Block Margin Bottom","genesis-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),React.createElement(en,{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})),React.createElement(M,{id:"gb_newsletter_colorOptions"},React.createElement(zm,{title:Cm("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:a,label:Cm("Block Background Color","genesis-blocks")},{value:i.color,onChange:l,label:Cm("Block Text Color","genesis-blocks")},{value:u.color,onChange:m,label:Cm("Button Background Color","genesis-blocks")},{value:d.color,onChange:f,label:Cm("Button Text Color","genesis-blocks")}]},React.createElement(Am,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:s,fallbackBackgroundColor:o}),React.createElement(Am,{textColor:d.color,backgroundColor:u.color,fallbackButtonTextColor:p,fallbackButtonBackgroundColor:c}),React.createElement(Am,{textColor:u.color,backgroundColor:r.color,fallbackButtonBackgroundColor:c,fallbackBackgroundColor:o}))))}}]),n}(Rm),Jm=Om([Um,Hm("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Vm);function Gm(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var qm=wp.element.Component,$m=(wp.blockEditor.getColorClassName,function(e){p()(n,e);var t=Gm(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n,r=this.props,a=r.attributes,o=r.backgroundColor,s=r.textColor;return t=a.customBackgroundColor?"gb-has-custom-background-color":a.backgroundColor?"has-"+a.backgroundColor+"-background-color":null,n=a.customTextColor?"gb-has-custom-text-color":a.textColor?"has-"+a.textColor+"-color":null,React.createElement("div",{style:{backgroundColor:o.color,padding:a.containerPadding?a.containerPadding:void 0,marginTop:a.containerMarginTop?a.containerMarginTop:void 0,marginBottom:a.containerMarginBottom?a.containerMarginBottom:void 0,color:s.color},className:b()([this.props.className],(e={"gb-block-newsletter":!0,"gb-form-styles":!0,"has-background":a.backgroundColor||a.customBackgroundColor},i()(e,t,t),i()(e,n,n),e))},this.props.children)}}]),n}(qm));function Km(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 Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xm=wp.i18n.__,ef=wp.compose,tf=ef.compose,nf=ef.withInstanceId,rf=wp.blockEditor,af=(rf.getColorClassName,rf.RichText),of=rf.withColors,sf=wp.element,lf=sf.Fragment,uf=sf.Component,cf=wp.components,df=cf.TextControl,pf=(0,cf.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=e.querySelector('[contenteditable="true"]'),s=i?getComputedStyle(i):null;return{fallbackBackgroundColor:r||!s?void 0:s.backgroundColor,fallbackTextColor:a||!s?void 0:s.color,fallbackButtonBackgroundColor:o||!s?void 0:s.buttonBackgroundColor}})),mf=function(e){p()(n,e);var t=Zm(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return c()(n,[{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.attributes,i=r.isSelected,s=r.setAttributes,l=r.buttonBackgroundColor,u=r.buttonTextColor,c=genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;return e=o.customButtonBackgroundColor?"gb-has-custom-background-color":o.buttonBackgroundColor?"has-"+o.buttonBackgroundColor+"-background-color":null,t=o.customButtonTextColor?"gb-has-custom-text-color":o.buttonTextColor?"has-"+o.buttonTextColor+"-color":null,[React.createElement(Jm,a()({key:"gb-newsletter-inspector-"+this.props.clientId},Qm({setAttributes:s},this.props))),React.createElement($m,a()({key:"gb-newsletter-container-"+this.props.clientId},this.props),!c&&React.createElement(lf,null,React.createElement("div",{className:"gb-newsletter-notice"},Xm("You must define your newsletter provider API keys to use this block.","genesis-blocks"),React.createElement("p",null,React.createElement("a",{href:genesis_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},Xm("Configure your settings","genesis-blocks"))))),c&&React.createElement(lf,null,React.createElement(af,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:o.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),React.createElement(df,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:b()("gb-block-button")},React.createElement(ln,this.props,React.createElement(af,{tagName:"span",placeholder:Xm("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o.buttonText,allowedFormats:[],className:b()("gb-button",o.buttonClass,o.buttonShape,o.buttonSize,e,t,{"has-background":o.buttonBackgroundColor||o.customButtonBackgroundColor,"has-text-color":o.buttonTextColor||o.customButtonTextColor}),style:{backgroundColor:l.color,color:u.color},onChange:function(e){return n.props.setAttributes({buttonText:e})}})),i&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o.buttonAlignment),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o.buttonAlignment}}))))]}}]),n}(uf),ff=tf([pf,of("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(nf(mf)),hf=(n(369),n(370),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-newsletter",{title:hf("Email newsletter","genesis-blocks"),description:hf("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[hf("Mailchimp","genesis-blocks"),hf("Subscribe","genesis-blocks"),hf("Newsletter","genesis-blocks")],edit:ff,gb_settings_data:{gb_newsletter_mailingList:{title:hf("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:hf("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:hf("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:hf("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:hf("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:hf("Color Options","genesis-blocks")}},save:function(){return null}});var gf=n(35),_f=n.n(gf);var bf=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"gb-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"gb-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"gb-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"gb-background-"+e.backgroundRepeat:null,e.hasParallax?"gb-has-parallax":null];var t},yf=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 vf(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 kf(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mf=function(e){p()(n,e);var t=kf(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,t=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null;var r,a,o=b()([this.props.className,"gb-layout-columns-"+n.columns,n.layout].concat(_f()(bf(n)),[e,t,n.columnMaxWidth&&n.centerColumns?"gb-columns-center":null]),i()({},"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 s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(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},yf(n));return React.createElement("div",{className:o||void 0,style:Object.assign(r,a,s)},this.props.children)}}]),n}(wp.element.Component),Lf={};Lf.oneEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),Lf.twoEqual=React.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"},React.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),Lf.twoLeftWide=React.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"},React.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),Lf.twoRightWide=React.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"},React.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),Lf.threeEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),Lf.threeWideCenter=React.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"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Lf.threeWideLeft=React.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"},React.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Lf.threeWideRight=React.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"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),Lf.fourEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),Lf.fourLeft=React.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"},React.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Lf.fourRight=React.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"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),Lf.fiveEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Lf.sixEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),Lf.blockIcon=React.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"},React.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));var wf=Lf,Tf=wp.i18n.__,Yf={1:[{name:Tf("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:wf.oneEqual}],2:[{name:Tf("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:wf.twoEqual},{name:Tf("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:wf.twoLeftWide},{name:Tf("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:wf.twoRightWide}],3:[{name:Tf("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:wf.threeEqual},{name:Tf("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:wf.threeWideCenter},{name:Tf("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:wf.threeWideLeft},{name:Tf("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:wf.threeWideRight}],4:[{name:Tf("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:wf.fourEqual},{name:Tf("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:wf.fourLeft},{name:Tf("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:wf.fourRight}],5:[{name:Tf("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:wf.fiveEqual}],6:[{name:Tf("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:wf.sixEqual}]};function Ef(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 Sf(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var xf=wp.i18n.__,Df=wp.element,Cf=Df.Fragment,Rf=Df.Component,Of=wp.components,Pf=Of.PanelBody,jf=Of.RangeControl,Hf=Of.Button,Af=Of.ButtonGroup,zf=Of.FocalPointPicker,Ff=Of.Icon,Nf=Of.ToggleControl,Bf=Of.SelectControl,If=wp.blockEditor,Wf=If.MediaUpload,Uf=If.MediaUploadCheck,Vf=function(e){p()(n,e);var t=Sf(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,o=[{value:"no-repeat",label:xf("No Repeat","genesis-blocks")},{value:"repeat",label:xf("Repeat","genesis-blocks")},{value:"repeat-x",label:xf("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:xf("Repeat Vertically","genesis-blocks")}],s=[{value:"auto",label:xf("Auto","genesis-blocks")},{value:"cover",label:xf("Cover","genesis-blocks")},{value:"contain",label:xf("Contain","genesis-blocks")}];return"cover"===r.backgroundSize&&(e=xf("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","genesis-blocks")),"contain"===r.backgroundSize&&(e=xf("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===r.backgroundSize&&(e=xf("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(Cf,null,React.createElement(Pf,{title:xf("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(Uf,null,React.createElement(Wf,{onSelect:function(e){a({backgroundImgURL:e.url})},type:"image",value:r.backgroundImgURL,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Af,{className:"gb-background-button-group"},React.createElement(Hf,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:xf("Edit image","genesis-blocks"),onClick:t},React.createElement(Ff,{icon:"format-image"}),xf("Select Image","genesis-blocks")),r.backgroundImgURL&&React.createElement(Hf,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:xf("Remove Image","genesis-blocks"),onClick:function(){return a({backgroundImgURL:null})}},React.createElement(Ff,{icon:"dismiss"}),xf("Remove","genesis-blocks"))))}})),r.backgroundImgURL&&React.createElement(Cf,null,React.createElement(zf,{label:xf("Focal Point","genesis-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return a({focalPoint:e})}}),React.createElement(jf,{label:xf("Image Opacity","genesis-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),React.createElement(Nf,{label:xf("Fixed Background","genesis-blocks"),checked:r.hasParallax,onChange:function(){a(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasParallax:!r.hasParallax},r.hasParallax?{}:{focalPoint:void 0}))}}),React.createElement(Bf,{className:"gb-inspector-help-text",label:xf("Image Display","genesis-blocks"),value:r.backgroundSize,help:e,options:s,onChange:function(e){return t.props.setAttributes({backgroundSize:e})}}),"cover"!==r.backgroundSize&&React.createElement(Bf,{label:xf("Image Repeat","genesis-blocks"),value:r.backgroundRepeat,options:o,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}]),n}(Rf);function Jf(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Gf=wp.i18n.__,qf=wp.element,$f=qf.Component,Kf=qf.Fragment,Qf=wp.blockEditor,Zf=Qf.InspectorControls,Xf=Qf.PanelColorSettings,eh=Qf.ContrastChecker,th=wp.components,nh=th.PanelBody,rh=th.RangeControl,ah=th.ButtonGroup,oh=th.Button,ih=th.Tooltip,sh=th.ToggleControl,lh=th.SelectControl,uh=function(e){p()(n,e);var t=Jf(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,a=t.backgroundColor,o=t.setBackgroundColor,i=t.textColor,s=t.setTextColor,l=1;n.columns&&(l=parseInt(n.columns.toString().split("-")));var u=[{value:"px",label:Gf("Pixel (px)","genesis-blocks")},{value:"%",label:Gf("Percent (%)","genesis-blocks")},{value:"em",label:Gf("Em (em)","genesis-blocks")}];return React.createElement(Zf,{key:"inspector"},n.layout&&React.createElement(nh,{title:Gf("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(M,{id:"gb_column_columns"},React.createElement(rh,{label:Gf("Column Count","genesis-blocks"),help:Gf("Note: Changing the column count after you've added content to the column can cause loss of content.","genesis-blocks"),value:n.columns,onChange:function(t){return e.props.setAttributes({columns:t,layout:"gb-"+t+"-col-equal"})},min:1,max:6,step:1})),React.createElement("hr",null),(2===n.columns||3===n.columns||4===n.columns)&&React.createElement(Kf,null,React.createElement(M,{id:"gb_column_columnLayouts"},React.createElement("p",null,Gf("Column Layout","genesis-blocks")),React.createElement(ah,{"aria-label":Gf("Column Layout","genesis-blocks")},ho()(Yf[l],(function(t){var n=t.name,a=t.key,o=t.icon;t.col;return React.createElement(ih,{text:n,key:a},React.createElement(oh,{key:a,className:"gb-column-selector-button",isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o))}))),React.createElement("p",null,React.createElement("i",null,Gf("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(M,{id:"gb_column_columnsGap"},React.createElement(rh,{label:Gf("Column Gap","genesis-blocks"),help:Gf("Adjust the spacing between columns.","genesis-blocks"),value:n.columnsGap,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:10,step:1})),React.createElement("hr",null),React.createElement(M,{id:"gb_column_columnMaxWidth"},React.createElement(rh,{label:Gf("Column Inner Max Width (px)"),help:Gf("Adjust the width of the content inside the container wrapper.","genesis-blocks"),value:n.columnMaxWidth,onChange:function(t){return e.props.setAttributes({columnMaxWidth:t})},min:0,max:2e3,step:1})),0<n.columnMaxWidth&&React.createElement(M,{id:"gb_column_centerColumns"},React.createElement(sh,{label:Gf("Center Columns In Container","genesis-blocks"),help:Gf("Center the columns in the container when max-width is used.","genesis-blocks"),checked:n.centerColumns,onChange:function(){return e.props.setAttributes({centerColumns:!n.centerColumns})}})),React.createElement("hr",null),React.createElement(M,{id:"gb_column_responsiveToggle"},React.createElement(sh,{label:Gf("Responsive Columns","genesis-blocks"),help:Gf("Columns will be adjusted to fit on tablets and mobile devices.","genesis-blocks"),checked:n.responsiveToggle,onChange:function(){return e.props.setAttributes({responsiveToggle:!n.responsiveToggle})}}))),React.createElement(M,{id:"gb_column_marginPadding"},React.createElement(nh,{title:Gf("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(lh,{label:Gf("Margin Unit","genesis-blocks"),help:Gf("Choose between pixel, percent, or em units.","genesis-blocks"),options:u,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(sh,{label:Gf("Sync Margin","genesis-blocks"),help:Gf("Top and bottom margins will have the same value.","genesis-blocks"),checked:n.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!n.marginSync})}}),n.marginSync?React.createElement(xm,{marginEnableVertical:!0,marginVerticalLabel:Gf("Margin Top/Bottom","genesis-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):React.createElement(xm,{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})}}),React.createElement("hr",null),React.createElement(lh,{label:Gf("Padding Unit","genesis-blocks"),help:Gf("Choose between pixel, percent, or em units.","genesis-blocks"),options:u,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(sh,{label:Gf("Sync Padding","genesis-blocks"),help:Gf("Padding on all sides will have the same value.","genesis-blocks"),checked:n.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!n.paddingSync})}}),n.paddingSync?React.createElement(pc,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):React.createElement(pc,{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})}}))),React.createElement(M,{id:"gb_column_colorSettings"},React.createElement(Xf,{title:Gf("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a.color,onChange:o,label:Gf("Background Color","genesis-blocks")},{value:i.color,onChange:s,label:Gf("Text Color","genesis-blocks")}]},React.createElement(eh,{textColor:i.color,backgroundColor:a.color}))),React.createElement(M,{id:"gb_column_backgroundImagePanel"},React.createElement(Vf,this.props)))}}]),n}($f);function ch(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var dh=wp.i18n.__,ph=wp.element,mh=ph.Component,fh=ph.Fragment,hh=wp.compose.compose,gh=wp.data.dispatch,_h=wp.blockEditor,bh=_h.BlockControls,yh=_h.BlockAlignmentToolbar,vh=_h.InnerBlocks,kh=_h.withColors,Mh=wp.components,Lh=Mh.Placeholder,wh=Mh.ButtonGroup,Th=Mh.Tooltip,Yh=Mh.Button,Eh=["genesis-blocks/gb-column"],Sh=Lu()((function(e){return Tu()(e,(function(){return["genesis-blocks/gb-column"]}))})),xh=function(e){p()(n,e);var t=ch(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={selectLayout:!0},r}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&gh("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=1;n.columns&&(o=parseInt(n.columns.toString().split("-")));var i=[{name:dh("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:wf.oneEqual},{name:dh("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:wf.twoEqual},{name:dh("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:wf.threeEqual},{name:dh("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:wf.fourEqual},{name:dh("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:wf.fiveEqual},{name:dh("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:wf.sixEqual}];return!n.layout&&this.state.selectLayout?[React.createElement(Lh,{key:"placeholder",icon:"editor-table",label:n.columns?dh("Column Layout","genesis-blocks"):dh("Column Number","genesis-blocks"),instructions:n.columns?dh("Select a layout for this column.","genesis-blocks"):dh("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},n.columns?React.createElement(fh,null,React.createElement(wh,{"aria-label":dh("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},ho()(Yf[o],(function(t){var n=t.name,a=t.key,o=t.icon;return React.createElement(Th,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(Yh,{key:a,className:b()("gb-column-selector-button",a),isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o)))}))),React.createElement(Yh,{className:"gb-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},dh("Return to Column Selection","genesis-blocks"))):React.createElement(wh,{"aria-label":dh("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},ho()(i,(function(t){var n=t.name,a=t.key,o=t.icon,i=t.columns;return React.createElement(Th,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(Yh,{className:b()("gb-column-selector-button","gb-select-"+a),isSmall:!0,onClick:function(){r({columns:i,layout:1===i||5===i||6===i?a:null}),1===i&&e.setState({selectLayout:!1})}},o)))}))))]:[React.createElement(bh,{key:"controls"},React.createElement(yh,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),React.createElement(uh,a()({},this.props,{key:"inspector"})),React.createElement(Mf,a()({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),React.createElement("div",{className:b()("gb-layout-column-wrap-admin","gb-block-layout-column-gap-"+n.columnsGap,n.responsiveToggle?"gb-is-responsive-column":null),style:{maxWidth:n.columnMaxWidth?n.columnMaxWidth:null}},React.createElement(vh,{template:Sh(n.columns),templateLock:"all",allowedBlocks:Eh})))]}}]),n}(mh),Dh=hh([kh("backgroundColor",{textColor:"color"})])(xh);function Ch(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Rh=wp.element.Component,Oh=wp.blockEditor.InnerBlocks,Ph=function(e){p()(n,e);var t=Ch(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=b()(["gb-layout-column-wrap","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null]);return React.createElement(Mf,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(Oh.Content,null)))}}]),n}(Rh),jh={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 Hh(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 Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hh(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zh=wp.i18n.__;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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-columns",{title:zh("Advanced Columns","genesis-blocks"),description:zh("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[zh("column","genesis-blocks"),zh("grid","genesis-blocks"),zh("row","genesis-blocks")],attributes:Ah(Ah({},jh),{},{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}}),gb_settings_data:{gb_column_columns:{title:zh("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:zh("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:zh("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:zh("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:zh("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:zh("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:zh("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:zh("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:zh("Background Settings","genesis-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 React.createElement(Dh,e)},save:function(e){return React.createElement(Ph,e)}});var Nh=wp.i18n.__,Bh=wp.element.Component,Ih=wp.compose.compose,Wh=wp.blockEditor,Uh=Wh.InspectorControls,Vh=Wh.PanelColorSettings,Jh=Wh.withColors,Gh=Wh.ContrastChecker,qh=wp.components,$h=qh.PanelBody,Kh=qh.ToggleControl,Qh=qh.SelectControl,Zh=function(e){p()(n,e);var t=Fh(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.backgroundColor,r=t.setBackgroundColor,a=t.textColor,o=t.setTextColor,i=t.attributes,s=t.setAttributes,l=[{value:"px",label:Nh("Pixel (px)","genesis-blocks")},{value:"%",label:Nh("Percent (%)","genesis-blocks")},{value:"em",label:Nh("Em (em)","genesis-blocks")}];return React.createElement(Uh,{key:"inspector"},React.createElement(M,{id:"gb_column_inner_marginPadding"},React.createElement($h,{title:Nh("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Qh,{label:Nh("Margin Unit","genesis-blocks"),help:Nh("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Kh,{label:Nh("Sync Margin","genesis-blocks"),help:Nh("Top and bottom margins will have the same value.","genesis-blocks"),checked:i.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!i.marginSync})}}),i.marginSync?React.createElement(xm,{marginEnableVertical:!0,marginVerticalLabel:Nh("Margin Top/Bottom","genesis-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return s({margin:e})}}):React.createElement(xm,{marginEnableTop:!0,marginTop:i.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return s({marginTop:e})},marginEnableBottom:!0,marginBottom:i.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return s({marginBottom:e})}}),React.createElement("hr",null),React.createElement(Qh,{label:Nh("Padding Unit","genesis-blocks"),help:Nh("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Kh,{label:Nh("Sync Padding","genesis-blocks"),help:Nh("Padding on all sides will have the same value.","genesis-blocks"),checked:i.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!i.paddingSync})}}),i.paddingSync?React.createElement(pc,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return s({padding:e})}}):React.createElement(pc,{paddingEnableTop:!0,paddingTop:i.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:i.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:i.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return s({paddingLeft:e})}}))),React.createElement(M,{id:"gb_column_inner_colorSettings"},React.createElement(Vh,{title:Nh("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:Nh("Background Color","genesis-blocks")},{value:a.color,onChange:o,label:Nh("Text Color","genesis-blocks")}]},React.createElement(Gh,{textColor:a.color,backgroundColor:n.color}))),React.createElement(M,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Vf,this.props)))}}]),n}(Bh),Xh=Ih([Jh("backgroundColor",{textColor:"color"})])(Zh);function eg(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 tg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ng=function(e){p()(n,e);var t=tg(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eg(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(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},yf(n));return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()(this.props.className,"gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b.a.apply(void 0,["gb-block-layout-column-inner",r,a].concat(_f()(bf(n)))),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function rg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ag=wp.i18n.__,og=wp.compose.compose,ig=wp.element.Component,sg=wp.components.Toolbar,lg=wp.blockEditor,ug=lg.AlignmentToolbar,cg=lg.BlockControls,dg=lg.InnerBlocks,pg=lg.withColors,mg=function(e){p()(n,e);var t=rg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:ag("Vertical Align Top","genesis-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:ag("Vertical Align Middle","genesis-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:ag("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[React.createElement(cg,{key:"controls"},React.createElement(ug,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),React.createElement(sg,{controls:r})),React.createElement(Xh,a()({},this.props,{key:"inspector"})),React.createElement(ng,a()({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(dg,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}]),n}(ig),fg=og([pg("backgroundColor",{textColor:"color"})])(mg);function hg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var gg=wp.element.Component,_g=wp.blockEditor.InnerBlocks,bg=function(e){p()(n,e);var t=hg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(ng,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(_g.Content,null))}}]),n}(gg);function yg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var vg=function(e){p()(n,e);var t=yg(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,o={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?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()("gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b()("gb-block-layout-column-inner",r,a),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function kg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mg=wp.element.Component,Lg=wp.blockEditor.InnerBlocks,wg=function(e){p()(n,e);var t=kg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(vg,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Lg.Content,null))}}]),n}(Mg),Tg=[{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 React.createElement(wg,e)}}];n(371),n(372);function Yg(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 Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sg=wp.i18n.__;(0,wp.blocks.registerBlockType)("genesis-blocks/gb-column",{title:Sg("Column","genesis-blocks"),description:Sg("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[Sg("column","genesis-blocks"),Sg("layout","genesis-blocks"),Sg("row","genesis-blocks")],attributes:Eg(Eg({},jh),{},{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"}}),gb_settings_data:{gb_column_inner_marginPadding:{title:Sg("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:Sg("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:Sg("Background Image","genesis-blocks")}},edit:function(e){return React.createElement(fg,e)},save:function(e){return React.createElement(bg,e)},deprecated:Tg});var xg=wp.compose.createHigherOrderComponent((function(e){return function(t){return"genesis-blocks/gb-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?React.createElement(e,a()({},t,{className:"gb-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):React.createElement(e,t)}}),"withClientIdClassName");wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",xg);var Dg=n(18),Cg=n.n(Dg);function Rg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Og=wp.i18n.__,Pg=wp.element,jg=Pg.Component,Hg=Pg.Fragment,Ag=wp.components,zg=Ag.Button,Fg=Ag.Dashicon,Ng=Ag.Tooltip,Bg=function(e){p()(n,e);var t=Rg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return React.createElement(Hg,null,React.createElement("div",{key:"gb-layout-design-"+this.props.itemKey,className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(zg,{key:this.props.itemKey,className:"gb-layout-insert-button",isSmall:!0,onClick:function(){e.props.import(e.props.content,e.props.clientId)}},React.createElement("img",{src:this.props.image,alt:this.props.name})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},this.props.name,React.createElement(Ng,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?Og("Remove from Favorites","genesis-blocks"):Og("Add to Favorites","genesis-blocks")},React.createElement(zg,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},React.createElement(Fg,{icon:"heart",className:b()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}]),n}(jg);function Ig(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Wg=wp.i18n.__,Ug=wp.url.addQueryArgs,Vg=wp.element,Jg=Vg.Component,Gg=Vg.Fragment,qg=function(e){p()(n,e);var t=Ig(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return React.createElement(Gg,null,React.createElement("div",{className:"gb-layout-reusable"},React.createElement("div",null,React.createElement("a",{role:"button",key:this.props.itemKey,className:"gb-layout-insert-button",onClick:function(){e.props.import(e.props.content)}},this.props.name)),React.createElement("div",{className:"gb-layout-reusable-actions"},React.createElement("span",null,React.createElement("a",{href:Ug("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},Wg("Edit","genesis-blocks"))))))}}]),n}(Jg),$g=wp.blocks.rawHandler;function Kg(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,$g({HTML:e,mode:"BLOCKS"}))}var Qg=wp.element.useState;var Zg=wp.i18n.__,Xg=wp.components.Button;function e_(e){return React.createElement(React.Fragment,null,React.createElement("div",{className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(Xg,{className:"gb-layout-insert-button gb-layout-collection-button",isSmall:!0,onClick:function(){e.collectionsView.setCurrentView("collection"),e.collectionsView.setCurrentCollection(e.collectionSlug)}},React.createElement("div",{className:"gb-layout-collection-cover"},React.createElement("div",{className:"gb-layout-collection-label"},e.context.collections[e.collectionSlug].label)),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},Zg("Browse","genesis-blocks"))))))))}var t_=wp.i18n.__,n_=wp.components.ButtonGroup;function r_(e){var t,n,r,o,i,s,l,u=(n=Qg((t={view:"collections",collection:null}).view),r=Cg()(n,2),o=r[0],i=r[1],s=Qg(t.collection),l=Cg()(s,2),{currentView:o,setCurrentView:i,currentCollection:l[0],setCurrentCollection:l[1]});function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"layouts",n=[];for(var r in e.context[t]){var a=e.context[t][r];a.hasOwnProperty("collection")&&u.currentCollection===a.collection.slug&&n.push(React.createElement(Bg,{key:a.key,itemKey:a.key,name:a.name,image:a.image,import:Kg,content:a.content,context:e.context,clientId:e.clientId}))}return 0===n.length?"":React.createElement(React.Fragment,null,React.createElement("h3",{className:"gb-collection-type-title"},"layouts"===t?t_("Page Layouts","genesis-blocks"):"sections"===t?t_("Page Sections","genesis-blocks"):void 0),React.createElement(n_,{className:"gb-layout-choices","aria-label":t_("Layout Options in this Collection","genesis-blocks")},n))}return React.createElement("div",{className:"gb-collections"},React.createElement("div",{className:"gb-collections-header"},React.createElement("div",{className:"gb-collections-header-left"},"collection"!==u.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:function(){u.setCurrentView("collections")}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),t_("View All Collections ","genesis-blocks"))),"collections"===u.currentView?React.createElement("h2",{className:"gb-collection-title"},t_("Collections ","genesis-blocks")):"collection"===u.currentView?React.createElement("h2",{className:"gb-collection-title"},t_("Browsing ","genesis-blocks")+e.context.collections[u.currentCollection].label):void 0),React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://developer.wpengine.com/genesis-blocks/layouts-block/#collections",tabIndex:"0",className:"gb-collections-link"},React.createElement("span",{className:"dashicons dashicons-info"}),t_("Learn about Collections","genesis-blocks"))),React.createElement("div",{className:"gb-collections-body"},function(t){if("collections"!==u.currentView)return"";var n=[];for(var r in t)n.push(React.createElement(e_,a()({key:r,collectionSlug:r,collectionsView:u},e)));return React.createElement(n_,{className:"gb-layout-choices","aria-label":t_("Collections Available","genesis-blocks")},n)}(e.context.collections),"collection"!==u.currentView?"":React.createElement(React.Fragment,null,c("sections"),c("layouts"))))}function a_(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var o_=wp.compose.compose,i_=wp.blocks.rawHandler,s_=wp.data,l_=s_.withSelect,u_=s_.withDispatch,c_=wp.element,d_=c_.Component,p_=c_.Fragment,m_=function(e){p()(n,e);var t=a_(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"layoutTabContent",value:function(){return"gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(qg,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(r_,this.props):React.createElement(Bg,this.props)}},{key:"render",value:function(){return React.createElement(p_,null,this.layoutTabContent())}}]),n}(d_),f_=o_(l_((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,a=e("core/editor").canUserUseUnfilteredHTML;return{block:r(n),canUserUseUnfilteredHTML:a()}})),u_((function(e,t){var n=t.block,r=t.canUserUseUnfilteredHTML;return{import:function(t){return e("core/block-editor").replaceBlocks(n.clientId,i_({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:r}))}}})))(m_),h_=n(16),g_=n.n(h_),__=n(36),b_=n.n(__),y_=n(47),v_=n.n(y_);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var M_=wp.apiFetch,L_=Object(Nn.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),w_=function(e){p()(r,e);var t,n=k_(r);function r(){var e;l()(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),i()(v_()(e),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),e}return c()(r,[{key:"getFavoriteKeys",value:function(){return M_({path:"/genesisblocks/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 M_({path:"/genesisblocks/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 M_({path:"/genesisblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({genesis_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 M_({path:"/genesisblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"componentDidMount",value:(t=b_()(g_.a.mark((function e(){var t,n=this;return g_.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:"/genesisblocks/v1/layouts/all?filter=allowed"}).then(function(){var e=b_()(g_.a.mark((function e(r){var a,o,i,s,l;return g_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],o=[],i=[],s=[],l=[],Object.values(r).forEach((function(e){"layout"===e.type&&a.push(e),"section"===e.type&&o.push(e),"wp_block"===e.type&&i.push(e),e.hasOwnProperty("collection")&&(l.hasOwnProperty(e.collection.slug)||(l[e.collection.slug]=[],e.collection.image=e.image,l[e.collection.slug]=e.collection)),t.includes(e.key)&&s.push(e)})),n.setState({all:r,layouts:a,sections:o,favorites:s,favoriteKeys:t,reusableBlocks:i,collections:l});case 7: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 t.apply(this,arguments)})},{key:"render",value:function(){var e,t=this;return this.state.all?Bn.a.createElement(L_.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,collections:this.state.collections,toggleFavorite:(e=b_()(g_.a.mark((function e(n){var r,a;return g_.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 a=e.sent,t.setState({favorites:a,favoriteKeys:r}),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}},this.props.children):null}}]),r}(Nn.Component);function T_(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Y_=wp.i18n.__,E_=wp.url.addQueryArgs,S_=wp.element,x_=S_.Component,D_=S_.Fragment,C_=wp.components,R_=C_.ButtonGroup,O_=C_.TextControl,P_=C_.SelectControl,j_=function(e){p()(n,e);var t=T_(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return c()(n,[{key:"getLayoutArray",value:function(){var e=[];switch(this.props.currentTab){case"gb-layout-tab-layouts":e=this.props.context.layouts;break;case"gb-layout-tab-sections":e=this.props.context.sections;break;case"gb-layout-tab-favorites":e=this.props.context.favorites;break;case"gb-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks;break;case"gb-layout-tab-collections":e=this.props.context.collections}return e}},{key:"render",value:function(){var e=this,t=this.getLayoutArray(),n=["all"];if("gb-layout-tab-collections"!==this.props.currentTab)for(var r=0;r<t.length;r++)for(var o=0;o<t[r].category.length;o++)n.includes(t[r].category[o])||n.push(t[r].category[o]);var i=n.map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}})),s=this.props.data;return"gb-layout-tab-collections"===this.props.currentTab?React.createElement(r_,a()({key:this.props.data.key},this.props)):React.createElement(D_,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(D_,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(P_,{key:"layout-library-select-categories-"+this.props.clientId,label:Y_("Layout Categories","genesis-blocks"),value:this.state.category,options:i,onChange:function(t){return e.setState({category:t})}}),React.createElement(O_,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:Y_("Search Layouts","genesis-blocks"),onChange:function(t){return e.setState({search:t})}}))):React.createElement(D_,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,Y_("Reusable Blocks","genesis-blocks")),React.createElement("div",{className:"gb-layout-modal-header-reusable-actions"},React.createElement("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:E_("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},Y_("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(L_.Consumer,null,(function(t){return React.createElement(R_,{key:"layout-library-context-button-group-"+e.props.clientId,className:b()("gb-layout-choices","current-tab-"+e.props.currentTab,"full"===e.state.activeView?"gb-layout-view-full":null),"aria-label":Y_("Layout Options","genesis-blocks")},ho()(s,(function(n){var r=n.name,a=n.key,o=n.image,i=n.content,s=n.category,l=n.keywords;if(("all"===e.state.category||s.includes(e.state.category))&&(!e.state.search||l&&l.some((function(t){return t.toLowerCase().includes(e.state.search.toLowerCase())}))))return React.createElement(f_,{key:"layout-library-item-"+a,name:r,itemKey:a,image:o,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}]),n}(x_),H_=wp.i18n.__,A_=wp.element,z_=A_.Fragment,F_=A_.useState,N_=wp.components,B_=N_.Button,I_=N_.Dashicon,W_=N_.Modal,U_=N_.TabPanel,V_=wp.data.useDispatch;var J_=function(e){var t=F_("gb-layout-tab-sections"),n=Cg()(t,2),r=n[0],a=n[1],o=F_(!0),i=Cg()(o,2),s=i[0],l=i[1],u=V_("core/block-editor").removeBlock,c=[];return e.context.sections.length>0&&c.push({name:"gb-layout-tab-sections",title:H_("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),e.context.layouts.length>0&&c.push({name:"gb-layout-tab-layouts",title:H_("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),Object.keys(e.context.collections).length>0&&c.push({name:"gb-layout-tab-collections",title:H_("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),c.push({name:"gb-layout-tab-favorites",title:H_("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),e.context.reusableBlocks.length&&c.push({name:"gb-layout-tab-reusable-blocks",title:H_("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(z_,{key:"layout-modal-fragment-"+e.clientId},React.createElement(B_,{key:"layout-modal-library-button-"+e.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:function(){l(!0)}},H_("Layout Library","genesis-blocks")),s?React.createElement(W_,{key:"layout-modal-modal-component-"+e.clientId,className:"gb-layout-modal",title:H_("Layout Selector","genesis-blocks"),onRequestClose:function(){l(!1),a(null),u(e.clientId)}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement(I_,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},H_("Add Custom Layouts","genesis-blocks")),React.createElement("span",null,"·"),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/",target:"_blank",rel:"noopener noreferrer"},H_("Reusable Blocks","genesis-blocks")),React.createElement("a",{href:"https://www.research.net/r/XFQYFPP",target:"_blank",rel:"noopener noreferrer",className:"gb-pro-feedback"},React.createElement(I_,{icon:"admin-comments"})," ",H_("Send Feedback","genesis-blocks"))),React.createElement(U_,{key:"layout-modal-tabpanel-"+e.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:function(e){return a(e)},tabs:c},(function(t){var n=H_("Default tab content","genesis-blocks");if(t.name){if("gb-layout-tab-sections"===t.name)return[React.createElement(j_,{key:"layout-library-sections-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.sections,context:e.context})];if("gb-layout-tab-layouts"===t.name)return[React.createElement(j_,{key:"layout-library-layouts-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.layouts,context:e.context})];if("gb-layout-tab-collections"===t.name)return[React.createElement(j_,{key:"layout-library-collections-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.collections,context:e.context})];if("gb-layout-tab-favorites"===t.name)return[React.createElement(j_,{key:"layout-library-favorites-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.favorites,context:e.context})];if("gb-layout-tab-reusable-blocks"===t.name)return[React.createElement(j_,{key:"layout-library-reusable-blocks-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.reusableBlocks,context:e.context})]}return React.createElement("div",null,n)}))):null)};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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var q_=wp.i18n.__,$_=wp.components.Placeholder,K_=wp.element,Q_=K_.Component,Z_=K_.Fragment,X_=wp.blockEditor,eb=X_.BlockControls,tb=X_.BlockAlignmentToolbar,nb=function(e){p()(n,e);var t=G_(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[React.createElement(Z_,{key:this.props.clientId},React.createElement(eb,{key:"controls"},React.createElement(tb,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),React.createElement($_,{key:"placeholder",label:q_("Layout Selector","genesis-blocks"),instructions:q_("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(L_.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return React.createElement(J_,{clientId:r,context:e})}))))]}}]),n}(Q_),rb=(n(373),n(374),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-layouts",{title:rb("Layouts","genesis-blocks"),description:rb("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[rb("layout","genesis-blocks"),rb("column","genesis-blocks"),rb("section","genesis-blocks")],edit:function(e){return React.createElement(w_,null,React.createElement(nb,e))},save:function(){return null}});var ab=!1;function ob(){var e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}wp.data.subscribe((function(){!function(){if(ab)return;var e=document.querySelector(".edit-post-header__toolbar");if(!e)return;var t=document.createElement("div"),n='<div class="gb-toolbar-insert-layout">';n+='<button id="gbLayoutInsertButton" class="components-button components-icon-button" aria-label="'.concat(rb("Insert Layout","genesis-blocks"),'"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ').concat(rb("Layouts","genesis-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t),document.getElementById("gbLayoutInsertButton").addEventListener("click",ob),ab=!0}()}));n(375),n(376)},,,,,,,,,,,,,,,,,,,,,,,,,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,a,o,i,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},a=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},i=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,m=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var g=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 g&&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 _=m.now();t.unstable_now=function(){return m.now()-_}}var b=!1,y=null,v=-1,k=5,M=0;i=function(){return t.unstable_now()>=M},s=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"):k=0<e?Math.floor(1e3/e):5};var L=new MessageChannel,w=L.port2;L.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();M=e+k;try{y(!0,e)?w.postMessage(null):(b=!1,y=null)}catch(e){throw w.postMessage(null),e}}else b=!1},r=function(e){y=e,b||(b=!0,w.postMessage(null))},a=function(e,n){v=f((function(){e(t.unstable_now())}),n)},o=function(){h(v),v=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<S(a,t)))break e;e[r]=t,e[n]=a,n=r}}function Y(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,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],s=o+1,l=e[s];if(void 0!==i&&0>S(i,n))void 0!==l&&0>S(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==l&&0>S(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],D=[],C=1,R=null,O=3,P=!1,j=!1,H=!1;function A(e){for(var t=Y(D);null!==t;){if(null===t.callback)E(D);else{if(!(t.startTime<=e))break;E(D),t.sortIndex=t.expirationTime,T(x,t)}t=Y(D)}}function z(e){if(H=!1,A(e),!j)if(null!==Y(x))j=!0,r(F);else{var t=Y(D);null!==t&&a(z,t.startTime-e)}}function F(e,n){j=!1,H&&(H=!1,o()),P=!0;var r=O;try{for(A(n),R=Y(x);null!==R&&(!(R.expirationTime>n)||e&&!i());){var s=R.callback;if(null!==s){R.callback=null,O=R.priorityLevel;var l=s(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?R.callback=l:R===Y(x)&&E(x),A(n)}else E(x);R=Y(x)}if(null!==R)var u=!0;else{var c=Y(D);null!==c&&a(z,c.startTime-n),u=!1}return u}finally{R=null,O=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=s;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(){j||P||(j=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return Y(x)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=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=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,n,i){var s=t.unstable_now();if("object"==typeof i&&null!==i){var l=i.delay;l="number"==typeof l&&0<l?s+l:s,i="number"==typeof i.timeout?i.timeout:N(e)}else i=N(e),l=s;return e={id:C++,callback:n,priorityLevel:e,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>s?(e.sortIndex=l,T(D,e),null===Y(x)&&e===Y(D)&&(H?o():H=!0,a(z,l-s))):(e.sortIndex=i,T(x,e),j||P||(j=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();A(e);var n=Y(x);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},function(e,t,n){"use strict";var r=n(307);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}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:o,resetWarningCache:a};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(74);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(310);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(311);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(17),a=n(31),o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(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(o,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(207);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=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(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var a=t&&t.prototype instanceof c?t:c,o=Object.create(a.prototype),i=new M(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return w()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=y(i,n);if(s){if(s===u)continue;return s}}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=l(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),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function c(){}function d(){}function p(){}var m={};m[a]=function(){return this};var f=Object.getPrototypeOf,h=f&&f(f(L([])));h&&h!==t&&n.call(h,a)&&(m=h);var g=p.prototype=c.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var r;this._invoke=function(a,o){function i(){return new t((function(r,i){!function r(a,o,i,s){var u=l(e[a],e,o);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,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(u.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function y(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,y(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=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=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 o.next=o}}return{next:w}}function w(){return{value:void 0,done:!0}}return d.prototype=g.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(g),e},e.awrap=function(e){return{__await:e}},_(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new b(s(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(g),g[i]="Generator",g[a]=function(){return this},g.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=L,M.prototype={constructor:M,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(k),!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 a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.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),k(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 a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(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(10),a=n.n(r),o=n(8),i=n.n(o),s=n(1),l=n.n(s),u=n(2),c=n.n(u),d=n(3),p=n.n(d),m=n(4),f=n.n(m),h=n(0),g=n.n(h),_=n(5),b=n.n(_);function y(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var v=wp.element.Component,k=wp.hooks.applyFilters,M=function(e){p()(n,e);var t=y(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(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 k("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}]),n}(v);function L(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=wp.i18n.__,T=wp.element.Component,Y=wp.blockEditor,E=Y.InspectorControls,S=Y.PanelColorSettings,x=wp.components,D=x.PanelBody,C=x.RangeControl,R=x.SelectControl,O=function(e){p()(n,e);var t=L(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:"left-aligned",label:w("Left Aligned","genesis-blocks")},{value:"right-aligned",label:w("Right Aligned","genesis-blocks")}],n=this.props,r=n.attributes,a=r.testimonialBackgroundColor,o=r.testimonialTextColor,i=r.testimonialFontSize,s=r.testimonialCiteAlign,l=n.setAttributes;return React.createElement(E,{key:"inspector"},React.createElement(D,null,React.createElement(M,{id:"gb_testimonial_testimonialFontSize"},React.createElement(C,{label:w("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({testimonialFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(R,{label:w("Cite Alignment","genesis-blocks"),description:w("Left or right align the cite name and title.","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({testimonialCiteAlign:t})}}))),React.createElement(M,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(S,{title:w("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({testimonialBackgroundColor:e})},label:w("Background Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_testimonial_testimonialTextColor"},React.createElement(S,{title:w("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({testimonialTextColor:e})},label:w("Text Color","genesis-blocks")}]})))}}]),n}(T);function P(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(e){p()(n,e);var t=P(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialImgURL,n=e.testimonialBackgroundColor,r=e.testimonialTextColor,a=e.testimonialFontSize,o=e.testimonialCiteAlign;return React.createElement("div",{style:{backgroundColor:n||"#f2f2f2",color:r||"#32373c"},className:b()(this.props.className,o,{"gb-has-avatar":t},"gb-font-size-"+a,"gb-block-testimonial")},this.props.children)}}]),n}(wp.element.Component),H={};H.upload=React.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.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"}),React.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"}),React.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"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));var A=H;function z(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 F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var B=wp.i18n.__,I=wp.element,W=I.Component,U=I.Fragment,V=wp.blockEditor,J=V.RichText,G=V.AlignmentToolbar,q=V.BlockControls,$=V.MediaUpload,K=wp.components,Q=K.Button,Z=K.Dashicon,X=["image"],ee=function(e){p()(n,e);var t=N(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.testimonialName,o=n.testimonialTitle,i=n.testimonialContent,s=n.testimonialAlignment,l=n.testimonialImgURL,u=n.testimonialImgID,c=n.testimonialImgAlt,d=n.testimonialTextColor,p=t.setAttributes,m=function(){p({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(q,{key:"controls"},React.createElement(G,{value:s,onChange:function(e){return p({testimonialAlignment:e})}})),React.createElement(O,a()({key:"gb-testimonial-inspector-"+this.props.clientId},F({setAttributes:p},this.props))),React.createElement(j,a()({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(J,{tagName:"div",multiline:"p",placeholder:B("Add testimonial text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-testimonial-text"),style:{textAlign:s},onChange:function(e){return p({testimonialContent:e})}}),React.createElement("div",{className:"gb-testimonial-info"},React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement($,{buttonProps:{className:"change-image"},onSelect:function(e){return p({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt})},allowed:X,type:"image",value:u,render:function(e){var t=e.open;return React.createElement(U,null,React.createElement(Q,{className:u?"gb-change-image":"gb-add-image",onClick:t},u?React.createElement("img",{className:"gb-testimonial-avatar",src:l,alt:c||null}):A.upload),u&&React.createElement(Q,{className:"gb-remove-image",onClick:m},React.createElement(Z,{icon:"dismiss"})))}}))),React.createElement(J,{tagName:"h2",placeholder:B("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-testimonial-name",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialName:t})}}),React.createElement(J,{tagName:"small",placeholder:B("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,className:"gb-testimonial-title",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialTitle:t})}})))]}}]),n}(W);function te(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ne=wp.element.Component,re=wp.blockEditor.RichText,ae=function(e){p()(n,e);var t=te(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialName,n=e.testimonialTitle,r=e.testimonialContent,a=e.testimonialAlignment,o=e.testimonialImgURL,i=e.testimonialImgAlt,s=e.testimonialTextColor;return React.createElement(j,this.props,React.createElement(re.Content,{tagName:"div",className:"gb-testimonial-text",style:{textAlign:a},value:r}),React.createElement("div",{className:"gb-testimonial-info"},o&&React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement("img",{className:"gb-testimonial-avatar",src:o,alt:i||null}))),t&&React.createElement(re.Content,{tagName:"h2",className:"gb-testimonial-name",style:{color:s||"#32373c"},value:t}),n&&React.createElement(re.Content,{tagName:"small",className:"gb-testimonial-title",style:{color:s||"#32373c"},value:n})))}}]),n}(ne),oe=(n(344),n(346),wp.i18n.__);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-testimonial",{title:oe("Testimonial","genesis-blocks"),description:oe("Add a user testimonial with a name and title.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[oe("testimonial","genesis-blocks"),oe("quote","genesis-blocks"),oe("atomic","genesis-blocks")],attributes:{testimonialName:{type:"array",selector:".gb-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".gb-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".gb-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},gb_settings_data:{gb_testimonial_testimonialFontSize:{title:oe("Font Size","genesis-blocks")},gb_testimonial_testimonialCiteAlign:{title:oe("Cite Alignment","genesis-blocks")},gb_testimonial_testimonialBackgroundColor:{title:oe("Background Color","genesis-blocks")},gb_testimonial_testimonialTextColor:{title:oe("Text Color","genesis-blocks")}},edit:function(e){return React.createElement(ee,e)},save:function(e){return React.createElement(ae,e)}});var se=wp.i18n.__,le=wp.element.Component,ue=wp.blockEditor,ce=ue.InspectorControls,de=ue.PanelColorSettings,pe=wp.components,me=pe.PanelBody,fe=pe.RangeControl,he=pe.SelectControl,ge=pe.TextControl,_e=function(e){p()(n,e);var t=ie(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.profileFontSize,r=t.profileBackgroundColor,a=t.profileTextColor,o=t.profileLinkColor,i=t.twitter,s=t.facebook,l=t.instagram,u=t.pinterest,c=t.google,d=t.youtube,p=t.github,m=t.linkedin,f=t.wordpress,h=t.email,g=t.website,_=t.profileAvatarShape,b=this.props.setAttributes,y=[{value:"square",label:se("Square","genesis-blocks")},{value:"round",label:se("Round","genesis-blocks")}];return React.createElement(ce,{key:"inspector"},React.createElement(me,null,React.createElement(M,{id:"gb_author_profile_profileFontSize"},React.createElement(fe,{label:se("Font Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_author_profile_profileAvatarShape"},React.createElement(he,{label:se("Avatar Shape","genesis-blocks"),description:se("Choose between a round or square avatar shape.","genesis-blocks"),options:y,value:_,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),React.createElement(M,{id:"gb_author_profile_profileBackgroundColor"},React.createElement(de,{title:se("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return b({profileBackgroundColor:e})},label:se("Background Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_author_profile_profileTextColor"},React.createElement(de,{title:se("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return b({profileTextColor:e})},label:se("Text Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_author_profile_profileLinkColor"},React.createElement(de,{title:se("Social Link Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return b({profileLinkColor:e})},label:se("Social Link Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_author_profile_socialLinks"},React.createElement(me,{title:se("Social Links","genesis-blocks"),initialOpen:!1},React.createElement("p",null,se("Add links to your social media site and they will appear in the bottom of the profile box.","genesis-blocks")),React.createElement(ge,{label:se("Twitter URL","genesis-blocks"),type:"url",value:i,onChange:function(t){return e.props.setAttributes({twitter:t})}}),React.createElement(ge,{label:se("Facebook URL","genesis-blocks"),type:"url",value:s,onChange:function(t){return e.props.setAttributes({facebook:t})}}),React.createElement(ge,{label:se("Instagram URL","genesis-blocks"),type:"url",value:l,onChange:function(t){return e.props.setAttributes({instagram:t})}}),React.createElement(ge,{label:se("Pinterest URL","genesis-blocks"),type:"url",value:u,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),React.createElement(ge,{label:se("Google URL","genesis-blocks"),type:"url",value:c,onChange:function(t){return e.props.setAttributes({google:t})}}),React.createElement(ge,{label:se("YouTube URL","genesis-blocks"),type:"url",value:d,onChange:function(t){return e.props.setAttributes({youtube:t})}}),React.createElement(ge,{label:se("Github URL","genesis-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({github:t})}}),React.createElement(ge,{label:se("LinkedIn URL","genesis-blocks"),type:"url",value:m,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),React.createElement(ge,{label:se("WordPress Profile URL","genesis-blocks"),type:"url",value:f,onChange:function(t){return e.props.setAttributes({wordpress:t})}}),React.createElement(ge,{label:se("Email URL","genesis-blocks"),help:se('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"genesis-blocks"),type:"url",value:h,onChange:function(t){return e.props.setAttributes({email:t})}}),React.createElement(ge,{label:se("Website URL","genesis-blocks"),type:"url",value:g,onChange:function(t){return e.props.setAttributes({website:t})}}))))}}]),n}(le);function be(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ye=function(e){p()(n,e);var t=be(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,o=e.profileTextColor,i=e.profileAvatarShape;return React.createElement("div",{style:{backgroundColor:a,color:o},className:b()(this.props.className,t,i,{"gb-has-avatar":n},"gb-font-size-"+r,"gb-block-profile","gb-profile-columns")},this.props.children)}}]),n}(wp.element.Component);function ve(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ke=wp.i18n.__,Me=function(e){p()(n,e);var t=ve(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},ke("Website","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},ke("Twitter","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},ke("Facebook","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},ke("Instagram","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},ke("Pinterest","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},ke("Google","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},ke("YouTube","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},ke("LinkedIn","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},ke("Github","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},ke("WordPress","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},ke("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}]),n}(wp.element.Component);function Le(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var we=function(e){p()(n,e);var t=Le(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}]),n}(wp.element.Component);function Te(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Se=wp.i18n.__,xe=wp.element,De=xe.Component,Ce=xe.Fragment,Re=wp.blockEditor,Oe=Re.RichText,Pe=Re.AlignmentToolbar,je=Re.BlockControls,He=Re.MediaUpload,Ae=wp.components,ze=Ae.Button,Fe=Ae.Dashicon,Ne=["image"],Be=function(e){p()(n,e);var t=Ee(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.profileName,r=t.profileTitle,o=t.profileContent,i=t.profileAlignment,s=t.profileImgURL,l=t.profileImgID,u=t.profileImgAlt,c=t.profileTextColor,d=e.setAttributes;return[React.createElement(je,{key:"controls"},React.createElement(Pe,{value:i,onChange:function(e){return d({profileAlignment:e})}})),React.createElement(_e,a()({key:"gb-author-profile-inspector-"+this.props.clientId},Ye({setAttributes:d},this.props))),React.createElement(ye,a()({key:"gb-author-profile-"+this.props.clientId},this.props),React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement(He,{buttonProps:{className:"change-image"},onSelect:function(e){return d({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt})},allowed:Ne,type:"image",value:l,render:function(e){var t=e.open;return React.createElement(Ce,null,React.createElement(ze,{onClick:t},l?React.createElement("img",{className:b()("gb-profile-avatar","gb-change-image","wp-image-"+l),src:s,alt:u}):A.upload),l&&React.createElement(ze,{className:"gb-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(Fe,{icon:"dismiss"})))}}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},React.createElement(Oe,{tagName:"h2",placeholder:Se("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"gb-profile-name",style:{color:c},onChange:function(e){return d({profileName:e})}}),React.createElement(Oe,{tagName:"p",placeholder:Se("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-profile-title",style:{color:c},onChange:function(e){return d({profileTitle:e})}}),React.createElement(Oe,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Se("Add profile text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:function(e){return d({profileContent:e})}}),React.createElement(Me,this.props)))]}}]),n}(De);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var We=wp.element.Component,Ue=wp.blockEditor.RichText,Ve=function(e){p()(n,e);var t=Ie(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileImgAlt,i=e.profileImgID,s=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:b()("gb-profile-avatar","wp-image-"+i),src:a,alt:o}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(Ue.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(Ue.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(Ue.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Me,this.props)))}}]),n}(We);n(347),n(348);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ge=wp.element.Component,qe=wp.blockEditor.RichText,$e=function(e){p()(n,e);var t=Je(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("div",{className:"gb-profile-image-square"},React.createElement("img",{className:"gb-profile-avatar",src:a,alt:"avatar"}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(qe.Content,{tagName:"h2",className:"gb-profile-name",style:{color:o},value:t}),n&&React.createElement(qe.Content,{tagName:"p",className:"gb-profile-title",style:{color:o},value:n}),r&&React.createElement(qe.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Me,this.props)))}}]),n}(Ge),Ke=[{attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-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 React.createElement($e,e)}}],Qe=wp.i18n.__;function Ze(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-profile-box",{title:Qe("Profile Box","genesis-blocks"),description:Qe("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[Qe("author","genesis-blocks"),Qe("profile","genesis-blocks"),Qe("atomic","genesis-blocks"),Qe("genesis","genesis-blocks")],attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-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"}},gb_settings_data:{gb_author_profile_profileFontSize:{title:Qe("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:Qe("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:Qe("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:Qe("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:Qe("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:Qe("Social Links","genesis-blocks")}},edit:function(e){return React.createElement(Be,e)},save:function(e){return React.createElement(Ve,e)},deprecated:Ke});var Xe=wp.i18n.__,et=wp.element.Component,tt=wp.blockEditor,nt=tt.PanelColorSettings,rt=tt.InspectorControls,at=wp.components,ot=at.PanelBody,it=at.RangeControl,st=at.SelectControl,lt=function(e){p()(n,e);var t=Ze(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:null,label:Xe("Always Show","genesis-blocks")},{value:"gb-dismissable",label:Xe("Dismissible","genesis-blocks")}],n=this.props.attributes,r=n.noticeBackgroundColor,a=n.noticeTextColor,o=n.noticeTitleColor,i=n.noticeFontSize,s=n.noticeDismiss,l=this.props.setAttributes;return React.createElement(rt,{key:"inspector"},React.createElement(ot,null,React.createElement(M,{id:"gb_notice_noticeFontSize"},React.createElement(it,{label:Xe("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_notice_noticeDismiss"},React.createElement(st,{label:Xe("Notice Display","genesis-blocks"),description:Xe("Do you want the message to always show or dismissible?","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({noticeDismiss:t})}}))),React.createElement(M,{id:"gb_notice_colorSettings"},React.createElement(nt,{title:Xe("Notice Color","genesis-blocks"),colorValue:r,initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return l({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:Xe("Notice Color","genesis-blocks")}]}),React.createElement(nt,{title:Xe("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({noticeTitleColor:e})},label:Xe("Title Color","genesis-blocks")}]}),React.createElement(nt,{title:Xe("Text Color","genesis-blocks"),colorValue:a,initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({noticeTextColor:e})},label:Xe("Text Color","genesis-blocks")}]})))}}]),n}(et),ut=n(209),ct=n.n(ut);function dt(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var pt=function(e){p()(n,e);var t=dt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.noticeTitle,r=t.noticeAlignment,a=t.noticeBackgroundColor,o=t.noticeTextColor,i=t.noticeFontSize,s=t.noticeDismiss,l=(e=s+n,ct()(e).substr(0,6));return React.createElement("div",{style:{color:o,textAlign:r,backgroundColor:a},className:b()(this.props.className,s,"gb-font-size-"+i,"gb-block-notice"),"data-id":l},this.props.children)}}]),n}(wp.element.Component);function mt(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ft=function(e){p()(n,e);var t=mt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes.noticeTitleColor;return React.createElement("div",{className:"gb-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}]),n}(wp.element.Component),ht={};ht.upload=React.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.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"}),React.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"}),React.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"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),ht.dismiss=React.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},React.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 gt=ht;n(349),n(350);function _t(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?_t(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var vt=wp.i18n.__,kt=wp.element.Component,Mt=wp.blocks.registerBlockType,Lt=wp.blockEditor,wt=Lt.RichText,Tt=Lt.AlignmentToolbar,Yt=Lt.BlockControls,Et=function(e){p()(n,e);var t=yt(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.noticeTitle,r=t.noticeContent,o=t.noticeAlignment,i=t.noticeBackgroundColor,s=t.noticeTitleColor,l=t.noticeDismiss,u=e.setAttributes;return[React.createElement(Yt,{key:"controls"},React.createElement(Tt,{value:o,onChange:function(e){return u({noticeAlignment:e})}})),React.createElement(lt,a()({key:"gb-notice-inspector-"+this.props.clientId},bt({setAttributes:u},this.props))),React.createElement(pt,a()({key:"gb-notice-noticebox-"+this.props.clientId},this.props),l&&"gb-dismissable"===l&&React.createElement(ft,this.props,gt.dismiss),React.createElement(wt,{tagName:"p",placeholder:vt("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:b()("gb-notice-title"),style:{color:s},onChange:function(e){return u({noticeTitle:e})}}),React.createElement(wt,{tagName:"div",multiline:"p",placeholder:vt("Add notice text…","genesis-blocks"),value:r,className:b()("gb-notice-text"),style:{borderColor:i},onChange:function(e){return u({noticeContent:e})}}))]}}]),n}(kt);function St(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Mt("genesis-blocks/gb-notice",{title:vt("Notice","genesis-blocks"),description:vt("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[vt("notice","genesis-blocks"),vt("message","genesis-blocks"),vt("atomic","genesis-blocks")],attributes:{noticeTitle:{type:"string",selector:".gb-notice-title"},noticeContent:{type:"array",selector:".gb-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:""}},gb_settings_data:{gb_notice_noticeFontSize:{title:vt("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:vt("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:vt("Notice Color","genesis-blocks")}},edit:Et,save:function(e){var t=e.attributes,n=t.noticeTitle,r=t.noticeContent,a=t.noticeBackgroundColor,o=t.noticeTitleColor,i=t.noticeDismiss;return React.createElement(pt,e,i&&"gb-dismissable"===i&&React.createElement(ft,e,gt.dismiss),n&&React.createElement("div",{className:"gb-notice-title",style:{color:o}},React.createElement(wt.Content,{tagName:"p",value:n})),r&&React.createElement(wt.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:a},value:r}))}});var xt=wp.i18n.__,Dt=wp.element.Component,Ct=wp.blockEditor.InspectorControls,Rt=wp.components,Ot=Rt.RangeControl,Pt=Rt.SelectControl,jt=Rt.PanelBody,Ht=function(e){p()(n,e);var t=St(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapFontSize,r=t.dropCapStyle,a=[{value:"gb-drop-cap-letter",label:xt("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:xt("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:xt("Border","genesis-blocks")}];return React.createElement(Ct,{key:"inspector"},React.createElement(jt,null,React.createElement(M,{id:"gb_dropcap_dropCapFontSize"},React.createElement(Ot,{label:xt("Drop Cap Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),React.createElement(M,{id:"gb_dropcap_dropCapStyle"},React.createElement(Pt,{label:xt("Drop Cap Style","genesis-blocks"),description:xt("Choose the style of the drop cap in your paragraph","genesis-blocks"),options:a,value:r,onChange:function(t){return e.props.setAttributes({dropCapStyle:t})}}))))}}]),n}(Dt);function At(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var zt=function(e){p()(n,e);var t=At(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.dropCapAlignment,n=e.dropCapTextColor,r=e.dropCapFontSize,a=e.dropCapStyle;return React.createElement("div",{style:{color:n,textAlign:t},className:b()(this.props.className,a,"gb-font-size-"+r,"gb-block-drop-cap")},this.props.children)}}]),n}(wp.element.Component);n(351),n(352);function Ft(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Nt=wp.i18n.__,Bt=wp.element.Component,It=wp.blocks.registerBlockType,Wt=wp.blockEditor,Ut=Wt.RichText,Vt=Wt.AlignmentToolbar,Jt=Wt.BlockControls,Gt=function(e){p()(n,e);var t=Ft(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,o=t.dropCapFontSize;return[React.createElement(Jt,{key:"controls"},React.createElement(Vt,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),React.createElement(Ht,a()({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(zt,a()({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(Ut,{tagName:"div",multiline:"p",placeholder:Nt("Add paragraph text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-drop-cap-text","gb-font-size-"+o),onChange:function(t){return e.props.setAttributes({dropCapContent:t})}}))]}}]),n}(Bt);It("genesis-blocks/gb-drop-cap",{title:Nt("Drop Cap","genesis-blocks"),description:Nt("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[Nt("drop cap","genesis-blocks"),Nt("quote","genesis-blocks"),Nt("genesis","genesis-blocks")],attributes:{dropCapContent:{type:"array",selector:".gb-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"}},gb_settings_data:{gb_dropcap_dropCapFontSize:{title:Nt("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:Nt("Drop Cap Style","genesis-blocks")}},edit:Gt,save:function(e){var t=e.attributes.dropCapContent;return React.createElement(zt,e,t&&React.createElement(Ut.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});var qt=wp.i18n.__,$t=wp.element.Fragment,Kt=wp.components,Qt=Kt.SelectControl,Zt=Kt.ToggleControl,Xt=wp.blockEditor.PanelColorSettings;function en(e){var t=e.enableButtonBackgroundColor,n=e.buttonBackgroundColor,r=e.onChangeButtonColor,a=void 0===r?function(){}:r,o=e.enableButtonTextColor,i=e.buttonTextColor,s=e.onChangeButtonTextColor,l=void 0===s?function(){}:s,u=e.enableButtonSize,c=e.buttonSize,d=e.onChangeButtonSize,p=void 0===d?function(){}:d,m=e.enableButtonShape,f=e.buttonShape,h=e.onChangeButtonShape,g=void 0===h?function(){}:h,_=e.enableButtonTarget,b=e.buttonTarget,y=e.onChangeButtonTarget,v=void 0===y?function(){}:y,k=[{value:"gb-button-size-small",label:qt("Small","genesis-blocks")},{value:"gb-button-size-medium",label:qt("Medium","genesis-blocks")},{value:"gb-button-size-large",label:qt("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:qt("Extra Large","genesis-blocks")}],L=[{value:"gb-button-shape-square",label:qt("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:qt("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:qt("Circular","genesis-blocks")}];return React.createElement($t,null,React.createElement(M,{id:"gb_button_buttonOptions"},!1!==_&&React.createElement(Zt,{label:qt("Open link in new window","genesis-blocks"),checked:b,onChange:v}),!1!==u&&React.createElement(Qt,{selected:c,label:qt("Button Size","genesis-blocks"),value:c,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:p}),!1!==m&&React.createElement(Qt,{label:qt("Button Shape","genesis-blocks"),value:f,options:L.map((function(e){return{value:e.value,label:e.label}})),onChange:g}),!1!==t&&React.createElement(Xt,{title:qt("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:a,label:qt("Button Color","genesis-blocks")}]}),!1!==o&&React.createElement(Xt,{title:qt("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:l,label:qt("Button Text Color","genesis-blocks")}]})))}function tn(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}wp.i18n.__;var nn=wp.element.Component,rn=wp.blockEditor.InspectorControls,an=wp.components.PanelBody,on=function(e){p()(n,e);var t=tn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonBackgroundColor,n=e.buttonTextColor,r=e.buttonSize,a=e.buttonShape,o=e.buttonTarget,i=this.props.setAttributes;return React.createElement(rn,{key:"inspector"},React.createElement(an,null,React.createElement(en,{buttonTarget:o,onChangeButtonTarget:function(e){return i({buttonTarget:!o})},buttonSize:r,onChangeButtonSize:function(e){return i({buttonSize:e})},buttonShape:a,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})}})))}}]),n}(nn);function sn(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ln=function(e){p()(n,e);var t=sn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:b()(this.props.className,"gb-block-button")},this.props.children)}}]),n}(wp.element.Component);n(353),n(354);function un(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var cn=wp.i18n.__,dn=wp.element.Component,pn=wp.blocks.registerBlockType,mn=wp.blockEditor,fn=mn.RichText,hn=mn.AlignmentToolbar,gn=mn.BlockControls,_n=mn.URLInput,bn=wp.components,yn=bn.Button,vn=bn.Dashicon,kn=bn.Icon,Mn=function(e){p()(n,e);var t=un(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=e.isSelected,d=e.setAttributes;return[React.createElement(gn,{key:"controls"},React.createElement(hn,{value:o,onChange:function(e){d({buttonAlignment:e})}})),React.createElement(on,a()({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(ln,a()({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(fn,{tagName:"span",placeholder:cn("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:b()("gb-button",u,l),style:{color:s||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),c&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(vn,{icon:"admin-links"}),React.createElement(_n,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),React.createElement(yn,{label:cn("Apply","genesis-blocks"),type:"submit"},React.createElement(kn,{icon:"editor-break"})))]}}]),n}(dn);function Ln(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}pn("genesis-blocks/gb-button",{title:cn("Button","genesis-blocks"),description:cn("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[cn("button","genesis-blocks"),cn("link","genesis-blocks"),cn("genesis","genesis-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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},gb_settings_data:{gb_button_buttonOptions:{title:cn("Button Options","genesis-blocks")}},edit:Mn,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget;return React.createElement(ln,e,n&&React.createElement("a",{href:r,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o||"#ffffff",backgroundColor:a||"#3373dc"}},React.createElement(fn.Content,{value:n})))}});var wn=wp.i18n.__,Tn=wp.element,Yn=Tn.Component,En=Tn.Fragment,Sn=wp.blockEditor,xn=Sn.InspectorControls,Dn=Sn.PanelColorSettings,Cn=wp.components,Rn=Cn.PanelBody,On=Cn.RangeControl,Pn=Cn.ToggleControl,jn=Cn.SelectControl,Hn=function(e){p()(n,e);var t=Ln(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.spacerHeight,a=n.spacerDivider,o=n.spacerDividerStyle,i=n.spacerDividerColor,s=n.spacerDividerHeight,l=t.setAttributes,u=[{value:"gb-divider-solid",label:wn("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:wn("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:wn("Dotted","genesis-blocks")}];return React.createElement(xn,{key:"inspector"},React.createElement(Rn,null,React.createElement(M,{id:"gb_spacer_spacerHeight"},React.createElement(On,{label:wn("Spacer Height","genesis-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),React.createElement(M,{id:"gb_spacer_spacerDivider"},React.createElement(Pn,{label:wn("Add Divider","genesis-blocks"),checked:a,onChange:function(){return e.props.setAttributes({spacerDivider:!a})}}))),a?React.createElement(En,null,React.createElement(Rn,null,React.createElement(M,{id:"gb_spacer_spacerDividerStyle"},React.createElement(jn,{label:wn("Divider Style","genesis-blocks"),value:o,options:u.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),React.createElement(M,{id:"gb_spacer_spacerDividerHeight"},React.createElement(On,{label:wn("Divider Height","genesis-blocks"),value:s||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),React.createElement(M,{id:"gb_spacer_dividerColor"},React.createElement(Dn,{title:wn("Divider Color","genesis-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 l({spacerDividerColor:e})},label:wn("Divider Color","genesis-blocks")}]}))):null)}}]),n}(Yn);function An(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var zn,Fn=function(e){p()(n,e);var t=An(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.spacerDivider,n=e.spacerDividerStyle,r=e.spacerDividerColor,a=e.spacerDividerHeight;return React.createElement("div",{style:{color:r},className:b()(this.props.className,"gb-block-spacer",n,{"gb-spacer-divider":t},"gb-divider-size-"+a)},this.props.children)}}]),n}(wp.element.Component),Nn=n(9),Bn=n.n(Nn),In=(zn=function(e,t){return(zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}zn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Wn=function(){return(Wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Un={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"}},Vn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return In(t,e),t.prototype.render=function(){return Nn.createElement("div",{className:this.props.className||"",style:Wn(Wn({position:"absolute",userSelect:"none"},Un[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(Nn.PureComponent),Jn=n(14),Gn=n.n(Jn),qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$n=function(){return($n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Kn={width:"auto",height:"auto"},Qn=Gn()((function(e,t,n){return Math.max(Math.min(e,n),t)})),Zn=Gn()((function(e,t){return Math.round(e/t)*t})),Xn=Gn()((function(e,t){return new RegExp(e,"i").test(t)})),er=Gn()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n}),0),a=Math.abs(t[r]-e);return 0===n||a<n?t[r]:e})),tr=Gn()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),nr=Gn()((function(e){return"auto"===(e=e.toString())||tr(e,"px")||tr(e,"%")||tr(e,"vh")||tr(e,"vw")||tr(e,"vmax")||tr(e,"vmin")?e:e+"px"})),rr=function(e,t,n,r){if(e&&"string"==typeof e){if(tr(e,"%"))return t*(Number(e.replace("%",""))/100);if(tr(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(tr(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},ar=Gn()((function(e,t,n,r,a,o,i){return r=rr(r,e.width,t,n),a=rr(a,e.height,t,n),o=rr(o,e.width,t,n),i=rr(i,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===a?void 0:Number(a),minWidth:void 0===o?void 0:Number(o),minHeight:void 0===i?void 0:Number(i)}})),or=["as","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","snapGap"],ir=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,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},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return qn(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Kn},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){var e=this.parentNode;if(e)for(var t=0,n=[].slice.call(e.children);t<n.length;t++){var r=n[t];if(r.classList.contains("__resizable_base__"))return r}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(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=a}return{width:e,height:t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"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]&&tr(e.propsSize[t].toString(),"%")){if(tr(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 nr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?nr(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?nr(t.height):n("height")}},enumerable:!0,configurable:!0}),t.prototype.getParentSize=function(){if(!this.base||!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=!1,t=this.parentNode.style.flexWrap,n=this.base.style.minWidth;"wrap"!==t&&(e=!0,this.parentNode.style.flexWrap="wrap"),this.base.style.position="relative",this.base.style.minWidth="100%";var r={width:this.base.offsetWidth,height:this.base.offsetHeight};return this.base.style.position="absolute",e&&(this.parentNode.style.flexWrap=t),this.base.style.minWidth=n,r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0});var t=this.parentNode;if(t&&!this.base){var n=this.window.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)}}},t.prototype.componentWillUnmount=function(){if(this.window){this.unbindEvents();var e=this.parentNode;if(!this.base||!e)return;if(!e||!this.base)return;e.removeChild(this.base)}},t.prototype.createSizeForCssProperty=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"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),a=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}}else if("window"===this.props.bounds){if(this.window){r=this.window.innerWidth-this.resizableLeft,a=this.window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<a?t:a}}else if(this.props.bounds){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),a=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,a=this.state,o=a.direction,i=a.original,s=this.props,l=s.lockAspectRatio,u=s.lockAspectRatioExtraHeight,c=s.lockAspectRatioExtraWidth,d=i.width,p=i.height,m=u||0,f=c||0;return Xn("right",o)&&(d=i.width+(e-i.x)*r/n,l&&(p=(d-f)/this.ratio+m)),Xn("left",o)&&(d=i.width-(e-i.x)*r/n,l&&(p=(d-f)/this.ratio+m)),Xn("bottom",o)&&(p=i.height+(t-i.y)*r/n,l&&(d=(p-m)*this.ratio+f)),Xn("top",o)&&(p=i.height-(t-i.y)*r/n,l&&(d=(p-m)*this.ratio+f)),{newWidth:d,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var a=this.props,o=a.lockAspectRatio,i=a.lockAspectRatioExtraHeight,s=a.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,u=void 0===n.width||n.width<0?e:n.width,c=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,p=i||0,m=s||0;if(o){var f=(c-p)*this.ratio+m,h=(d-p)*this.ratio+m,g=(l-m)/this.ratio+p,_=(u-m)/this.ratio+p,b=Math.max(l,f),y=Math.min(u,h),v=Math.max(c,g),k=Math.min(d,_);e=Qn(e,b,y),t=Qn(t,v,k)}else e=Qn(e,l,u),t=Qn(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,o=r.top;this.resizableLeft=a,this.resizableTop=o}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,a=0;if(e.nativeEvent instanceof this.window.MouseEvent){if(r=e.nativeEvent.clientX,a=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof this.window.TouchEvent&&(r=e.nativeEvent.touches[0].clientX,a=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;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.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var i=this.parentNode;if(i){var s=this.window.getComputedStyle(i).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:$n($n({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){var t=this.props,n=t.maxWidth,r=t.maxHeight,a=t.minWidth,o=t.minHeight,i=e instanceof this.window.MouseEvent?e.clientX:e.touches[0].clientX,s=e instanceof this.window.MouseEvent?e.clientY:e.touches[0].clientY,l=this.state,u=l.direction,c=l.original,d=l.width,p=l.height,m=this.getParentSize(),f=ar(m,this.window.innerWidth,this.window.innerHeight,n,r,a,o);n=f.maxWidth,r=f.maxHeight,a=f.minWidth,o=f.minHeight;var h=this.calculateNewSizeFromDirection(i,s),g=h.newHeight,_=h.newWidth,b=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(_,g,{width:b.maxWidth,height:b.maxHeight},{width:a,height:o});if(_=y.newWidth,g=y.newHeight,this.props.grid){var v=Zn(_,this.props.grid[0]),k=Zn(g,this.props.grid[1]),M=this.props.snapGap||0;_=0===M||Math.abs(v-_)<=M?v:_,g=0===M||Math.abs(k-g)<=M?k:g}this.props.snap&&this.props.snap.x&&(_=er(_,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=er(g,this.props.snap.y,this.props.snapGap));var L={width:_-c.width,height:g-c.height};if(d&&"string"==typeof d)if(tr(d,"%"))_=_/m.width*100+"%";else if(tr(d,"vw")){_=_/this.window.innerWidth*100+"vw"}else if(tr(d,"vh")){_=_/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(tr(p,"%"))g=g/m.height*100+"%";else if(tr(p,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(tr(p,"vh")){g=g/this.window.innerHeight*100+"vh"}var w={width:this.createSizeForCssProperty(_,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?w.flexBasis=w.width:"column"===this.flexDir&&(w.flexBasis=w.height),this.setState(w),this.props.onResize&&this.props.onResize(e,u,this.resizable,L)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,a=t.original;if(n&&this.resizable){var o={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:$n($n({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,a=t.handleClasses,o=t.handleWrapperStyle,i=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?Nn.createElement(Vn,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:a&&a[t]},s&&s[t]?s[t]:null):null}));return Nn.createElement("span",{className:i,style:o},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==or.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=$n($n($n({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as;return Nn.createElement(r,$n({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&Nn.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",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,snapGap:0},t}(Nn.PureComponent);n(355),n(356);function sr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var lr=wp.i18n.__,ur=wp.element.Component,cr=wp.blocks.registerBlockType,dr=function(e){p()(n,e);var t=sr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacerHeight,r=t.spacerDividerColor,o=e.className,i=e.setAttributes,s=e.toggleSelection;return[React.createElement(Hn,a()({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement(Fn,a()({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(ir,{className:b()(o,"gb-spacer-handle"),style:{color:r},size:{width:"100%",height:n},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"gb-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:function(){s(!1)},onResizeStop:function(e,t,r,a){i({spacerHeight:parseInt(n+a.height,10)}),s(!0)}}))]}}]),n}(ur);function pr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}cr("genesis-blocks/gb-spacer",{title:lr("Spacer","genesis-blocks"),description:lr("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[lr("spacer","genesis-blocks"),lr("divider","genesis-blocks"),lr("atomic","genesis-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"gb-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},gb_settings_data:{gb_spacer_spacerHeight:{title:lr("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:lr("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:lr("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:lr("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:lr("Divider Color","genesis-blocks")}},edit:dr,save:function(e){var t=e.attributes.spacerHeight;return React.createElement(Fn,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var mr=wp.i18n.__,fr=wp.element.Component,hr=wp.blockEditor.InspectorControls,gr=wp.components,_r=gr.PanelBody,br=gr.RangeControl,yr=gr.ToggleControl,vr=function(e){p()(n,e);var t=pr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return React.createElement(hr,{key:"inspector"},React.createElement(_r,null,React.createElement(M,{id:"gb_accordion_accordionFontSize"},React.createElement(br,{label:mr("Title Font Size","genesis-blocks"),value:this.props.attributes.accordionFontSize,onChange:function(t){return e.props.setAttributes({accordionFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_accordion_accordionOpen"},React.createElement(yr,{label:mr("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}]),n}(fr);function kr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mr=function(e){p()(n,e);var t=kr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.accordionAlignment?"gb-align-"+this.props.attributes.accordionAlignment:void 0,"gb-block-accordion",this.props.attributes.accordionFontSize?"gb-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}]),n}(wp.element.Component);function Lr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var wr=wp.i18n.__,Tr=wp.element.Component,Yr=wp.blockEditor,Er=Yr.RichText,Sr=Yr.AlignmentToolbar,xr=Yr.BlockControls,Dr=Yr.InnerBlocks,Cr=function(e){p()(n,e);var t=Lr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return[React.createElement(xr,{key:"controls"},React.createElement(Sr,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),React.createElement(vr,a()({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(Mr,a()({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(Er,{tagName:"p",placeholder:wr("Accordion Title","genesis-blocks"),value:this.props.attributes.accordionTitle,className:"gb-accordion-title",onChange:function(t){return e.props.setAttributes({accordionTitle:t})}}),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Dr,null)))]}}]),n}(Tr);function Rr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Or=wp.element.Component,Pr=wp.blockEditor,jr=Pr.RichText,Hr=Pr.InnerBlocks,Ar=function(e){p()(n,e);var t=Rr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement(Mr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(jr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Hr.Content,null))))}}]),n}(Or);function zr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Fr=function(e){p()(n,e);var t=zr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.accordionAlignment,n=e.accordionFontSize;return React.createElement("div",{style:{},className:b()(this.props.className,t,"gb-block-accordion","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function Nr(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Br=wp.element.Component,Ir=wp.blockEditor,Wr=Ir.RichText,Ur=Ir.InnerBlocks,Vr=function(e){p()(n,e);var t=Nr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement(Fr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Wr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Ur.Content,null))))}}]),n}(Br),Jr=[{attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:function(e){return React.createElement(Vr,e)}}],Gr=(n(357),n(358),wp.i18n.__),qr=(wp.element.Component,{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}});function $r(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-accordion",{title:Gr("Accordion","genesis-blocks"),description:Gr("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[Gr("accordion","genesis-blocks"),Gr("list","genesis-blocks"),Gr("genesis","genesis-blocks")],attributes:qr,gb_settings_data:{gb_accordion_accordionFontSize:{title:Gr("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:Gr("Open by default","genesis-blocks")}},edit:function(e){return React.createElement(Cr,e)},save:function(e){return React.createElement(Ar,e)},deprecated:Jr});var Kr=wp.i18n.__,Qr=wp.element.Component,Zr=wp.blockEditor,Xr=Zr.InspectorControls,ea=Zr.PanelColorSettings,ta=Zr.MediaUpload,na=wp.components,ra=na.Button,aa=na.Icon,oa=na.PanelBody,ia=na.RangeControl,sa=na.SelectControl,la=na.ToggleControl,ua=function(e){p()(n,e);var t=$r(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.buttonBackgroundColor,r=t.buttonTextColor,a=t.buttonSize,o=t.buttonShape,i=t.buttonTarget,s=t.titleFontSize,l=t.ctaTextFontSize,u=t.ctaBackgroundColor,c=t.ctaTextColor,d=t.dimRatio,p=t.imgURL,m=t.imgID,f=this.props.setAttributes,h=[{value:"gb-button-size-small",label:Kr("Small")},{value:"gb-button-size-medium",label:Kr("Medium")},{value:"gb-button-size-large",label:Kr("Large")},{value:"gb-button-size-extralarge",label:Kr("Extra Large")}],g=[{value:"gb-button-shape-square",label:Kr("Square")},{value:"gb-button-shape-rounded",label:Kr("Rounded Square")},{value:"gb-button-shape-circular",label:Kr("Circular")}],_=function(){f({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(Xr,{key:"inspector"},React.createElement(M,{id:"gb_cta_textOptions"},React.createElement(oa,{title:Kr("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(ia,{label:Kr("Title Font Size","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),React.createElement(ia,{label:Kr("Text Font Size","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),React.createElement(ea,{title:Kr("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return f({ctaTextColor:e})},label:Kr("Text Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_cta_backgroundOptions"},React.createElement(oa,{title:Kr("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,Kr("Select a background image:","genesis-blocks")),React.createElement(ta,{onSelect:function(e){f({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:m,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(ra,{className:"gb-cta-inspector-media",label:Kr("Edit image","genesis-blocks"),onClick:t},React.createElement(aa,{icon:"format-image"}),Kr("Select Image","genesis-blocks")),p&&!!p.length&&React.createElement(ra,{className:"gb-cta-inspector-media",label:Kr("Remove Image","genesis-blocks"),onClick:_},React.createElement(aa,{icon:"dismiss"}),Kr("Remove","genesis-blocks")))}}),p&&!!p.length&&React.createElement(ia,{label:Kr("Image Opacity","genesis-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),React.createElement(ea,{title:Kr("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return f({ctaBackgroundColor:e})},label:Kr("Overlay Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_cta_buttonOptions"},React.createElement(oa,{title:Kr("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(la,{label:Kr("Open link in new window","genesis-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),React.createElement(sa,{label:Kr("Button Size","genesis-blocks"),value:a,options:h.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonSize:t})}}),React.createElement(sa,{label:Kr("Button Shape","genesis-blocks"),value:o,options:g.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonShape:t})}}),React.createElement(ea,{title:Kr("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return f({buttonBackgroundColor:e})},label:Kr("Button Color","genesis-blocks")}]}),React.createElement(ea,{title:Kr("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return f({buttonTextColor:e})},label:Kr("Button Text Color","genesis-blocks")}]}))))}}]),n}(Qr);function ca(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var da=function(e){p()(n,e);var t=ca(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ma=function(e){p()(n,e);var t=pa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function fa(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ha=function(e){p()(n,e);var t=fa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,e.ctaBackgroundColor),a=(e.ctaTextColor,b()([this.props.className,"gb-block-cta"],i()({},"gb-font-size-"+n,n))),o={backgroundColor:r||void 0,textAlign:t||void 0};return React.createElement("div",{style:o,className:a||void 0},this.props.children)}}]),n}(wp.element.Component);function ga(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var _a=function(e){p()(n,e);var t=ga(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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;e.ctaTextColor;return React.createElement("div",{style:{backgroundColor:a,textAlign:t},className:b()(this.props.className,"align".concat(r),"gb-block-cta","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function ba(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}var ya=wp.blockEditor.RichText,va=[{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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-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),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.titleFontSize,m=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(ma,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+p),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-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),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(ha,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+p),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".gb-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),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(_a,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+p),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.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?ba(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function ka(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(359),n(360);function Ma(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 La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ta=wp.i18n.__,Ya=wp.element.Component,Ea=wp.blocks.registerBlockType,Sa=wp.blockEditor,xa=Sa.AlignmentToolbar,Da=Sa.URLInput,Ca=Sa.BlockControls,Ra=Sa.BlockAlignmentToolbar,Oa=Sa.RichText,Pa=wp.components,ja=Pa.Button,Ha=Pa.Dashicon,Aa=Pa.Icon,za=function(e){p()(n,e);var t=wa(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=t.ctaTitle,d=t.ctaText,p=t.titleFontSize,m=t.ctaTextFontSize,f=t.ctaWidth,h=t.ctaTextColor,g=t.imgURL,_=t.imgAlt,y=t.dimRatio,v=e.isSelected,k=e.setAttributes;return[React.createElement(Ca,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(Ra,{value:f,onChange:function(e){return k({ctaWidth:e})},controls:["center","wide","full"]}),React.createElement(xa,{value:o,onChange:function(e){k({buttonAlignment:e})}})),React.createElement(ua,a()({key:"gb-cta-inspector-"+this.props.clientId},La({setAttributes:k},this.props))),React.createElement(da,a()({key:"gb-cta-"+this.props.clientId},this.props),g&&!!g.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Fa(y),{"has-background-dim":0!==y}),src:g,alt:_})),React.createElement("div",{className:"gb-cta-content"},React.createElement(Oa,{tagName:"h2",placeholder:Ta("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:c,className:b()("gb-cta-title","gb-font-size-"+p),style:{color:h},onChange:function(e){return k({ctaTitle:e})}}),React.createElement(Oa,{tagName:"div",multiline:"p",placeholder:Ta("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:d,className:b()("gb-cta-text","gb-font-size-"+m),style:{color:h},onChange:function(e){return k({ctaText:e})}})),React.createElement("div",{className:"gb-cta-button"},React.createElement(Oa,{tagName:"span",placeholder:Ta("Button text…","genesis-blocks"),value:n,allowedFormats:[],className:b()("gb-button",u,l),style:{color:s,backgroundColor:i},onChange:function(e){return k({buttonText:e})}}),v&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(Ha,{icon:"admin-links"}),React.createElement(Da,{className:"button-url",value:r,onChange:function(e){return k({buttonUrl:e})}}),React.createElement(ja,{label:Ta("Apply","genesis-blocks"),type:"submit"},React.createElement(Aa,{icon:"editor-break"})))))]}}]),n}(Ya);function Fa(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Na(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Ea("genesis-blocks/gb-cta",{title:Ta("Call To Action","genesis-blocks"),description:Ta("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[Ta("call to action","genesis-blocks"),Ta("cta","genesis-blocks"),Ta("atomic","genesis-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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-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"}},gb_settings_data:{gb_cta_textOptions:{title:Ta("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:Ta("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:Ta("Button Options","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:za,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.titleFontSize,m=t.ctaTextColor,f=t.imgURL,h=t.imgAlt,g=t.dimRatio;return React.createElement(da,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Fa(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(Oa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+p),style:{color:m},value:u}),c&&React.createElement(Oa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:"noopener noreferrer",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Oa.Content,{value:n}))))},deprecated:va});var Ba=wp.i18n.__,Ia=wp.element.Component,Wa=wp.blockEditor.InspectorControls,Ua=wp.components,Va=Ua.PanelBody,Ja=Ua.SelectControl,Ga=Ua.ToggleControl,qa=function(e){p()(n,e);var t=Na(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:"gb-share-icon-text",label:Ba("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:Ba("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:Ba("Text Only","genesis-blocks")}],n=[{value:"gb-share-shape-square",label:Ba("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:Ba("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:Ba("Circular","genesis-blocks")}],r=[{value:"gb-share-size-small",label:Ba("Small","genesis-blocks")},{value:"gb-share-size-medium",label:Ba("Medium","genesis-blocks")},{value:"gb-share-size-large",label:Ba("Large","genesis-blocks")}],a=[{value:"gb-share-color-standard",label:Ba("Standard","genesis-blocks")},{value:"gb-share-color-social",label:Ba("Social Colors","genesis-blocks")}];return React.createElement(Wa,{key:"inspector"},React.createElement(M,{id:"gb_sharing_links"},React.createElement(Va,null,React.createElement("p",null,Ba("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(Ga,{label:Ba("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),React.createElement(Ga,{label:Ba("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),React.createElement(Ga,{label:Ba("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),React.createElement(Ga,{label:Ba("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),React.createElement(Ga,{label:Ba("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),React.createElement(Ga,{label:Ba("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),React.createElement(Va,{title:Ba("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(M,{id:"gb_sharing_shareButtonStyle"},React.createElement(Ja,{label:Ba("Button Style","genesis-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})}})),React.createElement(M,{id:"gb_sharing_shareButtonShape"},React.createElement(Ja,{label:Ba("Button Shape","genesis-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})}})),React.createElement(M,{id:"gb_sharing_shareButtonSize"},React.createElement(Ja,{label:Ba("Button Size","genesis-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})}})),React.createElement(M,{id:"gb_sharing_shareButtonColor"},React.createElement(Ja,{label:Ba("Button Color","genesis-blocks"),value:this.props.attributes.shareButtonColor,options:a.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonColor:t})}}))))}}]),n}(Ia);function $a(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ka=function(e){p()(n,e);var t=$a(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"gb-align-"+this.props.attributes.shareAlignment:void 0,"gb-block-sharing")},this.props.children)}}]),n}(wp.element.Component);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Za=wp.i18n.__,Xa=wp.element.Component,eo=wp.blockEditor,to=eo.AlignmentToolbar,no=eo.BlockControls,ro=function(e){p()(n,e);var t=Qa(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return[React.createElement(no,{key:"controls"},React.createElement(to,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),React.createElement(qa,a()({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(Ka,a()({key:"gb-share-links-"+this.props.clientId},this.props),React.createElement("ul",{className:"gb-share-list"},this.props.attributes.twitter&&React.createElement("li",null,React.createElement("a",{className:"gb-share-twitter"},React.createElement("i",{className:"fab fa-twitter"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("i",{className:"fab fa-facebook-f"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("i",{className:"fab fa-pinterest-p"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("i",{className:"fab fa-linkedin"}),React.createElement("span",{className:"gb-social-text"},Za("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("i",{className:"fab fa-reddit-alien"}),React.createElement("span",{className:"gb-social-text"},Za("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("i",{className:"fas fa-envelope"}),React.createElement("span",{className:"gb-social-text"},Za("Share via Email","genesis-blocks"))))))]}}]),n}(Xa),ao=(n(361),n(362),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-sharing",{title:ao("Sharing","genesis-blocks"),description:ao("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[ao("sharing","genesis-blocks"),ao("social","genesis-blocks"),ao("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:ao("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:ao("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:ao("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:ao("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:ao("Button Color","genesis-blocks")}},edit:function(e){return React.createElement(ro,e)},save:function(){return null}});var oo=n(49),io=n.n(oo),so=n(50),lo=n.n(so),uo=n(6),co=n.n(uo),po=n(51),mo=n.n(po),fo=n(11),ho=n.n(fo);function go(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 _o=function(e,t){var n;void 0===t&&(t=go);var r,a=[],o=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return o&&n===this&&t(i,a)||(r=e.apply(this,i),o=!0,n=this,a=i),r}},bo=n(210),yo=n.n(bo);var vo=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 a=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 o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);a.insertRule(e,o?0:a.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 ko=function(e){function t(e,t,r){var a=t.trim().split(f);t=a;var o=a.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<i;++u)t[l++]=n(e[u]+" ",a[s],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,o){var i=e+";",s=2*t+3*n+4*o;if(944===s){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===x||2===x&&a(l,1)?"-webkit-"+l+l:l}if(0===x||2===x&&!a(i,1))return i;switch(s){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(T,"$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"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(l=i.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=i.replace(y,"tb");break;case 232:l=i.replace(y,"tb-rl");break;case 220:l=i.replace(y,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(l=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(M,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(M,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===w.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+o&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+i}return i}function a(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),O(2!==t?r:r.replace(L,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,a,o,i,s,u,c){for(var d,p=0,m=t;p<R;++p)switch(d=C[p].call(l,e,m,n,r,a,o,i,s,u,c)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?x=1:(x=2,O=e):x=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<R){var l=i(-1,n,s,s,E,Y,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,p){for(var m,f,h,y,k,M=0,L=0,w=0,T=0,C=0,O=0,j=h=m=0,H=0,A=0,z=0,F=0,N=l.length,B=N-1,I="",W="",U="",V="";H<N;){if(f=l.charCodeAt(H),H===B&&0!==L+T+w+M&&(0!==L&&(f=47===L?10:47),T=w=M=0,N++,B++),0===L+T+w+M){if(H===B&&(0<A&&(I=I.replace(c,"")),0<I.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:I+=l.charAt(H)}f=59}switch(f){case 123:for(m=(I=I.trim()).charCodeAt(0),h=1,F=++H;H<N;){switch(f=l.charCodeAt(H)){case 123:h++;break;case 125:h--;break;case 47:switch(f=l.charCodeAt(H+1)){case 42:case 47:e:{for(j=H+1;j<B;++j)switch(l.charCodeAt(j)){case 47:if(42===f&&42===l.charCodeAt(j-1)&&H+2!==j){H=j+1;break e}break;case 10:if(47===f){H=j+1;break e}}H=j}}break;case 91:f++;case 40:f++;case 34:case 39:for(;H++<B&&l.charCodeAt(H)!==f;);}if(0===h)break;H++}switch(h=l.substring(F,H),0===m&&(m=(I=I.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<A&&(I=I.replace(c,"")),f=I.charCodeAt(1)){case 100:case 109:case 115:case 45:A=s;break;default:A=D}if(F=(h=e(s,A,h,f,p+1)).length,0<R&&(k=i(3,h,A=t(D,I,z),s,E,Y,F,f,p,d),I=A.join(""),void 0!==k&&0===(F=(h=k.trim()).length)&&(f=0,h="")),0<F)switch(f){case 115:I=I.replace(v,o);case 100:case 109:case 45:h=I+"{"+h+"}";break;case 107:h=(I=I.replace(g,"$1 $2"))+"{"+h+"}",h=1===x||2===x&&a("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=I+h,112===d&&(W+=h,h="")}else h="";break;default:h=e(s,t(s,I,z),h,d,p+1)}U+=h,h=z=A=j=m=0,I="",f=l.charCodeAt(++H);break;case 125:case 59:if(1<(F=(I=(0<A?I.replace(c,""):I).trim()).length))switch(0===j&&(m=I.charCodeAt(0),45===m||96<m&&123>m)&&(F=(I=I.replace(" ",":")).length),0<R&&void 0!==(k=i(1,I,s,n,E,Y,W.length,d,p,d))&&0===(F=(I=k.trim()).length)&&(I="\0\0"),m=I.charCodeAt(0),f=I.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){V+=I+l.charAt(H);break}default:58!==I.charCodeAt(F-1)&&(W+=r(I,m,f,I.charCodeAt(2)))}z=A=j=m=0,I="",f=l.charCodeAt(++H)}}switch(f){case 13:case 10:47===L?L=0:0===1+m&&107!==d&&0<I.length&&(A=1,I+="\0"),0<R*P&&i(0,I,s,n,E,Y,W.length,d,p,d),Y=1,E++;break;case 59:case 125:if(0===L+T+w+M){Y++;break}default:switch(Y++,y=l.charAt(H),f){case 9:case 32:if(0===T+M+L)switch(C){case 44:case 58:case 9:case 32:y="";break;default:32!==f&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===T+L+M&&(A=z=1,y="\f"+y);break;case 108:if(0===T+L+M+S&&0<j)switch(H-j){case 2:112===C&&58===l.charCodeAt(H-3)&&(S=C);case 8:111===O&&(S=O)}break;case 58:0===T+L+M&&(j=H);break;case 44:0===L+w+T+M&&(A=1,y+="\r");break;case 34:case 39:0===L&&(T=T===f?0:0===T?f:T);break;case 91:0===T+L+w&&M++;break;case 93:0===T+L+w&&M--;break;case 41:0===T+L+M&&w--;break;case 40:if(0===T+L+M){if(0===m)switch(2*C+3*O){case 533:break;default:m=1}w++}break;case 64:0===L+w+T+M+j+h&&(h=1);break;case 42:case 47:if(!(0<T+M+w))switch(L){case 0:switch(2*f+3*l.charCodeAt(H+1)){case 235:L=47;break;case 220:F=H,L=42}break;case 42:47===f&&42===C&&F+2!==H&&(33===l.charCodeAt(F+2)&&(W+=l.substring(F,H+1)),y="",L=0)}}0===L&&(I+=y)}O=C,C=f,H++}if(0<(F=W.length)){if(A=s,0<R&&(void 0!==(k=i(2,W,A,n,E,Y,F,d,p,d))&&0===(W=k).length))return V+W+U;if(W=A.join(",")+"{"+W+"}",0!=x*S){switch(2!==x||a(W,2)||(S=0),S){case 111:W=W.replace(b,":-moz-$1")+W;break;case 112:W=W.replace(_,"::-webkit-input-$1")+W.replace(_,"::-moz-$1")+W.replace(_,":-ms-input-$1")+W}S=0}}return V+W+U}(D,s,n,0,0);return 0<R&&(void 0!==(l=i(-2,d,s,s,E,Y,d.length,0,0,0))&&(d=l)),"",S=0,Y=E=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,m=/([,: ])(transform)/g,f=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,M=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,w=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,Y=1,E=1,S=0,x=1,D=[],C=[],R=0,O=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:R=C.length=0;break;default:if("function"==typeof t)C[R++]=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},l.set=s,void 0!==e&&s(e),l};function Mo(e){e&&Lo.current.insert(e+"}")}var Lo={current:null},wo=function(e,t,n,r,a,o,i,s,l,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Lo.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return Lo.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Mo)}},To=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new ko(t);var a,o={};a=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),r.use(e.stylisPlugins)(wo),i=function(e,t,n,a){var o=t.name;Lo.current=n,r(e,t.styles),a&&(l.inserted[o]=!0)};var l={key:n,sheet:new vo({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:i};return l};function Yo(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Eo=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 a=t;do{e.insert("."+r,a,e.sheet,!0);a=a.next}while(void 0!==a)}};var So=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=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(a){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)},xo={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 Do=/[A-Z]|^ms/g,Co=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ro=function(e){return 45===e.charCodeAt(1)},Oo=function(e){return null!=e&&"boolean"!=typeof e},Po=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Ro(e)?e:e.replace(Do,"-$&").toLowerCase()})),jo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Co,(function(e,t,n){return Ao={name:t,styles:n,next:Ao},t}))}return 1===xo[e]||Ro(e)||"number"!=typeof t||0===t?t:t+"px"};function Ho(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 Ao={name:n.name,styles:n.styles,next:Ao},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)Ao={name:a.name,styles:a.styles,next:Ao},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Ho(e,t,n[a],!1);else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":Oo(i)&&(r+=Po(o)+":"+jo(o,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Ho(e,t,i,!1);switch(o){case"animation":case"animationName":r+=Po(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Oo(i[l])&&(r+=Po(o)+":"+jo(o,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ao,i=n(e);return Ao=o,Ho(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Ao,zo=/label:\s*([^\s;\n{]+)\s*;/g;var Fo=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,a="";Ao=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=Ho(n,t,o,!1)):a+=o[0];for(var i=1;i<e.length;i++)a+=Ho(n,t,e[i],46===a.charCodeAt(a.length-1)),r&&(a+=o[i]);zo.lastIndex=0;for(var s,l="";null!==(s=zo.exec(a));)l+="-"+s[1];return{name:So(a)+l,styles:a,next:Ao}};var No=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fo(t)},Bo=Object(Nn.createContext)("undefined"!=typeof HTMLElement?To():null),Io=Object(Nn.createContext)({}),Wo=Bo.Provider,Uo=function(e){return Object(Nn.forwardRef)((function(t,n){return Object(Nn.createElement)(Bo.Consumer,null,(function(r){return e(t,r,n)}))}))},Vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jo=Object.prototype.hasOwnProperty,Go=function(e,t,n,r){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var o=t[Vo],i=[a],s="";"string"==typeof t.className?s=Yo(e.registered,i,t.className):null!=t.className&&(s=t.className+" ");var l=Fo(i);Eo(e,l,"string"==typeof o);s+=e.key+"-"+l.name;var u={};for(var c in t)Jo.call(t,c)&&"css"!==c&&c!==Vo&&(u[c]=t[c]);return u.ref=r,u.className=s,Object(Nn.createElement)(o,u)},qo=Uo((function(e,t,n){return"function"==typeof e.css?Object(Nn.createElement)(Io.Consumer,null,(function(r){return Go(t,e,r,n)})):Go(t,e,null,n)}));var $o=function(e,t){var n=arguments;if(null==t||!Jo.call(t,"css"))return Nn.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=qo;var o={};for(var i in t)Jo.call(t,i)&&(o[i]=t[i]);o[Vo]=e,a[1]=o;for(var s=2;s<r;s++)a[s]=n[s];return Nn.createElement.apply(null,a)},Ko=(Nn.Component,function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a});function Qo(e,t,n){var r=[],a=Yo(e,r,n);return r.length<2?n:a+t(r)}var Zo=Uo((function(e,t){return Object(Nn.createElement)(Io.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 a=Fo(n,t.registered);return Eo(t,a,!1),t.key+"-"+a.name},a={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return Qo(t.registered,r,Ko(n))},theme:n},o=e.children(a);return!0,o}))})),Xo=n(22),ei=n(23),ti=n.n(ei),ni=function(){};function ri(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ai(e,t,n){var r=[n];if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push(""+ri(e,a));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var oi=function(e){return Array.isArray(e)?e.filter(Boolean):"object"==typeof e&&null!==e?[e]:[]};function ii(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function si(e){return ii(e)?window.pageYOffset:e.scrollTop}function li(e,t){ii(e)?window.scrollTo(0,t):e.scrollTop=t}function ui(e,t,n,r){void 0===n&&(n=200),void 0===r&&(r=ni);var a=si(e),o=t-a,i=0;!function t(){var s,l=o*((s=(s=i+=10)/n-1)*s*s+1)+a;li(e,l),i<n?window.requestAnimationFrame(t):r(e)}()}function ci(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var di=n(48),pi=n.n(di);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 fi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function hi(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,a=document.documentElement;if("fixed"===t.position)return a;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return a}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,m=d.height,f=d.top,h=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,_=si(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),v=h-y,k=g-f,M=v+_,L=c-_-f,w=p-g+_+b,T=_+f-y;switch(a){case"auto":case"bottom":if(k>=m)return{placement:"bottom",maxHeight:t};if(L>=m&&!i)return o&&ui(l,w,160),{placement:"bottom",maxHeight:t};if(!i&&L>=r||i&&k>=r)return o&&ui(l,w,160),{placement:"bottom",maxHeight:i?k-b:L-b};if("auto"===a||i){var Y=t,E=i?v:M;return E>=r&&(Y=Math.min(E-b-s.controlHeight,t)),{placement:"top",maxHeight:Y}}if("bottom"===a)return li(l,w),{placement:"bottom",maxHeight:t};break;case"top":if(v>=m)return{placement:"top",maxHeight:t};if(M>=m&&!i)return o&&ui(l,T,160),{placement:"top",maxHeight:t};if(!i&&M>=r||i&&v>=r){var S=t;return(!i&&M>=r||i&&v>=r)&&(S=i?v-y:M-y),o&&ui(l,T,160),{placement:"top",maxHeight:S}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+a+'".')}return u}var gi=function(e){return"auto"===e?"bottom":e},_i=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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,a=n.maxMenuHeight,o=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme,u=t.context.getPortalPlacement;if(e){var c="fixed"===i,d=hi({maxHeight:a,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!c,isFixedPosition:c,theme:l});u&&u(d),t.setState(d)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||gi(e);return mi({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return fi(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(Nn.Component);_i.contextTypes={getPortalPlacement:ti.a.func};var bi=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},yi=bi,vi=bi,ki=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",mi({css:a("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};ki.defaultProps={children:"No options"};var Mi=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",mi({css:a("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};Mi.defaultProps={children:"Loading..."};var Li=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==gi(t.props.menuPlacement)&&t.setState({placement:n})},t}fi(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,a=e.menuPlacement,o=e.menuPosition,i=e.getStyles,s="fixed"===o;if(!t&&!s||!r)return null;var l=this.state.placement||gi(a),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=s?0:window.pageYOffset,d=u[l]+c,p=$o("div",{css:i("menuPortal",{offset:d,position:o,rect:u})},n);return t?Object(Xo.createPortal)(p,t):p},t}(Nn.Component);Li.childContextTypes={getPortalPlacement:ti.a.func};var wi=Array.isArray,Ti=Object.keys,Yi=Object.prototype.hasOwnProperty;function Ei(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,a,o,i=wi(t),s=wi(n);if(i&&s){if((a=t.length)!=n.length)return!1;for(r=a;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=s)return!1;var l=t instanceof Date,u=n instanceof Date;if(l!=u)return!1;if(l&&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=Ti(t);if((a=p.length)!==Ti(n).length)return!1;for(r=a;0!=r--;)if(!Yi.call(n,p[r]))return!1;for(r=a;0!=r--;)if(!("_owner"===(o=p[r])&&t.$$typeof||e(t[o],n[o])))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 Si(){return(Si=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 xi(){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 xi=function(){return e},e}function Di(){return(Di=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 Ci={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Ri=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["size"]);return $o("svg",Di({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ci},n))},Oi=function(e){return $o(Ri,Di({size:20},e),$o("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"}))},Pi=function(e){return $o(Ri,Di({size:20},e),$o("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"}))},ji=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorContainer",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?a.neutral80:a.neutral40}}},Hi=ji,Ai=ji,zi=function(){var e=No.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_"}}}(xi()),Fi=function(e){var t=e.delay,n=e.offset;return $o("span",{css:No({animation:zi+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ni=function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps,o=e.isRtl;return $o("div",Di({},a,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),$o(Fi,{delay:0,offset:o}),$o(Fi,{delay:160,offset:!0}),$o(Fi,{delay:320,offset:!o}))};function Bi(){return(Bi=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)}Ni.defaultProps={size:4};function Ii(){return(Ii=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 Wi(){return(Wi=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 Ui=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Vi(){return(Vi=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 Ji=function(e){var t=e.children,n=e.innerProps;return $o("div",n,t)},Gi=Ji,qi=Ji;var $i=function(e){var t=e.children,n=e.className,r=e.components,a=e.cx,o=e.data,i=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,d=r.Container,p=r.Label,m=r.Remove;return $o(Zo,null,(function(r){var f=r.css,h=r.cx;return $o(d,{data:o,innerProps:Vi({},s,{className:h(f(i("multiValue",e)),a({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:c},$o(p,{data:o,innerProps:{className:h(f(i("multiValueLabel",e)),a({"multi-value__label":!0},n))},selectProps:c},t),$o(m,{data:o,innerProps:Vi({className:h(f(i("multiValueRemove",e)),a({"multi-value__remove":!0},n))},u),selectProps:c}))}))};function Ki(){return(Ki=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)}$i.defaultProps={cropWithEllipsis:!0};function Qi(){return(Qi=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 Zi(){return(Zi=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 Xi(){return(Xi=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 es={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Di({},o,{css:a("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||$o(Oi,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.className,o=e.isDisabled,i=e.isFocused,s=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return $o("div",Bi({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":u},a)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Di({},o,{css:a("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||$o(Pi,null))},DownChevron:Pi,CrossIcon:Oi,Group:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.Heading,i=e.headingProps,s=e.label,l=e.theme,u=e.selectProps;return $o("div",{css:a("group",e),className:r({group:!0},n)},$o(o,Ii({},i,{selectProps:u,theme:l,getStyles:a,cx:r}),s),$o("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.theme,o=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","theme","selectProps"]));return $o("div",Ii({css:r("groupHeading",Ii({theme:a},o)),className:n({"group-heading":!0},t)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles;return $o("div",{css:a("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps;return $o("span",Di({},a,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerRef,o=e.isHidden,i=e.isDisabled,s=e.theme,l=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return $o("div",{css:r("input",Wi({theme:s},l))},$o(pi.a,Wi({className:n({input:!0},t),inputRef:a,inputStyle:Ui(o),disabled:i},l)))},LoadingIndicator:Ni,Menu:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerRef,i=e.innerProps;return $o("div",mi({css:a("menu",e),className:r({menu:!0},n)},i,{ref:o}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isMulti,i=e.innerRef;return $o("div",{css:a("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":o},n),ref:i},t)},MenuPortal:Li,LoadingMessage:Mi,NoOptionsMessage:ki,MultiValue:$i,MultiValueContainer:Gi,MultiValueLabel:qi,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return $o("div",n,t||$o(Oi,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.isFocused,s=e.isSelected,l=e.innerRef,u=e.innerProps;return $o("div",Ki({css:a("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":s},n),ref:l},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Qi({css:a("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps,i=e.isDisabled,s=e.isRtl;return $o("div",Si({css:a("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.innerProps;return $o("div",Zi({css:a("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.isMulti,o=e.getStyles,i=e.hasValue;return $o("div",{css:o("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i},n)},t)}},ts=[{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}],ns=function(e){for(var t=0;t<ts.length;t++)e=e.replace(ts[t].letters,ts[t].base);return e};function rs(){return(rs=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 as=function(e){return e.replace(/^\s+|\s+$/g,"")},os=function(e){return e.label+" "+e.value};function is(){return(is=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 ss={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;"},ls=function(e){return $o("span",is({css:ss},e))};function us(){return(us=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 cs(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,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return $o("input",us({ref:t},n,{css:No({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 ds=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 a=r.prototype;return a.componentDidMount=function(){this.props.innerRef(Object(Xo.findDOMNode)(this))},a.componentWillUnmount=function(){this.props.innerRef(null)},a.render=function(){return this.props.children},r}(Nn.Component),ps=["boxSizing","height","overflow","paddingRight","position"],ms={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function fs(e){e.preventDefault()}function hs(e){e.stopPropagation()}function gs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _s(){return"ontouchstart"in window||navigator.maxTouchPoints}var bs=!(!window.document||!window.document.createElement),ys=0,vs=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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 a=r.prototype;return a.componentDidMount=function(){var e=this;if(bs){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;if(n&&ps.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&ys<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+i||0;Object.keys(ms).forEach((function(e){var t=ms[e];o&&(o[e]=t)})),o&&(o.paddingRight=l+"px")}a&&_s()&&(a.addEventListener("touchmove",fs,this.listenerOptions),r&&(r.addEventListener("touchstart",gs,this.listenerOptions),r.addEventListener("touchmove",hs,this.listenerOptions))),ys+=1}},a.componentWillUnmount=function(){var e=this;if(bs){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;ys=Math.max(ys-1,0),n&&ys<1&&ps.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),a&&_s()&&(a.removeEventListener("touchmove",fs,this.listenerOptions),r&&(r.removeEventListener("touchstart",gs,this.listenerOptions),r.removeEventListener("touchmove",hs,this.listenerOptions)))}},a.render=function(){return null},r}(Nn.Component);vs.defaultProps={accountForScrollbars:!0};var ks={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Ms=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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?$o("div",null,$o("div",{onClick:this.blurSelectInput,css:ks}),$o(ds,{innerRef:this.getScrollTarget},t),r?$o(vs,{touchScrollTarget:r}):null):t},r}(Nn.PureComponent);var Ls=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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,a=r.onBottomArrive,o=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,l=t.scrollTarget,u=l.scrollTop,c=l.scrollHeight,d=l.clientHeight,p=t.scrollTarget,m=n>0,f=c-d-u,h=!1;f>n&&t.isBottom&&(o&&o(e),t.isBottom=!1),m&&t.isTop&&(s&&s(e),t.isTop=!1),m&&n>f?(a&&!t.isBottom&&a(e),p.scrollTop=c,h=!0,t.isBottom=!0):!m&&-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 a=r.prototype;return a.componentDidMount=function(){this.startListening(this.scrollTarget)},a.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},a.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))},a.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)},a.render=function(){return Bn.a.createElement(ds,{innerRef:this.getScrollTarget},this.props.children)},r}(Nn.Component);function ws(e){var t=e.isEnabled,n=void 0===t||t,r=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["isEnabled"]);return n?Bn.a.createElement(Ls,r):r.children}var Ts=function(e,t){void 0===t&&(t={});var n=t,r=n.isSearchable,a=n.isMulti,o=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(o||"Select")+" is focused "+(r?",type to refine list":"")+", press Down to open the menu, "+(a?" 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"}},Ys=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."}},Es=function(e){return!!e.isDisabled};var Ss={clearIndicator:Ai,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,a=r.colors,o=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?a.neutral5:a.neutral0,borderColor:t?a.neutral10:n?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+a.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?a.primary:a.neutral30}}},dropdownIndicator:Hi,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,a=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,a=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:vi,menu:function(e){var t,n=e.placement,r=e.theme,a=r.borderRadius,o=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=a,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=o.menuGutter,t.marginTop=o.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,a=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:a?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,a=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&a.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}}},noOptionsMessage:yi,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,a=e.theme,o=a.spacing,i=a.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*o.baseUnit+"px "+3*o.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,a=n.colors;return{label:"singleValue",color:t?a.neutral40:a.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 xs={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 Ds(){return(Ds=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 Cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Rs,Os={backspaceRemovesValue:!0,blurInputOnSelect:ci(),captureMenuScroll:!ci(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=rs({ignoreCase:!0,ignoreAccents:!0,stringify:os,trim:!0,matchFrom:"any"},Rs),r=n.ignoreCase,a=n.ignoreAccents,o=n.stringify,i=n.trim,s=n.matchFrom,l=i?as(t):t,u=i?as(o(e)):o(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=ns(l),u=ns(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-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:Es,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},Ps=1,js=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=Xi({},es,{components:e}.components)},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props;(0,r.onChange)(e,Ds({},t,{name:r.name}))},n.setValue=function(e,t,r){void 0===t&&(t="set-value");var a=n.props,o=a.closeMenuOnSelect,i=a.isMulti;n.onInputChange("",{action:"set-value"}),o&&(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,a=t.isMulti,o=n.state.selectValue;if(a)if(n.isOptionSelected(e,o)){var i=n.getOptionValue(e);n.setValue(o.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,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(o,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,o)?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),a=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(a.length?a: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=Ss[e](t);r.boxSizing="border-box";var a=n.props.styles[e];return a?a(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,a=t.focusedOption;if(a&&e){var o=r.focusable.indexOf(a),i=r.render[o];return i&&i.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:Ys(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:Ts(t,Ds({},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,a=t.menuIsOpen;n.focusInput(),a?(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&&ii(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),a=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||a>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,a=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:a}}),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,a=t.backspaceRemovesValue,o=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,m=n.state,f=m.focusedOption,h=m.focusedValue,g=m.selectValue;if(!(l||"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(!a)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!u||!d||!f||p&&n.isOptionSelected(f,g))return;n.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(n.isComposing)return;n.selectOption(f);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&o&&n.clearValue();break;case" ":if(i)return;if(!u){n.openMenu("first");break}if(!f)return;n.selectOption(f);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,a=void 0===r?"":r,o=e.options,i=function(e,r){var o=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),s=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:s,value:l,data:e},a))){var u=o?void 0:function(){return n.onOptionHover(e)},c=o?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:o,isSelected:i,key:d,label:s,type:"option",value:l}}};return o.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var a=t.options.map((function(t,n){var a=i(t,r+"-"+n);return a&&e.focusable.push(t),a})).filter(Boolean);if(a.length){var o=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:o,data:t,options:a})}}else{var s=i(t,""+r);s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var r=t.value;n.cacheComponents=_o(n.cacheComponents,Ei).bind(Cs(Cs(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Ps);var a=oi(r);n.buildMenuOptions=_o(n.buildMenuOptions,(function(e,t){var n=e,r=n[0],a=n[1],o=t,i=o[0];return Ei(a,o[1])&&Ei(r.inputValue,i.inputValue)&&Ei(r.options,i.options)})).bind(Cs(Cs(n)));var o=t.menuIsOpen?n.buildMenuOptions(t,a):{render:[],focusable:[]};return n.state.menuOptions=o,n.state.selectValue=a,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},a.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,r=t.value,a=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==a||e.inputValue!==o){var i=oi(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},l=this.getNextFocusedValue(i),u=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:u,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},a.componentDidUpdate=function(e){var t,n,r,a,o,i=this.props,s=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=n.offsetHeight/3,a.bottom+o>r.bottom?li(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):a.top-o<r.top&&li(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)},a.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},a.onMenuOpen=function(){this.props.onMenuOpen()},a.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()},a.onInputChange=function(e,t){this.props.onInputChange(e,t)},a.focusInput=function(){this.inputRef&&this.inputRef.focus()},a.blurInput=function(){this.inputRef&&this.inputRef.blur()},a.openMenu=function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,o=this.buildMenuOptions(this.props,r),i=this.props.isMulti,s="first"===e?0:o.focusable.length-1;if(!i){var l=o.focusable.indexOf(r[0]);l>-1&&(s=l)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[s]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},a.focusValue=function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,a=this.state,o=a.selectValue,i=a.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=o.length-1,u=-1;if(o.length){switch(e){case"previous":u=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(u=s+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:o[u]})}}},a.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,r=n.focusedOption,a=n.menuOptions.focusable;if(a.length){var o=0,i=a.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?o=i>0?i-1:a.length-1:"down"===e?o=(i+1)%a.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>a.length-1&&(o=a.length-1):"last"===e&&(o=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[o],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Es(a[o])}})}},a.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(xs):Ds({},xs,this.props.theme):xs},a.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,a=this.props,o=a.classNamePrefix,i=a.isMulti,s=a.isRtl,l=a.options,u=this.state.selectValue,c=this.hasValue();return{cx:ai.bind(null,o),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:c,isMulti:i,isRtl:s,options:l,selectOption:r,setValue:n,selectProps:a,theme:this.getTheme()}},a.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},a.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},a.hasValue=function(){return this.state.selectValue.length>0},a.hasOptions=function(){return!!this.state.menuOptions.render.length},a.countOptions=function(){return this.state.menuOptions.focusable.length},a.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},a.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},a.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}))},a.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},a.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)},a.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},a.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},a.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},a.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},a.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},a.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,a=e.focusedOption,o=this.props,i=o.options,s=o.menuIsOpen,l=o.inputValue,u=o.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}):"")+" "+(a&&s?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:a,getOptionLabel:this.getOptionLabel,options:i}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:l,screenReaderMessage:u({count:this.countOptions()})})+" "+t},a.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,o=e.tabIndex,i=this.components.Input,s=this.state.inputIsHidden,l=r||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return Bn.a.createElement(cs,Ds({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ni,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:o,value:""},u));var c=this.commonProps,d=c.cx,p=c.theme,m=c.selectProps;return Bn.a.createElement(i,Ds({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:o,theme:p,type:"text",value:a},u))},a.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,o=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,m=u.inputValue,f=u.placeholder,h=this.state,g=h.selectValue,_=h.focusedValue,b=h.isFocused;if(!this.hasValue()||!c)return m?null:Bn.a.createElement(s,Ds({},l,{key:"placeholder",isDisabled:d,isFocused:b}),f);if(p)return g.map((function(t,i){var s=t===_;return Bn.a.createElement(n,Ds({},l,{components:{Container:r,Label:a,Remove:o},isFocused:s,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(m)return null;var y=g[0];return Bn.a.createElement(i,Ds({},l,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))},a.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Bn.a.createElement(e,Ds({},t,{innerProps:i,isFocused:o}))},a.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!e||!a)return null;return Bn.a.createElement(e,Ds({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))},a.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return Bn.a.createElement(n,Ds({},r,{isDisabled:a,isFocused:o}))},a.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Bn.a.createElement(e,Ds({},t,{innerProps:a,isDisabled:n,isFocused:r}))},a.renderMenu=function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,o=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,c=this.commonProps,d=this.state,p=d.focusedOption,m=d.menuOptions,f=this.props,h=f.captureMenuScroll,g=f.inputValue,_=f.isLoading,b=f.loadingMessage,y=f.minMenuHeight,v=f.maxMenuHeight,k=f.menuIsOpen,M=f.menuPlacement,L=f.menuPosition,w=f.menuPortalTarget,T=f.menuShouldBlockScroll,Y=f.menuShouldScrollIntoView,E=f.noOptionsMessage,S=f.onMenuScrollToTop,x=f.onMenuScrollToBottom;if(!k)return null;var D,C=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,Bn.a.createElement(u,Ds({},c,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=m.render.map((function(t){if("group"===t.type){t.type;var a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["type"]),o=t.key+"-heading";return Bn.a.createElement(n,Ds({},c,a,{Heading:r,headingProps:{id:o},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e)})))}if("option"===t.type)return C(t)}));else if(_){var R=b({inputValue:g});if(null===R)return null;D=Bn.a.createElement(s,c,R)}else{var O=E({inputValue:g});if(null===O)return null;D=Bn.a.createElement(l,c,O)}var P={minMenuHeight:y,maxMenuHeight:v,menuPlacement:M,menuPosition:L,menuShouldScrollIntoView:Y},j=Bn.a.createElement(_i,Ds({},c,P),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return Bn.a.createElement(a,Ds({},c,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:_,placement:i}),Bn.a.createElement(ws,{isEnabled:h,onTopArrive:S,onBottomArrive:x},Bn.a.createElement(Ms,{isEnabled:T},Bn.a.createElement(o,Ds({},c,{innerRef:e.getMenuListRef,isLoading:_,maxHeight:s}),D))))}));return w||"fixed"===L?Bn.a.createElement(i,Ds({},c,{appendTo:w,controlElement:this.controlRef,menuPlacement:M,menuPosition:L}),j):j},a.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,o=t.name,i=this.state.selectValue;if(o&&!r){if(a){if(n){var s=i.map((function(t){return e.getOptionValue(t)})).join(n);return Bn.a.createElement("input",{name:o,type:"hidden",value:s})}var l=i.length>0?i.map((function(t,n){return Bn.a.createElement("input",{key:"i-"+n,name:o,type:"hidden",value:e.getOptionValue(t)})})):Bn.a.createElement("input",{name:o,type:"hidden"});return Bn.a.createElement("div",null,l)}var u=i[0]?this.getOptionValue(i[0]):"";return Bn.a.createElement("input",{name:o,type:"hidden",value:u})}},a.renderLiveRegion=function(){return this.state.isFocused?Bn.a.createElement(ls,{"aria-live":"polite"},Bn.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),Bn.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},a.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,o=this.props,i=o.className,s=o.id,l=o.isDisabled,u=o.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return Bn.a.createElement(r,Ds({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),Bn.a.createElement(t,Ds({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),Bn.a.createElement(a,Ds({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),Bn.a.createElement(n,Ds({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},r}(Nn.Component);function Hs(){return(Hs=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)}js.defaultProps=Os;var As={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};Nn.Component;var zs,Fs,Ns,Bs=(zs=js,Ns=Fs=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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 a=r.prototype;return a.focus=function(){this.select.focus()},a.blur=function(){this.select.blur()},a.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},a.callProp=function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return(t=this.props)[e].apply(t,r)}},a.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,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return Bn.a.createElement(zs,Hs({},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}(Nn.Component),Fs.defaultProps=As,Ns);function Is(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ws=wp.i18n.__,Us=wp.element,Vs=Us.Component,Js=Us.Fragment,Gs=wp.blockEditor.InspectorControls,qs=wp.components,$s=qs.PanelBody,Ks=qs.QueryControls,Qs=qs.RangeControl,Zs=qs.SelectControl,Xs=qs.TextControl,el=qs.ToggleControl,tl=wp.url.addQueryArgs,nl=wp.apiFetch,rl=function(e){p()(n,e);var t=Is(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={categoriesList:[]},e}return c()(n,[{key:"componentDidMount",value:function(){var e=this;this.stillMounted=!0,this.fetchRequest=nl({path:tl("/wp/v2/categories",{per_page:-1})}).then((function(t){e.stillMounted&&e.setState({categoriesList:t})})).catch((function(){e.stillMounted&&e.setState({categoriesList:[]})})),"page"===this.props.attributes.postType&&this.props.attributes.selectedPages.length!==this.props.attributes.selectedPages.postsToShow&&this.props.setAttributes({postsToShow:this.props.attributes.selectedPages.length})}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/editor").getEditorSettings();return mo()(ho()(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 mo()(ho()(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,i=n.order,s=n.orderBy,l=this.state.categoriesList,u=[{value:"post",label:Ws("Post","genesis-blocks")},{value:"page",label:Ws("Page","genesis-blocks")}],c=[{value:"div",label:Ws("div","genesis-blocks")},{value:"header",label:Ws("header","genesis-blocks")},{value:"section",label:Ws("section","genesis-blocks")},{value:"article",label:Ws("article","genesis-blocks")},{value:"main",label:Ws("main","genesis-blocks")},{value:"aside",label:Ws("aside","genesis-blocks")},{value:"footer",label:Ws("footer","genesis-blocks")}],d=[{value:"h2",label:Ws("H2","genesis-blocks")},{value:"h3",label:Ws("H3","genesis-blocks")},{value:"h4",label:Ws("H4","genesis-blocks")},{value:"h5",label:Ws("H5","genesis-blocks")},{value:"h6",label:Ws("H6","genesis-blocks")}],p=Array.isArray(o)&&o.length,m="post"===n.postType,f={value:"selectimage",label:Ws("Select image size","genesis-blocks")},h={value:"gb-block-post-grid-landscape",label:Ws("GB Grid Landscape","genesis-blocks")},g={value:"gb-block-post-grid-square",label:Ws("GB Grid Square","genesis-blocks")},_=this.imageSizeSelect();_.push(g,h),_.unshift(f);var b=this.pageSelect();return React.createElement(Gs,null,React.createElement($s,{title:Ws("Post and Page Grid Settings","genesis-blocks"),className:m?null:"genesis-blocks-hide-query"},React.createElement(M,{id:"gb_postgrid_postType"},React.createElement(Zs,{label:Ws("Content Type","genesis-blocks"),options:u,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&React.createElement(M,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control select2-page"},React.createElement("div",{className:"components-base-control__field"},React.createElement("label",{className:"components-base-control__label",htmlFor:"inspector-select-control"},Ws("Pages To Show","genesis-blocks")),React.createElement(Bs,{options:b,value:n.selectedPages,onChange:function(t){e.props.setAttributes({selectedPages:t,postsToShow:t.length})},isMulti:!0,closeMenuOnSelect:!1})))),"post"===n.postType&&React.createElement(Js,null,React.createElement(M,{id:"gb_postgrid_queryControls"},React.createElement(Ks,a()({order:i,orderBy:s},{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})}}))),React.createElement(M,{id:"gb_postgrid_offset"},React.createElement(Qs,{label:Ws("Number of items to offset","genesis-blocks"),value:n.offset,onChange:function(e){return r({offset:e})},min:0,max:20}))),"grid"===n.postLayout&&React.createElement(M,{id:"gb_postgrid_columns"},React.createElement(Qs,{label:Ws("Columns","genesis-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:p?Math.min(4,o.length):4}))),React.createElement($s,{title:Ws("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(M,{id:"gb_postgrid_displaySectionTitle"},React.createElement(el,{label:Ws("Display Section Title","genesis-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&React.createElement(M,{id:"gb_postgrid_sectionTitle"},React.createElement(Xs,{label:Ws("Section Title","genesis-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),React.createElement(M,{id:"gb_postgrid_displayPostImage"},React.createElement(el,{label:Ws("Display Featured Image","genesis-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&React.createElement(M,{id:"gb_postgrid_imageSizeValue"},React.createElement(Zs,{label:Ws("Image Size","genesis-blocks"),value:function(){for(var e=0;e<_.length;e++)if(_[e].value===n.imageSize)return n.imageSize;return"full"}(),options:_,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),React.createElement(M,{id:"gb_postgrid_displayPostTitle"},React.createElement(el,{label:Ws("Display Title","genesis-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),m&&React.createElement(M,{id:"gb_postgrid_displayPostAuthor"},React.createElement(el,{label:Ws("Display Author","genesis-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),m&&React.createElement(M,{id:"gb_postgrid_displayPostDate"},React.createElement(el,{label:Ws("Display Date","genesis-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),React.createElement(M,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(el,{label:Ws("Display Excerpt","genesis-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&React.createElement(M,{id:"gb_postgrid_excerptLength"},React.createElement(Qs,{label:Ws("Excerpt Length","genesis-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),React.createElement(M,{id:"gb_postgrid_displayPostLink"},React.createElement(el,{label:Ws("Display Continue Reading Link","genesis-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&React.createElement(M,{id:"gb_postgrid_readMoreText"},React.createElement(Xs,{label:Ws("Customize Continue Reading Text","genesis-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),React.createElement($s,{title:Ws("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(M,{id:"gb_postgrid_sectionTag"},React.createElement(Zs,{label:Ws("Post Grid Section Tag","genesis-blocks"),options:c,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:Ws("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),n.sectionTitle&&React.createElement(M,{id:"gb_postgrid_sectionTitleTag"},React.createElement(Zs,{label:Ws("Section Title Heading Tag","genesis-blocks"),options:d,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:Ws("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),n.displayPostTitle&&React.createElement(M,{id:"gb_postgrid_postTitleTag"},React.createElement(Zs,{label:Ws("Post Title Heading Tag","genesis-blocks"),options:d,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:Ws("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}]),n}(Vs),al=n(32),ol=n.n(al);function il(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var sl=wp.i18n.__,ll=wp.element,ul=ll.Fragment,cl=ll.Component,dl=wp.components,pl=dl.Placeholder,ml=dl.Dashicon,fl=function(e){p()(n,e);var t=il(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},r}return c()(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 ol()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return ol()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return React.createElement(ul,null,React.createElement("div",{className:b()("gb-block-post-grid-image")},React.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},React.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&&React.createElement(ul,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(ml,{icon:"warning"})),React.createElement(pl,{className:"gb-post-grid-no-image-placeholder"},React.createElement(ml,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},sl("There is no image generated for the selected image size, so a fallback image size is being used.","genesis-blocks")),React.createElement("div",{className:"gb-post-grid-image-help"},React.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":sl("Learn more about image sizes (opens in a new tab)","genesis-blocks"),href:"https://github.com/studiopress/genesis-blocks/wiki/Post-Grid-Block#featured-image-sizes"},sl("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}]),n}(cl);function hl(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 gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hl(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _l(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var bl=wp.compose.compose,yl=wp.element,vl=yl.Component,kl=yl.Fragment,Ml=wp.i18n.__,Ll=wp.htmlEntities.decodeEntities,wl=wp.data.withSelect,Tl=wp.components,Yl=Tl.Placeholder,El=Tl.Spinner,Sl=Tl.ToolbarGroup,xl=wp.blockEditor,Dl=xl.BlockAlignmentToolbar,Cl=xl.BlockControls,Rl=function(e){p()(n,e);var t=_l(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.setAttributes,s=n.latestPosts,l=Array.isArray(s)&&s.length,u="post"===r.postType;if(!l)return React.createElement(kl,null,React.createElement(rl,gl({setAttributes:o},this.props)),React.createElement(Yl,{icon:"admin-post",label:Ml("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(s)?Ml("No posts found.","genesis-blocks"):React.createElement(El,null)));var c=s.length>r.postsToShow?s.slice(0,r.postsToShow):s,d=[{icon:"grid-view",title:Ml("Grid View","genesis-blocks"),onClick:function(){return o({postLayout:"grid"})},isActive:"grid"===r.postLayout},{icon:"list-view",title:Ml("List View","genesis-blocks"),onClick:function(){return o({postLayout:"list"})},isActive:"list"===r.postLayout}],p=r.sectionTag?r.sectionTag:"section",m=r.sectionTitleTag?r.sectionTitleTag:"h2",f=r.postTitleTag?r.postTitleTag:"h3";return React.createElement(kl,null,React.createElement(rl,gl({setAttributes:o},this.props)),React.createElement(Cl,null,React.createElement(Dl,{value:r.align,onChange:function(e){o({align:e})},controls:["center","wide","full"]}),React.createElement(Sl,{controls:d})),React.createElement(p,{className:b()(this.props.className,"gb-block-post-grid")},r.displaySectionTitle&&r.sectionTitle&&React.createElement(m,{className:"gb-post-grid-section-title"},r.sectionTitle),React.createElement("div",{className:b()((e={"is-grid":"grid"===r.postLayout,"is-list":"list"===r.postLayout},i()(e,"columns-".concat(r.columns),"grid"===r.postLayout),i()(e,"gb-post-grid-items","gb-post-grid-items"),e))},c.map((function(e,n){return React.createElement("article",{key:n,id:"post-"+e.id,className:b()("post-"+e.id,e.featured_image_src&&r.displayPostImage?"has-post-thumbnail":null)},r.displayPostImage&&e.featured_media?React.createElement(fl,a()({},t.props,{imgAlt:Ll(e.title.rendered.trim())||Ml("(Untitled)","genesis-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,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},r.displayPostTitle&&React.createElement(f,{className:"gb-block-post-grid-title"},React.createElement("a",{href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},Ll(e.title.rendered.trim())||Ml("(Untitled)","genesis-blocks"))),u&&React.createElement("div",{className:"gb-block-post-grid-byline"},r.displayPostAuthor&&e.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-author"},React.createElement("a",{className:"gb-text-link",target:"_blank",rel:"noopener noreferrer",href:e.author_info.author_link},e.author_info.display_name)),r.displayPostDate&&e.date_gmt&&React.createElement("time",{dateTime:co()(e.date_gmt).utc().format(),className:"gb-block-post-grid-date"},co()(e.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},r.displayPostExcerpt&&e.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(o=e.excerpt.rendered,i=r.excerptLength,o.split(" ").splice(0,i).join(" "))}}),r.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},r.readMoreText)))));var o,i})))))}}]),n}(vl),Ol=bl([wl((function(e,t){var n=t.attributes,r=n.order,a=n.categories,o=e("core").getEntityRecords,i=lo()({categories:a,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!io()(e)})),s=t.attributes.selectedPages&&t.attributes.selectedPages.length>0?t.attributes.selectedPages.map((function(e){return e.value})):null,l=lo()({include:s||null,orderby:s?"include":null},(function(e){return!io()(e)}));return{latestPosts:o("postType",t.attributes.postType,"page"===t.attributes.postType&&s?l:i)}}))])(Rl);n(363),n(364);var Pl=wp.i18n.__,jl=wp.blocks.registerBlockType,Hl=["center","wide","full"];function Al(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}jl("genesis-blocks/gb-post-grid",{title:Pl("Post and Page Grid","genesis-blocks"),description:Pl("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[Pl("post","genesis-blocks"),Pl("page","genesis-blocks"),Pl("grid","genesis-blocks"),Pl("atomic","genesis-blocks")],getEditWrapperProps:function(e){var t=e.align;if(-1!==Hl.indexOf(t))return{"data-align":t}},edit:Ol,gb_settings_data:{gb_postgrid_postType:{title:Pl("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:Pl("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:Pl("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:Pl("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:Pl("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:Pl("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:Pl("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:Pl("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:Pl("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:Pl("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:Pl("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:Pl("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:Pl("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:Pl("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:Pl("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:Pl("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:Pl("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:Pl("Post Title Heading Tag","genesis-blocks")}},save:function(){return null}});var zl=wp.i18n.__,Fl=wp.element.Component,Nl=wp.blockEditor,Bl=Nl.InspectorControls,Il=Nl.PanelColorSettings,Wl=Nl.MediaUpload,Ul=wp.components,Vl=Ul.Button,Jl=Ul.Icon,Gl=Ul.PanelBody,ql=Ul.RangeControl,$l=function(e){p()(n,e);var t=Al(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.containerPaddingTop,r=t.containerPaddingRight,a=t.containerPaddingBottom,o=t.containerPaddingLeft,i=t.containerMarginTop,s=t.containerMarginBottom,l=t.containerMaxWidth,u=t.containerBackgroundColor,c=t.containerDimRatio,d=t.containerImgURL,p=t.containerImgID,m=this.props.setAttributes,f=function(){m({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Bl,{key:"inspector"},React.createElement(M,{id:"gb_container_containerOptions"},React.createElement(Gl,{title:zl("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(ql,{label:zl("Padding Top (%)","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Bottom (%)","genesis-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Left (%)","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Right (%)","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Margin Top (%)","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),React.createElement(ql,{label:zl("Margin Bottom (%)","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Inside Container Max Width (px)","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({containerMaxWidth:t})},min:500,max:1600,step:1}))),React.createElement(M,{id:"gb_container_backgroundOptions"},React.createElement(Gl,{title:zl("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,zl("Select a background image:","genesis-blocks")),React.createElement(Wl,{onSelect:function(e){m({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Vl,{className:"gb-container-inspector-media",label:zl("Edit image","genesis-blocks"),onClick:t},React.createElement(Jl,{icon:"format-image"}),zl("Select Image","genesis-blocks")),d&&!!d.length&&React.createElement(Vl,{className:"gb-container-inspector-media",label:zl("Remove Image","genesis-blocks"),onClick:f},React.createElement(Jl,{icon:"dismiss"}),zl("Remove","genesis-blocks")))}}),d&&!!d.length&&React.createElement(ql,{label:zl("Image Opacity","genesis-blocks"),value:c,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),React.createElement(Il,{title:zl("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,label:zl("Background Color","genesis-blocks"),onChange:function(e){return m({containerBackgroundColor:e})}}]}))))}}]),n}(Fl);function Kl(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ql=function(e){p()(n,e);var t=Kl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,u=t.containerMarginTop,c=t.containerMarginBottom,d=t.containerWidth,p=t.containerMaxWidth,m=t.containerImgURL,f=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:u?"".concat(u,"%"):void 0,marginBottom:c?"".concat(c,"%"):void 0},_=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:_||void 0},React.createElement("div",{className:"gb-container-inside"},m&&!!m.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:m,alt:f})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:p?"".concat(p,"px"):void 0}},this.props.children)))}}]),n}(wp.element.Component);function Zl(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xl=function(e){p()(n,e);var t=Zl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.containerBackgroundColor,n=e.containerAlignment,r=e.containerPaddingTop,a=e.containerPaddingRight,o=e.containerPaddingBottom,s=e.containerPaddingLeft,l=e.containerMarginTop,u=e.containerMarginBottom,c=e.containerWidth,d=(e.containerMaxWidth,b()([this.props.className,"gb-block-container"],i()({},"align"+c,c)));return React.createElement("div",{style:{backgroundColor:t,textAlign:n,paddingLeft:"".concat(s,"%"),paddingRight:"".concat(a,"%"),paddingBottom:"".concat(o,"%"),paddingTop:"".concat(r,"%"),marginTop:"".concat(l,"%"),marginBottom:"".concat(u,"%")},className:d||void 0},this.props.children)}}]),n}(wp.element.Component);function eu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var tu=function(e){p()(n,e);var t=eu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,u=t.containerMarginTop,c=t.containerMarginBottom,d=t.containerWidth,p=t.containerMaxWidth,m=t.containerImgURL,f=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:u?"".concat(u,"%"):void 0,marginBottom:c?"".concat(c,"%"):void 0},_=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:_||void 0},React.createElement("div",{className:"gb-container-inside"},m&&!!m.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:m,alt:f})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(p,"px")}},this.props.children)))}}]),n}(wp.element.Component);var nu=wp.blockEditor.InnerBlocks;var ru=[{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 React.createElement(tu,e,React.createElement(nu.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,o=n.containerImgAlt,i=n.containerDimRatio;return React.createElement(Xl,e,React.createElement("div",{className:"gb-container-inside"},a&&!!a.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(t=i,0===t||50===t?null:"has-background-dim-"+10*Math.round(t/10)),{"has-background-dim":0!==i}),src:a,alt:o})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(r,"px")}},React.createElement(nu.Content,null))))}}];n(365),n(366);function au(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 ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var su=wp.i18n.__,lu=wp.element.Component,uu=wp.blocks.registerBlockType,cu=wp.blockEditor.InnerBlocks,du=function(e){p()(n,e);var t=iu(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.setAttributes;return[React.createElement($l,a()({key:"gb-container-inspector-"+this.props.clientId},ou({setAttributes:e},this.props))),React.createElement(Ql,a()({key:"gb-container-"+this.props.clientId},this.props),React.createElement(cu,null))]}}]),n}(lu);function pu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}uu("genesis-blocks/gb-container",{title:su("Container","genesis-blocks"),description:su("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[su("container","genesis-blocks"),su("section","genesis-blocks"),su("genesis","genesis-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}},gb_settings_data:{gb_container_containerOptions:{title:su("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:su("Background Options","genesis-blocks")}},edit:du,save:function(e){return React.createElement(Ql,e,React.createElement(cu.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:ru});var mu=wp.i18n.__,fu=wp.element.Component,hu=wp.blockEditor.InspectorControls,gu=wp.components,_u=gu.PanelBody,bu=gu.RangeControl,yu=function(e){p()(n,e);var t=pu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return React.createElement(hu,{key:"inspector"},React.createElement(_u,null,React.createElement(M,{id:"gb_pricing_columns"},React.createElement(bu,{label:mu("Pricing Columns","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),React.createElement(M,{id:"gb_pricing_columnsGap"},React.createElement(bu,{label:mu("Pricing Columns Gap","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}]),n}(fu);function vu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ku=function(e){p()(n,e);var t=vu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.columns,n=e.align,r=b()([this.props.className,"gb-pricing-columns-"+t],i()({},"align"+n,n));return React.createElement("div",{className:r||void 0},this.props.children)}}]),n}(wp.element.Component),Mu=n(33),Lu=n.n(Mu),wu=n(34),Tu=n.n(wu);function Yu(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 Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yu(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var xu=wp.i18n.__,Du=wp.element.Component,Cu=wp.blocks.registerBlockType,Ru=wp.blockEditor,Ou=Ru.BlockControls,Pu=Ru.BlockAlignmentToolbar,ju=Ru.InnerBlocks,Hu=wp.data.dispatch,Au=["genesis-blocks/gb-pricing-table"],zu=Lu()((function(e){return Tu()(e,(function(){return["genesis-blocks/gb-pricing-table"]}))})),Fu=function(e){p()(n,e);var t=Su(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&Hu("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.columns,r=t.columnsGap,o=t.align,i=e.setAttributes;return[React.createElement(Ou,{key:"controls"},React.createElement(Pu,{value:o,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),React.createElement(yu,a()({key:"gb-pricing-table-inspector-"+this.props.clientId},Eu({setAttributes:i},this.props))),React.createElement(ku,a()({key:"gb-pricing-table-"+this.props.clientId},this.props),React.createElement("div",{className:b()("gb-pricing-table-wrap-admin","gb-block-pricing-table-gap-"+r)},React.createElement(ju,{template:zu(n),templateLock:"all",allowedBlocks:Au})))]}}]),n}(Du);function Nu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Cu("genesis-blocks/gb-pricing",{title:xu("Pricing","genesis-blocks"),description:xu("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[xu("pricing table","genesis-blocks"),xu("shop","genesis-blocks"),xu("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:xu("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:xu("Pricing Columns Gap","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:Fu,save:function(e){var t=e.attributes.columnsGap,n=b()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(ku,e,React.createElement("div",{className:n||void 0},React.createElement(ju.Content,null)))}});var Bu=wp.i18n.__,Iu=wp.element.Component,Wu=wp.blockEditor,Uu=Wu.InspectorControls,Vu=Wu.PanelColorSettings,Ju=wp.components,Gu=Ju.PanelBody,qu=Ju.RangeControl,$u=function(e){p()(n,e);var t=Nu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderWidth,a=n.borderColor,o=n.borderRadius,i=n.backgroundColor,s=n.padding,l=t.setAttributes;return React.createElement(Uu,{key:"inspector"},React.createElement(Gu,null,React.createElement(M,{id:"gb_pricing_inner_padding"},React.createElement(qu,{label:Bu("Pricing Column Padding","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),React.createElement(M,{id:"gb_pricing_inner_borderWidth"},React.createElement(qu,{label:Bu("Pricing Column Border","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),React.createElement(M,{id:"gb_pricing_inner_borderRadius"},React.createElement(qu,{label:Bu("Pricing Column Border Radius","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({borderRadius:t})},min:0,max:20,step:1}))),0<r&&React.createElement(M,{id:"gb_pricing_inner_borderColor"},React.createElement(Vu,{title:Bu("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({borderColor:e})},label:Bu("Border Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_pricing_inner_colorSettings"},React.createElement(Vu,{title:Bu("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return l({backgroundColor:e})},label:Bu("Background Color","genesis-blocks")}]})))}}]),n}(Iu);n(367),n(368);function Ku(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 Qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ku(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zu(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xu=wp.i18n.__,ec=wp.element.Component,tc=wp.blocks.registerBlockType,nc=wp.blockEditor,rc=nc.InnerBlocks,ac=nc.AlignmentToolbar,oc=nc.BlockControls,ic=wp.element.Fragment,sc=["genesis-blocks/gb-pricing-table-description","genesis-blocks/gb-pricing-table-price","genesis-blocks/gb-pricing-table-subtitle","genesis-blocks/gb-pricing-table-title","genesis-blocks/gb-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"],lc=function(e){p()(n,e);var t=Zu(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.borderWidth,r=t.borderColor,o=t.borderRadius,i=t.backgroundColor,s=t.padding,l=t.alignment,u=e.setAttributes,c={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:o||null,backgroundColor:i||null,padding:s?s+"%":null};return[React.createElement(oc,{key:"controls"},React.createElement(ac,{value:l,onChange:function(e){u({alignment:e})}})),React.createElement($u,a()({key:"gb-pricing-table-inner-inspector-"+this.props.clientId},Qu({setAttributes:u},this.props))),React.createElement(ic,{key:"gb-pricing-table-inner-fragment-"+this.props.clientId},React.createElement("div",{className:b()(l?"gb-block-pricing-table-"+l:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:c},React.createElement(rc,{template:[["genesis-blocks/gb-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-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}],["genesis-blocks/gb-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:sc,templateInsertUpdatesSelection:!1}))))]}}]),n}(ec);tc("genesis-blocks/gb-pricing-table",{title:Xu("Pricing Column","genesis-blocks"),description:Xu("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[Xu("pricing","genesis-blocks"),Xu("shop","genesis-blocks"),Xu("buy","genesis-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},gb_settings_data:{gb_pricing_inner_padding:{title:Xu("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:Xu("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:Xu("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:Xu("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:Xu("Pricing Column Background Color","genesis-blocks")}},edit:lc,save:function(e){var t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,o=t.backgroundColor,i=t.alignment,s=t.padding,l={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:o||null,padding:s?s+"%":null};return React.createElement("div",{className:b()(i?"gb-block-pricing-table-"+i:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:l},React.createElement(rc.Content,null)))}});var uc=wp.i18n.__,cc=wp.element.Fragment,dc=wp.components.RangeControl;function pc(e){var t=e.padding,n=e.paddingTitle,r=e.paddingHelp,a=e.paddingMin,o=e.paddingMax,i=e.paddingEnable,s=e.onChangePadding,l=void 0===s?function(){}:s,u=e.paddingTop,c=e.paddingTopMin,d=e.paddingTopMax,p=e.paddingEnableTop,m=e.onChangePaddingTop,f=void 0===m?function(){}:m,h=e.paddingRight,g=e.paddingRightMin,_=e.paddingRightMax,b=e.paddingEnableRight,y=e.onChangePaddingRight,v=void 0===y?function(){}:y,k=e.paddingBottom,M=e.paddingBottomMin,L=e.paddingBottomMax,w=e.paddingEnableBottom,T=e.onChangePaddingBottom,Y=void 0===T?function(){}:T,E=e.paddingLeft,S=e.paddingLeftMin,x=e.paddingLeftMax,D=e.paddingEnableLeft,C=e.onChangePaddingLeft,R=void 0===C?function(){}:C,O=e.paddingVertical,P=e.paddingEnableVertical,j=e.paddingVerticalMin,H=e.paddingVerticalMax,A=e.onChangePaddingVertical,z=void 0===A?function(){}:A,F=e.paddingHorizontal,N=e.paddingEnableHorizontal,B=e.paddingHorizontalMin,I=e.paddingHorizontalMax,W=e.onChangePaddingHorizontal,U=void 0===W?function(){}:W;return React.createElement(cc,null,i&&React.createElement(dc,{label:n||uc("Padding","genesis-blocks"),help:r||null,value:t,min:a,max:o,onChange:l}),p&&React.createElement(dc,{label:uc("Padding Top","genesis-blocks"),value:u,min:c,max:d,onChange:f}),b&&React.createElement(dc,{label:uc("Padding Right","genesis-blocks"),value:h,min:g,max:_,onChange:v}),w&&React.createElement(dc,{label:uc("Padding Bottom","genesis-blocks"),value:k,min:M,max:L,onChange:Y}),D&&React.createElement(dc,{label:uc("Padding Left","genesis-blocks"),value:E,min:S,max:x,onChange:R}),P&&React.createElement(dc,{label:uc("Padding Vertical","genesis-blocks"),value:O,min:j,max:H,onChange:z}),N&&React.createElement(dc,{label:uc("Padding Horizontal","genesis-blocks"),value:F,min:B,max:I,onChange:U}))}function mc(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var fc=wp.i18n.__,hc=wp.element.Component,gc=wp.compose.compose,_c=wp.blockEditor,bc=_c.InspectorControls,yc=_c.FontSizePicker,vc=_c.withFontSizes,kc=_c.withColors,Mc=_c.ContrastChecker,Lc=_c.PanelColorSettings,wc=wp.components,Tc=wc.withFallbackStyles,Yc=wc.PanelBody,Ec=wc.ToggleControl,Sc=wc.TextControl,xc=(wc.RangeControl,Tc((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}}))),Dc=function(e){p()(n,e);var t=mc(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.showTerm,o=n.showCurrency,i=n.term,s=n.currency,l=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.setAttributes),m=t.fallbackFontSize,f=t.fontSize,h=t.setFontSize,g=t.backgroundColor,_=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,v=t.fallbackBackgroundColor,k=t.fallbackTextColor;return React.createElement(bc,{key:"inspector"},React.createElement(Yc,{title:fc("Text Settings","genesis-blocks")},React.createElement(yc,{fallbackFontSize:m,value:f.size,onChange:h}),React.createElement(Ec,{label:fc("Show currency symbol","genesis-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&React.createElement(Sc,{label:fc("Currency Symbol","genesis-blocks"),type:"text",value:s,onChange:function(t){return e.props.setAttributes({currency:t})}}),React.createElement(Ec,{label:fc("Show pricing duration","genesis-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&React.createElement(Sc,{label:fc("Pricing Duration","genesis-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({term:t})}})),React.createElement(Yc,{title:fc("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return p({paddingTop:e})},paddingEnableRight:!0,paddingRight:u,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return p({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:c,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return p({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:d,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return p({paddingLeft:e})}})),React.createElement(Lc,{title:fc("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:g.color,onChange:b,label:fc("Background Color","genesis-blocks")},{value:_.color,onChange:y,label:fc("Text Color","genesis-blocks")}]},React.createElement(Mc,a()({textColor:_.color,backgroundColor:g.color,fallbackTextColor:k,fallbackBackgroundColor:v},{fontSize:f.size}))))}}]),n}(hc),Cc=gc([xc,vc("fontSize"),kc("backgroundColor",{textColor:"color"})])(Dc);function Rc(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Oc=wp.i18n.__,Pc=(wp.blocks.registerBlockType,wp.compose.compose),jc=wp.element,Hc=jc.Component,Ac=jc.Fragment,zc=wp.blockEditor,Fc=zc.RichText,Nc=zc.withFontSizes,Bc=zc.withColors,Ic=function(e){p()(n,e);var t=Rc(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.price,a=n.currency,o=n.term,s=n.showTerm,l=n.showCurrency,u=n.paddingTop,c=n.paddingRight,d=n.paddingBottom,p=n.paddingLeft,m=(t.isSelected,t.className,t.setAttributes),f=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,g=t.textColor,_=b()((e={"gb-pricing-table-price-wrap":!0,"has-text-color":g.color,"has-background":h.color},i()(e,h.class,h.class),i()(e,g.class,g.class),i()(e,"gb-pricing-has-currency",l),e)),y=b()(i()({"gb-pricing-table-price":!0},f.class,f.class)),v={backgroundColor:h.color,color:g.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},k={fontSize:f.size?f.size+"px":void 0},M=Math.floor(f.size/2.5),L={fontSize:f.size?M+"px":void 0},w=Math.floor(f.size/2.5),T={fontSize:f.size?w+"px":void 0};return[React.createElement(Ac,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(Cc,this.props),React.createElement("div",{className:_||void 0,style:v},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},l&&React.createElement(Fc,{tagName:"span",itemProp:"priceCurrency",placeholder:Oc("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return m({currency:e})},className:"gb-pricing-table-currency",style:L}),React.createElement(Fc,{tagName:"div",itemProp:"price",placeholder:Oc("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return m({price:e})},style:k,className:y||void 0}),s&&React.createElement(Fc,{tagName:"span",value:o,placeholder:Oc("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return m({term:e})},className:"gb-pricing-table-term",style:T}))))]}}]),n}(Hc),Wc=Pc([Nc("fontSize"),Bc("backgroundColor",{textColor:"color"})])(Ic),Uc=wp.i18n.__,Vc=wp.blockEditor,Jc=Vc.RichText,Gc=Vc.getFontSizeClass,qc=Vc.getColorClassName,$c=[{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,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,m=n.showTerm,f=n.showCurrency,h=n.paddingTop,g=n.paddingRight,_=n.paddingBottom,y=n.paddingLeft,v=Gc(o),k=qc("color",u),M=qc("background-color",l),L=b()((t={"has-background":l||c,"gb-pricing-table-price-wrap":!0},i()(t,k,k),i()(t,M,M),i()(t,"gb-pricing-has-currency",f&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},v,v)),T={backgroundColor:M?void 0:c,color:k?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:_?_+"px":void 0,paddingLeft:y?y+"px":void 0},Y={fontSize:v?void 0:s},E=v?void 0:s,S=Math.floor(E/2.5),x={fontSize:E?S+"px":void 0},D=Math.floor(E/2.5),C={fontSize:E?D+"px":void 0};return React.createElement("div",{className:L||void 0,style:T},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&f&&React.createElement(Jc.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:Uc("$","genesis-blocks"),value:a,className:"gb-pricing-table-currency",style:x}),React.createElement(Jc.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:Y}),p&&m&&React.createElement(Jc.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:C})))}}],Kc=wp.i18n.__,Qc=wp.blocks.registerBlockType,Zc=wp.element,Xc=(Zc.Component,Zc.Fragment,wp.blockEditor),ed=Xc.RichText,td=Xc.getFontSizeClass,nd=(Xc.FontSizePicker,Xc.withFontSizes,Xc.getColorClassName);function rd(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Qc("genesis-blocks/gb-pricing-table-price",{title:Kc("Product Price","genesis-blocks"),description:Kc("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Kc("pricing table","genesis-blocks"),Kc("price","genesis-blocks"),Kc("shop","genesis-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:Wc,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,m=n.showTerm,f=n.showCurrency,h=n.paddingTop,g=n.paddingRight,_=n.paddingBottom,y=n.paddingLeft,v=td(o),k=nd("color",u),M=nd("background-color",l),L=b()((t={"has-background":l||c,"gb-pricing-table-price-wrap":!0},i()(t,k,k),i()(t,M,M),i()(t,"gb-pricing-has-currency",f&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},v,v)),T={backgroundColor:M?void 0:c,color:k?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:_?_+"px":void 0,paddingLeft:y?y+"px":void 0},Y={fontSize:v?void 0:s},E=v?void 0:s,S=Math.floor(E/2.5),x={fontSize:E?S+"px":void 0},D=Math.floor(E/2.5),C={fontSize:E?D+"px":void 0};return React.createElement("div",{className:L||void 0,style:T},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&f&&React.createElement(ed.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"gb-pricing-table-currency",style:x}),React.createElement(ed.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:Y}),p&&m&&React.createElement(ed.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:C})))},deprecated:$c});var ad=wp.i18n.__,od=wp.element.Component,id=wp.compose.compose,sd=wp.blockEditor,ld=sd.InspectorControls,ud=sd.FontSizePicker,cd=sd.withFontSizes,dd=sd.withColors,pd=sd.ContrastChecker,md=sd.PanelColorSettings,fd=sd.ColorPalette,hd=wp.components,gd=hd.withFallbackStyles,_d=hd.PanelBody,bd=hd.PanelRow,yd=hd.SelectControl,vd=hd.BaseControl,kd=hd.RangeControl,Md=gd((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),Ld=function(e){p()(n,e);var t=rd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderStyle,o=n.borderColor,i=n.borderWidth,s=n.paddingTop,l=n.paddingRight,u=n.paddingBottom,c=n.paddingLeft,d=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,m=t.fontSize,f=t.setFontSize,h=t.backgroundColor,g=t.textColor,_=t.setBackgroundColor,b=t.setTextColor,y=t.fallbackBackgroundColor,v=t.fallbackTextColor,k=[{value:"gb-list-border-none",label:ad("None")},{value:"gb-list-border-solid",label:ad("Solid")},{value:"gb-list-border-dotted",label:ad("Dotted")},{value:"gb-list-border-dashed",label:ad("Dashed")}];return React.createElement(ld,{key:"inspector"},React.createElement(_d,{title:ad("Text Settings","genesis-blocks")},React.createElement(ud,{fallbackFontSize:p,value:m.size,onChange:f}),React.createElement(yd,{label:ad("List Border Style","genesis-blocks"),value:r,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({borderStyle:t})}}),"gb-list-border-none"!==r&&React.createElement(kd,{label:ad("List Border Width","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:1,max:5,step:1}),"gb-list-border-none"!==r&&React.createElement(bd,null,React.createElement(vd,{label:ad("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(fd,{initialOpen:!1,value:o,onChange:function(e){return d({borderColor:e})}})))),React.createElement(_d,{title:ad("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:s,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:l,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})}})),React.createElement(md,{title:ad("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:_,label:ad("Background Color","genesis-blocks")},{value:g.color,onChange:b,label:ad("Text Color","genesis-blocks")}]},React.createElement(pd,a()({textColor:g.color,backgroundColor:h.color,fallbackTextColor:v,fallbackBackgroundColor:y},{fontSize:m.size}))))}}]),n}(od),wd=id([Md,cd("fontSize"),dd("backgroundColor",{textColor:"color"})])(Ld);function Td(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Yd=wp.i18n.__,Ed=(wp.blocks.registerBlockType,wp.compose.compose),Sd=wp.element,xd=Sd.Component,Dd=Sd.Fragment,Cd=wp.blockEditor,Rd=Cd.RichText,Od=Cd.withFontSizes,Pd=Cd.withColors,jd=function(e){p()(n,e);var t=Td(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.features,a=n.borderStyle,o=n.borderColor,s=n.borderWidth,l=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),m=(t.fallbackFontSize,t.fontSize),f=t.backgroundColor,h=t.textColor,g=b()((e={"gb-pricing-table-features":!0},i()(e,m.class,m.class),i()(e,"has-text-color",h.color),i()(e,"has-background",f.color),i()(e,f.class,f.class),i()(e,h.class,h.class),i()(e,a,a),i()(e,"gb-list-border-width-"+s,s),e)),_={fontSize:m.size?m.size+"px":void 0,backgroundColor:f.color,color:h.color,borderColor:o||void 0,paddingTop:l?l+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:d?d+"px":void 0};return[React.createElement(Dd,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(wd,this.props),React.createElement(Rd,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:Yd("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({features:e})},style:_,className:g||void 0}))]}}]),n}(xd),Hd=Ed([Od("fontSize"),Pd("backgroundColor",{textColor:"color"})])(jd),Ad=wp.i18n.__,zd=wp.blocks.registerBlockType,Fd=(wp.element.Component,wp.blockEditor),Nd=Fd.RichText,Bd=Fd.getFontSizeClass,Id=(Fd.FontSizePicker,Fd.withFontSizes,Fd.getColorClassName);function Wd(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}zd("genesis-blocks/gb-pricing-table-features",{title:Ad("Product Features","genesis-blocks"),description:Ad("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ad("pricing table","genesis-blocks"),Ad("features","genesis-blocks"),Ad("shop","genesis-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:"gb-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:Hd,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.borderStyle,p=n.borderColor,m=n.borderWidth,f=n.paddingTop,h=n.paddingRight,g=n.paddingBottom,_=n.paddingLeft,y=Bd(a),v=Id("color",l),k=Id("background-color",s),M=b()((t={"has-background":s||u,"gb-pricing-table-features":!0},i()(t,y,y),i()(t,v,v),i()(t,k,k),i()(t,d,d),i()(t,"gb-list-border-width-"+m,m),t)),L={fontSize:y?void 0:o,backgroundColor:k?void 0:u,color:v?void 0:c,borderColor:p||void 0,paddingTop:f?f+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:_?_+"px":void 0};return React.createElement(Nd.Content,{tagName:"ul",itemProp:"description",value:r,className:M||void 0,style:L})}});var Ud=wp.i18n.__,Vd=wp.element.Component,Jd=wp.compose.compose,Gd=wp.blockEditor,qd=Gd.InspectorControls,$d=Gd.FontSizePicker,Kd=Gd.withFontSizes,Qd=Gd.withColors,Zd=Gd.ContrastChecker,Xd=Gd.PanelColorSettings,ep=(Gd.RangeControl,wp.components),tp=ep.withFallbackStyles,np=ep.PanelBody,rp=tp((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),ap=function(e){p()(n,e);var t=Wd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,s=(e.isSelected,e.setAttributes),l=e.fallbackFontSize,u=e.fontSize,c=e.setFontSize,d=e.backgroundColor,p=e.textColor,m=e.setBackgroundColor,f=e.setTextColor,h=e.fallbackBackgroundColor,g=e.fallbackTextColor;return React.createElement(qd,{key:"inspector"},React.createElement(np,{title:Ud("Text Settings","genesis-blocks")},React.createElement($d,{fallbackFontSize:l,value:u.size,onChange:c})),React.createElement(np,{title:Ud("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return s({paddingLeft:e})}})),React.createElement(Xd,{title:Ud("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:m,label:Ud("Background Color","genesis-blocks")},{value:p.color,onChange:f,label:Ud("Text Color","genesis-blocks")}]},React.createElement(Zd,a()({textColor:p.color,backgroundColor:d.color,fallbackTextColor:g,fallbackBackgroundColor:h},{fontSize:u.size}))))}}]),n}(Vd),op=Jd([rp,Kd("fontSize"),Qd("backgroundColor",{textColor:"color"})])(ap);function ip(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var sp=wp.i18n.__,lp=(wp.blocks.registerBlockType,wp.compose.compose),up=wp.element,cp=up.Component,dp=up.Fragment,pp=wp.blockEditor,mp=pp.RichText,fp=pp.withFontSizes,hp=pp.withColors,gp=function(e){p()(n,e);var t=ip(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.title,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,m=b()((e={"gb-pricing-table-title":!0},i()(e,c.class,c.class),i()(e,"has-text-color",p.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,p.class,p.class),e)),f={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(dp,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(op,this.props),React.createElement(mp,{tagName:"div",itemProp:"name",placeholder:sp("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({title:e})},style:f,className:m||void 0}))]}}]),n}(cp),_p=lp([fp("fontSize"),hp("backgroundColor",{textColor:"color"})])(gp),bp=wp.i18n.__,yp=wp.blocks.registerBlockType,vp=(wp.element.Component,wp.blockEditor),kp=vp.RichText,Mp=vp.getFontSizeClass,Lp=(vp.FontSizePicker,vp.withFontSizes,vp.getColorClassName);function Tp(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}yp("genesis-blocks/gb-pricing-table-title",{title:bp("Product Title","genesis-blocks"),description:bp("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[bp("pricing table","genesis-blocks"),bp("title","genesis-blocks"),bp("shop","genesis-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:_p,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,m=n.paddingBottom,f=n.paddingLeft,h=Mp(a),g=Lp("color",l),_=Lp("background-color",s),y={fontSize:h?void 0:o,backgroundColor:_?void 0:u,color:g?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:f?f+"px":void 0},v=b()((t={"has-background":s||u,"gb-pricing-table-title":!0},i()(t,h,h),i()(t,g,g),i()(t,_,_),t));return React.createElement(kp.Content,{tagName:"div",itemProp:"name",value:r,style:y,className:v||void 0})}});var Yp=wp.i18n.__,Ep=(wp.blocks.registerBlockType,wp.compose.compose),Sp=wp.element,xp=Sp.Component,Dp=Sp.Fragment,Cp=wp.blockEditor,Rp=Cp.RichText,Op=Cp.withFontSizes,Pp=Cp.withColors,jp=function(e){p()(n,e);var t=Tp(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.subtitle,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,m=b()((e={"gb-pricing-table-subtitle":!0},i()(e,c.class,c.class),i()(e,"has-text-color",p.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,p.class,p.class),e)),f={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(Dp,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(op,this.props),React.createElement(Rp,{tagName:"div",placeholder:Yp("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({subtitle:e})},style:f,className:m||void 0}))]}}]),n}(xp),Hp=Ep([Op("fontSize"),Pp("backgroundColor",{textColor:"color"})])(jp),Ap=wp.i18n.__,zp=wp.blocks.registerBlockType,Fp=(wp.element.Component,wp.blockEditor),Np=Fp.RichText,Bp=Fp.getFontSizeClass,Ip=(Fp.FontSizePicker,Fp.withFontSizes,Fp.getColorClassName);function Wp(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}zp("genesis-blocks/gb-pricing-table-subtitle",{title:Ap("Product Subtitle","genesis-blocks"),description:Ap("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ap("pricing table","genesis-blocks"),Ap("subtitle","genesis-blocks"),Ap("shop","genesis-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:Hp,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,m=n.paddingBottom,f=n.paddingLeft,h=Bp(a),g=Ip("color",l),_=Ip("background-color",s),y=b()((t={"has-background":s||u,"gb-pricing-table-subtitle":!0},i()(t,h,h),i()(t,g,g),i()(t,_,_),t)),v={fontSize:h?void 0:o,backgroundColor:_?void 0:u,color:g?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:f?f+"px":void 0};return React.createElement(Np.Content,{tagName:"div",value:r,className:y||void 0,style:v})}});var Up=wp.i18n.__,Vp=wp.element.Component,Jp=wp.compose.compose,Gp=wp.blockEditor,qp=Gp.InspectorControls,$p=(Gp.FontSizePicker,Gp.withFontSizes),Kp=Gp.withColors,Qp=(Gp.ContrastChecker,Gp.PanelColorSettings),Zp=wp.components,Xp=Zp.withFallbackStyles,em=Zp.PanelBody,tm=(Zp.ToggleControl,Zp.TextControl,Zp.RangeControl,Xp((function(e,t){var n=t.attributes.backgroundColor,r=e.querySelector('[contenteditable="true"]'),a=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!a?void 0:a.backgroundColor}}))),nm=function(e){p()(n,e);var t=Wp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=(t.buttonText,t.buttonUrl,t.buttonAlignment,t.buttonBackgroundColor),s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=t.buttonTarget,d=(e.isSelected,e.setAttributes),p=e.backgroundColor,m=e.setBackgroundColor;e.fallbackBackgroundColor;return React.createElement(qp,{key:"inspector"},React.createElement(em,{title:Up("Button Settings","genesis-blocks")},React.createElement(en,{buttonTarget:c,onChangeButtonTarget:function(e){return d({buttonTarget:!c})},buttonSize:l,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:s,onChangeButtonTextColor:function(e){return d({buttonTextColor:e})}})),React.createElement(em,{title:Up("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{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:a,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:o,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(Qp,{title:Up("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:p.color,onChange:m,label:Up("Background Color","genesis-blocks")}]}))}}]),n}(Vp),rm=Jp([tm,$p("fontSize"),Kp("backgroundColor")])(nm);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var om=wp.i18n.__,im=(wp.blocks.registerBlockType,wp.compose.compose),sm=wp.element,lm=sm.Component,um=sm.Fragment,cm=wp.blockEditor,dm=cm.RichText,pm=cm.withFontSizes,mm=cm.withColors,fm=(cm.InnerBlocks,cm.URLInput),hm=wp.components,gm=hm.Button,_m=hm.Dashicon,bm=hm.Icon,ym=function(e){p()(n,e);var t=am(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.subtitle,t.paddingTop),r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=t.buttonText,s=t.buttonUrl,l=t.buttonAlignment,u=t.buttonBackgroundColor,c=t.buttonTextColor,d=t.buttonSize,p=t.buttonShape,m=(t.buttonTarget,e.isSelected),f=(e.className,e.setAttributes),h=e.backgroundColor,g=b()({"gb-pricing-table-button":!0}),_={backgroundColor:h.color,paddingTop:n?n+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:a?a+"px":void 0,paddingLeft:o?o+"px":void 0};return[React.createElement(um,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(rm,this.props),React.createElement("div",{className:g||void 0,style:_},React.createElement(ln,this.props,React.createElement(dm,{tagName:"span",placeholder:om("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:[],className:b()("gb-button",p,d),style:{color:c,backgroundColor:u},onChange:function(e){return f({buttonText:e})}})),m&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(l),onSubmit:function(e){return e.preventDefault()},style:{textAlign:l}},React.createElement(_m,{icon:"admin-links"}),React.createElement(fm,{className:"button-url",value:s,onChange:function(e){return f({buttonUrl:e})}}),React.createElement(gm,{label:om("Apply","genesis-blocks"),type:"submit"},React.createElement(bm,{icon:"editor-break"})))))]}}]),n}(lm),vm=im([pm("fontSize"),mm("backgroundColor",{textColor:"color"})])(ym),km=wp.i18n.__,Mm=wp.blocks.registerBlockType,Lm=(wp.element.Component,wp.blockEditor),wm=Lm.RichText,Tm=(Lm.getFontSizeClass,Lm.FontSizePicker,Lm.withFontSizes,Lm.getColorClassName);Mm("genesis-blocks/gb-pricing-table-button",{title:km("Product Button","genesis-blocks"),description:km("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[km("pricing table","genesis-blocks"),km("subtitle","genesis-blocks"),km("shop","genesis-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:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-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:vm,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,a=t.paddingTop,o=t.paddingRight,s=t.paddingBottom,l=t.paddingLeft,u=t.buttonText,c=t.buttonUrl,d=(t.buttonAlignment,t.buttonBackgroundColor),p=t.buttonTextColor,m=t.buttonSize,f=t.buttonShape,h=t.buttonTarget,g=Tm("background-color",n),_=b()(i()({"has-background":n||r,"gb-pricing-table-button":!0},g,g)),y={backgroundColor:g?void 0:r,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return React.createElement("div",{className:_||void 0,style:y},React.createElement(ln,e,u&&React.createElement("a",{href:c,target:h?"_blank":null,rel:h?"noopener noreferrer":null,className:b()("gb-button",f,m),style:{color:p,backgroundColor:d}},React.createElement(wm.Content,{value:u}))))}});var Ym=wp.i18n.__,Em=wp.element.Fragment,Sm=wp.components.RangeControl;function xm(e){var t=e.marginTop,n=e.marginTopLabel,r=e.marginTopMin,a=e.marginTopMax,o=e.marginEnableTop,i=e.onChangeMarginTop,s=void 0===i?function(){}:i,l=e.marginRight,u=e.marginRightLabel,c=e.marginRightMin,d=e.marginRightMax,p=e.marginEnableRight,m=e.onChangeMarginRight,f=void 0===m?function(){}:m,h=e.marginBottom,g=e.marginBottomLabel,_=e.marginBottomMin,b=e.marginBottomMax,y=e.marginEnableBottom,v=e.onChangeMarginBottom,k=void 0===v?function(){}:v,M=e.marginLeft,L=e.marginLeftLabel,w=e.marginLeftMin,T=e.marginLeftMax,Y=e.marginEnableLeft,E=e.onChangeMarginLeft,S=void 0===E?function(){}:E,x=e.marginVertical,D=e.marginVerticalLabel,C=e.marginEnableVertical,R=e.marginVerticalMin,O=e.marginVerticalMax,P=e.onChangeMarginVertical,j=void 0===P?function(){}:P,H=e.marginHorizontal,A=e.marginHorizontalLabel,z=e.marginEnableHorizontal,F=e.marginHorizontalMin,N=e.marginHorizontalMax,B=e.onChangeMarginHorizontal,I=void 0===B?function(){}:B;return React.createElement(Em,null,o&&React.createElement(Sm,{label:n||Ym("Margin Top","genesis-blocks"),value:t,min:r,max:a,onChange:s}),p&&React.createElement(Sm,{label:u||Ym("Margin Right","genesis-blocks"),value:l,min:c,max:d,onChange:f}),y&&React.createElement(Sm,{label:g||Ym("Margin Bottom","genesis-blocks"),value:h,min:_,max:b,onChange:k}),Y&&React.createElement(Sm,{label:L||Ym("Margin Left","genesis-blocks"),value:M,min:w,max:T,onChange:S}),C&&React.createElement(Sm,{label:D||Ym("Margin Vertical","genesis-blocks"),value:x,min:R,max:O,onChange:j}),z&&React.createElement(Sm,{label:A||Ym("Margin Horizontal","genesis-blocks"),value:H,min:F,max:N,onChange:I}))}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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Cm=wp.i18n.__,Rm=wp.element.Component,Om=wp.compose.compose,Pm=wp.blockEditor,jm=Pm.InspectorControls,Hm=Pm.withColors,Am=Pm.ContrastChecker,zm=Pm.PanelColorSettings,Fm=wp.components,Nm=Fm.PanelBody,Bm=Fm.SelectControl,Im=Fm.TextControl,Wm=Fm.FormToggle,Um=(0,Fm.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=n.buttonTextColor,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:r||!l?void 0:l.backgroundColor,fallbackTextColor:a||!l?void 0:l.color,fallbackButtonBackgroundColor:o||!l?void 0:l.buttonBackgroundColor,fallbackButtonTextColor:i||!l?void 0:l.buttonTextColor}})),Vm=function(e){p()(n,e);var t=Dm(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(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,a=e.setBackgroundColor,o=e.fallbackBackgroundColor,i=e.textColor,s=e.fallbackTextColor,l=e.setTextColor,u=e.buttonBackgroundColor,c=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,p=e.fallbackButtonTextColor,m=e.setButtonBackgroundColor,f=e.setButtonTextColor,h={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:Cm("Select a list","genesis-blocks"),value:""}]}};return genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((function(e){return h.mailchimp.lists.push({label:e.name,value:e.id})})),React.createElement(jm,null,React.createElement(Nm,{title:Cm("Newsletter","genesis-blocks"),initialOpen:!t.mailingList},React.createElement(M,{id:"gb_newsletter_mailingList"},React.createElement(Bm,{label:Cm("Mailing List","genesis-blocks"),help:Cm("The list people will be subscribed to.","genesis-blocks"),options:h.mailchimp.lists,value:t.mailingList,onChange:function(e){return n({mailingList:e})}})),React.createElement(M,{id:"gb_newsletter_successMessage"},React.createElement(Im,{type:"string",label:Cm("Success Message","genesis-blocks"),help:Cm("The message shown when people successfully subscribe.","genesis-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),React.createElement(M,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(Wm,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"gb-newsletter-double-opt-in-toggle",checked:t.doubleOptIn,onChange:function(e){return n({doubleOptIn:e.target.checked})}}),React.createElement("label",{className:"gb-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},Cm("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},Cm("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(Nm,{title:Cm("General","genesis-blocks"),initialOpen:!!t.mailingList},React.createElement(M,{id:"gb_newsletter_containerPadding"},React.createElement(pc,{paddingEnable:!0,paddingTitle:Cm("Block Padding","genesis-blocks"),paddingHelp:Cm("Adjust the padding applied to the inside of the block.","genesis-blocks"),padding:t.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:function(e){return n({containerPadding:e})}})),React.createElement(M,{id:"gb_newsletter_containerMargin"},React.createElement(xm,{marginEnableTop:!0,marginTopLabel:Cm("Block Margin Top","genesis-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:Cm("Block Margin Bottom","genesis-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),React.createElement(en,{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})),React.createElement(M,{id:"gb_newsletter_colorOptions"},React.createElement(zm,{title:Cm("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:a,label:Cm("Block Background Color","genesis-blocks")},{value:i.color,onChange:l,label:Cm("Block Text Color","genesis-blocks")},{value:u.color,onChange:m,label:Cm("Button Background Color","genesis-blocks")},{value:d.color,onChange:f,label:Cm("Button Text Color","genesis-blocks")}]},React.createElement(Am,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:s,fallbackBackgroundColor:o}),React.createElement(Am,{textColor:d.color,backgroundColor:u.color,fallbackButtonTextColor:p,fallbackButtonBackgroundColor:c}),React.createElement(Am,{textColor:u.color,backgroundColor:r.color,fallbackButtonBackgroundColor:c,fallbackBackgroundColor:o}))))}}]),n}(Rm),Jm=Om([Um,Hm("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Vm);function Gm(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var qm=wp.element.Component,$m=(wp.blockEditor.getColorClassName,function(e){p()(n,e);var t=Gm(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n,r=this.props,a=r.attributes,o=r.backgroundColor,s=r.textColor;return t=a.customBackgroundColor?"gb-has-custom-background-color":a.backgroundColor?"has-"+a.backgroundColor+"-background-color":null,n=a.customTextColor?"gb-has-custom-text-color":a.textColor?"has-"+a.textColor+"-color":null,React.createElement("div",{style:{backgroundColor:o.color,padding:a.containerPadding?a.containerPadding:void 0,marginTop:a.containerMarginTop?a.containerMarginTop:void 0,marginBottom:a.containerMarginBottom?a.containerMarginBottom:void 0,color:s.color},className:b()([this.props.className],(e={"gb-block-newsletter":!0,"gb-form-styles":!0,"has-background":a.backgroundColor||a.customBackgroundColor},i()(e,t,t),i()(e,n,n),e))},this.props.children)}}]),n}(qm));function Km(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 Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xm=wp.i18n.__,ef=wp.compose,tf=ef.compose,nf=ef.withInstanceId,rf=wp.blockEditor,af=(rf.getColorClassName,rf.RichText),of=rf.withColors,sf=wp.element,lf=sf.Fragment,uf=sf.Component,cf=wp.components,df=cf.TextControl,pf=(0,cf.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=e.querySelector('[contenteditable="true"]'),s=i?getComputedStyle(i):null;return{fallbackBackgroundColor:r||!s?void 0:s.backgroundColor,fallbackTextColor:a||!s?void 0:s.color,fallbackButtonBackgroundColor:o||!s?void 0:s.buttonBackgroundColor}})),mf=function(e){p()(n,e);var t=Zm(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return c()(n,[{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.attributes,i=r.isSelected,s=r.setAttributes,l=r.buttonBackgroundColor,u=r.buttonTextColor,c=genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;return e=o.customButtonBackgroundColor?"gb-has-custom-background-color":o.buttonBackgroundColor?"has-"+o.buttonBackgroundColor+"-background-color":null,t=o.customButtonTextColor?"gb-has-custom-text-color":o.buttonTextColor?"has-"+o.buttonTextColor+"-color":null,[React.createElement(Jm,a()({key:"gb-newsletter-inspector-"+this.props.clientId},Qm({setAttributes:s},this.props))),React.createElement($m,a()({key:"gb-newsletter-container-"+this.props.clientId},this.props),!c&&React.createElement(lf,null,React.createElement("div",{className:"gb-newsletter-notice"},Xm("You must define your newsletter provider API keys to use this block.","genesis-blocks"),React.createElement("p",null,React.createElement("a",{href:genesis_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},Xm("Configure your settings","genesis-blocks"))))),c&&React.createElement(lf,null,React.createElement(af,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:o.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),React.createElement(df,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:b()("gb-block-button")},React.createElement(ln,this.props,React.createElement(af,{tagName:"span",placeholder:Xm("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o.buttonText,allowedFormats:[],className:b()("gb-button",o.buttonClass,o.buttonShape,o.buttonSize,e,t,{"has-background":o.buttonBackgroundColor||o.customButtonBackgroundColor,"has-text-color":o.buttonTextColor||o.customButtonTextColor}),style:{backgroundColor:l.color,color:u.color},onChange:function(e){return n.props.setAttributes({buttonText:e})}})),i&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o.buttonAlignment),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o.buttonAlignment}}))))]}}]),n}(uf),ff=tf([pf,of("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(nf(mf)),hf=(n(369),n(370),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-newsletter",{title:hf("Email newsletter","genesis-blocks"),description:hf("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[hf("Mailchimp","genesis-blocks"),hf("Subscribe","genesis-blocks"),hf("Newsletter","genesis-blocks")],edit:ff,gb_settings_data:{gb_newsletter_mailingList:{title:hf("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:hf("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:hf("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:hf("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:hf("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:hf("Color Options","genesis-blocks")}},save:function(){return null}});var gf=n(35),_f=n.n(gf);var bf=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"gb-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"gb-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"gb-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"gb-background-"+e.backgroundRepeat:null,e.hasParallax?"gb-has-parallax":null];var t},yf=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 vf(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 kf(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mf=function(e){p()(n,e);var t=kf(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,t=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null;var r,a,o=b()([this.props.className,"gb-layout-columns-"+n.columns,n.layout].concat(_f()(bf(n)),[e,t,n.columnMaxWidth&&n.centerColumns?"gb-columns-center":null]),i()({},"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 s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(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},yf(n));return React.createElement("div",{className:o||void 0,style:Object.assign(r,a,s)},this.props.children)}}]),n}(wp.element.Component),Lf={};Lf.oneEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),Lf.twoEqual=React.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"},React.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),Lf.twoLeftWide=React.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"},React.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),Lf.twoRightWide=React.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"},React.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),Lf.threeEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),Lf.threeWideCenter=React.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"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Lf.threeWideLeft=React.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"},React.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Lf.threeWideRight=React.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"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),Lf.fourEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),Lf.fourLeft=React.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"},React.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Lf.fourRight=React.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"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),Lf.fiveEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Lf.sixEqual=React.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"},React.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),Lf.blockIcon=React.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"},React.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));var wf=Lf,Tf=wp.i18n.__,Yf={1:[{name:Tf("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:wf.oneEqual}],2:[{name:Tf("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:wf.twoEqual},{name:Tf("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:wf.twoLeftWide},{name:Tf("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:wf.twoRightWide}],3:[{name:Tf("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:wf.threeEqual},{name:Tf("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:wf.threeWideCenter},{name:Tf("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:wf.threeWideLeft},{name:Tf("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:wf.threeWideRight}],4:[{name:Tf("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:wf.fourEqual},{name:Tf("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:wf.fourLeft},{name:Tf("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:wf.fourRight}],5:[{name:Tf("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:wf.fiveEqual}],6:[{name:Tf("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:wf.sixEqual}]};function Ef(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 Sf(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var xf=wp.i18n.__,Df=wp.element,Cf=Df.Fragment,Rf=Df.Component,Of=wp.components,Pf=Of.PanelBody,jf=Of.RangeControl,Hf=Of.Button,Af=Of.ButtonGroup,zf=Of.FocalPointPicker,Ff=Of.Icon,Nf=Of.ToggleControl,Bf=Of.SelectControl,If=wp.blockEditor,Wf=If.MediaUpload,Uf=If.MediaUploadCheck,Vf=function(e){p()(n,e);var t=Sf(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,o=[{value:"no-repeat",label:xf("No Repeat","genesis-blocks")},{value:"repeat",label:xf("Repeat","genesis-blocks")},{value:"repeat-x",label:xf("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:xf("Repeat Vertically","genesis-blocks")}],s=[{value:"auto",label:xf("Auto","genesis-blocks")},{value:"cover",label:xf("Cover","genesis-blocks")},{value:"contain",label:xf("Contain","genesis-blocks")}];return"cover"===r.backgroundSize&&(e=xf("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","genesis-blocks")),"contain"===r.backgroundSize&&(e=xf("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===r.backgroundSize&&(e=xf("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(Cf,null,React.createElement(Pf,{title:xf("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(Uf,null,React.createElement(Wf,{onSelect:function(e){a({backgroundImgURL:e.url})},type:"image",value:r.backgroundImgURL,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Af,{className:"gb-background-button-group"},React.createElement(Hf,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:xf("Edit image","genesis-blocks"),onClick:t},React.createElement(Ff,{icon:"format-image"}),xf("Select Image","genesis-blocks")),r.backgroundImgURL&&React.createElement(Hf,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:xf("Remove Image","genesis-blocks"),onClick:function(){return a({backgroundImgURL:null})}},React.createElement(Ff,{icon:"dismiss"}),xf("Remove","genesis-blocks"))))}})),r.backgroundImgURL&&React.createElement(Cf,null,React.createElement(zf,{label:xf("Focal Point","genesis-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return a({focalPoint:e})}}),React.createElement(jf,{label:xf("Image Opacity","genesis-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),React.createElement(Nf,{label:xf("Fixed Background","genesis-blocks"),checked:r.hasParallax,onChange:function(){a(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasParallax:!r.hasParallax},r.hasParallax?{}:{focalPoint:void 0}))}}),React.createElement(Bf,{className:"gb-inspector-help-text",label:xf("Image Display","genesis-blocks"),value:r.backgroundSize,help:e,options:s,onChange:function(e){return t.props.setAttributes({backgroundSize:e})}}),"cover"!==r.backgroundSize&&React.createElement(Bf,{label:xf("Image Repeat","genesis-blocks"),value:r.backgroundRepeat,options:o,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}]),n}(Rf);function Jf(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Gf=wp.i18n.__,qf=wp.element,$f=qf.Component,Kf=qf.Fragment,Qf=wp.blockEditor,Zf=Qf.InspectorControls,Xf=Qf.PanelColorSettings,eh=Qf.ContrastChecker,th=wp.components,nh=th.PanelBody,rh=th.RangeControl,ah=th.ButtonGroup,oh=th.Button,ih=th.Tooltip,sh=th.ToggleControl,lh=th.SelectControl,uh=function(e){p()(n,e);var t=Jf(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,a=t.backgroundColor,o=t.setBackgroundColor,i=t.textColor,s=t.setTextColor,l=1;n.columns&&(l=parseInt(n.columns.toString().split("-")));var u=[{value:"px",label:Gf("Pixel (px)","genesis-blocks")},{value:"%",label:Gf("Percent (%)","genesis-blocks")},{value:"em",label:Gf("Em (em)","genesis-blocks")}];return React.createElement(Zf,{key:"inspector"},n.layout&&React.createElement(nh,{title:Gf("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(M,{id:"gb_column_columns"},React.createElement(rh,{label:Gf("Column Count","genesis-blocks"),help:Gf("Note: Changing the column count after you've added content to the column can cause loss of content.","genesis-blocks"),value:n.columns,onChange:function(t){return e.props.setAttributes({columns:t,layout:"gb-"+t+"-col-equal"})},min:1,max:6,step:1})),React.createElement("hr",null),(2===n.columns||3===n.columns||4===n.columns)&&React.createElement(Kf,null,React.createElement(M,{id:"gb_column_columnLayouts"},React.createElement("p",null,Gf("Column Layout","genesis-blocks")),React.createElement(ah,{"aria-label":Gf("Column Layout","genesis-blocks")},ho()(Yf[l],(function(t){var n=t.name,a=t.key,o=t.icon;t.col;return React.createElement(ih,{text:n,key:a},React.createElement(oh,{key:a,className:"gb-column-selector-button",isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o))}))),React.createElement("p",null,React.createElement("i",null,Gf("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(M,{id:"gb_column_columnsGap"},React.createElement(rh,{label:Gf("Column Gap","genesis-blocks"),help:Gf("Adjust the spacing between columns.","genesis-blocks"),value:n.columnsGap,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:10,step:1})),React.createElement("hr",null),React.createElement(M,{id:"gb_column_columnMaxWidth"},React.createElement(rh,{label:Gf("Column Inner Max Width (px)"),help:Gf("Adjust the width of the content inside the container wrapper.","genesis-blocks"),value:n.columnMaxWidth,onChange:function(t){return e.props.setAttributes({columnMaxWidth:t})},min:0,max:2e3,step:1})),0<n.columnMaxWidth&&React.createElement(M,{id:"gb_column_centerColumns"},React.createElement(sh,{label:Gf("Center Columns In Container","genesis-blocks"),help:Gf("Center the columns in the container when max-width is used.","genesis-blocks"),checked:n.centerColumns,onChange:function(){return e.props.setAttributes({centerColumns:!n.centerColumns})}})),React.createElement("hr",null),React.createElement(M,{id:"gb_column_responsiveToggle"},React.createElement(sh,{label:Gf("Responsive Columns","genesis-blocks"),help:Gf("Columns will be adjusted to fit on tablets and mobile devices.","genesis-blocks"),checked:n.responsiveToggle,onChange:function(){return e.props.setAttributes({responsiveToggle:!n.responsiveToggle})}}))),React.createElement(M,{id:"gb_column_marginPadding"},React.createElement(nh,{title:Gf("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(lh,{label:Gf("Margin Unit","genesis-blocks"),help:Gf("Choose between pixel, percent, or em units.","genesis-blocks"),options:u,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(sh,{label:Gf("Sync Margin","genesis-blocks"),help:Gf("Top and bottom margins will have the same value.","genesis-blocks"),checked:n.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!n.marginSync})}}),n.marginSync?React.createElement(xm,{marginEnableVertical:!0,marginVerticalLabel:Gf("Margin Top/Bottom","genesis-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):React.createElement(xm,{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})}}),React.createElement("hr",null),React.createElement(lh,{label:Gf("Padding Unit","genesis-blocks"),help:Gf("Choose between pixel, percent, or em units.","genesis-blocks"),options:u,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(sh,{label:Gf("Sync Padding","genesis-blocks"),help:Gf("Padding on all sides will have the same value.","genesis-blocks"),checked:n.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!n.paddingSync})}}),n.paddingSync?React.createElement(pc,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):React.createElement(pc,{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})}}))),React.createElement(M,{id:"gb_column_colorSettings"},React.createElement(Xf,{title:Gf("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a.color,onChange:o,label:Gf("Background Color","genesis-blocks")},{value:i.color,onChange:s,label:Gf("Text Color","genesis-blocks")}]},React.createElement(eh,{textColor:i.color,backgroundColor:a.color}))),React.createElement(M,{id:"gb_column_backgroundImagePanel"},React.createElement(Vf,this.props)))}}]),n}($f);function ch(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var dh=wp.i18n.__,ph=wp.element,mh=ph.Component,fh=ph.Fragment,hh=wp.compose.compose,gh=wp.data.dispatch,_h=wp.blockEditor,bh=_h.BlockControls,yh=_h.BlockAlignmentToolbar,vh=_h.InnerBlocks,kh=_h.withColors,Mh=wp.components,Lh=Mh.Placeholder,wh=Mh.ButtonGroup,Th=Mh.Tooltip,Yh=Mh.Button,Eh=["genesis-blocks/gb-column"],Sh=Lu()((function(e){return Tu()(e,(function(){return["genesis-blocks/gb-column"]}))})),xh=function(e){p()(n,e);var t=ch(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={selectLayout:!0},r}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&gh("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=1;n.columns&&(o=parseInt(n.columns.toString().split("-")));var i=[{name:dh("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:wf.oneEqual},{name:dh("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:wf.twoEqual},{name:dh("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:wf.threeEqual},{name:dh("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:wf.fourEqual},{name:dh("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:wf.fiveEqual},{name:dh("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:wf.sixEqual}];return!n.layout&&this.state.selectLayout?[React.createElement(Lh,{key:"placeholder",icon:"editor-table",label:n.columns?dh("Column Layout","genesis-blocks"):dh("Column Number","genesis-blocks"),instructions:n.columns?dh("Select a layout for this column.","genesis-blocks"):dh("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},n.columns?React.createElement(fh,null,React.createElement(wh,{"aria-label":dh("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},ho()(Yf[o],(function(t){var n=t.name,a=t.key,o=t.icon;return React.createElement(Th,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(Yh,{key:a,className:b()("gb-column-selector-button",a),isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o)))}))),React.createElement(Yh,{className:"gb-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},dh("Return to Column Selection","genesis-blocks"))):React.createElement(wh,{"aria-label":dh("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},ho()(i,(function(t){var n=t.name,a=t.key,o=t.icon,i=t.columns;return React.createElement(Th,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(Yh,{className:b()("gb-column-selector-button","gb-select-"+a),isSmall:!0,onClick:function(){r({columns:i,layout:1===i||5===i||6===i?a:null}),1===i&&e.setState({selectLayout:!1})}},o)))}))))]:[React.createElement(bh,{key:"controls"},React.createElement(yh,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),React.createElement(uh,a()({},this.props,{key:"inspector"})),React.createElement(Mf,a()({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),React.createElement("div",{className:b()("gb-layout-column-wrap-admin","gb-block-layout-column-gap-"+n.columnsGap,n.responsiveToggle?"gb-is-responsive-column":null),style:{maxWidth:n.columnMaxWidth?n.columnMaxWidth:null}},React.createElement(vh,{template:Sh(n.columns),templateLock:"all",allowedBlocks:Eh})))]}}]),n}(mh),Dh=hh([kh("backgroundColor",{textColor:"color"})])(xh);function Ch(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Rh=wp.element.Component,Oh=wp.blockEditor.InnerBlocks,Ph=function(e){p()(n,e);var t=Ch(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=b()(["gb-layout-column-wrap","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null]);return React.createElement(Mf,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(Oh.Content,null)))}}]),n}(Rh),jh={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 Hh(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 Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hh(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zh=wp.i18n.__;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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-columns",{title:zh("Advanced Columns","genesis-blocks"),description:zh("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[zh("column","genesis-blocks"),zh("grid","genesis-blocks"),zh("row","genesis-blocks")],attributes:Ah(Ah({},jh),{},{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}}),gb_settings_data:{gb_column_columns:{title:zh("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:zh("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:zh("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:zh("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:zh("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:zh("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:zh("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:zh("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:zh("Background Settings","genesis-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 React.createElement(Dh,e)},save:function(e){return React.createElement(Ph,e)}});var Nh=wp.i18n.__,Bh=wp.element.Component,Ih=wp.compose.compose,Wh=wp.blockEditor,Uh=Wh.InspectorControls,Vh=Wh.PanelColorSettings,Jh=Wh.withColors,Gh=Wh.ContrastChecker,qh=wp.components,$h=qh.PanelBody,Kh=qh.ToggleControl,Qh=qh.SelectControl,Zh=function(e){p()(n,e);var t=Fh(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.backgroundColor,r=t.setBackgroundColor,a=t.textColor,o=t.setTextColor,i=t.attributes,s=t.setAttributes,l=[{value:"px",label:Nh("Pixel (px)","genesis-blocks")},{value:"%",label:Nh("Percent (%)","genesis-blocks")},{value:"em",label:Nh("Em (em)","genesis-blocks")}];return React.createElement(Uh,{key:"inspector"},React.createElement(M,{id:"gb_column_inner_marginPadding"},React.createElement($h,{title:Nh("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Qh,{label:Nh("Margin Unit","genesis-blocks"),help:Nh("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Kh,{label:Nh("Sync Margin","genesis-blocks"),help:Nh("Top and bottom margins will have the same value.","genesis-blocks"),checked:i.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!i.marginSync})}}),i.marginSync?React.createElement(xm,{marginEnableVertical:!0,marginVerticalLabel:Nh("Margin Top/Bottom","genesis-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return s({margin:e})}}):React.createElement(xm,{marginEnableTop:!0,marginTop:i.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return s({marginTop:e})},marginEnableBottom:!0,marginBottom:i.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return s({marginBottom:e})}}),React.createElement("hr",null),React.createElement(Qh,{label:Nh("Padding Unit","genesis-blocks"),help:Nh("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Kh,{label:Nh("Sync Padding","genesis-blocks"),help:Nh("Padding on all sides will have the same value.","genesis-blocks"),checked:i.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!i.paddingSync})}}),i.paddingSync?React.createElement(pc,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return s({padding:e})}}):React.createElement(pc,{paddingEnableTop:!0,paddingTop:i.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:i.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:i.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return s({paddingLeft:e})}}))),React.createElement(M,{id:"gb_column_inner_colorSettings"},React.createElement(Vh,{title:Nh("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:Nh("Background Color","genesis-blocks")},{value:a.color,onChange:o,label:Nh("Text Color","genesis-blocks")}]},React.createElement(Gh,{textColor:a.color,backgroundColor:n.color}))),React.createElement(M,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Vf,this.props)))}}]),n}(Bh),Xh=Ih([Jh("backgroundColor",{textColor:"color"})])(Zh);function eg(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 tg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ng=function(e){p()(n,e);var t=tg(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eg(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(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},yf(n));return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()(this.props.className,"gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b.a.apply(void 0,["gb-block-layout-column-inner",r,a].concat(_f()(bf(n)))),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function rg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ag=wp.i18n.__,og=wp.compose.compose,ig=wp.element.Component,sg=wp.components.ToolbarGroup,lg=wp.blockEditor,ug=lg.AlignmentToolbar,cg=lg.BlockControls,dg=lg.InnerBlocks,pg=lg.withColors,mg=function(e){p()(n,e);var t=rg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:ag("Vertical Align Top","genesis-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:ag("Vertical Align Middle","genesis-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:ag("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[React.createElement(cg,{key:"controls"},React.createElement(ug,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),React.createElement(sg,{controls:r})),React.createElement(Xh,a()({},this.props,{key:"inspector"})),React.createElement(ng,a()({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(dg,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}]),n}(ig),fg=og([pg("backgroundColor",{textColor:"color"})])(mg);function hg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var gg=wp.element.Component,_g=wp.blockEditor.InnerBlocks,bg=function(e){p()(n,e);var t=hg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(ng,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(_g.Content,null))}}]),n}(gg);function yg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var vg=function(e){p()(n,e);var t=yg(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(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,o={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?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()("gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b()("gb-block-layout-column-inner",r,a),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function kg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mg=wp.element.Component,Lg=wp.blockEditor.InnerBlocks,wg=function(e){p()(n,e);var t=kg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(vg,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Lg.Content,null))}}]),n}(Mg),Tg=[{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 React.createElement(wg,e)}}];n(371),n(372);function Yg(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 Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sg=wp.i18n.__;(0,wp.blocks.registerBlockType)("genesis-blocks/gb-column",{title:Sg("Column","genesis-blocks"),description:Sg("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[Sg("column","genesis-blocks"),Sg("layout","genesis-blocks"),Sg("row","genesis-blocks")],attributes:Eg(Eg({},jh),{},{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"}}),gb_settings_data:{gb_column_inner_marginPadding:{title:Sg("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:Sg("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:Sg("Background Image","genesis-blocks")}},edit:function(e){return React.createElement(fg,e)},save:function(e){return React.createElement(bg,e)},deprecated:Tg});var xg=wp.compose.createHigherOrderComponent((function(e){return function(t){return"genesis-blocks/gb-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?React.createElement(e,a()({},t,{className:"gb-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):React.createElement(e,t)}}),"withClientIdClassName");wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",xg);var Dg=n(18),Cg=n.n(Dg);function Rg(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Og=wp.i18n.__,Pg=wp.element,jg=Pg.Component,Hg=Pg.Fragment,Ag=wp.components,zg=Ag.Button,Fg=Ag.Dashicon,Ng=Ag.Tooltip,Bg=function(e){p()(n,e);var t=Rg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"addDefaultSrc",value:function(e){e.target.src=genesis_blocks_globals.pattern_fallback_image}},{key:"render",value:function(){var e=this;return React.createElement(Hg,null,React.createElement("div",{key:"gb-layout-design-"+this.props.itemKey,className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(zg,{key:this.props.itemKey,className:"gb-layout-insert-button",isSmall:!0,onClick:function(){e.props.import(e.props.content,e.props.clientId)}},React.createElement("img",{src:this.props.image?this.props.image:genesis_blocks_globals.pattern_fallback_image,alt:this.props.name,onError:this.addDefaultSrc})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},this.props.name,React.createElement(Ng,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?Og("Remove from Favorites","genesis-blocks"):Og("Add to Favorites","genesis-blocks")},React.createElement(zg,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},React.createElement(Fg,{icon:"heart",className:b()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}]),n}(jg);function Ig(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Wg=wp.i18n.__,Ug=wp.url.addQueryArgs,Vg=wp.element,Jg=Vg.Component,Gg=Vg.Fragment,qg=function(e){p()(n,e);var t=Ig(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return React.createElement(Gg,null,React.createElement("div",{className:"gb-layout-reusable"},React.createElement("div",null,React.createElement("a",{role:"button",key:this.props.itemKey,className:"gb-layout-insert-button",onClick:function(){e.props.import(e.props.content)}},this.props.name)),React.createElement("div",{className:"gb-layout-reusable-actions"},React.createElement("span",null,React.createElement("a",{href:Ug("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},Wg("Edit","genesis-blocks"))))))}}]),n}(Jg),$g=wp.blocks.rawHandler;function Kg(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,$g({HTML:e,mode:"BLOCKS"}))}var Qg=wp.element.useState;wp.i18n.__;var Zg=wp.components.Button;function Xg(e){return React.createElement(React.Fragment,null,React.createElement("div",{className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(Zg,{className:"gb-layout-insert-button gb-layout-collection-button",isSmall:!0,onClick:function(){e.collectionsView.setCurrentView("collection"),e.collectionsView.setCurrentCollection(e.collectionSlug)}},React.createElement("div",{className:"gb-layout-collection-cover"},React.createElement("img",{src:e.context.collections[e.collectionSlug].thumbnail?e.context.collections[e.collectionSlug].thumbnail:genesis_blocks_globals.pattern_fallback_image,alt:e.context.collections[e.collectionSlug].label,onError:function(e){e.target.src=genesis_blocks_globals.pattern_fallback_image}})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},React.createElement("span",{className:"gb-layout-collection-label"},e.context.collections[e.collectionSlug].label))))))))}var e_=wp.i18n.__,t_=wp.components.ButtonGroup;function n_(e){var t,n,r,o,i,s,l,u=(n=Qg((t={view:"collections",collection:null}).view),r=Cg()(n,2),o=r[0],i=r[1],s=Qg(t.collection),l=Cg()(s,2),{currentView:o,setCurrentView:i,currentCollection:l[0],setCurrentCollection:l[1]});function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"layouts",n=[];for(var r in e.context[t]){var a=e.context[t][r];a.hasOwnProperty("collection")&&u.currentCollection===a.collection.slug&&n.push(React.createElement(Bg,{key:a.key,itemKey:a.key,name:a.name,image:a.image,import:Kg,content:a.content,context:e.context,clientId:e.clientId}))}return 0===n.length?"":React.createElement(React.Fragment,null,React.createElement("h3",{className:"gb-collection-type-title"},"layouts"===t?e_("Page Layouts","genesis-blocks"):"sections"===t?e_("Page Sections","genesis-blocks"):void 0),React.createElement(t_,{className:"gb-layout-choices","aria-label":e_("Layout Options in this Collection","genesis-blocks")},n))}return React.createElement("div",{className:"gb-collections"},React.createElement("div",{className:"gb-collections-header"},React.createElement("div",{className:"gb-collections-header-left"},"collection"!==u.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:function(){u.setCurrentView("collections")}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),e_("View All Collections ","genesis-blocks"))),"collections"===u.currentView?React.createElement("h2",{className:"gb-collection-title"},e_("Collections ","genesis-blocks")):"collection"===u.currentView?React.createElement("h2",{className:"gb-collection-title"},e_("Browsing ","genesis-blocks")+e.context.collections[u.currentCollection].label):void 0),React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://developer.wpengine.com/genesis-blocks/layouts-block/#collections",tabIndex:"0",className:"gb-collections-link"},React.createElement("span",{className:"dashicons dashicons-info"}),e_("Learn about Collections","genesis-blocks"))),React.createElement("div",{className:"gb-collections-body"},function(t){if("collections"!==u.currentView)return"";var n=[];for(var r in t)n.push(React.createElement(Xg,a()({key:r,collectionSlug:r,collectionsView:u},e)));return React.createElement(t_,{className:"gb-layout-choices","aria-label":e_("Collections Available","genesis-blocks")},n)}(e.context.collections),"collection"!==u.currentView?"":React.createElement(React.Fragment,null,c("sections"),c("layouts"))))}function r_(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var a_=wp.compose.compose,o_=wp.blocks.rawHandler,i_=wp.data,s_=i_.withSelect,l_=i_.withDispatch,u_=wp.element,c_=u_.Component,d_=u_.Fragment,p_=function(e){p()(n,e);var t=r_(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"layoutTabContent",value:function(){return"gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(qg,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(n_,this.props):React.createElement(Bg,this.props)}},{key:"render",value:function(){return React.createElement(d_,null,this.layoutTabContent())}}]),n}(c_),m_=a_(s_((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,a=e("core/editor").canUserUseUnfilteredHTML;return{block:r(n),canUserUseUnfilteredHTML:a()}})),l_((function(e,t){var n=t.block,r=t.canUserUseUnfilteredHTML;return{import:function(t){return e("core/block-editor").replaceBlocks(n.clientId,o_({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:r}))}}})))(p_),f_=n(16),h_=n.n(f_),g_=n(36),__=n.n(g_),b_=n(47),y_=n.n(b_);function v_(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var k_=wp.apiFetch,M_=Object(Nn.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),L_=function(e){p()(r,e);var t,n=v_(r);function r(){var e;l()(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),i()(y_()(e),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),e}return c()(r,[{key:"getFavoriteKeys",value:function(){return k_({path:"/genesisblocks/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 k_({path:"/genesisblocks/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 k_({path:"/genesisblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({genesis_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 k_({path:"/genesisblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"componentDidMount",value:(t=__()(h_.a.mark((function e(){var t,n=this;return h_.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:"/genesisblocks/v1/layouts/all?filter=allowed"}).then(function(){var e=__()(h_.a.mark((function e(r){var a,o,i,s,l;return h_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],o=[],i=[],s=[],l=[],Object.values(r).forEach((function(e){"layout"===e.type&&a.push(e),"section"===e.type&&o.push(e),"wp_block"===e.type&&i.push(e),e.hasOwnProperty("collection")&&(l.hasOwnProperty(e.collection.slug)||(l[e.collection.slug]=[],e.collection.image=e.image,l[e.collection.slug]=e.collection)),t.includes(e.key)&&s.push(e)})),n.setState({all:r,layouts:a,sections:o,favorites:s,favoriteKeys:t,reusableBlocks:i,collections:l});case 7: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 t.apply(this,arguments)})},{key:"render",value:function(){var e,t=this;return this.state.all?Bn.a.createElement(M_.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,collections:this.state.collections,toggleFavorite:(e=__()(h_.a.mark((function e(n){var r,a;return h_.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 a=e.sent,t.setState({favorites:a,favoriteKeys:r}),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}},this.props.children):null}}]),r}(Nn.Component);function w_(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var T_=wp.i18n.__,Y_=wp.url.addQueryArgs,E_=wp.element,S_=E_.Component,x_=E_.Fragment,D_=wp.components,C_=D_.ButtonGroup,R_=D_.TextControl,O_=D_.SelectControl,P_=function(e){p()(n,e);var t=w_(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return c()(n,[{key:"getLayoutArray",value:function(){var e=[];switch(this.props.currentTab){case"gb-layout-tab-layouts":e=this.props.context.layouts;break;case"gb-layout-tab-sections":e=this.props.context.sections;break;case"gb-layout-tab-favorites":e=this.props.context.favorites;break;case"gb-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks;break;case"gb-layout-tab-collections":e=this.props.context.collections}return e}},{key:"render",value:function(){var e=this,t=this.getLayoutArray(),n=["all"];if("gb-layout-tab-collections"!==this.props.currentTab)for(var r=0;r<t.length;r++)for(var o=0;o<t[r].category.length;o++)n.includes(t[r].category[o])||n.push(t[r].category[o]);var i=n.map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}})),s=this.props.data;return"gb-layout-tab-collections"===this.props.currentTab?React.createElement(n_,a()({key:this.props.data.key},this.props)):React.createElement(x_,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(x_,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(O_,{key:"layout-library-select-categories-"+this.props.clientId,label:T_("Layout Categories","genesis-blocks"),value:this.state.category,options:i,onChange:function(t){return e.setState({category:t})}}),React.createElement(R_,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:T_("Search Layouts","genesis-blocks"),onChange:function(t){return e.setState({search:t})}}))):React.createElement(x_,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,T_("Reusable Blocks","genesis-blocks")),React.createElement("div",{className:"gb-layout-modal-header-reusable-actions"},React.createElement("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Y_("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},T_("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(M_.Consumer,null,(function(t){return React.createElement(C_,{key:"layout-library-context-button-group-"+e.props.clientId,className:b()("gb-layout-choices","current-tab-"+e.props.currentTab,"full"===e.state.activeView?"gb-layout-view-full":null),"aria-label":T_("Layout Options","genesis-blocks")},ho()(s,(function(n){var r=n.name,a=n.key,o=n.image,i=n.content,s=n.category,l=n.keywords;if(("all"===e.state.category||s.includes(e.state.category))&&(!e.state.search||l&&l.some((function(t){return t.toLowerCase().includes(e.state.search.toLowerCase())}))))return React.createElement(m_,{key:"layout-library-item-"+a,name:r,itemKey:a,image:o,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}]),n}(S_),j_=wp.i18n.__,H_=wp.element,A_=H_.Fragment,z_=H_.useState,F_=wp.components,N_=F_.Button,B_=F_.Dashicon,I_=F_.Modal,W_=F_.TabPanel,U_=wp.data.useDispatch;var V_=function(e){var t=z_("gb-layout-tab-sections"),n=Cg()(t,2),r=n[0],a=n[1],o=z_(!0),i=Cg()(o,2),s=i[0],l=i[1],u=U_("core/block-editor").removeBlock,c=[];return e.context.sections.length>0&&c.push({name:"gb-layout-tab-sections",title:j_("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),e.context.layouts.length>0&&c.push({name:"gb-layout-tab-layouts",title:j_("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),Object.keys(e.context.collections).length>0&&c.push({name:"gb-layout-tab-collections",title:j_("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),c.push({name:"gb-layout-tab-favorites",title:j_("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),e.context.reusableBlocks.length&&c.push({name:"gb-layout-tab-reusable-blocks",title:j_("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(A_,{key:"layout-modal-fragment-"+e.clientId},React.createElement(N_,{key:"layout-modal-library-button-"+e.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:function(){l(!0)}},j_("Layout Library","genesis-blocks")),s?React.createElement(I_,{key:"layout-modal-modal-component-"+e.clientId,className:"gb-layout-modal",title:j_("Layout Selector","genesis-blocks"),onRequestClose:function(){l(!1),a(null),u(e.clientId)}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement(B_,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},j_("Add Custom Layouts","genesis-blocks")),React.createElement("span",null,"·"),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/",target:"_blank",rel:"noopener noreferrer"},j_("Reusable Blocks","genesis-blocks")),React.createElement("a",{href:"https://www.research.net/r/XFQYFPP",target:"_blank",rel:"noopener noreferrer",className:"gb-pro-feedback"},React.createElement(B_,{icon:"admin-comments"})," ",j_("Send Feedback","genesis-blocks"))),React.createElement(W_,{key:"layout-modal-tabpanel-"+e.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:function(e){return a(e)},tabs:c},(function(t){var n=j_("Default tab content","genesis-blocks");if(t.name){if("gb-layout-tab-sections"===t.name)return[React.createElement(P_,{key:"layout-library-sections-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.sections,context:e.context})];if("gb-layout-tab-layouts"===t.name)return[React.createElement(P_,{key:"layout-library-layouts-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.layouts,context:e.context})];if("gb-layout-tab-collections"===t.name)return[React.createElement(P_,{key:"layout-library-collections-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.collections,context:e.context})];if("gb-layout-tab-favorites"===t.name)return[React.createElement(P_,{key:"layout-library-favorites-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.favorites,context:e.context})];if("gb-layout-tab-reusable-blocks"===t.name)return[React.createElement(P_,{key:"layout-library-reusable-blocks-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.reusableBlocks,context:e.context})]}return React.createElement("div",null,n)}))):null)};function J_(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var G_=wp.i18n.__,q_=wp.components.Placeholder,$_=wp.element,K_=$_.Component,Q_=$_.Fragment,Z_=wp.blockEditor,X_=Z_.BlockControls,eb=Z_.BlockAlignmentToolbar,tb=function(e){p()(n,e);var t=J_(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[React.createElement(Q_,{key:this.props.clientId},React.createElement(X_,{key:"controls"},React.createElement(eb,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),React.createElement(q_,{key:"placeholder",label:G_("Layout Selector","genesis-blocks"),instructions:G_("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(M_.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return React.createElement(V_,{clientId:r,context:e})}))))]}}]),n}(K_),nb=(n(373),n(374),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-layouts",{title:nb("Layouts","genesis-blocks"),description:nb("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[nb("layout","genesis-blocks"),nb("column","genesis-blocks"),nb("section","genesis-blocks")],edit:function(e){return React.createElement(L_,null,React.createElement(tb,e))},save:function(){return null}});var rb=!1;function ab(){var e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}wp.data.subscribe((function(){!function(){if(rb)return;var e=document.querySelector(".edit-post-header__toolbar");if(!e)return;var t=document.createElement("div"),n='<div class="gb-toolbar-insert-layout">';n+='<button id="gbLayoutInsertButton" class="components-button components-icon-button" aria-label="'.concat(nb("Insert Layout","genesis-blocks"),'"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ').concat(nb("Layouts","genesis-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t),document.getElementById("gbLayoutInsertButton").addEventListener("click",ab),rb=!0}()}));n(375),n(376)},,,,,,,,,,,,,,,,,,,,,,,,,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.style.build.css
CHANGED
@@ -7,8 +7,8 @@
|
|
7 |
.gb-block-accordion{margin-bottom:1.2em}.gb-block-accordion .gb-accordion-title{background:#f2f2f2;padding:10px 15px}.gb-block-accordion .gb-accordion-title p{display:inline}.gb-block-accordion .gb-accordion-text{padding:10px 15px}.gb-block-accordion .editor-rich-text .editor-rich-text__inline-toolbar{display:block;left:40%}.gb-block-accordion+.gb-block-accordion{margin-top:-0.6em}@media only screen and (min-width: 600px){.gb-font-size-14 .gb-accordion-title{font-size:14px}.gb-font-size-15 .gb-accordion-title{font-size:15px}.gb-font-size-16 .gb-accordion-title{font-size:16px}.gb-font-size-17 .gb-accordion-title{font-size:17px}.gb-font-size-18 .gb-accordion-title{font-size:18px}.gb-font-size-19 .gb-accordion-title{font-size:19px}.gb-font-size-20 .gb-accordion-title{font-size:20px}.gb-font-size-21 .gb-accordion-title{font-size:21px}.gb-font-size-22 .gb-accordion-title{font-size:22px}.gb-font-size-23 .gb-accordion-title{font-size:23px}.gb-font-size-24 .gb-accordion-title{font-size:24px}}
|
8 |
.gb-block-cta{margin:0 0 1.2em 0;position:relative;background:#f2f2f2;color:#293038;padding:5% 3%;border-radius:5px}.gb-block-cta .components-autocomplete{display:inline-block;width:auto;margin:0 auto;position:relative}.gb-block-cta *{z-index:10;position:relative}.gb-block-cta.alignfull{border-radius:0;padding:8% 3%}@media only screen and (max-width: 768px){.gb-block-cta{padding:8% 6%}}@media only screen and (min-width: 768px){.gb-block-cta.alignfull .gb-cta-content,.gb-block-cta.alignfull .gb-cta-button{max-width:60%;margin:0 auto}}@media only screen and (min-width: 768px){.gb-block-cta.alignwide .gb-cta-content,.gb-block-cta.alignwide .gb-cta-button{max-width:80%;margin:0 auto}}.gb-block-cta .gb-cta-image-wrap{position:absolute;top:0;right:0;left:0;height:100%;z-index:1}.gb-block-cta .gb-cta-image{object-fit:cover;height:100%;width:100%;transition:0.3s ease}.gb-block-cta .gb-cta-title{display:inline-block;width:100%;margin-bottom:0.3em;line-height:1.2}.gb-block-cta .gb-cta-text{line-height:1.4}.gb-block-cta .gb-cta-text p{color:inherit}.gb-block-cta .gb-cta-text a{color:inherit;box-shadow:0 -1px 0 inset;text-decoration:none}.gb-block-cta .gb-cta-text a:hover{color:inherit;box-shadow:0 -2px 0 inset}.gb-block-cta .gb-cta-button .blocks-rich-text{display:inline-flex}.gb-block-cta .gb-button{text-align:center;font-size:18px;line-height:1 !important;background-color:#32373c;border:none;border-radius:50px;box-shadow:none;color:#fff;cursor:pointer;padding:0.6em 1em;text-decoration:none;word-break:break-word;transition:0.3s ease;display:inline-block}.gb-block-cta .gb-button:hover{box-shadow:inset 0 0 200px rgba(255,255,255,0.15)}.gb-block-cta .gb-cta-title:empty,.gb-block-cta .gb-cta-text:empty,.gb-block-cta .gb-cta-button:empty,.gb-block-cta .gb-button:empty{display:none}.gb-block-cta .gb-button-shape-square{border-radius:0}.gb-block-cta .gb-button-shape-rounded{border-radius:5px}.gb-block-cta .gb-button-shape-circular{border-radius:100px}.gb-block-cta .gb-button-size-small{font-size:14px}.gb-block-cta .gb-button-size-medium{font-size:20px}.gb-block-cta .gb-button-size-large{font-size:26px;padding:0.8em 1.2em}.gb-block-cta .gb-button-size-extralarge{font-size:32px;padding:0.8em 1.2em}.gb-block-cta .gb-font-size-24.gb-cta-title{font-size:24px}.gb-block-cta .gb-font-size-26.gb-cta-title{font-size:26px}.gb-block-cta .gb-font-size-28.gb-cta-title{font-size:28px}.gb-block-cta .gb-font-size-30.gb-cta-title{font-size:30px}.gb-block-cta .gb-font-size-32.gb-cta-title{font-size:32px}.gb-block-cta .gb-font-size-34.gb-cta-title{font-size:34px}.gb-block-cta .gb-font-size-36.gb-cta-title{font-size:36px}.gb-block-cta .gb-font-size-38.gb-cta-title{font-size:38px}.gb-block-cta .gb-font-size-40.gb-cta-title{font-size:40px}.gb-block-cta .gb-font-size-42.gb-cta-title{font-size:42px}.gb-block-cta .gb-font-size-44.gb-cta-title{font-size:44px}.gb-block-cta .gb-font-size-46.gb-cta-title{font-size:46px}.gb-block-cta .gb-font-size-48.gb-cta-title{font-size:48px}.gb-block-cta .gb-font-size-50.gb-cta-title{font-size:50px}.gb-block-cta .gb-font-size-52.gb-cta-title{font-size:52px}.gb-block-cta .gb-font-size-54.gb-cta-title{font-size:54px}.gb-block-cta .gb-font-size-56.gb-cta-title{font-size:56px}.gb-block-cta .gb-font-size-58.gb-cta-title{font-size:58px}.gb-block-cta .gb-font-size-60.gb-cta-title{font-size:60px}.gb-block-cta .blocks-button__inline-link{margin-top:15px}.gb-block-cta .gb-cta-image:not(.has-background-dim){opacity:0}.gb-block-cta .has-background-dim{opacity:0.5}.gb-block-cta .has-background-dim-10{opacity:0.1}.gb-block-cta .has-background-dim-20{opacity:0.2}.gb-block-cta .has-background-dim-30{opacity:0.3}.gb-block-cta .has-background-dim-40{opacity:0.4}.gb-block-cta .has-background-dim-50{opacity:0.5}.gb-block-cta .has-background-dim-60{opacity:0.6}.gb-block-cta .has-background-dim-70{opacity:0.7}.gb-block-cta .has-background-dim-80{opacity:0.8}.gb-block-cta .has-background-dim-90{opacity:0.9}.gb-block-cta .has-background-dim-100{opacity:1}.gb-button-right{transform:translateX(-100%);left:100%;position:relative}.gb-button-center{margin:0 auto}.gb-cta-inspector-media.components-button{vertical-align:top;border:1px solid #e2e4e7;background-color:#fff;display:inline-flex;border-radius:3px;margin-bottom:15px}.gb-cta-inspector-media.components-button:hover{box-shadow:none !important;border:solid 1px #555d66}.gb-cta-inspector-media.components-button:first-child{margin-right:8px}.gb-cta-inspector-media.components-button svg{margin-right:5px}
|
9 |
.gb-block-sharing{margin:0 0 1.2em 0;position:relative}.gb-block-sharing .blocks-rich-text{display:inline-flex}.gb-block-sharing .gb-share-list{margin:0;padding:0}.gb-block-sharing .gb-share-list li{list-style:none;display:inline-block;margin:0 5px 5px 0}.gb-block-sharing .gb-share-list a{background:#272c30;color:#fff;padding:10px 15px;text-align:center;display:block;line-height:1;font-size:16px;transition:0.3s ease}.gb-block-sharing .gb-share-list a:hover{box-shadow:inset 0 0 200px rgba(255,255,255,0.15)}.gb-block-sharing.gb-share-icon-text i{margin-right:5px}.gb-block-sharing.gb-share-icon-only a{padding:10px 11px;min-width:37px}.gb-block-sharing.gb-share-icon-only .gb-social-text{border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}.gb-block-sharing.gb-share-text-only i{display:none}.gb-block-sharing.gb-share-shape-square a{border-radius:0}.gb-block-sharing.gb-share-shape-rounded a{border-radius:5px}.gb-block-sharing.gb-share-shape-circular a{border-radius:100px}.gb-block-sharing.gb-share-size-small a{font-size:13px}.gb-block-sharing.gb-share-size-small.gb-share-icon-only a{padding:7px 6px;min-width:28px}.gb-block-sharing.gb-share-size-medium a{font-size:16px}.gb-block-sharing.gb-share-size-large a{font-size:20px}.gb-block-sharing.gb-share-size-large.gb-share-icon-only a{font-size:26px;min-width:48px}.gb-block-sharing.gb-share-size-large.gb-share-icon-text i{margin-right:10px}.gb-block-sharing.gb-share-color-social a{color:#fff}.gb-block-sharing.gb-share-color-social .gb-share-twitter{background:#1ca1f3}.gb-block-sharing.gb-share-color-social .gb-share-facebook{background:#3b5999}.gb-block-sharing.gb-share-color-social .gb-share-google{background:#dc4b45}.gb-block-sharing.gb-share-color-social .gb-share-pinterest{background:#bd091c}.gb-block-sharing.gb-share-color-social .gb-share-linkedin{background:#0077b5}.gb-block-sharing.gb-share-color-social .gb-share-reddit{background:#ff4500}.gb-button-right{transform:translateX(-100%);left:100%;position:relative}.gb-button-center{margin:0 auto}
|
10 |
-
.gb-block-post-grid{margin:0 0 1.2em 0;position:relative}.gb-block-post-grid .is-grid,.gb-block-post-grid .gb-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){.gb-block-post-grid .is-grid,.gb-block-post-grid .gb-is-grid{display:block}}.gb-block-post-grid .is-grid article,.gb-block-post-grid .gb-is-grid article{margin-bottom:2.5em;min-width:0}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid article,.gb-block-post-grid .gb-is-grid article{padding-left:10px;padding-right:10px;display:inline-block;vertical-align:top}}.gb-block-post-grid .is-grid.columns-1,.gb-block-post-grid .gb-is-grid.gb-columns-1{-ms-grid-columns:1fr;grid-template-columns:1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-1 article,.gb-block-post-grid .gb-is-grid.gb-columns-1 article{width:100%}}.gb-block-post-grid .is-grid.columns-2,.gb-block-post-grid .gb-is-grid.gb-columns-2{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-2 article,.gb-block-post-grid .gb-is-grid.gb-columns-2 article{width:48%}}.gb-block-post-grid .is-grid.columns-3,.gb-block-post-grid .gb-is-grid.gb-columns-3{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-3 article,.gb-block-post-grid .gb-is-grid.gb-columns-3 article{width:32%}}.gb-block-post-grid .is-grid.columns-4,.gb-block-post-grid .gb-is-grid.gb-columns-4{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-4 article,.gb-block-post-grid .gb-is-grid.gb-columns-4 article{width:24%}}@media only screen and (max-width: 600px){.gb-block-post-grid div[class*="columns"].is-grid,.gb-block-post-grid div[class*="columns"].gb-is-grid{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-block-post-grid .gb-post-grid-section-title{text-align:left}.gb-block-post-grid .gb-block-post-grid-image{margin-bottom:1.2em}.gb-block-post-grid .gb-block-post-grid-image img{display:block;width:100%}.gb-block-post-grid .gb-block-post-grid-text{text-align:left}.gb-block-post-grid a{text-decoration:none}.gb-block-post-grid header .gb-block-post-grid-title{margin-top:0;margin-bottom:15px;font-size:28px;line-height:1.2}.gb-block-post-grid header .gb-block-post-grid-title a{color:#293038;text-decoration:none}.gb-block-post-grid header .gb-block-post-grid-title a:hover{text-decoration:underline;color:inherit}.gb-block-post-grid .gb-block-post-grid-byline{font-size:14px;color:#626e81;margin-bottom:15px}.gb-block-post-grid .gb-block-post-grid-author,.gb-block-post-grid .gb-block-post-grid-date{display:inline-block}.gb-block-post-grid .gb-block-post-grid-author:not(:last-child)::after,.gb-block-post-grid .gb-block-post-grid-date:not(:last-child)::after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.gb-block-post-grid .gb-block-post-grid-author a{color:inherit;text-decoration:none}.gb-block-post-grid .gb-block-post-grid-author a:hover{color:inherit;text-decoration:underline}.gb-block-post-grid .gb-block-post-grid-text p{margin:0 0 15px 0;font-size:inherit}.gb-block-post-grid .gb-block-post-grid-text p:last-of-type{margin-bottom:0}.gb-block-post-grid .gb-block-post-grid-more-link{display:inline-block;box-shadow:none;transition:0.3s ease;font-weight:bold;color:#293038;text-decoration:none}.gb-block-post-grid .gb-block-post-grid-more-link:hover{text-decoration:underline}.gb-block-post-grid .gb-block-post-grid-excerpt div+p{margin-top:15px}.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-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){.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{display:block}}.gb-block-post-grid .is-list article::before,.gb-block-post-grid .gb-is-list article::before{display:none}.gb-block-post-grid .is-list article:not(:last-child),.gb-block-post-grid .gb-is-list article:not(:last-child){margin-bottom:5%;padding-bottom:5%}@media only screen and (min-width: 600px){.gb-block-post-grid .is-list article:not(:last-child),.gb-block-post-grid .gb-is-list article:not(:last-child){border-bottom:solid 1px #eee}}@media only screen and (max-width: 600px){.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-block-post-grid .is-list article:not(.has-post-thumbnail),.gb-block-post-grid .is-list article.hide-featured-image,.gb-block-post-grid .gb-is-list article:not(.has-post-thumbnail),.gb-block-post-grid .gb-is-list article.hide-featured-image{-ms-grid-columns:1fr;grid-template-columns:1fr}.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{margin-bottom:0}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{width:30%;display:inline-block;vertical-align:top}}@media only screen and (max-width: 600px){.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{margin-bottom:5%}}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .gb-block-post-grid-text{width:65%;padding-left:5%;display:inline-block;vertical-align:top}.gb-block-post-grid .is-list .post:not(.has-post-thumbnail) .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .post:not(.has-post-thumbnail) .gb-block-post-grid-text{width:100%;padding-left:0}}@media only screen and (min-width: 600px){.gb-block-post-grid .is-list .gb-block-post-grid-title,.gb-block-post-grid .gb-is-list .gb-block-post-grid-title{font-size:34px}}.gb-block-post-grid .is-list .no-thumb .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .no-thumb .gb-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}
|
11 |
.gb-block-container{margin:0;position:relative;padding:0}.gb-block-container.alignfull .block-editor-block-list__block{max-width:100%}@media only screen and (min-width: 768px){.gb-block-container.alignfull .gb-container-inside,.gb-block-container.alignfull .gb-container-inside{max-width:100%;margin:0 auto}}@media only screen and (min-width: 768px){.gb-block-container.alignwide .gb-container-inside,.gb-block-container.alignwide .gb-container-inside{max-width:80%;margin:0 auto}}.gb-block-container .gb-container-image-wrap{position:absolute;top:0;right:0;left:0;height:100%;z-index:0}.gb-block-container .gb-container-image{object-fit:cover;height:100%;width:100%;transition:0.3s ease}.gb-block-container .gb-container-content{margin:0 auto;position:relative}.gb-block-container .gb-container-image:not(.has-background-dim){opacity:0}.gb-block-container .has-background-dim{opacity:0.5}.gb-block-container .has-background-dim-10{opacity:0.1}.gb-block-container .has-background-dim-20{opacity:0.2}.gb-block-container .has-background-dim-30{opacity:0.3}.gb-block-container .has-background-dim-40{opacity:0.4}.gb-block-container .has-background-dim-50{opacity:0.5}.gb-block-container .has-background-dim-60{opacity:0.6}.gb-block-container .has-background-dim-70{opacity:0.7}.gb-block-container .has-background-dim-80{opacity:0.8}.gb-block-container .has-background-dim-90{opacity:0.9}.gb-block-container .has-background-dim-100{opacity:1}
|
|
|
12 |
.wp-block-genesis-blocks-gb-pricing{margin-bottom:1.5em}.gb-pricing-table-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-template-areas:"col1";grid-gap:0 2em}[data-type="genesis-blocks/gb-pricing-table"],.wp-block-genesis-blocks-gb-pricing-table{display:inline-block;vertical-align:top}@media only screen and (max-width: 600px){[data-type="genesis-blocks/gb-pricing-table"],.wp-block-genesis-blocks-gb-pricing-table{margin-bottom:1.5em}}.gb-block-pricing-table-inside{display:inline-block;width:100%;border-color:#272c30}.gb-block-pricing-table-gap-0{grid-gap:0 0}.gb-block-pricing-table-gap-1{grid-gap:0 1em}.gb-block-pricing-table-gap-2{grid-gap:0 2em}.gb-block-pricing-table-gap-3{grid-gap:0 3em}.gb-block-pricing-table-gap-4{grid-gap:0 4em}.gb-block-pricing-table-gap-5{grid-gap:0 5em}.gb-pricing-columns-2 .gb-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){.gb-pricing-columns-2 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.gb-pricing-columns-3 .gb-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){.gb-pricing-columns-3 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.gb-pricing-columns-4 .gb-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){.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}.gb-pricing-columns-4 .gb-pricing-table-wrap .wp-block-genesis-blocks-gb-pricing-table{margin-bottom:1.5em}}@media only screen and (max-width: 600px){.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.gb-pricing-table-price{line-height:1}.gb-pricing-table-currency{vertical-align:top;margin-top:0.4em;margin-right:3px;display:inline-block;line-height:1}.wp-block-genesis-blocks-gb-pricing-table{vertical-align:top}.wp-block-genesis-blocks-gb-pricing-table .gb-pricing-table-features,.block-library-list .wp-block-genesis-blocks-gb-pricing-table ul{margin:0;padding:0;border:none}.gb-block-pricing-table:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-pricing-table:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-block-pricing-table:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-block-pricing-table:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.editor-styles-wrapper [data-type="genesis-blocks/gb-pricing-table-features"] ul{list-style-type:none;display:block;white-space:initial;margin-left:0;margin-right:0}.gb-list-border-solid li{border-bottom-style:solid}.gb-list-border-dashed li{border-bottom-style:dashed}.gb-list-border-dotted li{border-bottom-style:dotted}ul.gb-pricing-table-features li{list-style:none;margin:0;padding:4px 0;border-color:inherit}ul.gb-pricing-table-features li:last-child{border-bottom:none}.gb-list-border-width-1 li{border-width:1px}.gb-list-border-width-2 li{border-width:2px}.gb-list-border-width-3 li{border-width:3px}.gb-list-border-width-4 li{border-width:4px}.gb-list-border-width-5 li{border-width:5px}.gb-pricing-table-price,.gb-pricing-table-term{display:inline}span.gb-pricing-table-term{margin-left:5px}.gb-pricing-table-wrap .gb-block-pricing-table-inside>*:last-child{margin-bottom:0}.wp-block-genesis-blocks-gb-pricing .alignwide,.wp-block-genesis-blocks-gb-pricing .alignfull{width:100%;margin-left:auto}.gb-block-pricing-table-center{text-align:center}.gb-block-pricing-table-center .gb-block-button{text-align:center !important}.gb-block-pricing-table-center .blocks-button__inline-link{margin:0 auto;text-align:center}.gb-block-pricing-table-left{text-align:left}.gb-block-pricing-table-right{text-align:right}.gb-pricing-table-button .gb-block-button{margin-bottom:0}
|
13 |
.gb-block-newsletter .gb-newsletter-title{margin-top:0;line-height:1.3}.gb-block-newsletter .gb-block-button{margin-bottom:0}.gb-block-newsletter-label{font-size:16px}.gb-form-styles label{margin-bottom:8px;width:100%;display:block}.gb-form-styles input:not(.gb-newsletter-submit){width:100%;height:auto;min-height:45px;margin-bottom:15px}
|
14 |
.wp-block-genesis-blocks-gb-layout{margin-bottom:1.5em}.wp-block-genesis-blocks-gb-columns{position:relative}.gb-layout-column-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-gap:0 2em;position:relative;z-index:1}[data-type="genesis-blocks/gb-column"],.gb-block-layout-column{display:block;vertical-align:top;min-width:0}.gb-block-layout-column.gb-is-vertically-aligned-top{align-self:flex-start}.gb-block-layout-column.gb-is-vertically-aligned-center{align-self:center}.gb-block-layout-column.gb-is-vertically-aligned-bottom{align-self:flex-end}.gb-block-layout-column-inner,.gb-layout-column-wrap>.gb-block-layout-column-inner,.gb-has-background-dim>*{position:relative;z-index:1}.wp-block-genesis-blocks-gb-layout.alignfull{padding:0 2em}@media only screen and (max-width: 600px){.wp-block-genesis-blocks-gb-layout.alignfull{padding:0 15px}}.gb-block-layout-column{display:block;width:100%}.gb-columns-center .gb-layout-column-wrap{margin:0 auto}.gb-block-layout-column-gap-0{grid-gap:0 0}.gb-block-layout-column-gap-1{grid-gap:0 1em}.gb-block-layout-column-gap-2{grid-gap:0 2em}.gb-block-layout-column-gap-3{grid-gap:0 3em}.gb-block-layout-column-gap-4{grid-gap:0 4em}.gb-block-layout-column-gap-5{grid-gap:0 5em}.gb-block-layout-column-gap-6{grid-gap:0 6em}.gb-block-layout-column-gap-7{grid-gap:0 7em}.gb-block-layout-column-gap-8{grid-gap:0 8em}.gb-block-layout-column-gap-9{grid-gap:0 9em}.gb-block-layout-column-gap-10{grid-gap:0 10em}.gb-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-layout-column:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-block-layout-column:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-block-layout-column:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.gb-block-layout-column:nth-child(5){-ms-grid-row:1;-ms-grid-column:5;grid-area:col5}.gb-block-layout-column:nth-child(6){-ms-grid-row:1;-ms-grid-column:6;grid-area:col6}.gb-layout-columns-1>.gb-layout-column-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1"}.gb-layout-columns-2>.gb-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){.gb-layout-columns-2>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.gb-2-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr;grid-template-columns:2fr 1fr}.gb-2-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 2fr;grid-template-columns:1fr 2fr}.gb-layout-columns-3>.gb-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){.gb-layout-columns-3>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.gb-3-col-widecenter>.gb-layout-column-wrap{-ms-grid-columns:1fr 2fr 1fr;grid-template-columns:1fr 2fr 1fr}@media only screen and (max-width: 600px){.gb-3-col-widecenter>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-3-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr}@media only screen and (max-width: 600px){.gb-3-col-wideleft>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-3-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 2fr;grid-template-columns:1fr 1fr 2fr}@media only screen and (max-width: 600px){.gb-3-col-wideright>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-layout-columns-4>.gb-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){.gb-layout-columns-4>.gb-layout-column-wrap.gb-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){.gb-layout-columns-4>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.gb-4-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr 1fr}.gb-4-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 2fr;grid-template-columns:1fr 1fr 1fr 2fr}.gb-layout-columns-5>.gb-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){.gb-layout-columns-5>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5"}}.gb-layout-columns-6>.gb-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){.gb-layout-columns-6>.gb-layout-column-wrap.gb-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){.gb-layout-columns-6>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5" "col6"}}.gb-layout-columns-4,.gb-layout-columns-5,.gb-layout-columns-6{overflow-x:auto}.gb-column-selector-group{margin-top:10px;display:flex;width:100%;text-align:center;justify-content:center}@media only screen and (max-width: 1175px){.gb-column-selector-group{flex-wrap:wrap}}.gb-column-selector{margin:0 5px}@media only screen and (max-width: 1175px){.gb-column-selector{margin-top:10px}}.gb-column-selector button.gb-column-selector-button{padding:15px;height:auto;border-radius:5px !important;background:#fff;margin:0}.gb-column-selector button.gb-column-selector-button:hover{background:#fff;margin:0}.gb-column-selector button.components-button.is-button:last-child{border-radius:5px}
|
7 |
.gb-block-accordion{margin-bottom:1.2em}.gb-block-accordion .gb-accordion-title{background:#f2f2f2;padding:10px 15px}.gb-block-accordion .gb-accordion-title p{display:inline}.gb-block-accordion .gb-accordion-text{padding:10px 15px}.gb-block-accordion .editor-rich-text .editor-rich-text__inline-toolbar{display:block;left:40%}.gb-block-accordion+.gb-block-accordion{margin-top:-0.6em}@media only screen and (min-width: 600px){.gb-font-size-14 .gb-accordion-title{font-size:14px}.gb-font-size-15 .gb-accordion-title{font-size:15px}.gb-font-size-16 .gb-accordion-title{font-size:16px}.gb-font-size-17 .gb-accordion-title{font-size:17px}.gb-font-size-18 .gb-accordion-title{font-size:18px}.gb-font-size-19 .gb-accordion-title{font-size:19px}.gb-font-size-20 .gb-accordion-title{font-size:20px}.gb-font-size-21 .gb-accordion-title{font-size:21px}.gb-font-size-22 .gb-accordion-title{font-size:22px}.gb-font-size-23 .gb-accordion-title{font-size:23px}.gb-font-size-24 .gb-accordion-title{font-size:24px}}
|
8 |
.gb-block-cta{margin:0 0 1.2em 0;position:relative;background:#f2f2f2;color:#293038;padding:5% 3%;border-radius:5px}.gb-block-cta .components-autocomplete{display:inline-block;width:auto;margin:0 auto;position:relative}.gb-block-cta *{z-index:10;position:relative}.gb-block-cta.alignfull{border-radius:0;padding:8% 3%}@media only screen and (max-width: 768px){.gb-block-cta{padding:8% 6%}}@media only screen and (min-width: 768px){.gb-block-cta.alignfull .gb-cta-content,.gb-block-cta.alignfull .gb-cta-button{max-width:60%;margin:0 auto}}@media only screen and (min-width: 768px){.gb-block-cta.alignwide .gb-cta-content,.gb-block-cta.alignwide .gb-cta-button{max-width:80%;margin:0 auto}}.gb-block-cta .gb-cta-image-wrap{position:absolute;top:0;right:0;left:0;height:100%;z-index:1}.gb-block-cta .gb-cta-image{object-fit:cover;height:100%;width:100%;transition:0.3s ease}.gb-block-cta .gb-cta-title{display:inline-block;width:100%;margin-bottom:0.3em;line-height:1.2}.gb-block-cta .gb-cta-text{line-height:1.4}.gb-block-cta .gb-cta-text p{color:inherit}.gb-block-cta .gb-cta-text a{color:inherit;box-shadow:0 -1px 0 inset;text-decoration:none}.gb-block-cta .gb-cta-text a:hover{color:inherit;box-shadow:0 -2px 0 inset}.gb-block-cta .gb-cta-button .blocks-rich-text{display:inline-flex}.gb-block-cta .gb-button{text-align:center;font-size:18px;line-height:1 !important;background-color:#32373c;border:none;border-radius:50px;box-shadow:none;color:#fff;cursor:pointer;padding:0.6em 1em;text-decoration:none;word-break:break-word;transition:0.3s ease;display:inline-block}.gb-block-cta .gb-button:hover{box-shadow:inset 0 0 200px rgba(255,255,255,0.15)}.gb-block-cta .gb-cta-title:empty,.gb-block-cta .gb-cta-text:empty,.gb-block-cta .gb-cta-button:empty,.gb-block-cta .gb-button:empty{display:none}.gb-block-cta .gb-button-shape-square{border-radius:0}.gb-block-cta .gb-button-shape-rounded{border-radius:5px}.gb-block-cta .gb-button-shape-circular{border-radius:100px}.gb-block-cta .gb-button-size-small{font-size:14px}.gb-block-cta .gb-button-size-medium{font-size:20px}.gb-block-cta .gb-button-size-large{font-size:26px;padding:0.8em 1.2em}.gb-block-cta .gb-button-size-extralarge{font-size:32px;padding:0.8em 1.2em}.gb-block-cta .gb-font-size-24.gb-cta-title{font-size:24px}.gb-block-cta .gb-font-size-26.gb-cta-title{font-size:26px}.gb-block-cta .gb-font-size-28.gb-cta-title{font-size:28px}.gb-block-cta .gb-font-size-30.gb-cta-title{font-size:30px}.gb-block-cta .gb-font-size-32.gb-cta-title{font-size:32px}.gb-block-cta .gb-font-size-34.gb-cta-title{font-size:34px}.gb-block-cta .gb-font-size-36.gb-cta-title{font-size:36px}.gb-block-cta .gb-font-size-38.gb-cta-title{font-size:38px}.gb-block-cta .gb-font-size-40.gb-cta-title{font-size:40px}.gb-block-cta .gb-font-size-42.gb-cta-title{font-size:42px}.gb-block-cta .gb-font-size-44.gb-cta-title{font-size:44px}.gb-block-cta .gb-font-size-46.gb-cta-title{font-size:46px}.gb-block-cta .gb-font-size-48.gb-cta-title{font-size:48px}.gb-block-cta .gb-font-size-50.gb-cta-title{font-size:50px}.gb-block-cta .gb-font-size-52.gb-cta-title{font-size:52px}.gb-block-cta .gb-font-size-54.gb-cta-title{font-size:54px}.gb-block-cta .gb-font-size-56.gb-cta-title{font-size:56px}.gb-block-cta .gb-font-size-58.gb-cta-title{font-size:58px}.gb-block-cta .gb-font-size-60.gb-cta-title{font-size:60px}.gb-block-cta .blocks-button__inline-link{margin-top:15px}.gb-block-cta .gb-cta-image:not(.has-background-dim){opacity:0}.gb-block-cta .has-background-dim{opacity:0.5}.gb-block-cta .has-background-dim-10{opacity:0.1}.gb-block-cta .has-background-dim-20{opacity:0.2}.gb-block-cta .has-background-dim-30{opacity:0.3}.gb-block-cta .has-background-dim-40{opacity:0.4}.gb-block-cta .has-background-dim-50{opacity:0.5}.gb-block-cta .has-background-dim-60{opacity:0.6}.gb-block-cta .has-background-dim-70{opacity:0.7}.gb-block-cta .has-background-dim-80{opacity:0.8}.gb-block-cta .has-background-dim-90{opacity:0.9}.gb-block-cta .has-background-dim-100{opacity:1}.gb-button-right{transform:translateX(-100%);left:100%;position:relative}.gb-button-center{margin:0 auto}.gb-cta-inspector-media.components-button{vertical-align:top;border:1px solid #e2e4e7;background-color:#fff;display:inline-flex;border-radius:3px;margin-bottom:15px}.gb-cta-inspector-media.components-button:hover{box-shadow:none !important;border:solid 1px #555d66}.gb-cta-inspector-media.components-button:first-child{margin-right:8px}.gb-cta-inspector-media.components-button svg{margin-right:5px}
|
9 |
.gb-block-sharing{margin:0 0 1.2em 0;position:relative}.gb-block-sharing .blocks-rich-text{display:inline-flex}.gb-block-sharing .gb-share-list{margin:0;padding:0}.gb-block-sharing .gb-share-list li{list-style:none;display:inline-block;margin:0 5px 5px 0}.gb-block-sharing .gb-share-list a{background:#272c30;color:#fff;padding:10px 15px;text-align:center;display:block;line-height:1;font-size:16px;transition:0.3s ease}.gb-block-sharing .gb-share-list a:hover{box-shadow:inset 0 0 200px rgba(255,255,255,0.15)}.gb-block-sharing.gb-share-icon-text i{margin-right:5px}.gb-block-sharing.gb-share-icon-only a{padding:10px 11px;min-width:37px}.gb-block-sharing.gb-share-icon-only .gb-social-text{border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}.gb-block-sharing.gb-share-text-only i{display:none}.gb-block-sharing.gb-share-shape-square a{border-radius:0}.gb-block-sharing.gb-share-shape-rounded a{border-radius:5px}.gb-block-sharing.gb-share-shape-circular a{border-radius:100px}.gb-block-sharing.gb-share-size-small a{font-size:13px}.gb-block-sharing.gb-share-size-small.gb-share-icon-only a{padding:7px 6px;min-width:28px}.gb-block-sharing.gb-share-size-medium a{font-size:16px}.gb-block-sharing.gb-share-size-large a{font-size:20px}.gb-block-sharing.gb-share-size-large.gb-share-icon-only a{font-size:26px;min-width:48px}.gb-block-sharing.gb-share-size-large.gb-share-icon-text i{margin-right:10px}.gb-block-sharing.gb-share-color-social a{color:#fff}.gb-block-sharing.gb-share-color-social .gb-share-twitter{background:#1ca1f3}.gb-block-sharing.gb-share-color-social .gb-share-facebook{background:#3b5999}.gb-block-sharing.gb-share-color-social .gb-share-google{background:#dc4b45}.gb-block-sharing.gb-share-color-social .gb-share-pinterest{background:#bd091c}.gb-block-sharing.gb-share-color-social .gb-share-linkedin{background:#0077b5}.gb-block-sharing.gb-share-color-social .gb-share-reddit{background:#ff4500}.gb-button-right{transform:translateX(-100%);left:100%;position:relative}.gb-button-center{margin:0 auto}
|
|
|
10 |
.gb-block-container{margin:0;position:relative;padding:0}.gb-block-container.alignfull .block-editor-block-list__block{max-width:100%}@media only screen and (min-width: 768px){.gb-block-container.alignfull .gb-container-inside,.gb-block-container.alignfull .gb-container-inside{max-width:100%;margin:0 auto}}@media only screen and (min-width: 768px){.gb-block-container.alignwide .gb-container-inside,.gb-block-container.alignwide .gb-container-inside{max-width:80%;margin:0 auto}}.gb-block-container .gb-container-image-wrap{position:absolute;top:0;right:0;left:0;height:100%;z-index:0}.gb-block-container .gb-container-image{object-fit:cover;height:100%;width:100%;transition:0.3s ease}.gb-block-container .gb-container-content{margin:0 auto;position:relative}.gb-block-container .gb-container-image:not(.has-background-dim){opacity:0}.gb-block-container .has-background-dim{opacity:0.5}.gb-block-container .has-background-dim-10{opacity:0.1}.gb-block-container .has-background-dim-20{opacity:0.2}.gb-block-container .has-background-dim-30{opacity:0.3}.gb-block-container .has-background-dim-40{opacity:0.4}.gb-block-container .has-background-dim-50{opacity:0.5}.gb-block-container .has-background-dim-60{opacity:0.6}.gb-block-container .has-background-dim-70{opacity:0.7}.gb-block-container .has-background-dim-80{opacity:0.8}.gb-block-container .has-background-dim-90{opacity:0.9}.gb-block-container .has-background-dim-100{opacity:1}
|
11 |
+
.gb-block-post-grid{margin:0 0 1.2em 0;position:relative}.gb-block-post-grid .is-grid,.gb-block-post-grid .gb-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){.gb-block-post-grid .is-grid,.gb-block-post-grid .gb-is-grid{display:block}}.gb-block-post-grid .is-grid article,.gb-block-post-grid .gb-is-grid article{margin-bottom:2.5em;min-width:0}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid article,.gb-block-post-grid .gb-is-grid article{padding-left:10px;padding-right:10px;display:inline-block;vertical-align:top}}.gb-block-post-grid .is-grid.columns-1,.gb-block-post-grid .gb-is-grid.gb-columns-1{-ms-grid-columns:1fr;grid-template-columns:1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-1 article,.gb-block-post-grid .gb-is-grid.gb-columns-1 article{width:100%}}.gb-block-post-grid .is-grid.columns-2,.gb-block-post-grid .gb-is-grid.gb-columns-2{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-2 article,.gb-block-post-grid .gb-is-grid.gb-columns-2 article{width:48%}}.gb-block-post-grid .is-grid.columns-3,.gb-block-post-grid .gb-is-grid.gb-columns-3{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-3 article,.gb-block-post-grid .gb-is-grid.gb-columns-3 article{width:32%}}.gb-block-post-grid .is-grid.columns-4,.gb-block-post-grid .gb-is-grid.gb-columns-4{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-4 article,.gb-block-post-grid .gb-is-grid.gb-columns-4 article{width:24%}}@media only screen and (max-width: 600px){.gb-block-post-grid div[class*="columns"].is-grid,.gb-block-post-grid div[class*="columns"].gb-is-grid{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-block-post-grid .gb-post-grid-section-title{text-align:left}.gb-block-post-grid .gb-block-post-grid-image{margin-bottom:1.2em}.gb-block-post-grid .gb-block-post-grid-image img{display:block;width:100%}.gb-block-post-grid .gb-block-post-grid-text{text-align:left}.gb-block-post-grid a{text-decoration:none}.gb-block-post-grid header .gb-block-post-grid-title{margin-top:0;margin-bottom:15px;font-size:28px;line-height:1.2}.gb-block-post-grid header .gb-block-post-grid-title a{color:#293038;text-decoration:none}.gb-block-post-grid header .gb-block-post-grid-title a:hover{text-decoration:underline;color:inherit}.gb-block-post-grid .gb-block-post-grid-byline{font-size:14px;color:#626e81;margin-bottom:15px}.gb-block-post-grid .gb-block-post-grid-author,.gb-block-post-grid .gb-block-post-grid-date{display:inline-block}.gb-block-post-grid .gb-block-post-grid-author:not(:last-child)::after,.gb-block-post-grid .gb-block-post-grid-date:not(:last-child)::after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.gb-block-post-grid .gb-block-post-grid-author a{color:inherit;text-decoration:none}.gb-block-post-grid .gb-block-post-grid-author a:hover{color:inherit;text-decoration:underline}.gb-block-post-grid .gb-block-post-grid-text p{margin:0 0 15px 0;font-size:inherit}.gb-block-post-grid .gb-block-post-grid-text p:last-of-type{margin-bottom:0}.gb-block-post-grid .gb-block-post-grid-more-link{display:inline-block;box-shadow:none;transition:0.3s ease;font-weight:bold;color:#293038;text-decoration:none}.gb-block-post-grid .gb-block-post-grid-more-link:hover{text-decoration:underline}.gb-block-post-grid .gb-block-post-grid-excerpt div+p{margin-top:15px}.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-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){.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{display:block}}.gb-block-post-grid .is-list article::before,.gb-block-post-grid .gb-is-list article::before{display:none}.gb-block-post-grid .is-list article:not(:last-child),.gb-block-post-grid .gb-is-list article:not(:last-child){margin-bottom:5%;padding-bottom:5%}@media only screen and (min-width: 600px){.gb-block-post-grid .is-list article:not(:last-child),.gb-block-post-grid .gb-is-list article:not(:last-child){border-bottom:solid 1px #eee}}@media only screen and (max-width: 600px){.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-block-post-grid .is-list article:not(.has-post-thumbnail),.gb-block-post-grid .is-list article.hide-featured-image,.gb-block-post-grid .gb-is-list article:not(.has-post-thumbnail),.gb-block-post-grid .gb-is-list article.hide-featured-image{-ms-grid-columns:1fr;grid-template-columns:1fr}.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{margin-bottom:0}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{width:30%;display:inline-block;vertical-align:top}}@media only screen and (max-width: 600px){.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{margin-bottom:5%}}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .gb-block-post-grid-text{width:65%;padding-left:5%;display:inline-block;vertical-align:top}.gb-block-post-grid .is-list .post:not(.has-post-thumbnail) .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .post:not(.has-post-thumbnail) .gb-block-post-grid-text{width:100%;padding-left:0}}@media only screen and (min-width: 600px){.gb-block-post-grid .is-list .gb-block-post-grid-title,.gb-block-post-grid .gb-is-list .gb-block-post-grid-title{font-size:34px}}.gb-block-post-grid .is-list .no-thumb .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .no-thumb .gb-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-genesis-blocks-gb-pricing{margin-bottom:1.5em}.gb-pricing-table-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-template-areas:"col1";grid-gap:0 2em}[data-type="genesis-blocks/gb-pricing-table"],.wp-block-genesis-blocks-gb-pricing-table{display:inline-block;vertical-align:top}@media only screen and (max-width: 600px){[data-type="genesis-blocks/gb-pricing-table"],.wp-block-genesis-blocks-gb-pricing-table{margin-bottom:1.5em}}.gb-block-pricing-table-inside{display:inline-block;width:100%;border-color:#272c30}.gb-block-pricing-table-gap-0{grid-gap:0 0}.gb-block-pricing-table-gap-1{grid-gap:0 1em}.gb-block-pricing-table-gap-2{grid-gap:0 2em}.gb-block-pricing-table-gap-3{grid-gap:0 3em}.gb-block-pricing-table-gap-4{grid-gap:0 4em}.gb-block-pricing-table-gap-5{grid-gap:0 5em}.gb-pricing-columns-2 .gb-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){.gb-pricing-columns-2 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.gb-pricing-columns-3 .gb-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){.gb-pricing-columns-3 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.gb-pricing-columns-4 .gb-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){.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}.gb-pricing-columns-4 .gb-pricing-table-wrap .wp-block-genesis-blocks-gb-pricing-table{margin-bottom:1.5em}}@media only screen and (max-width: 600px){.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.gb-pricing-table-price{line-height:1}.gb-pricing-table-currency{vertical-align:top;margin-top:0.4em;margin-right:3px;display:inline-block;line-height:1}.wp-block-genesis-blocks-gb-pricing-table{vertical-align:top}.wp-block-genesis-blocks-gb-pricing-table .gb-pricing-table-features,.block-library-list .wp-block-genesis-blocks-gb-pricing-table ul{margin:0;padding:0;border:none}.gb-block-pricing-table:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-pricing-table:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-block-pricing-table:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-block-pricing-table:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.editor-styles-wrapper [data-type="genesis-blocks/gb-pricing-table-features"] ul{list-style-type:none;display:block;white-space:initial;margin-left:0;margin-right:0}.gb-list-border-solid li{border-bottom-style:solid}.gb-list-border-dashed li{border-bottom-style:dashed}.gb-list-border-dotted li{border-bottom-style:dotted}ul.gb-pricing-table-features li{list-style:none;margin:0;padding:4px 0;border-color:inherit}ul.gb-pricing-table-features li:last-child{border-bottom:none}.gb-list-border-width-1 li{border-width:1px}.gb-list-border-width-2 li{border-width:2px}.gb-list-border-width-3 li{border-width:3px}.gb-list-border-width-4 li{border-width:4px}.gb-list-border-width-5 li{border-width:5px}.gb-pricing-table-price,.gb-pricing-table-term{display:inline}span.gb-pricing-table-term{margin-left:5px}.gb-pricing-table-wrap .gb-block-pricing-table-inside>*:last-child{margin-bottom:0}.wp-block-genesis-blocks-gb-pricing .alignwide,.wp-block-genesis-blocks-gb-pricing .alignfull{width:100%;margin-left:auto}.gb-block-pricing-table-center{text-align:center}.gb-block-pricing-table-center .gb-block-button{text-align:center !important}.gb-block-pricing-table-center .blocks-button__inline-link{margin:0 auto;text-align:center}.gb-block-pricing-table-left{text-align:left}.gb-block-pricing-table-right{text-align:right}.gb-pricing-table-button .gb-block-button{margin-bottom:0}
|
13 |
.gb-block-newsletter .gb-newsletter-title{margin-top:0;line-height:1.3}.gb-block-newsletter .gb-block-button{margin-bottom:0}.gb-block-newsletter-label{font-size:16px}.gb-form-styles label{margin-bottom:8px;width:100%;display:block}.gb-form-styles input:not(.gb-newsletter-submit){width:100%;height:auto;min-height:45px;margin-bottom:15px}
|
14 |
.wp-block-genesis-blocks-gb-layout{margin-bottom:1.5em}.wp-block-genesis-blocks-gb-columns{position:relative}.gb-layout-column-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-gap:0 2em;position:relative;z-index:1}[data-type="genesis-blocks/gb-column"],.gb-block-layout-column{display:block;vertical-align:top;min-width:0}.gb-block-layout-column.gb-is-vertically-aligned-top{align-self:flex-start}.gb-block-layout-column.gb-is-vertically-aligned-center{align-self:center}.gb-block-layout-column.gb-is-vertically-aligned-bottom{align-self:flex-end}.gb-block-layout-column-inner,.gb-layout-column-wrap>.gb-block-layout-column-inner,.gb-has-background-dim>*{position:relative;z-index:1}.wp-block-genesis-blocks-gb-layout.alignfull{padding:0 2em}@media only screen and (max-width: 600px){.wp-block-genesis-blocks-gb-layout.alignfull{padding:0 15px}}.gb-block-layout-column{display:block;width:100%}.gb-columns-center .gb-layout-column-wrap{margin:0 auto}.gb-block-layout-column-gap-0{grid-gap:0 0}.gb-block-layout-column-gap-1{grid-gap:0 1em}.gb-block-layout-column-gap-2{grid-gap:0 2em}.gb-block-layout-column-gap-3{grid-gap:0 3em}.gb-block-layout-column-gap-4{grid-gap:0 4em}.gb-block-layout-column-gap-5{grid-gap:0 5em}.gb-block-layout-column-gap-6{grid-gap:0 6em}.gb-block-layout-column-gap-7{grid-gap:0 7em}.gb-block-layout-column-gap-8{grid-gap:0 8em}.gb-block-layout-column-gap-9{grid-gap:0 9em}.gb-block-layout-column-gap-10{grid-gap:0 10em}.gb-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-layout-column:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-block-layout-column:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-block-layout-column:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.gb-block-layout-column:nth-child(5){-ms-grid-row:1;-ms-grid-column:5;grid-area:col5}.gb-block-layout-column:nth-child(6){-ms-grid-row:1;-ms-grid-column:6;grid-area:col6}.gb-layout-columns-1>.gb-layout-column-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1"}.gb-layout-columns-2>.gb-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){.gb-layout-columns-2>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.gb-2-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr;grid-template-columns:2fr 1fr}.gb-2-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 2fr;grid-template-columns:1fr 2fr}.gb-layout-columns-3>.gb-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){.gb-layout-columns-3>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.gb-3-col-widecenter>.gb-layout-column-wrap{-ms-grid-columns:1fr 2fr 1fr;grid-template-columns:1fr 2fr 1fr}@media only screen and (max-width: 600px){.gb-3-col-widecenter>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-3-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr}@media only screen and (max-width: 600px){.gb-3-col-wideleft>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-3-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 2fr;grid-template-columns:1fr 1fr 2fr}@media only screen and (max-width: 600px){.gb-3-col-wideright>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-layout-columns-4>.gb-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){.gb-layout-columns-4>.gb-layout-column-wrap.gb-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){.gb-layout-columns-4>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.gb-4-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr 1fr}.gb-4-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 2fr;grid-template-columns:1fr 1fr 1fr 2fr}.gb-layout-columns-5>.gb-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){.gb-layout-columns-5>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5"}}.gb-layout-columns-6>.gb-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){.gb-layout-columns-6>.gb-layout-column-wrap.gb-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){.gb-layout-columns-6>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5" "col6"}}.gb-layout-columns-4,.gb-layout-columns-5,.gb-layout-columns-6{overflow-x:auto}.gb-column-selector-group{margin-top:10px;display:flex;width:100%;text-align:center;justify-content:center}@media only screen and (max-width: 1175px){.gb-column-selector-group{flex-wrap:wrap}}.gb-column-selector{margin:0 5px}@media only screen and (max-width: 1175px){.gb-column-selector{margin-top:10px}}.gb-column-selector button.gb-column-selector-button{padding:15px;height:auto;border-radius:5px !important;background:#fff;margin:0}.gb-column-selector button.gb-column-selector-button:hover{background:#fff;margin:0}.gb-column-selector button.components-button.is-button:last-child{border-radius:5px}
|
genesis-blocks.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: A beautiful collection of handy blocks to help you get started with the new WordPress editor.
|
6 |
* Author: StudioPress
|
7 |
* Author URI: https://www.studiopress.com/
|
8 |
-
* Version: 1.2.
|
9 |
* License: GPL2+
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
*
|
5 |
* Description: A beautiful collection of handy blocks to help you get started with the new WordPress editor.
|
6 |
* Author: StudioPress
|
7 |
* Author URI: https://www.studiopress.com/
|
8 |
+
* Version: 1.2.2
|
9 |
* License: GPL2+
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
*
|
includes/layout/class-component-registry.php
CHANGED
@@ -237,7 +237,8 @@ final class Component_Registry {
|
|
237 |
$sections .= $section['content'];
|
238 |
}
|
239 |
|
240 |
-
$layout['
|
|
|
241 |
return $layout;
|
242 |
}
|
243 |
}
|
237 |
$sections .= $section['content'];
|
238 |
}
|
239 |
|
240 |
+
$layout['section_keys'] = $layout['content'];
|
241 |
+
$layout['content'] = $sections;
|
242 |
return $layout;
|
243 |
}
|
244 |
}
|
includes/load-scripts.php
CHANGED
@@ -79,10 +79,11 @@ function genesis_blocks_editor_assets() {
|
|
79 |
'genesis-blocks-block-js',
|
80 |
'genesis_blocks_globals',
|
81 |
array(
|
82 |
-
'rest_url'
|
83 |
-
'user_data'
|
84 |
-
'pro_activated'
|
85 |
-
'is_wpe'
|
|
|
86 |
)
|
87 |
);
|
88 |
}
|
79 |
'genesis-blocks-block-js',
|
80 |
'genesis_blocks_globals',
|
81 |
array(
|
82 |
+
'rest_url' => esc_url( rest_url() ),
|
83 |
+
'user_data' => $user_data,
|
84 |
+
'pro_activated' => genesis_blocks_is_pro(),
|
85 |
+
'is_wpe' => function_exists( 'is_wpe' ),
|
86 |
+
'pattern_fallback_image' => plugins_url( 'dist/assets/images/gb-fallback-image.jpg', dirname( __FILE__ ) ),
|
87 |
)
|
88 |
);
|
89 |
}
|
includes/patterns/gb_slate_layout_about.php
CHANGED
@@ -9,8 +9,9 @@ return [
|
|
9 |
'type' => 'layout',
|
10 |
'key' => 'gb_slate_layout_about',
|
11 |
'collection' => [
|
12 |
-
'slug'
|
13 |
-
'label'
|
|
|
14 |
],
|
15 |
'content' => "<!-- wp:genesis-blocks/gb-columns {\"backgroundImgURL\":\"https://demo.studiopress.com/page-builder/slate/gb_slate_hero_background.jpg\",\"backgroundDimRatio\":20,\"focalPoint\":{\"x\":\"0.48\",\"y\":\"0.72\"},\"columns\":1,\"layout\":\"one-column\",\"columnsGap\":1,\"align\":\"full\",\"paddingTop\":5,\"paddingRight\":1,\"paddingBottom\":5,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#f5f5f5\",\"customBackgroundColor\":\"#1f1f1f\",\"columnMaxWidth\":1200,\"className\":\"gpb-slate-section-hero-title\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-section-hero-title gb-layout-columns-1 one-column gb-has-background-dim gb-has-background-dim-20 gb-background-cover gb-background-no-repeat gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:5em;padding-right:1em;padding-bottom:5em;padding-left:1em;background-color:#1f1f1f;color:#f5f5f5;background-image:url(https://demo.studiopress.com/page-builder/slate/gb_slate_hero_background.jpg);background-position:48% 72%\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-1 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-wideleft\",\"columnsGap\":8,\"align\":\"full\",\"columnMaxWidth\":1200} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-wideleft gb-columns-center alignfull\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-8 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"top\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-top\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":60},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:60px;color:#f5f5f5\">About us</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">The Genesis block pattern library has everything you need to design beautiful block-powered websites with just a few clicks.</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\"></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"columnsGap\":3,\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#1f1f1f\",\"customBackgroundColor\":\"#ffffff\",\"columnMaxWidth\":1200,\"className\":\"gb-slate-section-numbered-list-and-image\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-section-numbered-list-and-image gb-layout-columns-2 gb-2-col-equal gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#ffffff;color:#1f1f1f\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-3 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:image {\"sizeSlug\":\"large\"} --> <figure class=\"wp-block-image size-large\"><img src=\"https://demo.studiopress.com/page-builder/slate/gb_slate_image_person.jpg\" alt=\"\"/></figure> <!-- /wp:image --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"className\":\"gpb-fluid-4\",\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#1f1f1f\"}}} --> <h2 class=\"gpb-fluid-4 has-text-color\" style=\"font-size:40px;color:#1f1f1f\">Our work ethic</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":22},\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"font-size:22px;color:#1f1f1f\">We're here to help you navigate the increasingly complicated process of launching a website or native web app. </p> <!-- /wp:paragraph --> <!-- wp:separator {\"className\":\"is-style-default\"} --> <hr class=\"wp-block-separator is-style-default\"/> <!-- /wp:separator --> <!-- wp:paragraph --> <p><strong>Tell us your story</strong><br>Let's chat about what you're looking to build and see if our team is a good fit for the project.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p><strong>Define the scope</strong><br>We'll take a look at all the details of your project and discuss how to split up the work on our team.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p><strong>Start wireframes and code</strong><br>We'll work with you the entire way, from wireframes to walking you through live code previews.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p><strong>We live to launch products</strong><br>Launching products is our passion. We'll help you get your product live and help spread the word.</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":1,\"layout\":\"one-column\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#1f1f1f\",\"customBackgroundColor\":\"#ededed\",\"columnMaxWidth\":1200,\"className\":\"gb-slate-team gb-layout-team-1\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-team gb-layout-team-1 gb-layout-columns-1 one-column gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#ededed;color:#1f1f1f\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-container {\"containerMarginBottom\":5,\"containerMaxWidth\":840} --> <div style=\"margin-bottom:5%\" class=\"wp-block-genesis-blocks-gb-container gb-block-container\"><div class=\"gb-container-inside\"><div class=\"gb-container-content\" style=\"max-width:840px\"><!-- wp:heading {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":40}}} --> <h2 class=\"has-text-align-center has-text-color\" style=\"font-size:40px;color:#1f1f1f\">Meet our amazing team.</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-align-center has-text-color\" style=\"color:#1f1f1f\">We're a talented group of creative individuals interested in art, cinematography, design, music, and all niches in between. Get to know us and what we can do for you!</p> <!-- /wp:paragraph --></div></div></div> <!-- /wp:genesis-blocks/gb-container --> <!-- wp:genesis-blocks/gb-columns {\"columns\":3,\"layout\":\"gb-3-col-equal\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-3 gb-3-col-equal\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-profile-box {\"profileImgID\":10230,\"profileBackgroundColor\":\"#ededed\",\"profileTextColor\":\"#1f1f1f\"} --> <div style=\"background-color:#ededed;color:#1f1f1f\" class=\"wp-block-genesis-blocks-gb-profile-box square gb-has-avatar gb-font-size-18 gb-block-profile gb-profile-columns\"><div class=\"gb-profile-column gb-profile-avatar-wrap\"><div class=\"gb-profile-image-wrap\"><figure class=\"gb-profile-image-square\"><img class=\"gb-profile-avatar wp-image-10230\" src=\"https://demo.studiopress.com/page-builder/person-m-1.jpg\" alt=\"team member avatar\"/></figure></div></div><div class=\"gb-profile-column gb-profile-content-wrap\"><h2 class=\"gb-profile-name\" style=\"color:#1f1f1f\">Kyle Zion</h2><p class=\"gb-profile-title\" style=\"color:#1f1f1f\">Screenprinter</p><div class=\"gb-profile-text\"><p>Add biography text for your team member here. You can also remove this text if you'd rather just have a name and title.</p></div><ul class=\"gb-social-links\"></ul></div></div> <!-- /wp:genesis-blocks/gb-profile-box --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-profile-box {\"profileImgID\":10211,\"profileBackgroundColor\":\"#ededed\",\"profileTextColor\":\"#1f1f1f\"} --> <div style=\"background-color:#ededed;color:#1f1f1f\" class=\"wp-block-genesis-blocks-gb-profile-box square gb-has-avatar gb-font-size-18 gb-block-profile gb-profile-columns\"><div class=\"gb-profile-column gb-profile-avatar-wrap\"><div class=\"gb-profile-image-wrap\"><figure class=\"gb-profile-image-square\"><img class=\"gb-profile-avatar wp-image-10211\" src=\"https://demo.studiopress.com/page-builder/person-w-3.jpg\" alt=\"avatar placeholder\"/></figure></div></div><div class=\"gb-profile-column gb-profile-content-wrap\"><h2 class=\"gb-profile-name\" style=\"color:#1f1f1f\">Fran Acadia</h2><p class=\"gb-profile-title\" style=\"color:#1f1f1f\">People Engineer</p><div class=\"gb-profile-text\"><p>Add biography text for your team member here. You can also remove this text if you'd rather just have a name and title.</p></div><ul class=\"gb-social-links\"></ul></div></div> <!-- /wp:genesis-blocks/gb-profile-box --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-profile-box {\"profileImgID\":10225,\"profileBackgroundColor\":\"#ededed\",\"profileTextColor\":\"#1f1f1f\"} --> <div style=\"background-color:#ededed;color:#1f1f1f\" class=\"wp-block-genesis-blocks-gb-profile-box square gb-has-avatar gb-font-size-18 gb-block-profile gb-profile-columns\"><div class=\"gb-profile-column gb-profile-avatar-wrap\"><div class=\"gb-profile-image-wrap\"><figure class=\"gb-profile-image-square\"><img class=\"gb-profile-avatar wp-image-10225\" src=\"https://demo.studiopress.com/page-builder/person-m-3.jpg\" alt=\"team member avatar\"/></figure></div></div><div class=\"gb-profile-column gb-profile-content-wrap\"><h2 class=\"gb-profile-name\" style=\"color:#1f1f1f\">Giannis Teton</h2><p class=\"gb-profile-title\" style=\"color:#1f1f1f\">Office Manager</p><div class=\"gb-profile-text\"><p>Add biography text for your team member here. You can also remove this text if you'd rather just have a name and title.</p></div><ul class=\"gb-social-links\"></ul></div></div> <!-- /wp:genesis-blocks/gb-profile-box --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-wideleft\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#f5f5f5\",\"customBackgroundColor\":\"#0073e5\",\"columnMaxWidth\":1200,\"className\":\"gpb-slate-section-cta-accent\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-section-cta-accent gb-layout-columns-2 gb-2-col-wideleft gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#0073e5;color:#f5f5f5\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"textAlign\":\"left\",\"paddingUnit\":\"em\",\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\" style=\"text-align:left\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Get a project quote today!</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">We'll put together a customized quote about your project and work with you to get started on your project. Let's build something together!</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"text\":\"#0073e5\",\"background\":\"#ffffff\"}},\"className\":\"is-style-fill\"} --> <div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"border-radius:4px;background-color:#ffffff;color:#0073e5\"><strong>Get in touch today!</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"textAlign\":\"right\",\"paddingUnit\":\"em\",\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\" style=\"text-align:right\"></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns -->",
|
16 |
'name' => esc_html__( 'Slate About', 'genesis-blocks' ),
|
9 |
'type' => 'layout',
|
10 |
'key' => 'gb_slate_layout_about',
|
11 |
'collection' => [
|
12 |
+
'slug' => 'slate',
|
13 |
+
'label' => __( 'Slate', 'genesis-blocks' ),
|
14 |
+
'thumbnail' => 'https://demo.studiopress.com/page-builder/slate/gb_slate_layout_homepage.jpg',
|
15 |
],
|
16 |
'content' => "<!-- wp:genesis-blocks/gb-columns {\"backgroundImgURL\":\"https://demo.studiopress.com/page-builder/slate/gb_slate_hero_background.jpg\",\"backgroundDimRatio\":20,\"focalPoint\":{\"x\":\"0.48\",\"y\":\"0.72\"},\"columns\":1,\"layout\":\"one-column\",\"columnsGap\":1,\"align\":\"full\",\"paddingTop\":5,\"paddingRight\":1,\"paddingBottom\":5,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#f5f5f5\",\"customBackgroundColor\":\"#1f1f1f\",\"columnMaxWidth\":1200,\"className\":\"gpb-slate-section-hero-title\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-section-hero-title gb-layout-columns-1 one-column gb-has-background-dim gb-has-background-dim-20 gb-background-cover gb-background-no-repeat gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:5em;padding-right:1em;padding-bottom:5em;padding-left:1em;background-color:#1f1f1f;color:#f5f5f5;background-image:url(https://demo.studiopress.com/page-builder/slate/gb_slate_hero_background.jpg);background-position:48% 72%\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-1 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-wideleft\",\"columnsGap\":8,\"align\":\"full\",\"columnMaxWidth\":1200} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-wideleft gb-columns-center alignfull\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-8 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"top\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-top\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":60},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:60px;color:#f5f5f5\">About us</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">The Genesis block pattern library has everything you need to design beautiful block-powered websites with just a few clicks.</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\"></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"columnsGap\":3,\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#1f1f1f\",\"customBackgroundColor\":\"#ffffff\",\"columnMaxWidth\":1200,\"className\":\"gb-slate-section-numbered-list-and-image\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-section-numbered-list-and-image gb-layout-columns-2 gb-2-col-equal gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#ffffff;color:#1f1f1f\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-3 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:image {\"sizeSlug\":\"large\"} --> <figure class=\"wp-block-image size-large\"><img src=\"https://demo.studiopress.com/page-builder/slate/gb_slate_image_person.jpg\" alt=\"\"/></figure> <!-- /wp:image --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"className\":\"gpb-fluid-4\",\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#1f1f1f\"}}} --> <h2 class=\"gpb-fluid-4 has-text-color\" style=\"font-size:40px;color:#1f1f1f\">Our work ethic</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":22},\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"font-size:22px;color:#1f1f1f\">We're here to help you navigate the increasingly complicated process of launching a website or native web app. </p> <!-- /wp:paragraph --> <!-- wp:separator {\"className\":\"is-style-default\"} --> <hr class=\"wp-block-separator is-style-default\"/> <!-- /wp:separator --> <!-- wp:paragraph --> <p><strong>Tell us your story</strong><br>Let's chat about what you're looking to build and see if our team is a good fit for the project.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p><strong>Define the scope</strong><br>We'll take a look at all the details of your project and discuss how to split up the work on our team.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p><strong>Start wireframes and code</strong><br>We'll work with you the entire way, from wireframes to walking you through live code previews.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p><strong>We live to launch products</strong><br>Launching products is our passion. We'll help you get your product live and help spread the word.</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":1,\"layout\":\"one-column\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#1f1f1f\",\"customBackgroundColor\":\"#ededed\",\"columnMaxWidth\":1200,\"className\":\"gb-slate-team gb-layout-team-1\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-team gb-layout-team-1 gb-layout-columns-1 one-column gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#ededed;color:#1f1f1f\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-container {\"containerMarginBottom\":5,\"containerMaxWidth\":840} --> <div style=\"margin-bottom:5%\" class=\"wp-block-genesis-blocks-gb-container gb-block-container\"><div class=\"gb-container-inside\"><div class=\"gb-container-content\" style=\"max-width:840px\"><!-- wp:heading {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":40}}} --> <h2 class=\"has-text-align-center has-text-color\" style=\"font-size:40px;color:#1f1f1f\">Meet our amazing team.</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-align-center has-text-color\" style=\"color:#1f1f1f\">We're a talented group of creative individuals interested in art, cinematography, design, music, and all niches in between. Get to know us and what we can do for you!</p> <!-- /wp:paragraph --></div></div></div> <!-- /wp:genesis-blocks/gb-container --> <!-- wp:genesis-blocks/gb-columns {\"columns\":3,\"layout\":\"gb-3-col-equal\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-3 gb-3-col-equal\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-profile-box {\"profileImgID\":10230,\"profileBackgroundColor\":\"#ededed\",\"profileTextColor\":\"#1f1f1f\"} --> <div style=\"background-color:#ededed;color:#1f1f1f\" class=\"wp-block-genesis-blocks-gb-profile-box square gb-has-avatar gb-font-size-18 gb-block-profile gb-profile-columns\"><div class=\"gb-profile-column gb-profile-avatar-wrap\"><div class=\"gb-profile-image-wrap\"><figure class=\"gb-profile-image-square\"><img class=\"gb-profile-avatar wp-image-10230\" src=\"https://demo.studiopress.com/page-builder/person-m-1.jpg\" alt=\"team member avatar\"/></figure></div></div><div class=\"gb-profile-column gb-profile-content-wrap\"><h2 class=\"gb-profile-name\" style=\"color:#1f1f1f\">Kyle Zion</h2><p class=\"gb-profile-title\" style=\"color:#1f1f1f\">Screenprinter</p><div class=\"gb-profile-text\"><p>Add biography text for your team member here. You can also remove this text if you'd rather just have a name and title.</p></div><ul class=\"gb-social-links\"></ul></div></div> <!-- /wp:genesis-blocks/gb-profile-box --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-profile-box {\"profileImgID\":10211,\"profileBackgroundColor\":\"#ededed\",\"profileTextColor\":\"#1f1f1f\"} --> <div style=\"background-color:#ededed;color:#1f1f1f\" class=\"wp-block-genesis-blocks-gb-profile-box square gb-has-avatar gb-font-size-18 gb-block-profile gb-profile-columns\"><div class=\"gb-profile-column gb-profile-avatar-wrap\"><div class=\"gb-profile-image-wrap\"><figure class=\"gb-profile-image-square\"><img class=\"gb-profile-avatar wp-image-10211\" src=\"https://demo.studiopress.com/page-builder/person-w-3.jpg\" alt=\"avatar placeholder\"/></figure></div></div><div class=\"gb-profile-column gb-profile-content-wrap\"><h2 class=\"gb-profile-name\" style=\"color:#1f1f1f\">Fran Acadia</h2><p class=\"gb-profile-title\" style=\"color:#1f1f1f\">People Engineer</p><div class=\"gb-profile-text\"><p>Add biography text for your team member here. You can also remove this text if you'd rather just have a name and title.</p></div><ul class=\"gb-social-links\"></ul></div></div> <!-- /wp:genesis-blocks/gb-profile-box --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-profile-box {\"profileImgID\":10225,\"profileBackgroundColor\":\"#ededed\",\"profileTextColor\":\"#1f1f1f\"} --> <div style=\"background-color:#ededed;color:#1f1f1f\" class=\"wp-block-genesis-blocks-gb-profile-box square gb-has-avatar gb-font-size-18 gb-block-profile gb-profile-columns\"><div class=\"gb-profile-column gb-profile-avatar-wrap\"><div class=\"gb-profile-image-wrap\"><figure class=\"gb-profile-image-square\"><img class=\"gb-profile-avatar wp-image-10225\" src=\"https://demo.studiopress.com/page-builder/person-m-3.jpg\" alt=\"team member avatar\"/></figure></div></div><div class=\"gb-profile-column gb-profile-content-wrap\"><h2 class=\"gb-profile-name\" style=\"color:#1f1f1f\">Giannis Teton</h2><p class=\"gb-profile-title\" style=\"color:#1f1f1f\">Office Manager</p><div class=\"gb-profile-text\"><p>Add biography text for your team member here. You can also remove this text if you'd rather just have a name and title.</p></div><ul class=\"gb-social-links\"></ul></div></div> <!-- /wp:genesis-blocks/gb-profile-box --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-wideleft\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#f5f5f5\",\"customBackgroundColor\":\"#0073e5\",\"columnMaxWidth\":1200,\"className\":\"gpb-slate-section-cta-accent\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-section-cta-accent gb-layout-columns-2 gb-2-col-wideleft gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#0073e5;color:#f5f5f5\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"textAlign\":\"left\",\"paddingUnit\":\"em\",\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\" style=\"text-align:left\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Get a project quote today!</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">We'll put together a customized quote about your project and work with you to get started on your project. Let's build something together!</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"text\":\"#0073e5\",\"background\":\"#ffffff\"}},\"className\":\"is-style-fill\"} --> <div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"border-radius:4px;background-color:#ffffff;color:#0073e5\"><strong>Get in touch today!</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"textAlign\":\"right\",\"paddingUnit\":\"em\",\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\" style=\"text-align:right\"></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns -->",
|
17 |
'name' => esc_html__( 'Slate About', 'genesis-blocks' ),
|
includes/patterns/gb_slate_layout_homepage.php
CHANGED
@@ -9,8 +9,9 @@ return [
|
|
9 |
'type' => 'layout',
|
10 |
'key' => 'gb_layout_homepage',
|
11 |
'collection' => [
|
12 |
-
'slug'
|
13 |
-
'label'
|
|
|
14 |
],
|
15 |
'content' => "<!-- wp:genesis-blocks/gb-columns {\"backgroundImgURL\":\"https://demo.studiopress.com/page-builder/slate/gb_slate_hero_background.jpg\",\"backgroundDimRatio\":20,\"focalPoint\":{\"x\":\"0.48\",\"y\":\"0.72\"},\"columns\":1,\"layout\":\"one-column\",\"columnsGap\":1,\"align\":\"full\",\"paddingTop\":10,\"paddingRight\":1,\"paddingBottom\":10,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#f5f5f5\",\"customBackgroundColor\":\"#1f1f1f\",\"columnMaxWidth\":1200,\"className\":\"gb-slate-section-hero-buttons\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-section-hero-buttons gb-layout-columns-1 one-column gb-has-background-dim gb-has-background-dim-20 gb-background-cover gb-background-no-repeat gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:10em;padding-right:1em;padding-bottom:10em;padding-left:1em;background-color:#1f1f1f;color:#f5f5f5;background-image:url(https://demo.studiopress.com/page-builder/slate/gb_slate_hero_background.jpg);background-position:48% 72%\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-1 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-wideleft\",\"columnsGap\":8,\"align\":\"full\",\"columnMaxWidth\":1200} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-wideleft gb-columns-center alignfull\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-8 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"top\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-top\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":60},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:60px;color:#f5f5f5\">The future of WordPress starts with Genesis</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">A complete design system of beautiful block patterns and full page designs at your fingertips. Start building with Genesis today.</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0073e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" href=\"#\" style=\"border-radius:4px;background-color:#0073e5;color:#ffffff\"><strong>Start Building</strong></a></div> <!-- /wp:button --> <!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"text\":\"#1f1f1f\",\"background\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" href=\"#\" style=\"border-radius:4px;background-color:#ffffff;color:#1f1f1f\"><strong>Explore Genesis</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\"></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":1,\"layout\":\"one-column\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":5,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customBackgroundColor\":\"#ffffff\",\"className\":\"gpb-slate-features\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-features gb-layout-columns-1 one-column gb-has-custom-background-color alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:5em;padding-left:1em;background-color:#ffffff\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"columnsGap\":3,\"align\":\"full\",\"columnMaxWidth\":1200} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-equal gb-columns-center alignfull\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-3 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":40}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#1f1f1f\">Build better websites in half the time with beautiful design collections.</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">The Genesis design collection library has everything you need to design beautiful block-powered websites with just a few clicks. Go Pro to get our entire collection!</p> <!-- /wp:paragraph --> <!-- wp:spacer {\"height\":20} --> <div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div> <!-- /wp:spacer --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-equal\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Build your site with design collections</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Design collections help you launch any simple or complex website with curated collections of beautiful page sections and layouts.</p> <!-- /wp:paragraph --> <!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Design better with powerful tools</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Build better sites faster with powerful site building tools for the WordPress editor.</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Full page layouts help you launch quicker</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Need a landing page built quickly? Start with one of our professionally designed page layouts, replace the sample text, and you're done!</p> <!-- /wp:paragraph --> <!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":24}}} --> <h2 class=\"has-text-color\" style=\"font-size:24px;color:#1f1f1f\">Create compelling content faster</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Create and use content quickly with customizable content sections.</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#1f1f1f\",\"customBackgroundColor\":\"#ededed\",\"columnMaxWidth\":1200,\"className\":\"gpb-slate-image-text\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-image-text gb-layout-columns-2 gb-2-col-equal gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#ededed;color:#1f1f1f\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:image {\"sizeSlug\":\"large\"} --> <figure class=\"wp-block-image size-large\"><img src=\"https://demo.studiopress.com/page-builder/slate/gb_slate_image_text_square.jpg\" alt=\"GB Square Placeholder\"/></figure> <!-- /wp:image --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#1f1f1f\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#1f1f1f\">We design and develop memorable experiences</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Genesis design collections have everything you need to design beautiful block-powered websites with just a few clicks. Go Pro to get our entire collection!</p> <!-- /wp:paragraph --> <!-- wp:spacer {\"height\":24} --> <div style=\"height:24px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div> <!-- /wp:spacer --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0073e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"border-radius:4px;background-color:#0073e5;color:#ffffff\"><strong>Download Now</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"columnsGap\":0,\"align\":\"full\",\"padding\":7,\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"backgroundColor\":\"white\",\"columnMaxWidth\":1200,\"className\":\"gpb-slate-content-boxes\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-content-boxes gb-layout-columns-2 gb-2-col-equal has-white-background-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-0 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"customBackgroundColor\":\"#1f1f1f\",\"textColor\":\"white\",\"paddingSync\":true,\"paddingUnit\":\"em\",\"padding\":4} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner gb-has-custom-background-color has-white-color\" style=\"padding:4em;background-color:#1f1f1f\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Contact us and let's start building something!</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">Genesis design collections have everything you need to design beautiful block-powered websites with just a few clicks. Design collections help you launch any simple or complex website with curated collections of beautiful page sections and layouts. Go Pro to get our entire collection!</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0073e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" href=\"#\" style=\"border-radius:4px;background-color:#0073e5;color:#ffffff\"><strong>Download Now</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"customBackgroundColor\":\"#0073e5\",\"textColor\":\"white\",\"paddingSync\":true,\"paddingUnit\":\"em\",\"padding\":4} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner gb-has-custom-background-color has-white-color\" style=\"padding:4em;background-color:#0073e5\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Contact us and let's start building something!</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">Genesis design collections have everything you need to design beautiful block-powered websites with just a few clicks. Design collections help you launch any simple or complex website with curated collections of beautiful page sections and layouts. Go Pro to get our entire collection!</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"text\":\"#0073e5\",\"background\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" href=\"#\" style=\"border-radius:4px;background-color:#ffffff;color:#0073e5\"><strong>Download Now</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":1,\"layout\":\"one-column\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#f5f5f5\",\"customBackgroundColor\":\"#1f1f1f\",\"columnMaxWidth\":1200,\"className\":\"gb-slate-section-testimonial\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-section-testimonial gb-layout-columns-1 one-column gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#1f1f1f;color:#f5f5f5\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-container {\"containerMarginBottom\":5,\"containerMaxWidth\":840} --> <div style=\"margin-bottom:5%\" class=\"wp-block-genesis-blocks-gb-container gb-block-container\"><div class=\"gb-container-inside\"><div class=\"gb-container-content\" style=\"max-width:840px\"><!-- wp:heading {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-align-center has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Kind words from customers</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-align-center has-text-color\" style=\"color:#f5f5f5\">The Genesis block pattern library has everything you need to design beautiful block-powered websites with just a few clicks.</p> <!-- /wp:paragraph --></div></div></div> <!-- /wp:genesis-blocks/gb-container --> <!-- wp:genesis-blocks/gb-columns {\"columns\":3,\"layout\":\"gb-3-col-equal\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-3 gb-3-col-equal\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column {\"padding\":15} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-testimonial {\"testimonialImgID\":10230,\"testimonialBackgroundColor\":\"#ffffff\"} --> <div style=\"background-color:#ffffff;color:#32373c\" class=\"wp-block-genesis-blocks-gb-testimonial left-aligned gb-has-avatar gb-font-size-18 gb-block-testimonial\"><div class=\"gb-testimonial-text\"><p>My new site is so much faster and easier to work with than my old site. It used to take me an hour or more to update a page. I would definitely work with them again!</p></div><div class=\"gb-testimonial-info\"><div class=\"gb-testimonial-avatar-wrap\"><div class=\"gb-testimonial-image-wrap\"><img class=\"gb-testimonial-avatar\" src=\"https://demo.studiopress.com/page-builder/person-w-4.jpg\" alt=\"avatar\"/></div></div><h2 class=\"gb-testimonial-name\" style=\"color:#32373c\">Mary Sequoia</h2><small class=\"gb-testimonial-title\" style=\"color:#32373c\">Author</small></div></div> <!-- /wp:genesis-blocks/gb-testimonial --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-testimonial {\"testimonialImgID\":10211,\"testimonialBackgroundColor\":\"#ffffff\"} --> <div style=\"background-color:#ffffff;color:#32373c\" class=\"wp-block-genesis-blocks-gb-testimonial left-aligned gb-has-avatar gb-font-size-18 gb-block-testimonial\"><div class=\"gb-testimonial-text\"><p>My new site is so much faster and easier to work with than my old site. It used to take me an hour or more to update a page. I would definitely work with them again!</p></div><div class=\"gb-testimonial-info\"><div class=\"gb-testimonial-avatar-wrap\"><div class=\"gb-testimonial-image-wrap\"><img class=\"gb-testimonial-avatar\" src=\"https://demo.studiopress.com/page-builder/person-m-1.jpg\" alt=\"avatar\"/></div></div><h2 class=\"gb-testimonial-name\" style=\"color:#32373c\">Philip Glacier</h2><small class=\"gb-testimonial-title\" style=\"color:#32373c\">Publisher</small></div></div> <!-- /wp:genesis-blocks/gb-testimonial --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-testimonial {\"testimonialImgID\":10230,\"testimonialBackgroundColor\":\"#ffffff\"} --> <div style=\"background-color:#ffffff;color:#32373c\" class=\"wp-block-genesis-blocks-gb-testimonial left-aligned gb-has-avatar gb-font-size-18 gb-block-testimonial\"><div class=\"gb-testimonial-text\"><p>My new site is so much faster and easier to work with than my old site. It used to take me an hour or more to update a page. I would definitely work with them again!</p></div><div class=\"gb-testimonial-info\"><div class=\"gb-testimonial-avatar-wrap\"><div class=\"gb-testimonial-image-wrap\"><img class=\"gb-testimonial-avatar\" src=\"https://demo.studiopress.com/page-builder/person-w-3.jpg\" alt=\"avatar\"/></div></div><h2 class=\"gb-testimonial-name\" style=\"color:#32373c\">Amy Redwood</h2><small class=\"gb-testimonial-title\" style=\"color:#32373c\">Consultant</small></div></div> <!-- /wp:genesis-blocks/gb-testimonial --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":1,\"layout\":\"one-column\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#1f1f1f\",\"customBackgroundColor\":\"#ffffff\",\"className\":\"gpb-slate-contact-columns\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-contact-columns gb-layout-columns-1 one-column gb-has-custom-background-color gb-has-custom-text-color alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#ffffff;color:#1f1f1f\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"columnsGap\":3,\"align\":\"full\",\"columnMaxWidth\":1200} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-equal gb-columns-center alignfull\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-3 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"top\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-top\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":40}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#1f1f1f\">Contact us today and let's build something.</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">We're taking new clients and new projects this summer. Want to build the next big thing? Send us an email.</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0073e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"border-radius:4px;background-color:#0073e5;color:#ffffff\"><strong>Contact Us Today</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --> <!-- wp:spacer {\"height\":20} --> <div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div> <!-- /wp:spacer --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"top\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-top\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-equal\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Office</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Startup Square<br>123 Block Ave<br>Austin, Texas 36521</p> <!-- /wp:paragraph --> <!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Hours</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Mon-Fri: 8am - 5pm<br>Sat: 8am 9pm<br>Sun: 8am - 2pm</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Via Email</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">hello@example.com<br>sales@example.com<br>support@example.com</p> <!-- /wp:paragraph --> <!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Via Phone</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Tel: 514-281-3821<br>Fax: 514-281-5210</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"backgroundDimRatio\":30,\"focalPoint\":{\"x\":\"0.50\",\"y\":\"0.52\"},\"columns\":1,\"layout\":\"gb-1-col-equal\",\"columnsGap\":3,\"align\":\"full\",\"paddingTop\":9,\"paddingRight\":1,\"paddingBottom\":9,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customBackgroundColor\":\"#1f1f1f\",\"columnMaxWidth\":872,\"className\":\"gb-slate-text-with-cta\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-text-with-cta gb-layout-columns-1 gb-1-col-equal gb-has-background-dim gb-has-background-dim-30 gb-has-custom-background-color gb-columns-center alignfull\" style=\"padding-top:9em;padding-right:1em;padding-bottom:9em;padding-left:1em;background-color:#1f1f1f;background-position:50% 52%\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-3 gb-is-responsive-column\" style=\"max-width:872px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#f5f5f5\"},\"typography\":{\"fontSize\":40}}} --> <h2 class=\"has-text-align-center has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Ready to take your next step?</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-align-center has-text-color\" style=\"color:#f5f5f5\">Grow your audience and build a profitable online business.</p> <!-- /wp:paragraph --> <!-- wp:buttons {\"align\":\"center\"} --> <div class=\"wp-block-buttons aligncenter\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0072e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"border-radius:4px;background-color:#0072e5;color:#ffffff\"><strong>Get Started Today</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns -->",
|
16 |
'name' => esc_html__( 'Slate Homepage', 'genesis-blocks' ),
|
9 |
'type' => 'layout',
|
10 |
'key' => 'gb_layout_homepage',
|
11 |
'collection' => [
|
12 |
+
'slug' => 'slate',
|
13 |
+
'label' => __( 'Slate', 'genesis-blocks' ),
|
14 |
+
'thumbnail' => 'https://demo.studiopress.com/page-builder/slate/gb_slate_layout_homepage.jpg',
|
15 |
],
|
16 |
'content' => "<!-- wp:genesis-blocks/gb-columns {\"backgroundImgURL\":\"https://demo.studiopress.com/page-builder/slate/gb_slate_hero_background.jpg\",\"backgroundDimRatio\":20,\"focalPoint\":{\"x\":\"0.48\",\"y\":\"0.72\"},\"columns\":1,\"layout\":\"one-column\",\"columnsGap\":1,\"align\":\"full\",\"paddingTop\":10,\"paddingRight\":1,\"paddingBottom\":10,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#f5f5f5\",\"customBackgroundColor\":\"#1f1f1f\",\"columnMaxWidth\":1200,\"className\":\"gb-slate-section-hero-buttons\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-section-hero-buttons gb-layout-columns-1 one-column gb-has-background-dim gb-has-background-dim-20 gb-background-cover gb-background-no-repeat gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:10em;padding-right:1em;padding-bottom:10em;padding-left:1em;background-color:#1f1f1f;color:#f5f5f5;background-image:url(https://demo.studiopress.com/page-builder/slate/gb_slate_hero_background.jpg);background-position:48% 72%\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-1 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-wideleft\",\"columnsGap\":8,\"align\":\"full\",\"columnMaxWidth\":1200} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-wideleft gb-columns-center alignfull\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-8 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"top\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-top\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":60},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:60px;color:#f5f5f5\">The future of WordPress starts with Genesis</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">A complete design system of beautiful block patterns and full page designs at your fingertips. Start building with Genesis today.</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0073e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" href=\"#\" style=\"border-radius:4px;background-color:#0073e5;color:#ffffff\"><strong>Start Building</strong></a></div> <!-- /wp:button --> <!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"text\":\"#1f1f1f\",\"background\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" href=\"#\" style=\"border-radius:4px;background-color:#ffffff;color:#1f1f1f\"><strong>Explore Genesis</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\"></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":1,\"layout\":\"one-column\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":5,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customBackgroundColor\":\"#ffffff\",\"className\":\"gpb-slate-features\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-features gb-layout-columns-1 one-column gb-has-custom-background-color alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:5em;padding-left:1em;background-color:#ffffff\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"columnsGap\":3,\"align\":\"full\",\"columnMaxWidth\":1200} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-equal gb-columns-center alignfull\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-3 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":40}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#1f1f1f\">Build better websites in half the time with beautiful design collections.</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">The Genesis design collection library has everything you need to design beautiful block-powered websites with just a few clicks. Go Pro to get our entire collection!</p> <!-- /wp:paragraph --> <!-- wp:spacer {\"height\":20} --> <div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div> <!-- /wp:spacer --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-equal\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Build your site with design collections</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Design collections help you launch any simple or complex website with curated collections of beautiful page sections and layouts.</p> <!-- /wp:paragraph --> <!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Design better with powerful tools</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Build better sites faster with powerful site building tools for the WordPress editor.</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Full page layouts help you launch quicker</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Need a landing page built quickly? Start with one of our professionally designed page layouts, replace the sample text, and you're done!</p> <!-- /wp:paragraph --> <!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":24}}} --> <h2 class=\"has-text-color\" style=\"font-size:24px;color:#1f1f1f\">Create compelling content faster</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Create and use content quickly with customizable content sections.</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#1f1f1f\",\"customBackgroundColor\":\"#ededed\",\"columnMaxWidth\":1200,\"className\":\"gpb-slate-image-text\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-image-text gb-layout-columns-2 gb-2-col-equal gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#ededed;color:#1f1f1f\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:image {\"sizeSlug\":\"large\"} --> <figure class=\"wp-block-image size-large\"><img src=\"https://demo.studiopress.com/page-builder/slate/gb_slate_image_text_square.jpg\" alt=\"GB Square Placeholder\"/></figure> <!-- /wp:image --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"center\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-center\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#1f1f1f\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#1f1f1f\">We design and develop memorable experiences</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Genesis design collections have everything you need to design beautiful block-powered websites with just a few clicks. Go Pro to get our entire collection!</p> <!-- /wp:paragraph --> <!-- wp:spacer {\"height\":24} --> <div style=\"height:24px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div> <!-- /wp:spacer --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0073e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"border-radius:4px;background-color:#0073e5;color:#ffffff\"><strong>Download Now</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"columnsGap\":0,\"align\":\"full\",\"padding\":7,\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"backgroundColor\":\"white\",\"columnMaxWidth\":1200,\"className\":\"gpb-slate-content-boxes\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-content-boxes gb-layout-columns-2 gb-2-col-equal has-white-background-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-0 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"customBackgroundColor\":\"#1f1f1f\",\"textColor\":\"white\",\"paddingSync\":true,\"paddingUnit\":\"em\",\"padding\":4} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner gb-has-custom-background-color has-white-color\" style=\"padding:4em;background-color:#1f1f1f\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Contact us and let's start building something!</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">Genesis design collections have everything you need to design beautiful block-powered websites with just a few clicks. Design collections help you launch any simple or complex website with curated collections of beautiful page sections and layouts. Go Pro to get our entire collection!</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0073e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" href=\"#\" style=\"border-radius:4px;background-color:#0073e5;color:#ffffff\"><strong>Download Now</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"customBackgroundColor\":\"#0073e5\",\"textColor\":\"white\",\"paddingSync\":true,\"paddingUnit\":\"em\",\"padding\":4} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner gb-has-custom-background-color has-white-color\" style=\"padding:4em;background-color:#0073e5\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Contact us and let's start building something!</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-color\" style=\"color:#f5f5f5\">Genesis design collections have everything you need to design beautiful block-powered websites with just a few clicks. Design collections help you launch any simple or complex website with curated collections of beautiful page sections and layouts. Go Pro to get our entire collection!</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"text\":\"#0073e5\",\"background\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" href=\"#\" style=\"border-radius:4px;background-color:#ffffff;color:#0073e5\"><strong>Download Now</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":1,\"layout\":\"one-column\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#f5f5f5\",\"customBackgroundColor\":\"#1f1f1f\",\"columnMaxWidth\":1200,\"className\":\"gb-slate-section-testimonial\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-section-testimonial gb-layout-columns-1 one-column gb-has-custom-background-color gb-has-custom-text-color gb-columns-center alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#1f1f1f;color:#f5f5f5\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-container {\"containerMarginBottom\":5,\"containerMaxWidth\":840} --> <div style=\"margin-bottom:5%\" class=\"wp-block-genesis-blocks-gb-container gb-block-container\"><div class=\"gb-container-inside\"><div class=\"gb-container-content\" style=\"max-width:840px\"><!-- wp:heading {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":40},\"color\":{\"text\":\"#f5f5f5\"}}} --> <h2 class=\"has-text-align-center has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Kind words from customers</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-align-center has-text-color\" style=\"color:#f5f5f5\">The Genesis block pattern library has everything you need to design beautiful block-powered websites with just a few clicks.</p> <!-- /wp:paragraph --></div></div></div> <!-- /wp:genesis-blocks/gb-container --> <!-- wp:genesis-blocks/gb-columns {\"columns\":3,\"layout\":\"gb-3-col-equal\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-3 gb-3-col-equal\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column {\"padding\":15} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-testimonial {\"testimonialImgID\":10230,\"testimonialBackgroundColor\":\"#ffffff\"} --> <div style=\"background-color:#ffffff;color:#32373c\" class=\"wp-block-genesis-blocks-gb-testimonial left-aligned gb-has-avatar gb-font-size-18 gb-block-testimonial\"><div class=\"gb-testimonial-text\"><p>My new site is so much faster and easier to work with than my old site. It used to take me an hour or more to update a page. I would definitely work with them again!</p></div><div class=\"gb-testimonial-info\"><div class=\"gb-testimonial-avatar-wrap\"><div class=\"gb-testimonial-image-wrap\"><img class=\"gb-testimonial-avatar\" src=\"https://demo.studiopress.com/page-builder/person-w-4.jpg\" alt=\"avatar\"/></div></div><h2 class=\"gb-testimonial-name\" style=\"color:#32373c\">Mary Sequoia</h2><small class=\"gb-testimonial-title\" style=\"color:#32373c\">Author</small></div></div> <!-- /wp:genesis-blocks/gb-testimonial --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-testimonial {\"testimonialImgID\":10211,\"testimonialBackgroundColor\":\"#ffffff\"} --> <div style=\"background-color:#ffffff;color:#32373c\" class=\"wp-block-genesis-blocks-gb-testimonial left-aligned gb-has-avatar gb-font-size-18 gb-block-testimonial\"><div class=\"gb-testimonial-text\"><p>My new site is so much faster and easier to work with than my old site. It used to take me an hour or more to update a page. I would definitely work with them again!</p></div><div class=\"gb-testimonial-info\"><div class=\"gb-testimonial-avatar-wrap\"><div class=\"gb-testimonial-image-wrap\"><img class=\"gb-testimonial-avatar\" src=\"https://demo.studiopress.com/page-builder/person-m-1.jpg\" alt=\"avatar\"/></div></div><h2 class=\"gb-testimonial-name\" style=\"color:#32373c\">Philip Glacier</h2><small class=\"gb-testimonial-title\" style=\"color:#32373c\">Publisher</small></div></div> <!-- /wp:genesis-blocks/gb-testimonial --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-testimonial {\"testimonialImgID\":10230,\"testimonialBackgroundColor\":\"#ffffff\"} --> <div style=\"background-color:#ffffff;color:#32373c\" class=\"wp-block-genesis-blocks-gb-testimonial left-aligned gb-has-avatar gb-font-size-18 gb-block-testimonial\"><div class=\"gb-testimonial-text\"><p>My new site is so much faster and easier to work with than my old site. It used to take me an hour or more to update a page. I would definitely work with them again!</p></div><div class=\"gb-testimonial-info\"><div class=\"gb-testimonial-avatar-wrap\"><div class=\"gb-testimonial-image-wrap\"><img class=\"gb-testimonial-avatar\" src=\"https://demo.studiopress.com/page-builder/person-w-3.jpg\" alt=\"avatar\"/></div></div><h2 class=\"gb-testimonial-name\" style=\"color:#32373c\">Amy Redwood</h2><small class=\"gb-testimonial-title\" style=\"color:#32373c\">Consultant</small></div></div> <!-- /wp:genesis-blocks/gb-testimonial --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"columns\":1,\"layout\":\"one-column\",\"align\":\"full\",\"paddingTop\":6,\"paddingRight\":1,\"paddingBottom\":6,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customTextColor\":\"#1f1f1f\",\"customBackgroundColor\":\"#ffffff\",\"className\":\"gpb-slate-contact-columns\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gpb-slate-contact-columns gb-layout-columns-1 one-column gb-has-custom-background-color gb-has-custom-text-color alignfull\" style=\"padding-top:6em;padding-right:1em;padding-bottom:6em;padding-left:1em;background-color:#ffffff;color:#1f1f1f\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\",\"columnsGap\":3,\"align\":\"full\",\"columnMaxWidth\":1200} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-equal gb-columns-center alignfull\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-3 gb-is-responsive-column\" style=\"max-width:1200px\"><!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"top\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-top\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":40}}} --> <h2 class=\"has-text-color\" style=\"font-size:40px;color:#1f1f1f\">Contact us today and let's build something.</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">We're taking new clients and new projects this summer. Want to build the next big thing? Send us an email.</p> <!-- /wp:paragraph --> <!-- wp:buttons --> <div class=\"wp-block-buttons\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0073e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"border-radius:4px;background-color:#0073e5;color:#ffffff\"><strong>Contact Us Today</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --> <!-- wp:spacer {\"height\":20} --> <div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div> <!-- /wp:spacer --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column {\"columnVerticalAlignment\":\"top\"} --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column gb-is-vertically-aligned-top\"><div class=\"gb-block-layout-column-inner\"><!-- wp:genesis-blocks/gb-columns {\"columns\":2,\"layout\":\"gb-2-col-equal\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-layout-columns-2 gb-2-col-equal\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-2 gb-is-responsive-column\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Office</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Startup Square<br>123 Block Ave<br>Austin, Texas 36521</p> <!-- /wp:paragraph --> <!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Hours</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Mon-Fri: 8am - 5pm<br>Sat: 8am 9pm<br>Sun: 8am - 2pm</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --> <!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Via Email</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">hello@example.com<br>sales@example.com<br>support@example.com</p> <!-- /wp:paragraph --> <!-- wp:heading {\"style\":{\"color\":{\"text\":\"#1f1f1f\"},\"typography\":{\"fontSize\":26}}} --> <h2 class=\"has-text-color\" style=\"font-size:26px;color:#1f1f1f\">Via Phone</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#1f1f1f\"}}} --> <p class=\"has-text-color\" style=\"color:#1f1f1f\">Tel: 514-281-3821<br>Fax: 514-281-5210</p> <!-- /wp:paragraph --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns --> <!-- wp:genesis-blocks/gb-columns {\"backgroundDimRatio\":30,\"focalPoint\":{\"x\":\"0.50\",\"y\":\"0.52\"},\"columns\":1,\"layout\":\"gb-1-col-equal\",\"columnsGap\":3,\"align\":\"full\",\"paddingTop\":9,\"paddingRight\":1,\"paddingBottom\":9,\"paddingLeft\":1,\"paddingUnit\":\"em\",\"customBackgroundColor\":\"#1f1f1f\",\"columnMaxWidth\":872,\"className\":\"gb-slate-text-with-cta\"} --> <div class=\"wp-block-genesis-blocks-gb-columns gb-slate-text-with-cta gb-layout-columns-1 gb-1-col-equal gb-has-background-dim gb-has-background-dim-30 gb-has-custom-background-color gb-columns-center alignfull\" style=\"padding-top:9em;padding-right:1em;padding-bottom:9em;padding-left:1em;background-color:#1f1f1f;background-position:50% 52%\"><div class=\"gb-layout-column-wrap gb-block-layout-column-gap-3 gb-is-responsive-column\" style=\"max-width:872px\"><!-- wp:genesis-blocks/gb-column --> <div class=\"wp-block-genesis-blocks-gb-column gb-block-layout-column\"><div class=\"gb-block-layout-column-inner\"><!-- wp:heading {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#f5f5f5\"},\"typography\":{\"fontSize\":40}}} --> <h2 class=\"has-text-align-center has-text-color\" style=\"font-size:40px;color:#f5f5f5\">Ready to take your next step?</h2> <!-- /wp:heading --> <!-- wp:paragraph {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#f5f5f5\"}}} --> <p class=\"has-text-align-center has-text-color\" style=\"color:#f5f5f5\">Grow your audience and build a profitable online business.</p> <!-- /wp:paragraph --> <!-- wp:buttons {\"align\":\"center\"} --> <div class=\"wp-block-buttons aligncenter\"><!-- wp:button {\"borderRadius\":4,\"style\":{\"color\":{\"background\":\"#0072e5\",\"text\":\"#ffffff\"}}} --> <div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"border-radius:4px;background-color:#0072e5;color:#ffffff\"><strong>Get Started Today</strong></a></div> <!-- /wp:button --></div> <!-- /wp:buttons --></div></div> <!-- /wp:genesis-blocks/gb-column --></div></div> <!-- /wp:genesis-blocks/gb-columns -->",
|
17 |
'name' => esc_html__( 'Slate Homepage', 'genesis-blocks' ),
|
languages/genesis-blocks.pot
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Genesis Blocks plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Genesis Blocks 1.2.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/genesis-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:
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: genesis-blocks\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
18 |
-
#: includes/load-scripts.php:
|
19 |
#: lib/Settings/AdminPage.php:53
|
20 |
#: lib/Settings/views/admin/app.php:19
|
21 |
#: lib/Settings/views/admin/genesis-pro.php:21
|
@@ -113,9 +113,9 @@ msgstr ""
|
|
113 |
|
114 |
#: includes/layout/register-layout-components.php:26
|
115 |
#: includes/layout/register-layout-components.php:28
|
116 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
117 |
#: includes/patterns/gb_slate_layout_features.php:18
|
118 |
-
#: includes/patterns/gb_slate_layout_homepage.php:
|
119 |
#: includes/patterns/gb_slate_layout_home_alt.php:18
|
120 |
#: includes/patterns/gb_slate_section_accordion_text.php:18
|
121 |
#: includes/patterns/gb_slate_section_accordion_text.php:24
|
@@ -163,7 +163,7 @@ msgstr ""
|
|
163 |
#: includes/layout/register-layout-components.php:30
|
164 |
#: includes/layout/register-layout-components.php:44
|
165 |
#: includes/patterns/gb_slate_layout_features.php:21
|
166 |
-
#: includes/patterns/gb_slate_layout_homepage.php:
|
167 |
#: includes/patterns/gb_slate_layout_home_alt.php:20
|
168 |
#: includes/patterns/gb_slate_section_call_to_action_accent.php:22
|
169 |
#: includes/patterns/gb_slate_section_call_to_action_accent.php:29
|
@@ -187,13 +187,13 @@ msgstr ""
|
|
187 |
#: includes/layout/register-layout-components.php:45
|
188 |
#: includes/layout/register-layout-components.php:60
|
189 |
#: includes/layout/register-layout-components.php:77
|
190 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
191 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
192 |
#: includes/patterns/gb_slate_layout_contact.php:18
|
193 |
#: includes/patterns/gb_slate_layout_features.php:20
|
194 |
#: includes/patterns/gb_slate_layout_features.php:25
|
195 |
-
#: includes/patterns/gb_slate_layout_homepage.php:
|
196 |
-
#: includes/patterns/gb_slate_layout_homepage.php:
|
197 |
#: includes/patterns/gb_slate_layout_home_alt.php:19
|
198 |
#: includes/patterns/gb_slate_layout_home_alt.php:25
|
199 |
#: includes/patterns/gb_slate_section_accordion_text.php:20
|
@@ -247,7 +247,7 @@ msgstr ""
|
|
247 |
|
248 |
#: includes/layout/register-layout-components.php:62
|
249 |
#: includes/layout/register-layout-components.php:79
|
250 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
251 |
msgid "about"
|
252 |
msgstr ""
|
253 |
|
@@ -319,7 +319,7 @@ msgstr ""
|
|
319 |
#: includes/layout/register-layout-components.php:127
|
320 |
#: includes/layout/register-layout-components.php:142
|
321 |
#: includes/layout/register-layout-components.php:157
|
322 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
323 |
#: includes/patterns/gb_slate_layout_features.php:19
|
324 |
#: includes/patterns/gb_slate_layout_features.php:24
|
325 |
#: includes/patterns/gb_slate_section_accordion_text.php:19
|
@@ -352,7 +352,7 @@ msgstr ""
|
|
352 |
|
353 |
#: includes/layout/register-layout-components.php:140
|
354 |
#: includes/layout/register-layout-components.php:155
|
355 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
356 |
#: includes/patterns/gb_slate_section_feature_image_columns.php:21
|
357 |
#: includes/patterns/gb_slate_section_image_and_text_cta.php:19
|
358 |
#: includes/patterns/gb_slate_section_image_and_text_cta.php:25
|
@@ -370,8 +370,8 @@ msgstr ""
|
|
370 |
|
371 |
#: includes/layout/register-layout-components.php:170
|
372 |
#: includes/layout/register-layout-components.php:172
|
373 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
374 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
375 |
#: includes/patterns/gb_slate_section_team_members.php:20
|
376 |
msgid "team"
|
377 |
msgstr ""
|
@@ -442,11 +442,11 @@ msgstr ""
|
|
442 |
msgid "Slate"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
446 |
msgid "Slate About"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
450 |
#: includes/patterns/gb_slate_layout_contact.php:25
|
451 |
#: includes/patterns/gb_slate_layout_features.php:28
|
452 |
#: includes/patterns/gb_slate_layout_home_alt.php:27
|
@@ -473,7 +473,7 @@ msgstr ""
|
|
473 |
msgid "slate"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: includes/patterns/gb_slate_layout_about.php:
|
477 |
msgid "slate about"
|
478 |
msgstr ""
|
479 |
|
@@ -527,21 +527,21 @@ msgstr ""
|
|
527 |
msgid "slate features"
|
528 |
msgstr ""
|
529 |
|
530 |
-
#: includes/patterns/gb_slate_layout_homepage.php:
|
531 |
msgid "Slate Homepage"
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: includes/patterns/gb_slate_layout_homepage.php:
|
535 |
#: includes/patterns/gb_slate_layout_home_alt.php:23
|
536 |
msgid "homepage"
|
537 |
msgstr ""
|
538 |
|
539 |
-
#: includes/patterns/gb_slate_layout_homepage.php:
|
540 |
#: includes/patterns/gb_slate_layout_home_alt.php:24
|
541 |
msgid "home"
|
542 |
msgstr ""
|
543 |
|
544 |
-
#: includes/patterns/gb_slate_layout_homepage.php:
|
545 |
#: includes/patterns/gb_slate_layout_home_alt.php:26
|
546 |
#: src/blocks/block-column-inner/index.js:32
|
547 |
#: src/blocks/block-layout/index.js:31
|
@@ -1584,15 +1584,15 @@ msgstr ""
|
|
1584 |
msgid "Button Options"
|
1585 |
msgstr ""
|
1586 |
|
1587 |
-
#: src/blocks/block-column-inner/components/edit.js:
|
1588 |
msgid "Vertical Align Top"
|
1589 |
msgstr ""
|
1590 |
|
1591 |
-
#: src/blocks/block-column-inner/components/edit.js:
|
1592 |
msgid "Vertical Align Middle"
|
1593 |
msgstr ""
|
1594 |
|
1595 |
-
#: src/blocks/block-column-inner/components/edit.js:
|
1596 |
msgid "Vertical Align Bottom"
|
1597 |
msgstr ""
|
1598 |
|
@@ -2074,10 +2074,6 @@ msgstr ""
|
|
2074 |
msgid "Launch the layout library to browse pre-designed sections."
|
2075 |
msgstr ""
|
2076 |
|
2077 |
-
#: src/blocks/block-layout/components/layout/collections/views/CollectionCard.js:32
|
2078 |
-
msgid "Browse"
|
2079 |
-
msgstr ""
|
2080 |
-
|
2081 |
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:39
|
2082 |
msgid "Collections Available"
|
2083 |
msgstr ""
|
@@ -2110,11 +2106,11 @@ msgstr ""
|
|
2110 |
msgid "Learn about Collections"
|
2111 |
msgstr ""
|
2112 |
|
2113 |
-
#: src/blocks/block-layout/components/layout/layout-library-item-card.js:
|
2114 |
msgid "Remove from Favorites"
|
2115 |
msgstr ""
|
2116 |
|
2117 |
-
#: src/blocks/block-layout/components/layout/layout-library-item-card.js:
|
2118 |
msgid "Add to Favorites"
|
2119 |
msgstr ""
|
2120 |
|
1 |
+
# Copyright (C) 2021 StudioPress
|
2 |
# This file is distributed under the same license as the Genesis Blocks plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Genesis Blocks 1.2.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/genesis-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: 2021-03-04T20:44:31+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: genesis-blocks\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
18 |
+
#: includes/load-scripts.php:129
|
19 |
#: lib/Settings/AdminPage.php:53
|
20 |
#: lib/Settings/views/admin/app.php:19
|
21 |
#: lib/Settings/views/admin/genesis-pro.php:21
|
113 |
|
114 |
#: includes/layout/register-layout-components.php:26
|
115 |
#: includes/layout/register-layout-components.php:28
|
116 |
+
#: includes/patterns/gb_slate_layout_about.php:25
|
117 |
#: includes/patterns/gb_slate_layout_features.php:18
|
118 |
+
#: includes/patterns/gb_slate_layout_homepage.php:19
|
119 |
#: includes/patterns/gb_slate_layout_home_alt.php:18
|
120 |
#: includes/patterns/gb_slate_section_accordion_text.php:18
|
121 |
#: includes/patterns/gb_slate_section_accordion_text.php:24
|
163 |
#: includes/layout/register-layout-components.php:30
|
164 |
#: includes/layout/register-layout-components.php:44
|
165 |
#: includes/patterns/gb_slate_layout_features.php:21
|
166 |
+
#: includes/patterns/gb_slate_layout_homepage.php:21
|
167 |
#: includes/patterns/gb_slate_layout_home_alt.php:20
|
168 |
#: includes/patterns/gb_slate_section_call_to_action_accent.php:22
|
169 |
#: includes/patterns/gb_slate_section_call_to_action_accent.php:29
|
187 |
#: includes/layout/register-layout-components.php:45
|
188 |
#: includes/layout/register-layout-components.php:60
|
189 |
#: includes/layout/register-layout-components.php:77
|
190 |
+
#: includes/patterns/gb_slate_layout_about.php:21
|
191 |
+
#: includes/patterns/gb_slate_layout_about.php:26
|
192 |
#: includes/patterns/gb_slate_layout_contact.php:18
|
193 |
#: includes/patterns/gb_slate_layout_features.php:20
|
194 |
#: includes/patterns/gb_slate_layout_features.php:25
|
195 |
+
#: includes/patterns/gb_slate_layout_homepage.php:20
|
196 |
+
#: includes/patterns/gb_slate_layout_homepage.php:26
|
197 |
#: includes/patterns/gb_slate_layout_home_alt.php:19
|
198 |
#: includes/patterns/gb_slate_layout_home_alt.php:25
|
199 |
#: includes/patterns/gb_slate_section_accordion_text.php:20
|
247 |
|
248 |
#: includes/layout/register-layout-components.php:62
|
249 |
#: includes/layout/register-layout-components.php:79
|
250 |
+
#: includes/patterns/gb_slate_layout_about.php:27
|
251 |
msgid "about"
|
252 |
msgstr ""
|
253 |
|
319 |
#: includes/layout/register-layout-components.php:127
|
320 |
#: includes/layout/register-layout-components.php:142
|
321 |
#: includes/layout/register-layout-components.php:157
|
322 |
+
#: includes/patterns/gb_slate_layout_about.php:20
|
323 |
#: includes/patterns/gb_slate_layout_features.php:19
|
324 |
#: includes/patterns/gb_slate_layout_features.php:24
|
325 |
#: includes/patterns/gb_slate_section_accordion_text.php:19
|
352 |
|
353 |
#: includes/layout/register-layout-components.php:140
|
354 |
#: includes/layout/register-layout-components.php:155
|
355 |
+
#: includes/patterns/gb_slate_layout_about.php:22
|
356 |
#: includes/patterns/gb_slate_section_feature_image_columns.php:21
|
357 |
#: includes/patterns/gb_slate_section_image_and_text_cta.php:19
|
358 |
#: includes/patterns/gb_slate_section_image_and_text_cta.php:25
|
370 |
|
371 |
#: includes/layout/register-layout-components.php:170
|
372 |
#: includes/layout/register-layout-components.php:172
|
373 |
+
#: includes/patterns/gb_slate_layout_about.php:19
|
374 |
+
#: includes/patterns/gb_slate_layout_about.php:28
|
375 |
#: includes/patterns/gb_slate_section_team_members.php:20
|
376 |
msgid "team"
|
377 |
msgstr ""
|
442 |
msgid "Slate"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: includes/patterns/gb_slate_layout_about.php:17
|
446 |
msgid "Slate About"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: includes/patterns/gb_slate_layout_about.php:29
|
450 |
#: includes/patterns/gb_slate_layout_contact.php:25
|
451 |
#: includes/patterns/gb_slate_layout_features.php:28
|
452 |
#: includes/patterns/gb_slate_layout_home_alt.php:27
|
473 |
msgid "slate"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: includes/patterns/gb_slate_layout_about.php:30
|
477 |
msgid "slate about"
|
478 |
msgstr ""
|
479 |
|
527 |
msgid "slate features"
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: includes/patterns/gb_slate_layout_homepage.php:17
|
531 |
msgid "Slate Homepage"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/patterns/gb_slate_layout_homepage.php:24
|
535 |
#: includes/patterns/gb_slate_layout_home_alt.php:23
|
536 |
msgid "homepage"
|
537 |
msgstr ""
|
538 |
|
539 |
+
#: includes/patterns/gb_slate_layout_homepage.php:25
|
540 |
#: includes/patterns/gb_slate_layout_home_alt.php:24
|
541 |
msgid "home"
|
542 |
msgstr ""
|
543 |
|
544 |
+
#: includes/patterns/gb_slate_layout_homepage.php:27
|
545 |
#: includes/patterns/gb_slate_layout_home_alt.php:26
|
546 |
#: src/blocks/block-column-inner/index.js:32
|
547 |
#: src/blocks/block-layout/index.js:31
|
1584 |
msgid "Button Options"
|
1585 |
msgstr ""
|
1586 |
|
1587 |
+
#: src/blocks/block-column-inner/components/edit.js:32
|
1588 |
msgid "Vertical Align Top"
|
1589 |
msgstr ""
|
1590 |
|
1591 |
+
#: src/blocks/block-column-inner/components/edit.js:39
|
1592 |
msgid "Vertical Align Middle"
|
1593 |
msgstr ""
|
1594 |
|
1595 |
+
#: src/blocks/block-column-inner/components/edit.js:46
|
1596 |
msgid "Vertical Align Bottom"
|
1597 |
msgstr ""
|
1598 |
|
2074 |
msgid "Launch the layout library to browse pre-designed sections."
|
2075 |
msgstr ""
|
2076 |
|
|
|
|
|
|
|
|
|
2077 |
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:39
|
2078 |
msgid "Collections Available"
|
2079 |
msgstr ""
|
2106 |
msgid "Learn about Collections"
|
2107 |
msgstr ""
|
2108 |
|
2109 |
+
#: src/blocks/block-layout/components/layout/layout-library-item-card.js:59
|
2110 |
msgid "Remove from Favorites"
|
2111 |
msgstr ""
|
2112 |
|
2113 |
+
#: src/blocks/block-layout/components/layout/layout-library-item-card.js:63
|
2114 |
msgid "Add to Favorites"
|
2115 |
msgstr ""
|
2116 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: atomicblocks, arrayhq, johnstonphilip, marksabbath, mindctrl, drea
|
|
3 |
Donate link: https://studiopress.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.
|
7 |
-
Stable tag: 1.2.
|
8 |
Requires PHP: 7.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -97,6 +97,12 @@ Yes, you will need to have WordPress 5.3 or later installed to take advantage of
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
= 1.2.1 =
|
101 |
* Fixed: The layouts block is no longer left over in the editor if the modal is closed by the user.
|
102 |
* Fixed: The layouts button in the Block Editor header toolbar uses a more reliable javascript event to ensure it is always visible.
|
3 |
Donate link: https://studiopress.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.7
|
7 |
+
Stable tag: 1.2.2
|
8 |
Requires PHP: 7.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 1.2.2 =
|
101 |
+
* Fixed: Corrected the settings link in the Newsletter Block.
|
102 |
+
* Added: Collection images to layout modal.
|
103 |
+
* Added: Fallback images for section/layout previews that fail to load.
|
104 |
+
* Added: Ability to use section keys to build layouts.
|
105 |
+
|
106 |
= 1.2.1 =
|
107 |
* Fixed: The layouts block is no longer left over in the editor if the modal is closed by the user.
|
108 |
* Fixed: The layouts button in the Block Editor header toolbar uses a more reliable javascript event to ensure it is always visible.
|
src/blocks/block-column-inner/components/edit.js
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
*/
|
4 |
import Inspector from './inspector';
|
5 |
import Column from './column';
|
6 |
-
import classnames from 'classnames';
|
7 |
|
8 |
/**
|
9 |
* WordPress dependencies
|
@@ -11,7 +10,7 @@ import classnames from 'classnames';
|
|
11 |
const { __ } = wp.i18n;
|
12 |
const { compose } = wp.compose;
|
13 |
const { Component } = wp.element;
|
14 |
-
const {
|
15 |
const {
|
16 |
AlignmentToolbar,
|
17 |
BlockControls,
|
@@ -59,7 +58,7 @@ class Edit extends Component {
|
|
59 |
setAttributes( { textAlign: value } );
|
60 |
} }
|
61 |
/>
|
62 |
-
<
|
63 |
</BlockControls>,
|
64 |
<Inspector { ...this.props } key="inspector" />,
|
65 |
<Column
|
3 |
*/
|
4 |
import Inspector from './inspector';
|
5 |
import Column from './column';
|
|
|
6 |
|
7 |
/**
|
8 |
* WordPress dependencies
|
10 |
const { __ } = wp.i18n;
|
11 |
const { compose } = wp.compose;
|
12 |
const { Component } = wp.element;
|
13 |
+
const { ToolbarGroup } = wp.components;
|
14 |
const {
|
15 |
AlignmentToolbar,
|
16 |
BlockControls,
|
58 |
setAttributes( { textAlign: value } );
|
59 |
} }
|
60 |
/>
|
61 |
+
<ToolbarGroup controls={ toolbarControls } />
|
62 |
</BlockControls>,
|
63 |
<Inspector { ...this.props } key="inspector" />,
|
64 |
<Column
|
src/blocks/block-layout/components/layout/collections/views/CollectionCard.js
CHANGED
@@ -25,11 +25,17 @@ export function CollectionCard( props ) {
|
|
25 |
} }
|
26 |
>
|
27 |
<div className="gb-layout-collection-cover">
|
28 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
</div>
|
30 |
<div className="gb-layout-design-info">
|
31 |
<div className="gb-layout-design-title">
|
32 |
-
|
33 |
</div>
|
34 |
</div>
|
35 |
</Button>
|
25 |
} }
|
26 |
>
|
27 |
<div className="gb-layout-collection-cover">
|
28 |
+
<img
|
29 |
+
src={ props.context.collections[props.collectionSlug].thumbnail ? props.context.collections[props.collectionSlug].thumbnail : genesis_blocks_globals.pattern_fallback_image }
|
30 |
+
alt={ props.context.collections[props.collectionSlug].label }
|
31 |
+
onError={(event) => {
|
32 |
+
event.target.src = genesis_blocks_globals.pattern_fallback_image;
|
33 |
+
}}
|
34 |
+
/>
|
35 |
</div>
|
36 |
<div className="gb-layout-design-info">
|
37 |
<div className="gb-layout-design-title">
|
38 |
+
<span className="gb-layout-collection-label">{ props.context.collections[props.collectionSlug].label }</span>
|
39 |
</div>
|
40 |
</div>
|
41 |
</Button>
|
src/blocks/block-layout/components/layout/layout-library-item-card.js
CHANGED
@@ -18,6 +18,10 @@ export default class LayoutLibraryItemCard extends Component {
|
|
18 |
constructor() {
|
19 |
super( ...arguments );
|
20 |
}
|
|
|
|
|
|
|
|
|
21 |
|
22 |
render() {
|
23 |
return (
|
@@ -37,8 +41,9 @@ export default class LayoutLibraryItemCard extends Component {
|
|
37 |
} }
|
38 |
>
|
39 |
<img
|
40 |
-
src={ this.props.image }
|
41 |
alt={ this.props.name }
|
|
|
42 |
/>
|
43 |
</Button>
|
44 |
|
18 |
constructor() {
|
19 |
super( ...arguments );
|
20 |
}
|
21 |
+
|
22 |
+
addDefaultSrc(event) {
|
23 |
+
event.target.src = genesis_blocks_globals.pattern_fallback_image;
|
24 |
+
}
|
25 |
|
26 |
render() {
|
27 |
return (
|
41 |
} }
|
42 |
>
|
43 |
<img
|
44 |
+
src={ this.props.image ? this.props.image : genesis_blocks_globals.pattern_fallback_image }
|
45 |
alt={ this.props.name }
|
46 |
+
onError={this.addDefaultSrc}
|
47 |
/>
|
48 |
</Button>
|
49 |
|
src/blocks/block-newsletter/includes/newsletter-functions.php
CHANGED
@@ -255,7 +255,7 @@ function admin_assets() {
|
|
255 |
'genesis_blocks_newsletter_block_vars',
|
256 |
[
|
257 |
'mailingListProviders' => mailing_list_providers(),
|
258 |
-
'plugin_settings_page_url' => esc_url( admin_url( 'admin.php?page=genesis-blocks-
|
259 |
]
|
260 |
);
|
261 |
}
|
255 |
'genesis_blocks_newsletter_block_vars',
|
256 |
[
|
257 |
'mailingListProviders' => mailing_list_providers(),
|
258 |
+
'plugin_settings_page_url' => esc_url( admin_url( 'admin.php?page=genesis-blocks-settings' ) ),
|
259 |
]
|
260 |
);
|
261 |
}
|
src/blocks/block-post-grid/components/edit.js
CHANGED
@@ -19,7 +19,7 @@ const { decodeEntities } = wp.htmlEntities;
|
|
19 |
|
20 |
const { withSelect } = wp.data;
|
21 |
|
22 |
-
const { Placeholder, Spinner,
|
23 |
|
24 |
const { BlockAlignmentToolbar, BlockControls } = wp.blockEditor;
|
25 |
|
@@ -102,7 +102,7 @@ class LatestPostsBlock extends Component {
|
|
102 |
} }
|
103 |
controls={ [ 'center', 'wide', 'full' ] }
|
104 |
/>
|
105 |
-
<
|
106 |
</BlockControls>
|
107 |
<SectionTag
|
108 |
className={ classnames(
|
19 |
|
20 |
const { withSelect } = wp.data;
|
21 |
|
22 |
+
const { Placeholder, Spinner, ToolbarGroup } = wp.components;
|
23 |
|
24 |
const { BlockAlignmentToolbar, BlockControls } = wp.blockEditor;
|
25 |
|
102 |
} }
|
103 |
controls={ [ 'center', 'wide', 'full' ] }
|
104 |
/>
|
105 |
+
<ToolbarGroup controls={ layoutControls } />
|
106 |
</BlockControls>
|
107 |
<SectionTag
|
108 |
className={ classnames(
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit5d6c86118e7ca3feb8e56e111b6240ef::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit0a3a3e3a3ae14e5fade03169ab76802c
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit5d6c86118e7ca3feb8e56e111b6240ef
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit5d6c86118e7ca3feb8e56e111b6240ef', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit5d6c86118e7ca3feb8e56e111b6240ef', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit5d6c86118e7ca3feb8e56e111b6240ef::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'G' =>
|
@@ -47,9 +47,9 @@ class ComposerStaticInit0a3a3e3a3ae14e5fade03169ab76802c
|
|
47 |
public static function getInitializer(ClassLoader $loader)
|
48 |
{
|
49 |
return \Closure::bind(function () use ($loader) {
|
50 |
-
$loader->prefixLengthsPsr4 =
|
51 |
-
$loader->prefixDirsPsr4 =
|
52 |
-
$loader->classMap =
|
53 |
|
54 |
}, null, ClassLoader::class);
|
55 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit5d6c86118e7ca3feb8e56e111b6240ef
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'G' =>
|
47 |
public static function getInitializer(ClassLoader $loader)
|
48 |
{
|
49 |
return \Closure::bind(function () use ($loader) {
|
50 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit5d6c86118e7ca3feb8e56e111b6240ef::$prefixLengthsPsr4;
|
51 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit5d6c86118e7ca3feb8e56e111b6240ef::$prefixDirsPsr4;
|
52 |
+
$loader->classMap = ComposerStaticInit5d6c86118e7ca3feb8e56e111b6240ef::$classMap;
|
53 |
|
54 |
}, null, ClassLoader::class);
|
55 |
}
|