Version Description
- Added: Responsive controls for the paragraph and heading core blocks.
Download this release
Release Info
Developer | studiopress |
Plugin | Genesis Blocks |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.3.0
- dist/blocks.build.js +7 -7
- dist/blocks.editor.build.css +1 -1
- genesis-blocks.php +1 -1
- includes/load-scripts.php +1 -1
- languages/genesis-blocks.pot +30 -2
- lib/BlockLoader/ManualRequire.php +5 -0
- lib/Migration/js/build/migration.asset.php +1 -1
- lib/Migration/js/build/migration.js +3 -3
- lib/Settings/js/build/app.asset.php +1 -1
- lib/Settings/js/build/app.js +12 -12
- readme.txt +4 -1
- src/blocks.js +2 -0
- src/blocks/global-styles/styles/editor.scss +15 -0
- src/blocks/responsive-controls/fonts.php +152 -0
- src/blocks/responsive-settings/components/responsive-settings-style.js +44 -0
- src/blocks/responsive-settings/components/with-responsive-settings.js +287 -0
- src/blocks/responsive-settings/constants.js +15 -0
- src/blocks/responsive-settings/index.js +22 -0
- src/blocks/responsive-settings/utils.js +84 -0
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
dist/blocks.build.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
2 |
/*!
|
3 |
-
Copyright (c)
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var i=a.apply(null,r);i&&e.push(i)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,n,r){return Yt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function f(e){var t=_(NaN);return null!=e?p(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=a.momentProperties=[],y=!1;function k(e,t){var n,r,a;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=h(t)),c(t._locale)||(e._locale=t._locale),b.length>0)for(n=0;n<b.length;n++)c(a=t[r=b[n]])||(e[r]=a);return e}function M(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,a.updateOffset(this),y=!1)}function v(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function L(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,t){var n=!0;return p((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,o,i,l=[];for(o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(i in r+="\n["+o+"] ",arguments[0])s(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}L(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var Y,T={};function D(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),T[e]||(L(t),T[e]=!0)}function R(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function x(e){null!=e&&this.set(e)}function E(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,Y=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},H={};function O(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(H[e]=a),t&&(H[t[0]]=function(){return E(a.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function z(e,t){return e.isValid()?(t=A(t,e.localeData()),P[t]=P[t]||function(e){var t,n,r,a=e.match(C);for(t=0,n=a.length;t<n;t++)H[a[t]]?a[t]=H[a[t]]:a[t]=(r=a[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=R(a[r])?a[r].call(t,e):a[r];return o}}(t),P[t](e)):e.localeData().invalidDate()}function A(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(j.lastIndex=0;n>=0&&j.test(e);)e=e.replace(j,r),j.lastIndex=0,n-=1;return e}var B={};function N(e,t){var n=e.toLowerCase();B[n]=B[n+"s"]=B[t]=e}function F(e){return"string"==typeof e?B[e]||B[e.toLowerCase()]:void 0}function W(e){var t,n,r={};for(n in e)s(e,n)&&(t=F(n))&&(r[t]=e[n]);return r}var I={};function U(e,t){I[e]=t}function V(e){return e%4==0&&e%100!=0||e%400==0}function J(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=J(t)),n}function q(e,t){return function(n){return null!=n?(K(this,e,n),a.updateOffset(this,t),this):$(this,e)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&V(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ve(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,Q=/\d/,X=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,ae=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ce=/\d+/,ue=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,me=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function _e(e,t,n){Z[e]=R(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return s(Z,e)?Z[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a}))))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var fe,be={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)be[e[n]]=r}function ke(e,t){ye(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function Me(e,t,n){null!=t&&s(be,e)&&be[e](t,n._a,n,e)}function ve(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?V(e)?29:28:31-r%7%2}fe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},O("M",["MM",2],"Mo",(function(){return this.month()+1})),O("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),O("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),N("month","M"),U("month",8),_e("M",re),_e("MM",re,X),_e("MMM",(function(e,t){return t.monthsShortRegex(e)})),_e("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=G(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[1]=a:h(n).invalidMonth=e}));var Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),we="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ye=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=pe,De=pe;function Re(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=_([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=fe.call(this._shortMonthsParse,i))?a:null:-1!==(a=fe.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=fe.call(this._shortMonthsParse,i))||-1!==(a=fe.call(this._longMonthsParse,i))?a:null:-1!==(a=fe.call(this._longMonthsParse,i))||-1!==(a=fe.call(this._shortMonthsParse,i))?a:null}function Se(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),ve(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function xe(e){return null!=e?(Se(this,e),a.updateOffset(this,!0),this):$(this,"Month")}function Ee(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=_([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=ge(r[t]),a[t]=ge(a[t]);for(t=0;t<24;t++)o[t]=ge(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ce(e){return V(e)?366:365}O("Y",0,0,(function(){var e=this.year();return e<=9999?E(e,4):"+"+e})),O(0,["YY",2],0,(function(){return this.year()%100})),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,!0],0,"year"),N("year","y"),U("year",1),_e("Y",ue),_e("YY",re,X),_e("YYYY",se,te),_e("YYYYY",le,ne),_e("YYYYYY",le,ne),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?a.parseTwoDigitYear(e):G(e)})),ye("YY",(function(e,t){t[0]=a.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)};var je=q("FullYear",!0);function Pe(e,t,n,r,a,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,o,i),s}function He(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Oe(e,t,n){var r=7+t-n;return-(7+He(e,0,r).getUTCDay()-t)%7+r-1}function ze(e,t,n,r,a){var o,i,s=1+7*(t-1)+(7+n-r)%7+Oe(e,r,a);return s<=0?i=Ce(o=e-1)+s:s>Ce(e)?(o=e+1,i=s-Ce(e)):(o=e,i=s),{year:o,dayOfYear:i}}function Ae(e,t,n){var r,a,o=Oe(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?r=i+Be(a=e.year()-1,t,n):i>Be(e.year(),t,n)?(r=i-Be(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function Be(e,t,n){var r=Oe(e,t,n),a=Oe(e+1,t,n);return(Ce(e)-r+a)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),U("week",5),U("isoWeek",5),_e("w",re),_e("ww",re,X),_e("W",re),_e("WW",re,X),ke(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=G(e)})),O("d",0,"do","day"),O("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),O("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),O("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),_e("d",re),_e("e",re),_e("E",re),_e("dd",(function(e,t){return t.weekdaysMinRegex(e)})),_e("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),_e("dddd",(function(e,t){return t.weekdaysRegex(e)})),ke(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e})),ke(["d","e","E"],(function(e,t,n,r){t[r]=G(e)}));var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=pe,Ve=pe,Je=pe;function Ge(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=fe.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=fe.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=fe.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=fe.call(this._weekdaysParse,i))||-1!==(a=fe.call(this._shortWeekdaysParse,i))||-1!==(a=fe.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=fe.call(this._shortWeekdaysParse,i))||-1!==(a=fe.call(this._weekdaysParse,i))||-1!==(a=fe.call(this._minWeekdaysParse,i))?a:null:-1!==(a=fe.call(this._minWeekdaysParse,i))||-1!==(a=fe.call(this._weekdaysParse,i))||-1!==(a=fe.call(this._shortWeekdaysParse,i))?a:null}function qe(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=ge(this.weekdaysMin(n,"")),a=ge(this.weekdaysShort(n,"")),o=ge(this.weekdays(n,"")),i.push(r),s.push(a),l.push(o),c.push(r),c.push(a),c.push(o);i.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ke(e,t){O(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,$e),O("k",["kk",2],0,(function(){return this.hours()||24})),O("hmm",0,0,(function(){return""+$e.apply(this)+E(this.minutes(),2)})),O("hmmss",0,0,(function(){return""+$e.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),O("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),O("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),N("hour","h"),U("hour",13),_e("a",Ze),_e("A",Ze),_e("H",re),_e("h",re),_e("k",re),_e("HH",re,X),_e("hh",re,X),_e("kk",re,X),_e("hmm",ae),_e("hmmss",oe),_e("Hmm",ae),_e("Hmmss",oe),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=G(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=G(e),h(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r)),h(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(a)),h(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(a))}));var Qe,Xe=q("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Le,monthsShort:we,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ie,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function at(e){return e?e.toLowerCase().replace("_","-"):e}function ot(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{r=Qe._abbr,n(205)("./"+t),it(r)}catch(e){tt[t]=null}return tt[t]}function it(e,t){var n;return e&&((n=c(t)?lt(e):st(e,t))?Qe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new x(S(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),it(e),tt[e]}return delete tt[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,r,a,o=0;o<e.length;){for(t=(a=at(e[o]).split("-")).length,n=(n=at(e[o+1]))?n.split("-"):null;t>0;){if(r=ot(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(a,n)>=t-1)break;t--}o++}return Qe}(e)}function ct(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ve(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ft={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,r,a,o,i,s=e._i,l=ut.exec(s)||dt.exec(s);if(l){for(h(e).iso=!0,t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[1])){a=pt[t][0],r=!1!==pt[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(l[3])){o=(l[2]||" ")+_t[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!mt.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),Lt(e)}else e._isValid=!1}function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function kt(e){var t,n,r,a,o,i,s,l,c=gt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],r=c[3],a=c[2],o=c[5],i=c[6],s=c[7],l=[yt(n),we.indexOf(r),parseInt(a,10),parseInt(o,10),parseInt(i,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||We.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return ft[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(c[8],c[9],c[10]),e._d=He.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Mt(e,t,n){return null!=e?e:null!=t?t:n}function vt(e){var t,n,r,o,i,s=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,a,o,i,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,i=4,n=Mt(t.GG,e._a[0],Ae(Tt(),1,4).year),r=Mt(t.W,1),((a=Mt(t.E,1))<1||a>7)&&(l=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,c=Ae(Tt(),o,i),n=Mt(t.gg,e._a[0],c.year),r=Mt(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(l=!0)):a=o),r<1||r>Be(n,o,i)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=ze(n,r,a,o,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=Mt(e._a[0],r[0]),(e._dayOfYear>Ce(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=He(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?He:Pe).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function Lt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,o,i,s,l=""+e._i,c=l.length,u=0;for(r=A(e._f,e._locale).match(C)||[],t=0;t<r.length;t++)o=r[t],(n=(l.match(he(o,e))||[])[0])&&((i=l.substr(0,l.indexOf(n))).length>0&&h(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),u+=n.length),H[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),Me(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=c-u,l.length>0&&h(e).unusedInput.push(l),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),vt(e),ct(e)}else kt(e);else bt(e)}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new M(ct(t)):(d(t)?e._d=t:o(n)?function(e){var t,n,r,a,o,i,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)o=0,i=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Lt(t),g(t)&&(i=!0),o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||i)&&(r=o,n=t,i&&(s=!0));p(e,n||t)}(e):n?Lt(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(bt(e),!1===e._isValid&&(delete e._isValid,kt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=m(t.slice(0),(function(e){return parseInt(e,10)})),vt(e)):i(t)?function(e){if(!e._d){var t=W(e._i),n=void 0===t.day?t.date:t.day;e._a=m([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),vt(e)}}(e):u(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Yt(e,t,n,r,a){var s,c={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=r,(s=new M(ct(wt(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Tt(e,t,n,r){return Yt(e,t,n,r,!1)}a.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Dt=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()})),Rt=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:f()}));function St(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var xt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Et(e){var t=W(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(s(e,t)&&(-1===fe.call(xt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<xt.length;++n)if(e[xt[n]]){if(r)return!1;parseFloat(e[xt[n]])!==G(e[xt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=lt(),this._bubble()}function Ct(e){return e instanceof Et}function jt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){O(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+E(~~(e/60),2)+t+E(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),_e("Z",me),_e("ZZ",me),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ot(me,e)}));var Ht=/([\+\-]|\d\d)/gi;function Ot(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(Ht)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?r:-r}function zt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(v(e)||d(e)?e.valueOf():Tt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Tt(e).local()}function At(e){return-Math.round(e._d.getTimezoneOffset())}function Bt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Nt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ft=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wt(e,t){var n,r,a,o,i,l,c=e,d=null;return Ct(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Nt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:G(d[2])*n,h:G(d[3])*n,m:G(d[4])*n,s:G(d[5])*n,ms:G(jt(1e3*d[6]))*n}):(d=Ft.exec(e))?(n="-"===d[1]?-1:1,c={y:It(d[2],n),M:It(d[3],n),w:It(d[4],n),d:It(d[5],n),h:It(d[6],n),m:It(d[7],n),s:It(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=Tt(c.from),i=Tt(c.to),a=o.isValid()&&i.isValid()?(i=zt(i,o),o.isBefore(i)?l=Ut(o,i):((l=Ut(i,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=a.milliseconds,c.M=a.months),r=new Et(c),Ct(e)&&s(e,"_locale")&&(r._locale=e._locale),Ct(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function It(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Jt(this,Wt(n,r),e),this}}function Jt(e,t,n,r){var o=t._milliseconds,i=jt(t._days),s=jt(t._months);e.isValid()&&(r=null==r||r,s&&Se(e,$(e,"Month")+s*n),i&&K(e,"Date",$(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&a.updateOffset(e,i||s))}Wt.fn=Et.prototype,Wt.invalid=function(){return Wt(NaN)};var Gt=Vt(1,"add"),qt=Vt(-1,"subtract");function $t(e){return"string"==typeof e||e instanceof String}function Kt(e){return v(e)||d(e)||$t(e)||u(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&$t(e)})).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!l(e),a=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],a=a||s(e,n);return r&&a}(e)||null==e}function Zt(e){var t,n=i(e)&&!l(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)r=r||s(e,a[t]);return n&&r}function Qt(e,t){if(e.date()<t.date())return-Qt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],a=[],o=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(ge(i[e].name)),n.push(ge(i[e].abbr)),a.push(ge(i[e].narrow)),o.push(ge(i[e].name)),o.push(ge(i[e].abbr)),o.push(ge(i[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function ln(e,t){O(0,[e,e.length],0,t)}function cn(e,t,n,r,a){var o;return null==e?Ae(this,r,a).year:(t>(o=Be(e,r,a))&&(t=o),un.call(this,e,t,n,r,a))}function un(e,t,n,r,a){var o=ze(e,t,n,r,a),i=He(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),_e("N",on),_e("NN",on),_e("NNN",on),_e("NNNN",(function(e,t){return t.erasNameRegex(e)})),_e("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?h(n).era=a:h(n).invalidEra=e})),_e("y",ce),_e("yy",ce),_e("yyy",ce),_e("yyyy",ce),_e("yo",(function(e,t){return t._eraYearOrdinalRegex||ce})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),O(0,["gg",2],0,(function(){return this.weekYear()%100})),O(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),_e("G",ue),_e("g",ue),_e("GG",re,X),_e("gg",re,X),_e("GGGG",se,te),_e("gggg",se,te),_e("GGGGG",le,ne),_e("ggggg",le,ne),ke(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=G(e)})),ke(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),O("Q",0,"Qo","quarter"),N("quarter","Q"),U("quarter",7),_e("Q",Q),ye("Q",(function(e,t){t[1]=3*(G(e)-1)})),O("D",["DD",2],"Do","date"),N("date","D"),U("date",9),_e("D",re),_e("DD",re,X),_e("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=G(e.match(re)[0])}));var dn=q("Date",!0);O("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),U("dayOfYear",4),_e("DDD",ie),_e("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),O("m",["mm",2],0,"minute"),N("minute","m"),U("minute",14),_e("m",re),_e("mm",re,X),ye(["m","mm"],4);var mn=q("Minutes",!1);O("s",["ss",2],0,"second"),N("second","s"),U("second",15),_e("s",re),_e("ss",re,X),ye(["s","ss"],5);var pn,_n,hn=q("Seconds",!1);for(O("S",0,0,(function(){return~~(this.millisecond()/100)})),O(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),O(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),O(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),O(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),O(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),O(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),U("millisecond",16),_e("S",ie,Q),_e("SS",ie,X),_e("SSS",ie,ee),pn="SSSS";pn.length<=9;pn+="S")_e(pn,ce);function gn(e,t){t[6]=G(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ye(pn,gn);_n=q("Milliseconds",!1),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName");var fn=M.prototype;function bn(e){return e}fn.add=Gt,fn.calendar=function(e,t){1===arguments.length&&(Kt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0));var n=e||Tt(),r=zt(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(R(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Tt(n)))},fn.clone=function(){return new M(this)},fn.diff=function(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=F(t)){case"year":o=Qt(this,r)/12;break;case"month":o=Qt(this,r);break;case"quarter":o=Qt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:J(o)},fn.endOf=function(e){var t,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},fn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Tt(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(Tt(),e)},fn.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Tt(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(Tt(),e)},fn.get=function(e){return R(this[e=F(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=v(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},fn.isBefore=function(e,t){var n=v(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},fn.isBetween=function(e,t,n,r){var a=v(e)?e:Tt(e),o=v(t)?t:Tt(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},fn.isSame=function(e,t){var n,r=v(e)?e:Tt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},fn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},fn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},fn.isValid=function(){return g(this)},fn.lang=en,fn.locale=Xt,fn.localeData=tn,fn.max=Rt,fn.min=Dt,fn.parsingFlags=function(){return p({},h(this))},fn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:I[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=W(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(R(this[e=F(e)]))return this[e](t);return this},fn.startOf=function(e){var t,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),a.updateOffset(this,!0),this},fn.subtract=qt,fn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},fn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},fn.toDate=function(){return new Date(this.valueOf())},fn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(fn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},fn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},fn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},fn.eraYear=function(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-a(o[e].since).year())*n+o[e].offset;return this.year()},fn.year=je,fn.isLeapYear=function(){return V(this.year())},fn.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=xe,fn.daysInMonth=function(){return ve(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=Ae(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},fn.weeksInWeekYear=function(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Be(this.year(),1,4)},fn.isoWeeksInISOWeekYear=function(){return Be(this.isoWeekYear(),1,4)},fn.date=dn,fn.day=fn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},fn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},fn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},fn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},fn.hour=fn.hours=Xe,fn.minute=fn.minutes=mn,fn.second=fn.seconds=hn,fn.millisecond=fn.milliseconds=_n,fn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ot(me,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=At(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Jt(this,Wt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:At(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(At(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ot(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Bt,fn.isUTC=Bt,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=w("dates accessor is deprecated. Use date instead.",dn),fn.months=w("months accessor is deprecated. Use month instead",xe),fn.years=w("years accessor is deprecated. Use year instead",je),fn.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),fn.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),(t=wt(t))._a?(e=t._isUTC?_(t._a):Tt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&G(e[r])!==G(t[r]))&&i++;return i+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=x.prototype;function kn(e,t,n,r){var a=lt(),o=_().set(r,t);return a[n](o,e)}function Mn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return kn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=kn(e,r,n,"month");return a}function vn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,o=lt(),i=e?o._week.dow:0,s=[];if(null!=n)return kn(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=kn(t,(a+i)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return R(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(C).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=bn,yn.postformat=bn,yn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return R(a)?a(e,t,n,r):a.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return R(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(R(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,r,o,i=this._eras||lt("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=a(i[n].since).startOf("day"),i[n].since=o.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=a(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf()}}return i},yn.erasParse=function(e,t,n){var r,a,o,i,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(o=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([o,i,s].indexOf(e)>=0)return l[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ye).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ye.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,a,o;if(this._monthsParseExact)return Re.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=_([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ee.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ee.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ae(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ne(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Ge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=_([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=w("moment.lang is deprecated. Use moment.locale instead.",it),a.langData=w("moment.langData is deprecated. Use moment.localeData instead.",lt);var Ln=Math.abs;function wn(e,t,n,r){var a=Wt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Yn(e){return e<0?Math.floor(e):Math.ceil(e)}function Tn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var Sn=Rn("ms"),xn=Rn("s"),En=Rn("m"),Cn=Rn("h"),jn=Rn("d"),Pn=Rn("w"),Hn=Rn("M"),On=Rn("Q"),zn=Rn("y");function An(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bn=An("milliseconds"),Nn=An("seconds"),Fn=An("minutes"),Wn=An("hours"),In=An("days"),Un=An("months"),Vn=An("years"),Jn=Math.round,Gn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qn(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}var $n=Math.abs;function Kn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,i,s,l=$n(this._milliseconds)/1e3,c=$n(this._days),u=$n(this._months),d=this.asSeconds();return d?(e=J(l/60),t=J(e/60),l%=60,e%=60,n=J(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",o=Kn(this._months)!==Kn(d)?"-":"",i=Kn(this._days)!==Kn(d)?"-":"",s=Kn(this._milliseconds)!==Kn(d)?"-":"",a+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?i+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Qn=Et.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=Ln(this._milliseconds),this._days=Ln(this._days),this._months=Ln(this._months),e.milliseconds=Ln(e.milliseconds),e.seconds=Ln(e.seconds),e.minutes=Ln(e.minutes),e.hours=Ln(e.hours),e.months=Ln(e.months),e.years=Ln(e.years),this},Qn.add=function(e,t){return wn(this,e,t,1)},Qn.subtract=function(e,t){return wn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Tn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=Sn,Qn.asSeconds=xn,Qn.asMinutes=En,Qn.asHours=Cn,Qn.asDays=jn,Qn.asWeeks=Pn,Qn.asMonths=Hn,Qn.asQuarters=On,Qn.asYears=zn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Qn._bubble=function(){var e,t,n,r,a,o=this._milliseconds,i=this._days,s=this._months,l=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*Yn(Dn(s)+i),i=0,s=0),l.milliseconds=o%1e3,e=J(o/1e3),l.seconds=e%60,t=J(e/60),l.minutes=t%60,n=J(t/60),l.hours=n%24,i+=J(n/24),a=J(Tn(i)),s+=a,i-=Yn(Dn(a)),r=J(s/12),s%=12,l.days=i,l.months=s,l.years=r,this},Qn.clone=function(){return Wt(this)},Qn.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=Bn,Qn.seconds=Nn,Qn.minutes=Fn,Qn.hours=Wn,Qn.days=In,Qn.weeks=function(){return J(this.days()/7)},Qn.months=Un,Qn.years=Vn,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=Gn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(o=Object.assign({},Gn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var a=Wt(e).abs(),o=Jn(a.as("s")),i=Jn(a.as("m")),s=Jn(a.as("h")),l=Jn(a.as("d")),c=Jn(a.as("M")),u=Jn(a.as("w")),d=Jn(a.as("y")),m=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(m=m||u<=1&&["w"]||u<n.w&&["ww",u]),(m=m||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,m[3]=+e>0,m[4]=r,qn.apply(null,m)}(this,!a,o,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},Qn.toISOString=Zn,Qn.toString=Zn,Qn.toJSON=Zn,Qn.locale=Xt,Qn.localeData=tn,Qn.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Qn.lang=en,O("X",0,0,"unix"),O("x",0,0,"valueOf"),_e("x",ue),_e("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(G(e))})),
|
7 |
//! moment.js
|
8 |
-
a.version="2.26.0",t=Tt,a.fn=fn,a.min=function(){var e=[].slice.call(arguments,0);return St("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return St("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=_,a.unix=function(e){return Tt(1e3*e)},a.months=function(e,t){return Mn(e,t,"months")},a.isDate=d,a.locale=it,a.invalid=f,a.duration=Wt,a.isMoment=v,a.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},a.parseZone=function(){return Tt.apply(null,arguments).parseZone()},a.localeData=lt,a.isDuration=Ct,a.monthsShort=function(e,t){return Mn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},a.defineLocale=st,a.updateLocale=function(e,t){if(null!=t){var n,r,a=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(S(tt[e]._config,t)):(null!=(r=ot(e))&&(a=r._config),t=S(a,t),null==r&&(t.abbr=e),(n=new x(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},a.locales=function(){return Y(tt)},a.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},a.normalizeUnits=F,a.relativeTimeRounding=function(e){return void 0===e?Jn:"function"==typeof e&&(Jn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Gn[e]&&(void 0===t?Gn[e]:(Gn[e]=t,"s"===e&&(Gn.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=fn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(
|
9 |
//! moment.js locale configuration
|
10 |
e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";
|
11 |
//! moment.js locale configuration
|
@@ -269,7 +269,7 @@ e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月
|
|
269 |
//! moment.js locale configuration
|
270 |
e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(6))},function(e,t,n){!function(e){"use strict";
|
271 |
//! moment.js locale configuration
|
272 |
-
e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(6))},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},function(e,t,n){var r=n(
|
273 |
/*!
|
274 |
* Determine if an object is a Buffer
|
275 |
*
|
@@ -284,9 +284,9 @@ e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeo
|
|
284 |
*
|
285 |
* This source code is licensed under the MIT license found in the
|
286 |
* LICENSE file in the root directory of this source tree.
|
287 |
-
*/var r=n(
|
288 |
/*
|
289 |
object-assign
|
290 |
(c) Sindre Sorhus
|
291 |
@license MIT
|
292 |
-
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=i(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},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={"./af":45,"./af.js":45,"./ar":46,"./ar-dz":47,"./ar-dz.js":47,"./ar-kw":48,"./ar-kw.js":48,"./ar-ly":49,"./ar-ly.js":49,"./ar-ma":50,"./ar-ma.js":50,"./ar-sa":51,"./ar-sa.js":51,"./ar-tn":52,"./ar-tn.js":52,"./ar.js":46,"./az":53,"./az.js":53,"./be":54,"./be.js":54,"./bg":55,"./bg.js":55,"./bm":56,"./bm.js":56,"./bn":57,"./bn.js":57,"./bo":58,"./bo.js":58,"./br":59,"./br.js":59,"./bs":60,"./bs.js":60,"./ca":61,"./ca.js":61,"./cs":62,"./cs.js":62,"./cv":63,"./cv.js":63,"./cy":64,"./cy.js":64,"./da":65,"./da.js":65,"./de":66,"./de-at":67,"./de-at.js":67,"./de-ch":68,"./de-ch.js":68,"./de.js":66,"./dv":69,"./dv.js":69,"./el":70,"./el.js":70,"./en-au":71,"./en-au.js":71,"./en-ca":72,"./en-ca.js":72,"./en-gb":73,"./en-gb.js":73,"./en-ie":74,"./en-ie.js":74,"./en-il":75,"./en-il.js":75,"./en-in":76,"./en-in.js":76,"./en-nz":77,"./en-nz.js":77,"./en-sg":78,"./en-sg.js":78,"./eo":79,"./eo.js":79,"./es":80,"./es-do":81,"./es-do.js":81,"./es-us":82,"./es-us.js":82,"./es.js":80,"./et":83,"./et.js":83,"./eu":84,"./eu.js":84,"./fa":85,"./fa.js":85,"./fi":86,"./fi.js":86,"./fil":87,"./fil.js":87,"./fo":88,"./fo.js":88,"./fr":89,"./fr-ca":90,"./fr-ca.js":90,"./fr-ch":91,"./fr-ch.js":91,"./fr.js":89,"./fy":92,"./fy.js":92,"./ga":93,"./ga.js":93,"./gd":94,"./gd.js":94,"./gl":95,"./gl.js":95,"./gom-deva":96,"./gom-deva.js":96,"./gom-latn":97,"./gom-latn.js":97,"./gu":98,"./gu.js":98,"./he":99,"./he.js":99,"./hi":100,"./hi.js":100,"./hr":101,"./hr.js":101,"./hu":102,"./hu.js":102,"./hy-am":103,"./hy-am.js":103,"./id":104,"./id.js":104,"./is":105,"./is.js":105,"./it":106,"./it-ch":107,"./it-ch.js":107,"./it.js":106,"./ja":108,"./ja.js":108,"./jv":109,"./jv.js":109,"./ka":110,"./ka.js":110,"./kk":111,"./kk.js":111,"./km":112,"./km.js":112,"./kn":113,"./kn.js":113,"./ko":114,"./ko.js":114,"./ku":115,"./ku.js":115,"./ky":116,"./ky.js":116,"./lb":117,"./lb.js":117,"./lo":118,"./lo.js":118,"./lt":119,"./lt.js":119,"./lv":120,"./lv.js":120,"./me":121,"./me.js":121,"./mi":122,"./mi.js":122,"./mk":123,"./mk.js":123,"./ml":124,"./ml.js":124,"./mn":125,"./mn.js":125,"./mr":126,"./mr.js":126,"./ms":127,"./ms-my":128,"./ms-my.js":128,"./ms.js":127,"./mt":129,"./mt.js":129,"./my":130,"./my.js":130,"./nb":131,"./nb.js":131,"./ne":132,"./ne.js":132,"./nl":133,"./nl-be":134,"./nl-be.js":134,"./nl.js":133,"./nn":135,"./nn.js":135,"./oc-lnc":136,"./oc-lnc.js":136,"./pa-in":137,"./pa-in.js":137,"./pl":138,"./pl.js":138,"./pt":139,"./pt-br":140,"./pt-br.js":140,"./pt.js":139,"./ro":141,"./ro.js":141,"./ru":142,"./ru.js":142,"./sd":143,"./sd.js":143,"./se":144,"./se.js":144,"./si":145,"./si.js":145,"./sk":146,"./sk.js":146,"./sl":147,"./sl.js":147,"./sq":148,"./sq.js":148,"./sr":149,"./sr-cyrl":150,"./sr-cyrl.js":150,"./sr.js":149,"./ss":151,"./ss.js":151,"./sv":152,"./sv.js":152,"./sw":153,"./sw.js":153,"./ta":154,"./ta.js":154,"./te":155,"./te.js":155,"./tet":156,"./tet.js":156,"./tg":157,"./tg.js":157,"./th":158,"./th.js":158,"./tl-ph":159,"./tl-ph.js":159,"./tlh":160,"./tlh.js":160,"./tr":161,"./tr.js":161,"./tzl":162,"./tzl.js":162,"./tzm":163,"./tzm-latn":164,"./tzm-latn.js":164,"./tzm.js":163,"./ug-cn":165,"./ug-cn.js":165,"./uk":166,"./uk.js":166,"./ur":167,"./ur.js":167,"./uz":168,"./uz-latn":169,"./uz-latn.js":169,"./uz.js":168,"./vi":170,"./vi.js":170,"./x-pseudo":171,"./x-pseudo.js":171,"./yo":172,"./yo.js":172,"./zh-cn":173,"./zh-cn.js":173,"./zh-hk":174,"./zh-hk.js":174,"./zh-mo":175,"./zh-mo.js":175,"./zh-tw":176,"./zh-tw.js":176};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=205},function(e,t,n){var r=n(207),a=n(271),o=n(194),i=n(13),s=n(280);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?a(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(208),a=n(270),o=n(191);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(178),a=n(183);e.exports=function(e,t,n,o){var i=n.length,s=i,l=!o;if(null==e)return!s;for(e=Object(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],d=e[u],m=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(o)var _=o(d,m,u,e,t,p);if(!(void 0===_?a(m,d,3,o,p):_))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(21),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(21);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(21);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(21);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},function(e,t,n){var r=n(20);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(20),a=n(35),o=n(36);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(180),a=n(223),o=n(23),i=n(182),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(r(e)?m:s).test(i(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(22),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,a=n(224),o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(12)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(227),a=n(20),o=n(35);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}},function(e,t,n){var r=n(228),a=n(229),o=n(230),i=n(231),s=n(232);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(24);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(24),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(24),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},function(e,t,n){var r=n(24);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(25);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(25);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(25);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(25);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},function(e,t,n){var r=n(178),a=n(184),o=n(244),i=n(248),s=n(265),l=n(13),c=n(187),u=n(189),d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,_,h){var g=l(e),f=l(t),b=g?"[object Array]":s(e),y=f?"[object Array]":s(t),k=(b="[object Arguments]"==b?d:b)==d,M=(y="[object Arguments]"==y?d:y)==d,v=b==y;if(v&&c(e)){if(!c(t))return!1;g=!0,k=!1}if(v&&!k)return h||(h=new r),g||u(e)?a(e,t,n,p,_,h):o(e,t,b,n,p,_,h);if(!(1&n)){var L=k&&m.call(e,"__wrapped__"),w=M&&m.call(t,"__wrapped__");if(L||w){var Y=L?e.value():e,T=w?t.value():t;return h||(h=new r),_(Y,T,n,p,h)}}return!!v&&(h||(h=new r),i(e,t,n,p,_,h))}},function(e,t,n){var r=n(36),a=n(240),o=n(241);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=a,i.prototype.has=o,e.exports=i},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(22),a=n(245),o=n(179),i=n(184),s=n(246),l=n(247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,m){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var _=1&r;if(p||(p=l),e.size!=t.size&&!_)return!1;var h=m.get(e);if(h)return h==t;r|=2,m.set(e,t);var g=i(p(e),p(t),r,c,d,m);return m.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,n){var r=n(12).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(249),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,i,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var m=c[d];if(!(l?m in t:a.call(t,m)))return!1}var p=s.get(e);if(p&&s.get(t))return p==t;var _=!0;s.set(e,t),s.set(t,e);for(var h=l;++d<u;){var g=e[m=c[d]],f=t[m];if(o)var b=l?o(f,g,m,t,e,s):o(g,f,m,e,t,s);if(!(void 0===b?g===f||i(g,f,n,o,s):b)){_=!1;break}h||(h="constructor"==m)}if(_&&!h){var y=e.constructor,k=t.constructor;y==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof k&&k instanceof k||(_=!1)}return s.delete(e),s.delete(t),_}},function(e,t,n){var r=n(250),a=n(252),o=n(37);e.exports=function(e){return r(e,o,a)}},function(e,t,n){var r=n(251),a=n(13);e.exports=function(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},function(e,t,n){var r=n(253),a=n(254),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return o.call(e,t)})))}:a;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(185),a=n(186),o=n(13),i=n(187),s=n(188),l=n(189),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&a(e),d=!n&&!u&&i(e),m=!n&&!u&&!d&&l(e),p=n||u||d||m,_=p?r(e.length,String):[],h=_.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||m&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||_.push(g);return _}},function(e,t,n){var r=n(18),a=n(19);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(18),a=n(38),o=n(19),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(181),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(34)(e))},function(e,t,n){var r=n(262),a=n(263),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(264)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(266),a=n(35),o=n(267),i=n(268),s=n(269),l=n(18),c=n(182),u=c(r),d=c(a),m=c(o),p=c(i),_=c(s),h=l;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||a&&"[object Map]"!=h(new a)||o&&"[object Promise]"!=h(o.resolve())||i&&"[object Set]"!=h(new i)||s&&"[object WeakMap]"!=h(new s))&&(h=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case m:return"[object Promise]";case p:return"[object Set]";case _:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,n){var r=n(17)(n(12),"DataView");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Promise");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Set");e.exports=r},function(e,t,n){var r=n(17)(n(12),"WeakMap");e.exports=r},function(e,t,n){var r=n(190),a=n(37);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var o=t[n],i=e[o];t[n]=[o,i,r(i)]}return t}},function(e,t,n){var r=n(183),a=n(28),o=n(277),i=n(40),s=n(190),l=n(191),c=n(27);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(n){var i=a(n,e);return void 0===i&&i===t?o(n,e):r(t,i,3)}}},function(e,t,n){var r=n(273),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)})),t}));e.exports=i},function(e,t,n){var r=n(274);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(36);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},function(e,t,n){var r=n(276);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(22),a=n(177),o=n(13),i=n(26),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(278),a=n(279);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(193),a=n(186),o=n(13),i=n(188),s=n(38),l=n(27);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var m=l(t[c]);if(!(d=null!=e&&n(e,m)))break;e=e[m]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(m,u)&&(o(e)||a(e))}},function(e,t,n){var r=n(281),a=n(282),o=n(40),i=n(27);e.exports=function(e){return o(e)?r(i(e)):a(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(192);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(284),a=n(39);e.exports=function(e,t){var n=-1,o=a(e)?Array(e.length):[];return r(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}},function(e,t,n){var r=n(285),a=n(288)(r);e.exports=a},function(e,t,n){var r=n(286),a=n(37);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t,n){var r=n(287)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,o=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++a];if(!1===n(o[l],l,o))break}return t}}},function(e,t,n){var r=n(39);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var o=n.length,i=t?o:-1,s=Object(n);(t?i--:++i<o)&&!1!==a(s[i],i,s););return n}}},function(e,t,n){var r=n(194);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(291);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(292);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(23),a=n(26),o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=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)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(44);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,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 u?t:u,o=Object.create(a.prototype),i=new v(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===c)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 u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.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 c={};function u(){}function d(){}function m(){}var p={};p[a]=function(){return this};var _=Object.getPrototypeOf,h=_&&_(_(L([])));h&&h!==t&&n.call(h,a)&&(p=h);var g=m.prototype=u.prototype=Object.create(p);function f(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 c=l(e[a],e,o);if("throw"!==c.type){var u=c.arg,d=u.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){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.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 c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;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,c):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function k(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,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=m,m.constructor=d,m[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,m):(e.__proto__=m,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},f(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()}))},f(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,v.prototype={constructor:v,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(M),!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,c):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),c},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),M(n),c}},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;M(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),c}},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(9),a=n.n(r),o=n(8),i=n.n(o),s=n(1),l=n.n(s),c=n(2),u=n.n(c),d=n(3),m=n.n(d),p=n(4),_=n.n(p),h=n(0),g=n.n(h),f=n(5),b=n.n(f);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 _()(this,n)}}var k=wp.element.Component,M=wp.hooks.applyFilters,v=function(e){m()(n,e);var t=y(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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 M("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}]),n}(k);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 _()(this,n)}}var w=wp.i18n.__,Y=wp.element.Component,T=wp.blockEditor,D=T.InspectorControls,R=T.PanelColorSettings,S=wp.components,x=S.PanelBody,E=S.RangeControl,C=S.SelectControl,j=function(e){m()(n,e);var t=L(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(D,{key:"inspector"},React.createElement(x,null,React.createElement(v,{id:"gb_testimonial_testimonialFontSize"},React.createElement(E,{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(v,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(C,{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(v,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(R,{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(v,{id:"gb_testimonial_testimonialTextColor"},React.createElement(R,{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}(Y);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 _()(this,n)}}var H=function(e){m()(n,e);var t=P(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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),O={};O.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 z=O;function A(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 B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(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 _()(this,n)}}var F=wp.i18n.__,W=wp.element,I=W.Component,U=W.Fragment,V=wp.blockEditor,J=V.RichText,G=V.AlignmentToolbar,q=V.BlockControls,$=V.MediaUpload,K=wp.components,Z=K.Button,Q=K.Dashicon,X=["image"],ee=function(e){m()(n,e);var t=N(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.testimonialImgID,u=n.testimonialImgAlt,d=n.testimonialTextColor,m=t.setAttributes,p=function(){m({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(q,{key:"controls"},React.createElement(G,{value:s,onChange:function(e){return m({testimonialAlignment:e})}})),React.createElement(j,a()({key:"gb-testimonial-inspector-"+this.props.clientId},B({setAttributes:m},this.props))),React.createElement(H,a()({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(J,{tagName:"div",multiline:"p",placeholder:F("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 m({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 m({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt})},allowed:X,type:"image",value:c,render:function(e){var t=e.open;return React.createElement(U,null,React.createElement(Z,{className:c?"gb-change-image":"gb-add-image",onClick:t},c?React.createElement("img",{className:"gb-testimonial-avatar",src:l,alt:u||null}):z.upload),c&&React.createElement(Z,{className:"gb-remove-image",onClick:p},React.createElement(Q,{icon:"dismiss"})))}}))),React.createElement(J,{tagName:"h2",placeholder:F("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:F("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}(I);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 _()(this,n)}}var ne=wp.element.Component,re=wp.blockEditor.RichText,ae=function(e){m()(n,e);var t=te(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(H,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(326),n(328),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 _()(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,ce=wp.blockEditor,ue=ce.InspectorControls,de=ce.PanelColorSettings,me=wp.components,pe=me.PanelBody,_e=me.RangeControl,he=me.SelectControl,ge=me.TextControl,fe=function(e){m()(n,e);var t=ie(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.pinterest,u=t.google,d=t.youtube,m=t.github,p=t.linkedin,_=t.wordpress,h=t.email,g=t.website,f=t.profileAvatarShape,b=this.props.setAttributes,y=[{value:"square",label:se("Square","genesis-blocks")},{value:"round",label:se("Round","genesis-blocks")}];return React.createElement(ue,{key:"inspector"},React.createElement(pe,null,React.createElement(v,{id:"gb_author_profile_profileFontSize"},React.createElement(_e,{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(v,{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:f,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),React.createElement(v,{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(v,{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(v,{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(v,{id:"gb_author_profile_socialLinks"},React.createElement(pe,{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:c,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),React.createElement(ge,{label:se("Google URL","genesis-blocks"),type:"url",value:u,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:m,onChange:function(t){return e.props.setAttributes({github:t})}}),React.createElement(ge,{label:se("LinkedIn URL","genesis-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),React.createElement(ge,{label:se("WordPress Profile URL","genesis-blocks"),type:"url",value:_,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 _()(this,n)}}var ye=function(e){m()(n,e);var t=be(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Me=wp.i18n.__,ve=function(e){m()(n,e);var t=ke(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Website","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-website-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-website-"+this.props.clientId},Me("Visit Website (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Twitter","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},Me("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Facebook","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},Me("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Instagram","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-instagram-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-instagram-"+this.props.clientId},Me("Visit Instagram account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Pinterest","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},Me("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Google","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-google-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-google-"+this.props.clientId},Me("Visit Google account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("YouTube","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-youtube-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-youtube-"+this.props.clientId},Me("Visit YouTube account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("LinkedIn","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},Me("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Github","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-github-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-github-"+this.props.clientId},Me("Visit GitHub account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("WordPress","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-wordpress-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-wordpress-"+this.props.clientId},Me("Visit WordPress account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M21.469 6.825c.84 1.537 1.318 3.3 1.318 5.175 0 3.979-2.156 7.456-5.363 9.325l3.295-9.527c.615-1.54.82-2.771.82-3.864 0-.405-.026-.78-.07-1.11m-7.981.105c.647-.03 1.232-.105 1.232-.105.582-.075.514-.93-.067-.899 0 0-1.755.135-2.88.135-1.064 0-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885 0 0 .54.061 1.125.09l1.68 4.605-2.37 7.08L5.354 6.9c.649-.03 1.234-.1 1.234-.1.585-.075.516-.93-.065-.896 0 0-1.746.138-2.874.138-.2 0-.438-.008-.69-.015C4.911 3.15 8.235 1.215 12 1.215c2.809 0 5.365 1.072 7.286 2.833-.046-.003-.091-.009-.141-.009-1.06 0-1.812.923-1.812 1.914 0 .89.513 1.643 1.06 2.531.411.72.89 1.643.89 2.977 0 .915-.354 1.994-.821 3.479l-1.075 3.585-3.9-11.61.001.014zM12 22.784c-1.059 0-2.081-.153-3.048-.437l3.237-9.406 3.315 9.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211 12c0-1.564.336-3.05.935-4.39L7.29 21.709C3.694 19.96 1.212 16.271 1.211 12M12 0C5.385 0 0 5.385 0 12s5.385 12 12 12 12-5.385 12-12S18.615 0 12 0"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Email","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},Me("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})))))}}]),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 _()(this,n)}}var we=function(e){m()(n,e);var t=Le(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 Ye(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 Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Re=wp.i18n.__,Se=wp.element,xe=Se.Component,Ee=Se.Fragment,Ce=wp.blockEditor,je=Ce.RichText,Pe=Ce.AlignmentToolbar,He=Ce.BlockControls,Oe=Ce.MediaUpload,ze=wp.components,Ae=ze.Button,Be=ze.Dashicon,Ne=["image"],Fe=function(e){m()(n,e);var t=De(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.attributes.clientId&&e.props.attributes.clientId===e.props.clientId||e.props.setAttributes({clientId:e.props.clientId}),e}return u()(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,c=t.profileImgAlt,u=t.profileTextColor,d=e.setAttributes;return[React.createElement(He,{key:"controls"},React.createElement(Pe,{value:i,onChange:function(e){return d({profileAlignment:e})}})),React.createElement(fe,a()({key:"gb-author-profile-inspector-"+this.props.clientId},Te({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(Oe,{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(Ee,null,React.createElement(Ae,{onClick:t},l?React.createElement("img",{className:b()("gb-profile-avatar","gb-change-image","wp-image-"+l),src:s,alt:c}):z.upload),l&&React.createElement(Ae,{className:"gb-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(Be,{icon:"dismiss"})))}}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},React.createElement(je,{tagName:"h2",placeholder:Re("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"gb-profile-name",style:{color:u},onChange:function(e){return d({profileName:e})}}),React.createElement(je,{tagName:"p",placeholder:Re("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-profile-title",style:{color:u},onChange:function(e){return d({profileTitle:e})}}),React.createElement(je,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Re("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(ve,this.props)))]}}]),n}(xe);function We(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Ie=wp.element.Component,Ue=wp.blockEditor.RichText,Ve=function(e){m()(n,e);var t=We(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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&&i&&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(ve,this.props)))}}]),n}(Ie);n(329),n(330);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 _()(this,n)}}var Ge=function(e){m()(n,e);var t=Je(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var $e=wp.i18n.__,Ke=function(e){m()(n,e);var t=qe(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}]),n}(wp.element.Component);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 _()(this,n)}}var Qe=function(e){m()(n,e);var t=Ze(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var et=wp.element.Component,tt=wp.blockEditor.RichText,nt={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"}},save:function(e){m()(n,e);var t=Xe(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(Ge,this.props,a&&React.createElement(Qe,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(tt.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(tt.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(tt.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Ke,this.props)))}}]),n}(et)};function rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var at=wp.element.Component,ot=wp.blockEditor.RichText,it=[nt,{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){m()(n,e);var t=rt(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(ot.Content,{tagName:"h2",className:"gb-profile-name",style:{color:o},value:t}),n&&React.createElement(ot.Content,{tagName:"p",className:"gb-profile-title",style:{color:o},value:n}),r&&React.createElement(ot.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(ve,this.props)))}}]),n}(at)}],st=wp.i18n.__;function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-profile-box",{title:st("Profile Box","genesis-blocks"),description:st("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[st("author","genesis-blocks"),st("profile","genesis-blocks"),st("atomic","genesis-blocks"),st("genesis","genesis-blocks")],attributes:{clientId:{type:"string",default:""},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:st("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:st("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:st("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:st("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:st("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:st("Social Links","genesis-blocks")}},edit:function(e){return React.createElement(Fe,a()({},e,{clientId:e.clientId}))},save:function(e){return React.createElement(Ve,a()({},e,{clientId:e.attributes.clientId}))},deprecated:it});var ct=wp.i18n.__,ut=wp.element.Component,dt=wp.blockEditor,mt=dt.PanelColorSettings,pt=dt.InspectorControls,_t=wp.components,ht=_t.PanelBody,gt=_t.RangeControl,ft=_t.SelectControl,bt=function(e){m()(n,e);var t=lt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:null,label:ct("Always Show","genesis-blocks")},{value:"gb-dismissable",label:ct("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(pt,{key:"inspector"},React.createElement(ht,null,React.createElement(v,{id:"gb_notice_noticeFontSize"},React.createElement(gt,{label:ct("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_notice_noticeDismiss"},React.createElement(ft,{label:ct("Notice Display","genesis-blocks"),description:ct("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(v,{id:"gb_notice_colorSettings"},React.createElement(mt,{title:ct("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:ct("Notice Color","genesis-blocks")}]}),React.createElement(mt,{title:ct("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({noticeTitleColor:e})},label:ct("Title Color","genesis-blocks")}]}),React.createElement(mt,{title:ct("Text Color","genesis-blocks"),colorValue:a,initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({noticeTextColor:e})},label:ct("Text Color","genesis-blocks")}]})))}}]),n}(ut),yt=n(195),kt=n.n(yt);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 _()(this,n)}}var vt=function(e){m()(n,e);var t=Mt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,kt()(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 Lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var wt=function(e){m()(n,e);var t=Lt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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),Yt={};Yt.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"})),Yt.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 Tt=Yt;n(331),n(332);function Dt(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 Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 _()(this,n)}}var xt=wp.i18n.__,Et=wp.element.Component,Ct=wp.blocks.registerBlockType,jt=wp.blockEditor,Pt=jt.RichText,Ht=jt.AlignmentToolbar,Ot=jt.BlockControls,zt=function(e){m()(n,e);var t=St(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.setAttributes;return[React.createElement(Ot,{key:"controls"},React.createElement(Ht,{value:o,onChange:function(e){return c({noticeAlignment:e})}})),React.createElement(bt,a()({key:"gb-notice-inspector-"+this.props.clientId},Rt({setAttributes:c},this.props))),React.createElement(vt,a()({key:"gb-notice-noticebox-"+this.props.clientId},this.props),l&&"gb-dismissable"===l&&React.createElement(wt,this.props,Tt.dismiss),React.createElement(Pt,{tagName:"p",placeholder:xt("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:b()("gb-notice-title"),style:{color:s},onChange:function(e){return c({noticeTitle:e})}}),React.createElement(Pt,{tagName:"div",multiline:"p",placeholder:xt("Add notice text…","genesis-blocks"),value:r,className:b()("gb-notice-text"),style:{borderColor:i},onChange:function(e){return c({noticeContent:e})}}))]}}]),n}(Et);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 _()(this,n)}}Ct("genesis-blocks/gb-notice",{title:xt("Notice","genesis-blocks"),description:xt("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[xt("notice","genesis-blocks"),xt("message","genesis-blocks"),xt("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:xt("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:xt("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:xt("Notice Color","genesis-blocks")}},edit:zt,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(vt,e,i&&"gb-dismissable"===i&&React.createElement(wt,e,Tt.dismiss),n&&React.createElement("div",{className:"gb-notice-title",style:{color:o}},React.createElement(Pt.Content,{tagName:"p",value:n})),r&&React.createElement(Pt.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:a},value:r}))}});var Bt=wp.i18n.__,Nt=wp.element.Component,Ft=wp.blockEditor.InspectorControls,Wt=wp.components,It=Wt.RangeControl,Ut=Wt.SelectControl,Vt=Wt.PanelBody,Jt=function(e){m()(n,e);var t=At(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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:Bt("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:Bt("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:Bt("Border","genesis-blocks")}];return React.createElement(Ft,{key:"inspector"},React.createElement(Vt,null,React.createElement(v,{id:"gb_dropcap_dropCapFontSize"},React.createElement(It,{label:Bt("Drop Cap Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),React.createElement(v,{id:"gb_dropcap_dropCapStyle"},React.createElement(Ut,{label:Bt("Drop Cap Style","genesis-blocks"),description:Bt("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}(Nt);function Gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var qt=function(e){m()(n,e);var t=Gt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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(333),n(334);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 _()(this,n)}}var Kt=wp.i18n.__,Zt=wp.element.Component,Qt=wp.blocks.registerBlockType,Xt=wp.blockEditor,en=Xt.RichText,tn=Xt.AlignmentToolbar,nn=Xt.BlockControls,rn=function(e){m()(n,e);var t=$t(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,o=t.dropCapFontSize;return[React.createElement(nn,{key:"controls"},React.createElement(tn,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),React.createElement(Jt,a()({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(qt,a()({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(en,{tagName:"div",multiline:"p",placeholder:Kt("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}(Zt);Qt("genesis-blocks/gb-drop-cap",{title:Kt("Drop Cap","genesis-blocks"),description:Kt("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[Kt("drop cap","genesis-blocks"),Kt("quote","genesis-blocks"),Kt("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:Kt("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:Kt("Drop Cap Style","genesis-blocks")}},edit:rn,save:function(e){var t=e.attributes.dropCapContent;return React.createElement(qt,e,t&&React.createElement(en.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});var an=wp.i18n.__,on=wp.element.Fragment,sn=wp.components,ln=sn.SelectControl,cn=sn.ToggleControl,un=wp.blockEditor.PanelColorSettings;function dn(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,c=e.enableButtonSize,u=e.buttonSize,d=e.onChangeButtonSize,m=void 0===d?function(){}:d,p=e.enableButtonShape,_=e.buttonShape,h=e.onChangeButtonShape,g=void 0===h?function(){}:h,f=e.enableButtonTarget,b=e.buttonTarget,y=e.onChangeButtonTarget,k=void 0===y?function(){}:y,M=[{value:"gb-button-size-small",label:an("Small","genesis-blocks")},{value:"gb-button-size-medium",label:an("Medium","genesis-blocks")},{value:"gb-button-size-large",label:an("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:an("Extra Large","genesis-blocks")}],L=[{value:"gb-button-shape-square",label:an("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:an("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:an("Circular","genesis-blocks")}];return React.createElement(on,null,React.createElement(v,{id:"gb_button_buttonOptions"},!1!==f&&React.createElement(cn,{label:an("Open link in new window","genesis-blocks"),checked:b,onChange:k}),!1!==c&&React.createElement(ln,{selected:u,label:an("Button Size","genesis-blocks"),value:u,options:M.map((function(e){return{value:e.value,label:e.label}})),onChange:m}),!1!==p&&React.createElement(ln,{label:an("Button Shape","genesis-blocks"),value:_,options:L.map((function(e){return{value:e.value,label:e.label}})),onChange:g}),!1!==t&&React.createElement(un,{title:an("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:a,label:an("Button Color","genesis-blocks")}]}),!1!==o&&React.createElement(un,{title:an("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:l,label:an("Button Text Color","genesis-blocks")}]})))}function mn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}wp.i18n.__;var pn=wp.element.Component,_n=wp.blockEditor.InspectorControls,hn=wp.components.PanelBody,gn=function(e){m()(n,e);var t=mn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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(_n,{key:"inspector"},React.createElement(hn,null,React.createElement(dn,{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}(pn);function fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var bn=function(e){m()(n,e);var t=fn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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(335),n(336);function yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var kn=wp.i18n.__,Mn=wp.element.Component,vn=wp.blocks.registerBlockType,Ln=wp.blockEditor,wn=Ln.RichText,Yn=Ln.AlignmentToolbar,Tn=Ln.BlockControls,Dn=Ln.URLInput,Rn=wp.components,Sn=Rn.Button,xn=Rn.Dashicon,En=Rn.Icon,Cn=function(e){m()(n,e);var t=yn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.buttonShape,u=e.isSelected,d=e.setAttributes;return[React.createElement(Tn,{key:"controls"},React.createElement(Yn,{value:o,onChange:function(e){d({buttonAlignment:e})}})),React.createElement(gn,a()({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(bn,a()({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(wn,{tagName:"span",placeholder:kn("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:b()("gb-button",c,l),style:{color:s||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),u&&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(xn,{icon:"admin-links"}),React.createElement(Dn,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),React.createElement(Sn,{label:kn("Apply","genesis-blocks"),type:"submit"},React.createElement(En,{icon:"editor-break"})))]}}]),n}(Mn);function jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}vn("genesis-blocks/gb-button",{title:kn("Button","genesis-blocks"),description:kn("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[kn("button","genesis-blocks"),kn("link","genesis-blocks"),kn("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:kn("Button Options","genesis-blocks")}},edit:Cn,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(bn,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(wn.Content,{value:n})))}});var Pn=wp.i18n.__,Hn=wp.element,On=Hn.Component,zn=Hn.Fragment,An=wp.blockEditor,Bn=An.InspectorControls,Nn=An.PanelColorSettings,Fn=wp.components,Wn=Fn.PanelBody,In=Fn.RangeControl,Un=Fn.ToggleControl,Vn=Fn.SelectControl,Jn=function(e){m()(n,e);var t=jn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=[{value:"gb-divider-solid",label:Pn("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:Pn("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:Pn("Dotted","genesis-blocks")}];return React.createElement(Bn,{key:"inspector"},React.createElement(Wn,null,React.createElement(v,{id:"gb_spacer_spacerHeight"},React.createElement(In,{label:Pn("Spacer Height","genesis-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),React.createElement(v,{id:"gb_spacer_spacerDivider"},React.createElement(Un,{label:Pn("Add Divider","genesis-blocks"),checked:a,onChange:function(){return e.props.setAttributes({spacerDivider:!a})}}))),a?React.createElement(zn,null,React.createElement(Wn,null,React.createElement(v,{id:"gb_spacer_spacerDividerStyle"},React.createElement(Vn,{label:Pn("Divider Style","genesis-blocks"),value:o,options:c.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),React.createElement(v,{id:"gb_spacer_spacerDividerHeight"},React.createElement(In,{label:Pn("Divider Height","genesis-blocks"),value:s||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),React.createElement(v,{id:"gb_spacer_dividerColor"},React.createElement(Nn,{title:Pn("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:Pn("Divider Color","genesis-blocks")}]}))):null)}}]),n}(On);function Gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var qn,$n=function(e){m()(n,e);var t=Gn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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),Kn=n(10),Zn=n.n(Kn),Qn=(qn=function(e,t){return(qn=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}qn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xn=function(){return(Xn=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)},er={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"}},tr=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 Qn(t,e),t.prototype.render=function(){return Kn.createElement("div",{className:this.props.className||"",style:Xn(Xn({position:"absolute",userSelect:"none"},er[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(Kn.PureComponent),nr=n(15),rr=n.n(nr),ar=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)}}(),or=function(){return(or=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)},ir={width:"auto",height:"auto"},sr=rr()((function(e,t,n){return Math.max(Math.min(e,n),t)})),lr=rr()((function(e,t){return Math.round(e/t)*t})),cr=rr()((function(e,t){return new RegExp(e,"i").test(t)})),ur=rr()((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})),dr=rr()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),mr=rr()((function(e){return"auto"===(e=e.toString())||dr(e,"px")||dr(e,"%")||dr(e,"vh")||dr(e,"vw")||dr(e,"vmax")||dr(e,"vmin")?e:e+"px"})),pr=function(e,t,n,r){if(e&&"string"==typeof e){if(dr(e,"%"))return t*(Number(e.replace("%",""))/100);if(dr(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(dr(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},_r=rr()((function(e,t,n,r,a,o,i){return r=pr(r,e.width,t,n),a=pr(a,e.height,t,n),o=pr(o,e.width,t,n),i=pr(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)}})),hr=["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"],gr=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 ar(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||ir},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]&&dr(e.propsSize[t].toString(),"%")){if(dr(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 mr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?mr(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?mr(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,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=i.width,m=i.height,p=c||0,_=u||0;return cr("right",o)&&(d=i.width+(e-i.x)*r/n,l&&(m=(d-_)/this.ratio+p)),cr("left",o)&&(d=i.width-(e-i.x)*r/n,l&&(m=(d-_)/this.ratio+p)),cr("bottom",o)&&(m=i.height+(t-i.y)*r/n,l&&(d=(m-p)*this.ratio+_)),cr("top",o)&&(m=i.height-(t-i.y)*r/n,l&&(d=(m-p)*this.ratio+_)),{newWidth:d,newHeight:m}},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,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,m=i||0,p=s||0;if(o){var _=(u-m)*this.ratio+p,h=(d-m)*this.ratio+p,g=(l-p)/this.ratio+m,f=(c-p)/this.ratio+m,b=Math.max(l,_),y=Math.min(c,h),k=Math.max(u,g),M=Math.min(d,f);e=sr(e,b,y),t=sr(t,k,M)}else e=sr(e,l,c),t=sr(t,u,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:or(or({},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,c=l.direction,u=l.original,d=l.width,m=l.height,p=this.getParentSize(),_=_r(p,this.window.innerWidth,this.window.innerHeight,n,r,a,o);n=_.maxWidth,r=_.maxHeight,a=_.minWidth,o=_.minHeight;var h=this.calculateNewSizeFromDirection(i,s),g=h.newHeight,f=h.newWidth,b=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(f,g,{width:b.maxWidth,height:b.maxHeight},{width:a,height:o});if(f=y.newWidth,g=y.newHeight,this.props.grid){var k=lr(f,this.props.grid[0]),M=lr(g,this.props.grid[1]),v=this.props.snapGap||0;f=0===v||Math.abs(k-f)<=v?k:f,g=0===v||Math.abs(M-g)<=v?M:g}this.props.snap&&this.props.snap.x&&(f=ur(f,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=ur(g,this.props.snap.y,this.props.snapGap));var L={width:f-u.width,height:g-u.height};if(d&&"string"==typeof d)if(dr(d,"%"))f=f/p.width*100+"%";else if(dr(d,"vw")){f=f/this.window.innerWidth*100+"vw"}else if(dr(d,"vh")){f=f/this.window.innerHeight*100+"vh"}if(m&&"string"==typeof m)if(dr(m,"%"))g=g/p.height*100+"%";else if(dr(m,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(dr(m,"vh")){g=g/this.window.innerHeight*100+"vh"}var w={width:this.createSizeForCssProperty(f,"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,c,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:or(or({},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]?Kn.createElement(tr,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:a&&a[t]},s&&s[t]?s[t]:null):null}));return Kn.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!==hr.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=or(or(or({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 Kn.createElement(r,or({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&Kn.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}(Kn.PureComponent);n(337),n(338);function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var br=wp.i18n.__,yr=wp.element.Component,kr=wp.blocks.registerBlockType,Mr=function(e){m()(n,e);var t=fr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(Jn,a()({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement($n,a()({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(gr,{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}(yr);function vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}kr("genesis-blocks/gb-spacer",{title:br("Spacer","genesis-blocks"),description:br("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[br("spacer","genesis-blocks"),br("divider","genesis-blocks"),br("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:br("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:br("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:br("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:br("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:br("Divider Color","genesis-blocks")}},edit:Mr,save:function(e){var t=e.attributes.spacerHeight;return React.createElement($n,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var Lr=wp.i18n.__,wr=wp.element.Component,Yr=wp.blockEditor.InspectorControls,Tr=wp.components,Dr=Tr.PanelBody,Rr=Tr.RangeControl,Sr=Tr.ToggleControl,xr=function(e){m()(n,e);var t=vr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this;return React.createElement(Yr,{key:"inspector"},React.createElement(Dr,null,React.createElement(v,{id:"gb_accordion_accordionFontSize"},React.createElement(Rr,{label:Lr("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(v,{id:"gb_accordion_accordionOpen"},React.createElement(Sr,{label:Lr("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}]),n}(wr);function Er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Cr=function(e){m()(n,e);var t=Er(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Pr=wp.i18n.__,Hr=wp.element.Component,Or=wp.blockEditor,zr=Or.RichText,Ar=Or.AlignmentToolbar,Br=Or.BlockControls,Nr=Or.InnerBlocks,Fr=function(e){m()(n,e);var t=jr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this;return[React.createElement(Br,{key:"controls"},React.createElement(Ar,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),React.createElement(xr,a()({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(Cr,a()({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(zr,{tagName:"p",placeholder:Pr("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(Nr,null)))]}}]),n}(Hr);function Wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Ir=wp.element.Component,Ur=wp.blockEditor,Vr=Ur.RichText,Jr=Ur.InnerBlocks,Gr=function(e){m()(n,e);var t=Wr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement(Cr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Vr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Jr.Content,null))))}}]),n}(Ir);function qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var $r=function(e){m()(n,e);var t=qr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 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 _()(this,n)}}var Zr=wp.element.Component,Qr=wp.blockEditor,Xr=Qr.RichText,ea=Qr.InnerBlocks,ta=function(e){m()(n,e);var t=Kr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement($r,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Xr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(ea.Content,null))))}}]),n}(Zr),na=[{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(ta,e)}}],ra=(n(339),n(340),wp.i18n.__),aa=(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 oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-accordion",{title:ra("Accordion","genesis-blocks"),description:ra("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[ra("accordion","genesis-blocks"),ra("list","genesis-blocks"),ra("genesis","genesis-blocks")],attributes:aa,gb_settings_data:{gb_accordion_accordionFontSize:{title:ra("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:ra("Open by default","genesis-blocks")}},edit:function(e){return React.createElement(Fr,e)},save:function(e){return React.createElement(Gr,e)},deprecated:na});var ia=wp.i18n.__,sa=wp.element.Component,la=wp.blockEditor,ca=la.InspectorControls,ua=la.PanelColorSettings,da=la.MediaUpload,ma=wp.components,pa=ma.Button,_a=ma.Icon,ha=ma.PanelBody,ga=ma.RangeControl,fa=ma.SelectControl,ba=ma.ToggleControl,ya=function(e){m()(n,e);var t=oa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.ctaBackgroundColor,u=t.ctaTextColor,d=t.dimRatio,m=t.imgURL,p=t.imgID,_=this.props.setAttributes,h=[{value:"gb-button-size-small",label:ia("Small")},{value:"gb-button-size-medium",label:ia("Medium")},{value:"gb-button-size-large",label:ia("Large")},{value:"gb-button-size-extralarge",label:ia("Extra Large")}],g=[{value:"gb-button-shape-square",label:ia("Square")},{value:"gb-button-shape-rounded",label:ia("Rounded Square")},{value:"gb-button-shape-circular",label:ia("Circular")}],f=function(){_({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(ca,{key:"inspector"},React.createElement(v,{id:"gb_cta_textOptions"},React.createElement(ha,{title:ia("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(ga,{label:ia("Title Font Size","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),React.createElement(ga,{label:ia("Text Font Size","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),React.createElement(ua,{title:ia("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return _({ctaTextColor:e})},label:ia("Text Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_cta_backgroundOptions"},React.createElement(ha,{title:ia("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,ia("Select a background image:","genesis-blocks")),React.createElement(da,{onSelect:function(e){_({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(pa,{className:"gb-cta-inspector-media",label:ia("Edit image","genesis-blocks"),onClick:t},React.createElement(_a,{icon:"format-image"}),ia("Select Image","genesis-blocks")),m&&!!m.length&&React.createElement(pa,{className:"gb-cta-inspector-media",label:ia("Remove Image","genesis-blocks"),onClick:f},React.createElement(_a,{icon:"dismiss"}),ia("Remove","genesis-blocks")))}}),m&&!!m.length&&React.createElement(ga,{label:ia("Image Opacity","genesis-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),React.createElement(ua,{title:ia("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return _({ctaBackgroundColor:e})},label:ia("Overlay Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_cta_buttonOptions"},React.createElement(ha,{title:ia("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(ba,{label:ia("Open link in new window","genesis-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),React.createElement(fa,{label:ia("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(fa,{label:ia("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(ua,{title:ia("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return _({buttonBackgroundColor:e})},label:ia("Button Color","genesis-blocks")}]}),React.createElement(ua,{title:ia("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return _({buttonTextColor:e})},label:ia("Button Text Color","genesis-blocks")}]}))))}}]),n}(sa);function ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Ma=function(e){m()(n,e);var t=ka(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var La=function(e){m()(n,e);var t=va(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 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 _()(this,n)}}var Ya=function(e){m()(n,e);var t=wa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Da=function(e){m()(n,e);var t=Ta(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 Ra(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 Sa=wp.blockEditor.RichText,xa=[{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,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.titleFontSize,p=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(La,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+m),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:p},value:u})),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(Sa.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,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.ctaTextFontSize,p=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(Ya,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+m),style:{color:p},value:u})),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(Sa.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,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.ctaTextFontSize,p=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(Da,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+m),style:{color:p},value:u})),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(Sa.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?Ra(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function Ea(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(341),n(342);function Ca(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 ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 _()(this,n)}}var Ha=wp.i18n.__,Oa=wp.element.Component,za=wp.blocks.registerBlockType,Aa=wp.blockEditor,Ba=Aa.AlignmentToolbar,Na=Aa.URLInput,Fa=Aa.BlockControls,Wa=Aa.BlockAlignmentToolbar,Ia=Aa.RichText,Ua=wp.components,Va=Ua.Button,Ja=Ua.Dashicon,Ga=Ua.Icon,qa=function(e){m()(n,e);var t=Pa(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.buttonShape,u=t.ctaTitle,d=t.ctaText,m=t.titleFontSize,p=t.ctaTextFontSize,_=t.ctaWidth,h=t.ctaTextColor,g=t.imgURL,f=t.imgAlt,y=t.dimRatio,k=e.isSelected,M=e.setAttributes;return[React.createElement(Fa,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(Wa,{value:_,onChange:function(e){return M({ctaWidth:e})},controls:["center","wide","full"]}),React.createElement(Ba,{value:o,onChange:function(e){M({buttonAlignment:e})}})),React.createElement(ya,a()({key:"gb-cta-inspector-"+this.props.clientId},ja({setAttributes:M},this.props))),React.createElement(Ma,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",$a(y),{"has-background-dim":0!==y}),src:g,alt:f})),React.createElement("div",{className:"gb-cta-content"},React.createElement(Ia,{tagName:"h2",placeholder:Ha("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:u,className:b()("gb-cta-title","gb-font-size-"+m),style:{color:h},onChange:function(e){return M({ctaTitle:e})}}),React.createElement(Ia,{tagName:"div",multiline:"p",placeholder:Ha("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:d,className:b()("gb-cta-text","gb-font-size-"+p),style:{color:h},onChange:function(e){return M({ctaText:e})}})),React.createElement("div",{className:"gb-cta-button"},React.createElement(Ia,{tagName:"span",placeholder:Ha("Button text…","genesis-blocks"),value:n,allowedFormats:[],className:b()("gb-button",c,l),style:{color:s,backgroundColor:i},onChange:function(e){return M({buttonText:e})}}),k&&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(Ja,{icon:"admin-links"}),React.createElement(Na,{className:"button-url",value:r,onChange:function(e){return M({buttonUrl:e})}}),React.createElement(Va,{label:Ha("Apply","genesis-blocks"),type:"submit"},React.createElement(Ga,{icon:"editor-break"})))))]}}]),n}(Oa);function $a(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}za("genesis-blocks/gb-cta",{title:Ha("Call To Action","genesis-blocks"),description:Ha("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[Ha("call to action","genesis-blocks"),Ha("cta","genesis-blocks"),Ha("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:Ha("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:Ha("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:Ha("Button Options","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:qa,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,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.titleFontSize,p=t.ctaTextColor,_=t.imgURL,h=t.imgAlt,g=t.dimRatio;return React.createElement(Ma,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",$a(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Ia.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+m),style:{color:p},value:c}),u&&React.createElement(Ia.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:p},value:u})),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(Ia.Content,{value:n}))))},deprecated:xa});var Za=wp.i18n.__,Qa=wp.element.Component,Xa=wp.blockEditor.InspectorControls,eo=wp.components,to=eo.PanelBody,no=eo.SelectControl,ro=eo.ToggleControl,ao=function(e){m()(n,e);var t=Ka(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:"gb-share-icon-text",label:Za("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:Za("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:Za("Text Only","genesis-blocks")}],n=[{value:"gb-share-shape-square",label:Za("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:Za("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:Za("Circular","genesis-blocks")}],r=[{value:"gb-share-size-small",label:Za("Small","genesis-blocks")},{value:"gb-share-size-medium",label:Za("Medium","genesis-blocks")},{value:"gb-share-size-large",label:Za("Large","genesis-blocks")}],a=[{value:"gb-share-color-standard",label:Za("Standard","genesis-blocks")},{value:"gb-share-color-social",label:Za("Social Colors","genesis-blocks")}];return React.createElement(Xa,{key:"inspector"},React.createElement(v,{id:"gb_sharing_links"},React.createElement(to,null,React.createElement("p",null,Za("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(ro,{label:Za("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),React.createElement(ro,{label:Za("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),React.createElement(ro,{label:Za("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),React.createElement(ro,{label:Za("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),React.createElement(ro,{label:Za("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),React.createElement(ro,{label:Za("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),React.createElement(to,{title:Za("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(v,{id:"gb_sharing_shareButtonStyle"},React.createElement(no,{label:Za("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(v,{id:"gb_sharing_shareButtonShape"},React.createElement(no,{label:Za("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(v,{id:"gb_sharing_shareButtonSize"},React.createElement(no,{label:Za("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(v,{id:"gb_sharing_shareButtonColor"},React.createElement(no,{label:Za("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}(Qa);function oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var io=function(e){m()(n,e);var t=oo(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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 so(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var lo=wp.i18n.__,co=wp.element.Component,uo=wp.blockEditor,mo=uo.AlignmentToolbar,po=uo.BlockControls,_o=function(e){m()(n,e);var t=so(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.attributes.clientId&&e.props.attributes.clientId===e.props.clientId||e.props.setAttributes({clientId:e.props.clientId}),e}return u()(n,[{key:"render",value:function(){var e=this;return[React.createElement(po,{key:"controls"},React.createElement(mo,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),React.createElement(ao,a()({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(io,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("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},lo("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},lo("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},lo("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},lo("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("svg",{"aria-labelledby":"gb-link-reddit-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-reddit-"+this.props.clientId},lo("Share on Reddit","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},lo("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})),React.createElement("span",{className:"gb-social-text"},lo("Share via Email","genesis-blocks"))))))]}}]),n}(co),ho=(n(343),n(344),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-sharing",{title:ho("Sharing","genesis-blocks"),description:ho("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[ho("sharing","genesis-blocks"),ho("social","genesis-blocks"),ho("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:ho("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:ho("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:ho("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:ho("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:ho("Button Color","genesis-blocks")}},edit:function(e){return React.createElement(_o,a()({},e,{clientId:e.clientId}))},save:function(){return null}});var go=n(14),fo=n.n(go),bo=n(6),yo=n.n(bo),ko=n(32),Mo=n.n(ko),vo=n(11),Lo=n.n(vo);function wo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Yo=wp.i18n.__,To=wp.element,Do=To.Component,Ro=(To.Fragment,wp.blockEditor.InspectorControls),So=wp.components,xo=So.PanelBody,Eo=So.QueryControls,Co=So.RangeControl,jo=So.SelectControl,Po=So.TextControl,Ho=So.ToggleControl,Oo=So.FormTokenField,zo=So.Spinner,Ao=wp.url.addQueryArgs,Bo=wp.apiFetch,No=[],Fo=function(e){m()(n,e);var t=wo(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={categoriesList:!1,categoriesTitleToIdRelationships:!1,categoriesIdToTitleRelationships:!1,pagesList:!1,pagesTitleToIdRelationships:!1,pagesIdToTitleRelationships:!1,waitingForApiResponse:!1},e}return u()(n,[{key:"componentDidMount",value:function(){this.stillMounted=!0}},{key:"componentDidUpdate",value:function(){if(this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.categories&&!this.state.categoriesList&&"post"===this.props.attributes.postType&&this.getCategoriesFromServer(!!this.props.attributes.categories&&this.props.attributes.categories,!0),this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.selectedPages.length>0&&!this.state.pagesList&&"page"===this.props.attributes.postType){var e=[];for(var t in this.props.attributes.selectedPages)e.push(this.props.attributes.selectedPages[t].value);this.getPagesFromServer(e||!1,!0)}}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"getCategoriesFromServer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r){if(t.setState({waitingForApiResponse:!0,categoriesList:!1}),!e||0===e.length)return n||t.setState({waitingForApiResponse:!1}),void r();var a={per_page:99,search:e};n&&(a={per_page:99,include:e}),t.fetchRequest=Bo({path:Ao("/wp/v2/categories",a)}).then((function(e){var n=t.state.categoriesTitleToIdRelationships?t.state.categoriesTitleToIdRelationships:{},a=t.state.categoriesIdToTitleRelationships?t.state.categoriesIdToTitleRelationships:{};for(var o in e)n[e[o].name+" ("+e[o].slug+")"]=e[o].id,a[e[o].id]=e[o].name+" ("+e[o].slug+")";t.setState({categoriesList:e,categoriesTitleToIdRelationships:n,categoriesIdToTitleRelationships:a,waitingForApiResponse:!1}),r()})).catch((function(){console.log("category request failure: ".concat(error.message)),t.stillMounted&&(t.setState({categoriesList:[],waitingForApiResponse:!1}),r())}))}))}},{key:"getPagesFromServer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r){if(t.setState({waitingForApiResponse:!0,pagesList:!1}),!e||0===e.length)return n||t.setState({waitingForApiResponse:!1}),void r();var a={per_page:-1,search:e};n&&(a={per_page:-1,include:e}),t.fetchRequest=Bo({path:Ao("/wp/v2/pages",a)}).then((function(e){var n=t.state.pagesTitleToIdRelationships?t.state.pagesTitleToIdRelationships:{},a=t.state.pagesIdToTitleRelationships?t.state.pagesIdToTitleRelationships:{};for(var o in e)n[e[o].title.rendered+" ("+e[o].slug+")"]=e[o].id,a[e[o].id]=e[o].title.rendered+" ("+e[o].slug+")";t.setState({pagesList:e,pagesTitleToIdRelationships:n,pagesIdToTitleRelationships:a,waitingForApiResponse:!1}),r()})).catch((function(){t.stillMounted&&(t.setState({pagesList:[],waitingForApiResponse:!1}),r())}))}))}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/block-editor").getSettings();return Mo()(Lo()(e.imageSizes,(function(e){var t=e.name;return{value:e.slug,label:t}})))}},{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,c=l.categoriesList,u=l.categoriesTitleToIdRelationships,d=l.categoriesIdToTitleRelationships,m=l.pagesList,p=l.pagesTitleToIdRelationships,_=l.pagesIdToTitleRelationships,h=[{value:"post",label:Yo("Post","genesis-blocks")},{value:"page",label:Yo("Page","genesis-blocks")}],g=[{value:"div",label:Yo("div","genesis-blocks")},{value:"header",label:Yo("header","genesis-blocks")},{value:"section",label:Yo("section","genesis-blocks")},{value:"article",label:Yo("article","genesis-blocks")},{value:"main",label:Yo("main","genesis-blocks")},{value:"aside",label:Yo("aside","genesis-blocks")},{value:"footer",label:Yo("footer","genesis-blocks")}],f=[{value:"h2",label:Yo("H2","genesis-blocks")},{value:"h3",label:Yo("H3","genesis-blocks")},{value:"h4",label:Yo("H4","genesis-blocks")},{value:"h5",label:Yo("H5","genesis-blocks")},{value:"h6",label:Yo("H6","genesis-blocks")}],b=Array.isArray(o)&&o.length,y="post"===n.postType,k={value:"selectimage",label:Yo("Select image size","genesis-blocks")},M={value:"gb-block-post-grid-landscape",label:Yo("GB Grid Landscape","genesis-blocks")},L={value:"gb-block-post-grid-square",label:Yo("GB Grid Square","genesis-blocks")},w=this.imageSizeSelect();w.push(L,M),w.unshift(k);return React.createElement(Ro,null,React.createElement(xo,{title:Yo("Post and Page Grid Settings","genesis-blocks"),className:y?null:"genesis-blocks-hide-query"},React.createElement(v,{id:"gb_postgrid_postType"},React.createElement(jo,{label:Yo("Content Type","genesis-blocks"),options:h,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&React.createElement(v,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(Oo,{suggestions:Mo()(Lo()(m,(function(e){var t=e.title,n=e.slug;return t.rendered+" ("+n+")"}))),label:React.createElement(React.Fragment,null,Yo("Enter page names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(zo,null)):null),placeholder:Yo("Start typing page name…","genesis-blocks"),value:function(){if(!e.props.attributes.selectedPages)return[];var t=[];for(var n in e.props.attributes.selectedPages){var r=e.props.attributes.selectedPages[n].value;_[r]&&t.push(_[e.props.attributes.selectedPages[n].value])}return t}(),onInputChange:function(t){var n="getPagesFromServer";No[n]&&(clearTimeout(No[n]),No[n]=null),No[n]=setTimeout((function(){clearTimeout(No[n]),e.getPagesFromServer(t)}),500)},onChange:function(e){var t=[];for(var n in e)t.push({value:p[e[n]]});t||(t=void 0),r({selectedPages:t})}})))),"post"===n.postType&&React.createElement(v,{id:"gb_postgrid_categories"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(Oo,{suggestions:Mo()(Lo()(c,(function(e){return e.name+" ("+e.slug+")"}))),label:React.createElement(React.Fragment,null,Yo("Enter category names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(zo,null)):null),placeholder:Yo("Start typing category name…","genesis-blocks"),value:function(){if(!e.props.attributes.categories)return[];var t=e.props.attributes.categories.split(","),n=[];for(var r in t)d[t[r]]&&n.push(d[t[r]]);return n}(),onInputChange:function(t){var n="getCategoriesFromServer";No[n]&&(clearTimeout(No[n]),No[n]=null),No[n]=setTimeout((function(){clearTimeout(No[n]),e.getCategoriesFromServer(t)}),500)},onChange:function(e){var t="";for(var n in e)u[e[n]]&&(t=t+u[e[n]]+",");(t=t.replace(/,\s*$/,""))||(t=void 0),r({categories:void 0!==t?t:""})}})))),"post"===n.postType&&React.createElement(React.Fragment,null,React.createElement(v,{id:"gb_postgrid_queryControls"},React.createElement(Eo,a()({order:i,orderBy:s},{numberOfItems:n.postsToShow,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})}}))),React.createElement(v,{id:"gb_postgrid_offset"},React.createElement(Co,{label:Yo("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(v,{id:"gb_postgrid_columns"},React.createElement(Co,{label:Yo("Columns","genesis-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:b?Math.min(4,o.length):4}))),React.createElement(xo,{title:Yo("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(v,{id:"gb_postgrid_displaySectionTitle"},React.createElement(Ho,{label:Yo("Display Section Title","genesis-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&React.createElement(v,{id:"gb_postgrid_sectionTitle"},React.createElement(Po,{label:Yo("Section Title","genesis-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),React.createElement(v,{id:"gb_postgrid_displayPostImage"},React.createElement(Ho,{label:Yo("Display Featured Image","genesis-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&React.createElement(v,{id:"gb_postgrid_imageSizeValue"},React.createElement(jo,{label:Yo("Image Size","genesis-blocks"),value:function(){for(var e=0;e<w.length;e++)if(w[e].value===n.imageSize)return n.imageSize;return"full"}(),options:w,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),React.createElement(v,{id:"gb_postgrid_displayPostTitle"},React.createElement(Ho,{label:Yo("Display Title","genesis-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),y&&React.createElement(v,{id:"gb_postgrid_displayPostAuthor"},React.createElement(Ho,{label:Yo("Display Author","genesis-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),y&&React.createElement(v,{id:"gb_postgrid_displayPostDate"},React.createElement(Ho,{label:Yo("Display Date","genesis-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),React.createElement(v,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(Ho,{label:Yo("Display Excerpt","genesis-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&React.createElement(v,{id:"gb_postgrid_excerptLength"},React.createElement(Co,{label:Yo("Excerpt Length","genesis-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),React.createElement(v,{id:"gb_postgrid_displayPostLink"},React.createElement(Ho,{label:Yo("Display Continue Reading Link","genesis-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&React.createElement(v,{id:"gb_postgrid_readMoreText"},React.createElement(Po,{label:Yo("Customize Continue Reading Text","genesis-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),React.createElement(xo,{title:Yo("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(v,{id:"gb_postgrid_sectionTag"},React.createElement(jo,{label:Yo("Post Grid Section Tag","genesis-blocks"),options:g,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:Yo("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),n.sectionTitle&&React.createElement(v,{id:"gb_postgrid_sectionTitleTag"},React.createElement(jo,{label:Yo("Section Title Heading Tag","genesis-blocks"),options:f,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:Yo("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),n.displayPostTitle&&React.createElement(v,{id:"gb_postgrid_postTitleTag"},React.createElement(jo,{label:Yo("Post Title Heading Tag","genesis-blocks"),options:f,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:Yo("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}]),n}(Do),Wo=n(28),Io=n.n(Wo);function Uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Vo=wp.i18n.__,Jo=wp.element,Go=Jo.Fragment,qo=Jo.Component,$o=wp.components,Ko=$o.Placeholder,Zo=$o.Dashicon,Qo=function(e){m()(n,e);var t=Uo(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},r}return u()(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 Io()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return Io()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return React.createElement(Go,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(Go,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(Zo,{icon:"warning"})),React.createElement(Ko,{className:"gb-post-grid-no-image-placeholder"},React.createElement(Zo,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},Vo("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":Vo("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"},Vo("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}]),n}(qo);function Xo(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 ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ti=wp.element,ni=ti.useState,ri=ti.useEffect,ai=wp.i18n.__,oi=wp.htmlEntities.decodeEntities,ii=wp.components,si=ii.Placeholder,li=ii.Spinner,ci=ii.ToolbarGroup,ui=wp.blockEditor,di=ui.BlockAlignmentToolbar,mi=ui.BlockControls,pi=wp.apiFetch,_i=wp.url.addQueryArgs,hi=[];n(345),n(346);var gi=wp.i18n.__;function fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-post-grid",{title:gi("Post and Page Grid","genesis-blocks"),description:gi("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[gi("post","genesis-blocks"),gi("page","genesis-blocks"),gi("grid","genesis-blocks"),gi("atomic","genesis-blocks")],edit:function(e){var t,n=ni(),r=fo()(n,2),o=r[0],s=r[1],l=ni(e),c=fo()(l,2),u=c[0],d=c[1],m=e.attributes,p=e.setAttributes;if(e.attributes.postType!==u.postType||e.attributes.selectedPages!==u.selectedPages||e.attributes.categories!==u.categories||e.attributes.order!==u.order||e.attributes.orderby!==u.orderby||e.attributes.offset!==u.offset||e.attributes.postsToShow!==u.postsToShow){var _="handleUpdateAttributes";hi[_]&&(clearTimeout(hi[_]),hi[_]=null),hi[_]=setTimeout((function(){clearTimeout(hi[_]),d(e.attributes)}),500)}ri((function(){s(null)}),[u]),ri((function(){o||("post"===e.attributes.postType&&new Promise((function(t){var n={order:e.attributes.order,orderby:e.attributes.orderBy,per_page:e.attributes.postsToShow,offset:e.attributes.offset};if(wp.data.select("core/editor")){var r=wp.data.select("core/editor").getCurrentPostId();r&&(n.exclude=[r])}e.attributes.categories&&(n.categories=e.attributes.categories),pi({path:_i("/wp/v2/posts",n)}).then((function(e){s(e),t()})).catch((function(e){console.log(e)}))})),"page"===e.attributes.postType&&new Promise((function(t){var n=e.attributes.selectedPages&&e.attributes.selectedPages.length>0?e.attributes.selectedPages.map((function(e){return e.value})):null,r={per_page:6},a=wp.data.select("core/editor").getCurrentPostId();a&&(r.exclude=[a]),n&&(delete r.per_page,r.include=n,r.orderby="include"),pi({path:_i("/wp/v2/pages",r)}).then((function(e){s(e),t()})).catch((function(e){console.log(e)}))})))}),[o]);var h=Array.isArray(o)&&o.length,g="post"===m.postType;if(!h)return React.createElement(React.Fragment,null,React.createElement(Fo,ei({setAttributes:p},e)),React.createElement(si,{icon:"admin-post",label:ai("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(o)?ai("No posts found.","genesis-blocks"):React.createElement(li,null)));var f=[{icon:"grid-view",title:ai("Grid View","genesis-blocks"),onClick:function(){return p({postLayout:"grid"})},isActive:"grid"===m.postLayout},{icon:"list-view",title:ai("List View","genesis-blocks"),onClick:function(){return p({postLayout:"list"})},isActive:"list"===m.postLayout}],y=m.sectionTag?m.sectionTag:"section",k=m.sectionTitleTag?m.sectionTitleTag:"h2",M=m.postTitleTag?m.postTitleTag:"h3";return React.createElement(React.Fragment,null,React.createElement(Fo,ei({setAttributes:p},e)),React.createElement(mi,null,React.createElement(di,{value:m.align,onChange:function(e){p({align:e})},controls:["center","wide","full"]}),React.createElement(ci,{controls:f})),React.createElement(y,{className:b()(e.className,"gb-block-post-grid")},m.displaySectionTitle&&m.sectionTitle&&React.createElement(k,{className:"gb-post-grid-section-title"},m.sectionTitle),React.createElement("div",{className:b()((t={"is-grid":"grid"===m.postLayout,"is-list":"list"===m.postLayout},i()(t,"columns-".concat(m.columns),"grid"===m.postLayout),i()(t,"gb-post-grid-items","gb-post-grid-items"),t))},o.map((function(t,n){return React.createElement("article",{key:n,id:"post-"+t.id,className:b()("post-"+t.id,t.featured_image_src&&m.displayPostImage?"has-post-thumbnail":null)},m.displayPostImage&&t.featured_media?React.createElement(Qo,a()({},e,{imgAlt:oi(t.title.rendered.trim())||ai("(Untitled)","genesis-blocks"),imgClass:"wp-image-".concat(t.featured_media.toString()),imgID:t.featured_media.toString(),imgSize:m.imageSize,imgSizeLandscape:t.featured_image_src,imgSizeSquare:t.featured_image_src_square,imgLink:t.link})):null,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},m.displayPostTitle&&React.createElement(M,{className:"gb-block-post-grid-title"},React.createElement("a",{href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},oi(t.title.rendered.trim())||ai("(Untitled)","genesis-blocks"))),g&&t.author_info&&t.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-byline"},m.displayPostAuthor&&t.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:t.author_info.author_link},t.author_info.display_name)),m.displayPostDate&&t.date_gmt&&React.createElement("time",{dateTime:yo()(t.date_gmt).utc().format(),className:"gb-block-post-grid-date"},yo()(t.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},m.displayPostExcerpt&&t.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(r=t.excerpt.rendered,o=m.excerptLength,r.split(" ").splice(0,o).join(" "))}}),m.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},m.readMoreText)))));var r,o})))))},gb_settings_data:{gb_postgrid_postType:{title:gi("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:gi("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:gi("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:gi("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:gi("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:gi("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:gi("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:gi("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:gi("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:gi("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:gi("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:gi("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:gi("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:gi("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:gi("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:gi("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:gi("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:gi("Post Title Heading Tag","genesis-blocks")}},save:function(){return null}});var bi=wp.i18n.__,yi=wp.element.Component,ki=wp.blockEditor,Mi=ki.InspectorControls,vi=ki.PanelColorSettings,Li=ki.MediaUpload,wi=wp.components,Yi=wi.Button,Ti=wi.Icon,Di=wi.PanelBody,Ri=wi.RangeControl,Si=function(e){m()(n,e);var t=fi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.containerBackgroundColor,u=t.containerDimRatio,d=t.containerImgURL,m=t.containerImgID,p=this.props.setAttributes,_=function(){p({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Mi,{key:"inspector"},React.createElement(v,{id:"gb_container_containerOptions"},React.createElement(Di,{title:bi("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(Ri,{label:bi("Padding Top (%)","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Bottom (%)","genesis-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Left (%)","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Right (%)","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Margin Top (%)","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),React.createElement(Ri,{label:bi("Margin Bottom (%)","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("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(v,{id:"gb_container_backgroundOptions"},React.createElement(Di,{title:bi("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,bi("Select a background image:","genesis-blocks")),React.createElement(Li,{onSelect:function(e){p({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:m,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Yi,{className:"gb-container-inspector-media",label:bi("Edit image","genesis-blocks"),onClick:t},React.createElement(Ti,{icon:"format-image"}),bi("Select Image","genesis-blocks")),d&&!!d.length&&React.createElement(Yi,{className:"gb-container-inspector-media",label:bi("Remove Image","genesis-blocks"),onClick:_},React.createElement(Ti,{icon:"dismiss"}),bi("Remove","genesis-blocks")))}}),d&&!!d.length&&React.createElement(Ri,{label:bi("Image Opacity","genesis-blocks"),value:u,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),React.createElement(vi,{title:bi("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,label:bi("Background Color","genesis-blocks"),onChange:function(e){return p({containerBackgroundColor:e})}}]}))))}}]),n}(yi);function xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ei=function(e){m()(n,e);var t=xi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.containerMarginTop,u=t.containerMarginBottom,d=t.containerWidth,m=t.containerMaxWidth,p=t.containerImgURL,_=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:c?"".concat(c,"%"):void 0,marginBottom:u?"".concat(u,"%"):void 0},f=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:f||void 0},React.createElement("div",{className:"gb-container-inside"},p&&!!p.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:p,alt:_})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:m?"".concat(m,"px"):void 0}},this.props.children)))}}]),n}(wp.element.Component);function Ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var ji=function(e){m()(n,e);var t=Ci(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.containerMarginBottom,u=e.containerWidth,d=(e.containerMaxWidth,b()([this.props.className,"gb-block-container"],i()({},"align"+u,u)));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(c,"%")},className:d||void 0},this.props.children)}}]),n}(wp.element.Component);function Pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Hi=function(e){m()(n,e);var t=Pi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.containerMarginTop,u=t.containerMarginBottom,d=t.containerWidth,m=t.containerMaxWidth,p=t.containerImgURL,_=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:c?"".concat(c,"%"):void 0,marginBottom:u?"".concat(u,"%"):void 0},f=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:f||void 0},React.createElement("div",{className:"gb-container-inside"},p&&!!p.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:p,alt:_})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(m,"px")}},this.props.children)))}}]),n}(wp.element.Component);var Oi=wp.blockEditor.InnerBlocks;var zi=[{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(Hi,e,React.createElement(Oi.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(ji,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(Oi.Content,null))))}}];n(347),n(348);function Ai(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 Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Fi=wp.i18n.__,Wi=wp.element.Component,Ii=wp.blocks.registerBlockType,Ui=wp.blockEditor.InnerBlocks,Vi=function(e){m()(n,e);var t=Ni(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.setAttributes;return[React.createElement(Si,a()({key:"gb-container-inspector-"+this.props.clientId},Bi({setAttributes:e},this.props))),React.createElement(Ei,a()({key:"gb-container-"+this.props.clientId},this.props),React.createElement(Ui,null))]}}]),n}(Wi);function Ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}Ii("genesis-blocks/gb-container",{title:Fi("Container","genesis-blocks"),description:Fi("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[Fi("container","genesis-blocks"),Fi("section","genesis-blocks"),Fi("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:Fi("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:Fi("Background Options","genesis-blocks")}},edit:Vi,save:function(e){return React.createElement(Ei,e,React.createElement(Ui.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:zi});var Gi=wp.i18n.__,qi=wp.element.Component,$i=wp.blockEditor.InspectorControls,Ki=wp.components,Zi=Ki.PanelBody,Qi=Ki.RangeControl,Xi=function(e){m()(n,e);var t=Ji(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return React.createElement($i,{key:"inspector"},React.createElement(Zi,null,React.createElement(v,{id:"gb_pricing_columns"},React.createElement(Qi,{label:Gi("Pricing Columns","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),React.createElement(v,{id:"gb_pricing_columnsGap"},React.createElement(Qi,{label:Gi("Pricing Columns Gap","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}]),n}(qi);function es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var ts=function(e){m()(n,e);var t=es(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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),ns=n(29),rs=n.n(ns),as=n(30),os=n.n(as);function is(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 ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var cs=wp.i18n.__,us=wp.element.Component,ds=wp.blocks.registerBlockType,ms=wp.blockEditor,ps=ms.BlockControls,_s=ms.BlockAlignmentToolbar,hs=ms.InnerBlocks,gs=wp.data.dispatch,fs=["genesis-blocks/gb-pricing-table"],bs=rs()((function(e){return os()(e,(function(){return["genesis-blocks/gb-pricing-table"]}))})),ys=function(e){m()(n,e);var t=ls(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&gs("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(ps,{key:"controls"},React.createElement(_s,{value:o,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),React.createElement(Xi,a()({key:"gb-pricing-table-inspector-"+this.props.clientId},ss({setAttributes:i},this.props))),React.createElement(ts,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(hs,{template:bs(n),templateLock:"all",allowedBlocks:fs})))]}}]),n}(us);function ks(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}ds("genesis-blocks/gb-pricing",{title:cs("Pricing","genesis-blocks"),description:cs("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[cs("pricing table","genesis-blocks"),cs("shop","genesis-blocks"),cs("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:cs("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:cs("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:ys,save:function(e){var t=e.attributes.columnsGap,n=b()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(ts,e,React.createElement("div",{className:n||void 0},React.createElement(hs.Content,null)))}});var Ms=wp.i18n.__,vs=wp.element.Component,Ls=wp.blockEditor,ws=Ls.InspectorControls,Ys=Ls.PanelColorSettings,Ts=wp.components,Ds=Ts.PanelBody,Rs=Ts.RangeControl,Ss=function(e){m()(n,e);var t=ks(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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(ws,{key:"inspector"},React.createElement(Ds,null,React.createElement(v,{id:"gb_pricing_inner_padding"},React.createElement(Rs,{label:Ms("Pricing Column Padding","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),React.createElement(v,{id:"gb_pricing_inner_borderWidth"},React.createElement(Rs,{label:Ms("Pricing Column Border","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),React.createElement(v,{id:"gb_pricing_inner_borderRadius"},React.createElement(Rs,{label:Ms("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(v,{id:"gb_pricing_inner_borderColor"},React.createElement(Ys,{title:Ms("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({borderColor:e})},label:Ms("Border Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_pricing_inner_colorSettings"},React.createElement(Ys,{title:Ms("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return l({backgroundColor:e})},label:Ms("Background Color","genesis-blocks")}]})))}}]),n}(vs);n(349),n(350);function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var js=wp.i18n.__,Ps=wp.element.Component,Hs=wp.blocks.registerBlockType,Os=wp.blockEditor,zs=Os.InnerBlocks,As=Os.AlignmentToolbar,Bs=Os.BlockControls,Ns=wp.element.Fragment,Fs=["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"],Ws=function(e){m()(n,e);var t=Cs(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.setAttributes,u={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:o||null,backgroundColor:i||null,padding:s?s+"%":null};return[React.createElement(Bs,{key:"controls"},React.createElement(As,{value:l,onChange:function(e){c({alignment:e})}})),React.createElement(Ss,a()({key:"gb-pricing-table-inner-inspector-"+this.props.clientId},Es({setAttributes:c},this.props))),React.createElement(Ns,{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:u},React.createElement(zs,{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:Fs,templateInsertUpdatesSelection:!1}))))]}}]),n}(Ps);Hs("genesis-blocks/gb-pricing-table",{title:js("Pricing Column","genesis-blocks"),description:js("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[js("pricing","genesis-blocks"),js("shop","genesis-blocks"),js("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:js("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:js("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:js("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:js("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:js("Pricing Column Background Color","genesis-blocks")}},edit:Ws,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(zs.Content,null)))}});var Is=wp.i18n.__,Us=wp.element.Fragment,Vs=wp.components.RangeControl;function Js(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,c=e.paddingTop,u=e.paddingTopMin,d=e.paddingTopMax,m=e.paddingEnableTop,p=e.onChangePaddingTop,_=void 0===p?function(){}:p,h=e.paddingRight,g=e.paddingRightMin,f=e.paddingRightMax,b=e.paddingEnableRight,y=e.onChangePaddingRight,k=void 0===y?function(){}:y,M=e.paddingBottom,v=e.paddingBottomMin,L=e.paddingBottomMax,w=e.paddingEnableBottom,Y=e.onChangePaddingBottom,T=void 0===Y?function(){}:Y,D=e.paddingLeft,R=e.paddingLeftMin,S=e.paddingLeftMax,x=e.paddingEnableLeft,E=e.onChangePaddingLeft,C=void 0===E?function(){}:E,j=e.paddingVertical,P=e.paddingEnableVertical,H=e.paddingVerticalMin,O=e.paddingVerticalMax,z=e.onChangePaddingVertical,A=void 0===z?function(){}:z,B=e.paddingHorizontal,N=e.paddingEnableHorizontal,F=e.paddingHorizontalMin,W=e.paddingHorizontalMax,I=e.onChangePaddingHorizontal,U=void 0===I?function(){}:I;return React.createElement(Us,null,i&&React.createElement(Vs,{label:n||Is("Padding","genesis-blocks"),help:r||null,value:t,min:a,max:o,onChange:l}),m&&React.createElement(Vs,{label:Is("Padding Top","genesis-blocks"),value:c,min:u,max:d,onChange:_}),b&&React.createElement(Vs,{label:Is("Padding Right","genesis-blocks"),value:h,min:g,max:f,onChange:k}),w&&React.createElement(Vs,{label:Is("Padding Bottom","genesis-blocks"),value:M,min:v,max:L,onChange:T}),x&&React.createElement(Vs,{label:Is("Padding Left","genesis-blocks"),value:D,min:R,max:S,onChange:C}),P&&React.createElement(Vs,{label:Is("Padding Vertical","genesis-blocks"),value:j,min:H,max:O,onChange:A}),N&&React.createElement(Vs,{label:Is("Padding Horizontal","genesis-blocks"),value:B,min:F,max:W,onChange:U}))}function Gs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var qs=wp.i18n.__,$s=wp.element.Component,Ks=wp.compose.compose,Zs=wp.blockEditor,Qs=Zs.InspectorControls,Xs=Zs.FontSizePicker,el=Zs.withFontSizes,tl=Zs.withColors,nl=Zs.ContrastChecker,rl=Zs.PanelColorSettings,al=wp.components,ol=al.withFallbackStyles,il=al.PanelBody,sl=al.ToggleControl,ll=al.TextControl,cl=(al.RangeControl,ol((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}}))),ul=function(e){m()(n,e);var t=Gs(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.paddingRight,u=n.paddingBottom,d=n.paddingLeft,m=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,_=t.fontSize,h=t.setFontSize,g=t.backgroundColor,f=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,k=t.fallbackBackgroundColor,M=t.fallbackTextColor;return React.createElement(Qs,{key:"inspector"},React.createElement(il,{title:qs("Text Settings","genesis-blocks")},React.createElement(Xs,{fallbackFontSize:p,value:_.size,onChange:h}),React.createElement(sl,{label:qs("Show currency symbol","genesis-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&React.createElement(ll,{label:qs("Currency Symbol","genesis-blocks"),type:"text",value:s,onChange:function(t){return e.props.setAttributes({currency:t})}}),React.createElement(sl,{label:qs("Show pricing duration","genesis-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&React.createElement(ll,{label:qs("Pricing Duration","genesis-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({term:t})}})),React.createElement(il,{title:qs("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return m({paddingTop:e})},paddingEnableRight:!0,paddingRight:c,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return m({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:u,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return m({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:d,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return m({paddingLeft:e})}})),React.createElement(rl,{title:qs("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:g.color,onChange:b,label:qs("Background Color","genesis-blocks")},{value:f.color,onChange:y,label:qs("Text Color","genesis-blocks")}]},React.createElement(nl,a()({textColor:f.color,backgroundColor:g.color,fallbackTextColor:M,fallbackBackgroundColor:k},{fontSize:_.size}))))}}]),n}($s),dl=Ks([cl,el("fontSize"),tl("backgroundColor",{textColor:"color"})])(ul);function ml(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var pl=wp.i18n.__,_l=(wp.blocks.registerBlockType,wp.compose.compose),hl=wp.element,gl=hl.Component,fl=hl.Fragment,bl=wp.blockEditor,yl=bl.RichText,kl=bl.withFontSizes,Ml=bl.withColors,vl=function(e){m()(n,e);var t=ml(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.paddingTop,u=n.paddingRight,d=n.paddingBottom,m=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),_=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,g=t.textColor,f=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},_.class,_.class)),k={backgroundColor:h.color,color:g.color,paddingTop:c?c+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:d?d+"px":void 0,paddingLeft:m?m+"px":void 0},M={fontSize:_.size?_.size+"px":void 0},v=Math.floor(_.size/2.5),L={fontSize:_.size?v+"px":void 0},w=Math.floor(_.size/2.5),Y={fontSize:_.size?w+"px":void 0};return[React.createElement(fl,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(dl,this.props),React.createElement("div",{className:f||void 0,style:k},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},l&&React.createElement(yl,{tagName:"span",itemProp:"priceCurrency",placeholder:pl("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return p({currency:e})},className:"gb-pricing-table-currency",style:L}),React.createElement(yl,{tagName:"div",itemProp:"price",placeholder:pl("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({price:e})},style:M,className:y||void 0}),s&&React.createElement(yl,{tagName:"span",value:o,placeholder:pl("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return p({term:e})},className:"gb-pricing-table-term",style:Y}))))]}}]),n}(gl),Ll=_l([kl("fontSize"),Ml("backgroundColor",{textColor:"color"})])(vl),wl=wp.i18n.__,Yl=wp.blockEditor,Tl=Yl.RichText,Dl=Yl.getFontSizeClass,Rl=Yl.getColorClassName,Sl=[{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,c=n.textColor,u=n.customBackgroundColor,d=n.customTextColor,m=n.term,p=n.showTerm,_=n.showCurrency,h=n.paddingTop,g=n.paddingRight,f=n.paddingBottom,y=n.paddingLeft,k=Dl(o),M=Rl("color",c),v=Rl("background-color",l),L=b()((t={"has-background":l||u,"gb-pricing-table-price-wrap":!0},i()(t,M,M),i()(t,v,v),i()(t,"gb-pricing-has-currency",_&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},k,k)),Y={backgroundColor:v?void 0:u,color:M?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:y?y+"px":void 0},T={fontSize:k?void 0:s},D=k?void 0:s,R=Math.floor(D/2.5),S={fontSize:D?R+"px":void 0},x=Math.floor(D/2.5),E={fontSize:D?x+"px":void 0};return React.createElement("div",{className:L||void 0,style:Y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&_&&React.createElement(Tl.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:wl("$","genesis-blocks"),value:a,className:"gb-pricing-table-currency",style:S}),React.createElement(Tl.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:T}),m&&p&&React.createElement(Tl.Content,{tagName:"span",value:m,className:"gb-pricing-table-term",style:E})))}}],xl=wp.i18n.__,El=wp.blocks.registerBlockType,Cl=wp.element,jl=(Cl.Component,Cl.Fragment,wp.blockEditor),Pl=jl.RichText,Hl=jl.getFontSizeClass,Ol=(jl.FontSizePicker,jl.withFontSizes,jl.getColorClassName);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 _()(this,n)}}El("genesis-blocks/gb-pricing-table-price",{title:xl("Product Price","genesis-blocks"),description:xl("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[xl("pricing table","genesis-blocks"),xl("price","genesis-blocks"),xl("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:Ll,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,c=n.textColor,u=n.customBackgroundColor,d=n.customTextColor,m=n.term,p=n.showTerm,_=n.showCurrency,h=n.paddingTop,g=n.paddingRight,f=n.paddingBottom,y=n.paddingLeft,k=Hl(o),M=Ol("color",c),v=Ol("background-color",l),L=b()((t={"has-background":l||u,"gb-pricing-table-price-wrap":!0},i()(t,M,M),i()(t,v,v),i()(t,"gb-pricing-has-currency",_&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},k,k)),Y={backgroundColor:v?void 0:u,color:M?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:y?y+"px":void 0},T={fontSize:k?void 0:s},D=k?void 0:s,R=Math.floor(D/2.5),S={fontSize:D?R+"px":void 0},x=Math.floor(D/2.5),E={fontSize:D?x+"px":void 0};return React.createElement("div",{className:L||void 0,style:Y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&_&&React.createElement(Pl.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"gb-pricing-table-currency",style:S}),React.createElement(Pl.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:T}),m&&p&&React.createElement(Pl.Content,{tagName:"span",value:m,className:"gb-pricing-table-term",style:E})))},deprecated:Sl});var Al=wp.i18n.__,Bl=wp.element.Component,Nl=wp.compose.compose,Fl=wp.blockEditor,Wl=Fl.InspectorControls,Il=Fl.FontSizePicker,Ul=Fl.withFontSizes,Vl=Fl.withColors,Jl=Fl.ContrastChecker,Gl=Fl.PanelColorSettings,ql=Fl.ColorPalette,$l=wp.components,Kl=$l.withFallbackStyles,Zl=$l.PanelBody,Ql=$l.PanelRow,Xl=$l.SelectControl,ec=$l.BaseControl,tc=$l.RangeControl,nc=Kl((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}})),rc=function(e){m()(n,e);var t=zl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.paddingBottom,u=n.paddingLeft,d=(t.isSelected,t.setAttributes),m=t.fallbackFontSize,p=t.fontSize,_=t.setFontSize,h=t.backgroundColor,g=t.textColor,f=t.setBackgroundColor,b=t.setTextColor,y=t.fallbackBackgroundColor,k=t.fallbackTextColor,M=[{value:"gb-list-border-none",label:Al("None")},{value:"gb-list-border-solid",label:Al("Solid")},{value:"gb-list-border-dotted",label:Al("Dotted")},{value:"gb-list-border-dashed",label:Al("Dashed")}];return React.createElement(Wl,{key:"inspector"},React.createElement(Zl,{title:Al("Text Settings","genesis-blocks")},React.createElement(Il,{fallbackFontSize:m,value:p.size,onChange:_}),React.createElement(Xl,{label:Al("List Border Style","genesis-blocks"),value:r,options:M.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(tc,{label:Al("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(Ql,null,React.createElement(ec,{label:Al("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(ql,{initialOpen:!1,value:o,onChange:function(e){return d({borderColor:e})}})))),React.createElement(Zl,{title:Al("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{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:c,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:u,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(Gl,{title:Al("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:f,label:Al("Background Color","genesis-blocks")},{value:g.color,onChange:b,label:Al("Text Color","genesis-blocks")}]},React.createElement(Jl,a()({textColor:g.color,backgroundColor:h.color,fallbackTextColor:k,fallbackBackgroundColor:y},{fontSize:p.size}))))}}]),n}(Bl),ac=Nl([nc,Ul("fontSize"),Vl("backgroundColor",{textColor:"color"})])(rc);function oc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var ic=wp.i18n.__,sc=(wp.blocks.registerBlockType,wp.compose.compose),lc=wp.element,cc=lc.Component,uc=lc.Fragment,dc=wp.blockEditor,mc=dc.RichText,pc=dc.withFontSizes,_c=dc.withColors,hc=function(e){m()(n,e);var t=oc(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.paddingRight,u=n.paddingBottom,d=n.paddingLeft,m=(t.isSelected,t.className,t.setAttributes),p=(t.fallbackFontSize,t.fontSize),_=t.backgroundColor,h=t.textColor,g=b()((e={"gb-pricing-table-features":!0},i()(e,p.class,p.class),i()(e,"has-text-color",h.color),i()(e,"has-background",_.color),i()(e,_.class,_.class),i()(e,h.class,h.class),i()(e,a,a),i()(e,"gb-list-border-width-"+s,s),e)),f={fontSize:p.size?p.size+"px":void 0,backgroundColor:_.color,color:h.color,borderColor:o||void 0,paddingTop:l?l+"px":void 0,paddingRight:c?c+"px":void 0,paddingBottom:u?u+"px":void 0,paddingLeft:d?d+"px":void 0};return[React.createElement(uc,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(ac,this.props),React.createElement(mc,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:ic("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return m({features:e})},style:f,className:g||void 0}))]}}]),n}(cc),gc=sc([pc("fontSize"),_c("backgroundColor",{textColor:"color"})])(hc),fc=wp.i18n.__,bc=wp.blocks.registerBlockType,yc=(wp.element.Component,wp.blockEditor),kc=yc.RichText,Mc=yc.getFontSizeClass,vc=(yc.FontSizePicker,yc.withFontSizes,yc.getColorClassName);function Lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}bc("genesis-blocks/gb-pricing-table-features",{title:fc("Product Features","genesis-blocks"),description:fc("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[fc("pricing table","genesis-blocks"),fc("features","genesis-blocks"),fc("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:gc,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.borderStyle,m=n.borderColor,p=n.borderWidth,_=n.paddingTop,h=n.paddingRight,g=n.paddingBottom,f=n.paddingLeft,y=Mc(a),k=vc("color",l),M=vc("background-color",s),v=b()((t={"has-background":s||c,"gb-pricing-table-features":!0},i()(t,y,y),i()(t,k,k),i()(t,M,M),i()(t,d,d),i()(t,"gb-list-border-width-"+p,p),t)),L={fontSize:y?void 0:o,backgroundColor:M?void 0:c,color:k?void 0:u,borderColor:m||void 0,paddingTop:_?_+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:f?f+"px":void 0};return React.createElement(kc.Content,{tagName:"ul",itemProp:"description",value:r,className:v||void 0,style:L})}});var wc=wp.i18n.__,Yc=wp.element.Component,Tc=wp.compose.compose,Dc=wp.blockEditor,Rc=Dc.InspectorControls,Sc=Dc.FontSizePicker,xc=Dc.withFontSizes,Ec=Dc.withColors,Cc=Dc.ContrastChecker,jc=Dc.PanelColorSettings,Pc=(Dc.RangeControl,wp.components),Hc=Pc.withFallbackStyles,Oc=Pc.PanelBody,zc=Hc((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}})),Ac=function(e){m()(n,e);var t=Lc(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.fontSize,u=e.setFontSize,d=e.backgroundColor,m=e.textColor,p=e.setBackgroundColor,_=e.setTextColor,h=e.fallbackBackgroundColor,g=e.fallbackTextColor;return React.createElement(Rc,{key:"inspector"},React.createElement(Oc,{title:wc("Text Settings","genesis-blocks")},React.createElement(Sc,{fallbackFontSize:l,value:c.size,onChange:u})),React.createElement(Oc,{title:wc("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{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(jc,{title:wc("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:p,label:wc("Background Color","genesis-blocks")},{value:m.color,onChange:_,label:wc("Text Color","genesis-blocks")}]},React.createElement(Cc,a()({textColor:m.color,backgroundColor:d.color,fallbackTextColor:g,fallbackBackgroundColor:h},{fontSize:c.size}))))}}]),n}(Yc),Bc=Tc([zc,xc("fontSize"),Ec("backgroundColor",{textColor:"color"})])(Ac);function Nc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Fc=wp.i18n.__,Wc=(wp.blocks.registerBlockType,wp.compose.compose),Ic=wp.element,Uc=Ic.Component,Vc=Ic.Fragment,Jc=wp.blockEditor,Gc=Jc.RichText,qc=Jc.withFontSizes,$c=Jc.withColors,Kc=function(e){m()(n,e);var t=Nc(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=(t.isSelected,t.className,t.setAttributes),u=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,m=t.textColor,p=b()((e={"gb-pricing-table-title":!0},i()(e,u.class,u.class),i()(e,"has-text-color",m.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,m.class,m.class),e)),_={fontSize:u.size?u.size+"px":void 0,backgroundColor:d.color,color:m.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(Vc,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(Bc,this.props),React.createElement(Gc,{tagName:"div",itemProp:"name",placeholder:Fc("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return c({title:e})},style:_,className:p||void 0}))]}}]),n}(Uc),Zc=Wc([qc("fontSize"),$c("backgroundColor",{textColor:"color"})])(Kc),Qc=wp.i18n.__,Xc=wp.blocks.registerBlockType,eu=(wp.element.Component,wp.blockEditor),tu=eu.RichText,nu=eu.getFontSizeClass,ru=(eu.FontSizePicker,eu.withFontSizes,eu.getColorClassName);function au(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}Xc("genesis-blocks/gb-pricing-table-title",{title:Qc("Product Title","genesis-blocks"),description:Qc("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Qc("pricing table","genesis-blocks"),Qc("title","genesis-blocks"),Qc("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:Zc,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.paddingTop,m=n.paddingRight,p=n.paddingBottom,_=n.paddingLeft,h=nu(a),g=ru("color",l),f=ru("background-color",s),y={fontSize:h?void 0:o,backgroundColor:f?void 0:c,color:g?void 0:u,paddingTop:d?d+"px":void 0,paddingRight:m?m+"px":void 0,paddingBottom:p?p+"px":void 0,paddingLeft:_?_+"px":void 0},k=b()((t={"has-background":s||c,"gb-pricing-table-title":!0},i()(t,h,h),i()(t,g,g),i()(t,f,f),t));return React.createElement(tu.Content,{tagName:"div",itemProp:"name",value:r,style:y,className:k||void 0})}});var ou=wp.i18n.__,iu=(wp.blocks.registerBlockType,wp.compose.compose),su=wp.element,lu=su.Component,cu=su.Fragment,uu=wp.blockEditor,du=uu.RichText,mu=uu.withFontSizes,pu=uu.withColors,_u=function(e){m()(n,e);var t=au(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=(t.isSelected,t.className,t.setAttributes),u=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,m=t.textColor,p=b()((e={"gb-pricing-table-subtitle":!0},i()(e,u.class,u.class),i()(e,"has-text-color",m.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,m.class,m.class),e)),_={fontSize:u.size?u.size+"px":void 0,backgroundColor:d.color,color:m.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(cu,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(Bc,this.props),React.createElement(du,{tagName:"div",placeholder:ou("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return c({subtitle:e})},style:_,className:p||void 0}))]}}]),n}(lu),hu=iu([mu("fontSize"),pu("backgroundColor",{textColor:"color"})])(_u),gu=wp.i18n.__,fu=wp.blocks.registerBlockType,bu=(wp.element.Component,wp.blockEditor),yu=bu.RichText,ku=bu.getFontSizeClass,Mu=(bu.FontSizePicker,bu.withFontSizes,bu.getColorClassName);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 _()(this,n)}}fu("genesis-blocks/gb-pricing-table-subtitle",{title:gu("Product Subtitle","genesis-blocks"),description:gu("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[gu("pricing table","genesis-blocks"),gu("subtitle","genesis-blocks"),gu("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:hu,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.paddingTop,m=n.paddingRight,p=n.paddingBottom,_=n.paddingLeft,h=ku(a),g=Mu("color",l),f=Mu("background-color",s),y=b()((t={"has-background":s||c,"gb-pricing-table-subtitle":!0},i()(t,h,h),i()(t,g,g),i()(t,f,f),t)),k={fontSize:h?void 0:o,backgroundColor:f?void 0:c,color:g?void 0:u,paddingTop:d?d+"px":void 0,paddingRight:m?m+"px":void 0,paddingBottom:p?p+"px":void 0,paddingLeft:_?_+"px":void 0};return React.createElement(yu.Content,{tagName:"div",value:r,className:y||void 0,style:k})}});var Lu=wp.i18n.__,wu=wp.element.Component,Yu=wp.compose.compose,Tu=wp.blockEditor,Du=Tu.InspectorControls,Ru=(Tu.FontSizePicker,Tu.withFontSizes),Su=Tu.withColors,xu=(Tu.ContrastChecker,Tu.PanelColorSettings),Eu=wp.components,Cu=Eu.withFallbackStyles,ju=Eu.PanelBody,Pu=(Eu.ToggleControl,Eu.TextControl,Eu.RangeControl,Cu((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}}))),Hu=function(e){m()(n,e);var t=vu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.buttonShape,u=t.buttonTarget,d=(e.isSelected,e.setAttributes),m=e.backgroundColor,p=e.setBackgroundColor;e.fallbackBackgroundColor;return React.createElement(Du,{key:"inspector"},React.createElement(ju,{title:Lu("Button Settings","genesis-blocks")},React.createElement(dn,{buttonTarget:u,onChangeButtonTarget:function(e){return d({buttonTarget:!u})},buttonSize:l,onChangeButtonSize:function(e){return d({buttonSize:e})},buttonShape:c,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(ju,{title:Lu("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{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(xu,{title:Lu("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:m.color,onChange:p,label:Lu("Background Color","genesis-blocks")}]}))}}]),n}(wu),Ou=Yu([Pu,Ru("fontSize"),Su("backgroundColor")])(Hu);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 _()(this,n)}}var Au=wp.i18n.__,Bu=(wp.blocks.registerBlockType,wp.compose.compose),Nu=wp.element,Fu=Nu.Component,Wu=Nu.Fragment,Iu=wp.blockEditor,Uu=Iu.RichText,Vu=Iu.withFontSizes,Ju=Iu.withColors,Gu=(Iu.InnerBlocks,Iu.URLInput),qu=wp.components,$u=qu.Button,Ku=qu.Dashicon,Zu=qu.Icon,Qu=function(e){m()(n,e);var t=zu(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.buttonBackgroundColor,u=t.buttonTextColor,d=t.buttonSize,m=t.buttonShape,p=(t.buttonTarget,e.isSelected),_=(e.className,e.setAttributes),h=e.backgroundColor,g=b()({"gb-pricing-table-button":!0}),f={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(Wu,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(Ou,this.props),React.createElement("div",{className:g||void 0,style:f},React.createElement(bn,this.props,React.createElement(Uu,{tagName:"span",placeholder:Au("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:[],className:b()("gb-button",m,d),style:{color:u,backgroundColor:c},onChange:function(e){return _({buttonText:e})}})),p&&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(Ku,{icon:"admin-links"}),React.createElement(Gu,{className:"button-url",value:s,onChange:function(e){return _({buttonUrl:e})}}),React.createElement($u,{label:Au("Apply","genesis-blocks"),type:"submit"},React.createElement(Zu,{icon:"editor-break"})))))]}}]),n}(Fu),Xu=Bu([Vu("fontSize"),Ju("backgroundColor",{textColor:"color"})])(Qu),ed=wp.i18n.__,td=wp.blocks.registerBlockType,nd=(wp.element.Component,wp.blockEditor),rd=nd.RichText,ad=(nd.getFontSizeClass,nd.FontSizePicker,nd.withFontSizes,nd.getColorClassName);td("genesis-blocks/gb-pricing-table-button",{title:ed("Product Button","genesis-blocks"),description:ed("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[ed("pricing table","genesis-blocks"),ed("subtitle","genesis-blocks"),ed("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:Xu,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,c=t.buttonText,u=t.buttonUrl,d=(t.buttonAlignment,t.buttonBackgroundColor),m=t.buttonTextColor,p=t.buttonSize,_=t.buttonShape,h=t.buttonTarget,g=ad("background-color",n),f=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:f||void 0,style:y},React.createElement(bn,e,c&&React.createElement("a",{href:u,target:h?"_blank":null,rel:h?"noopener noreferrer":null,className:b()("gb-button",_,p),style:{color:m,backgroundColor:d}},React.createElement(rd.Content,{value:c}))))}});var od=wp.i18n.__,id=wp.element.Fragment,sd=wp.components.RangeControl;function ld(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,c=e.marginRightLabel,u=e.marginRightMin,d=e.marginRightMax,m=e.marginEnableRight,p=e.onChangeMarginRight,_=void 0===p?function(){}:p,h=e.marginBottom,g=e.marginBottomLabel,f=e.marginBottomMin,b=e.marginBottomMax,y=e.marginEnableBottom,k=e.onChangeMarginBottom,M=void 0===k?function(){}:k,v=e.marginLeft,L=e.marginLeftLabel,w=e.marginLeftMin,Y=e.marginLeftMax,T=e.marginEnableLeft,D=e.onChangeMarginLeft,R=void 0===D?function(){}:D,S=e.marginVertical,x=e.marginVerticalLabel,E=e.marginEnableVertical,C=e.marginVerticalMin,j=e.marginVerticalMax,P=e.onChangeMarginVertical,H=void 0===P?function(){}:P,O=e.marginHorizontal,z=e.marginHorizontalLabel,A=e.marginEnableHorizontal,B=e.marginHorizontalMin,N=e.marginHorizontalMax,F=e.onChangeMarginHorizontal,W=void 0===F?function(){}:F;return React.createElement(id,null,o&&React.createElement(sd,{label:n||od("Margin Top","genesis-blocks"),value:t,min:r,max:a,onChange:s}),m&&React.createElement(sd,{label:c||od("Margin Right","genesis-blocks"),value:l,min:u,max:d,onChange:_}),y&&React.createElement(sd,{label:g||od("Margin Bottom","genesis-blocks"),value:h,min:f,max:b,onChange:M}),T&&React.createElement(sd,{label:L||od("Margin Left","genesis-blocks"),value:v,min:w,max:Y,onChange:R}),E&&React.createElement(sd,{label:x||od("Margin Vertical","genesis-blocks"),value:S,min:C,max:j,onChange:H}),A&&React.createElement(sd,{label:z||od("Margin Horizontal","genesis-blocks"),value:O,min:B,max:N,onChange:W}))}function cd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var ud=wp.i18n.__,dd=wp.element.Component,md=wp.compose.compose,pd=wp.blockEditor,_d=pd.InspectorControls,hd=pd.withColors,gd=pd.ContrastChecker,fd=pd.PanelColorSettings,bd=wp.components,yd=bd.PanelBody,kd=bd.SelectControl,Md=bd.TextControl,vd=bd.FormToggle,Ld=(0,bd.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}})),wd=function(e){m()(n,e);var t=cd(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.buttonBackgroundColor,u=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,m=e.fallbackButtonTextColor,p=e.setButtonBackgroundColor,_=e.setButtonTextColor,h={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:ud("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(_d,null,React.createElement(yd,{title:ud("Newsletter","genesis-blocks"),initialOpen:!t.mailingList},React.createElement(v,{id:"gb_newsletter_mailingList"},React.createElement(kd,{label:ud("Mailing List","genesis-blocks"),help:ud("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(v,{id:"gb_newsletter_successMessage"},React.createElement(Md,{type:"string",label:ud("Success Message","genesis-blocks"),help:ud("The message shown when people successfully subscribe.","genesis-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),React.createElement(v,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(vd,{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},ud("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},ud("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(yd,{title:ud("General","genesis-blocks"),initialOpen:!!t.mailingList},React.createElement(v,{id:"gb_newsletter_containerPadding"},React.createElement(Js,{paddingEnable:!0,paddingTitle:ud("Block Padding","genesis-blocks"),paddingHelp:ud("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(v,{id:"gb_newsletter_containerMargin"},React.createElement(ld,{marginEnableTop:!0,marginTopLabel:ud("Block Margin Top","genesis-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:ud("Block Margin Bottom","genesis-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),React.createElement(dn,{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(v,{id:"gb_newsletter_colorOptions"},React.createElement(fd,{title:ud("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:a,label:ud("Block Background Color","genesis-blocks")},{value:i.color,onChange:l,label:ud("Block Text Color","genesis-blocks")},{value:c.color,onChange:p,label:ud("Button Background Color","genesis-blocks")},{value:d.color,onChange:_,label:ud("Button Text Color","genesis-blocks")}]},React.createElement(gd,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:s,fallbackBackgroundColor:o}),React.createElement(gd,{textColor:d.color,backgroundColor:c.color,fallbackButtonTextColor:m,fallbackButtonBackgroundColor:u}),React.createElement(gd,{textColor:c.color,backgroundColor:r.color,fallbackButtonBackgroundColor:u,fallbackBackgroundColor:o}))))}}]),n}(dd),Yd=md([Ld,hd("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(wd);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 _()(this,n)}}var Dd=wp.element.Component,Rd=(wp.blockEditor.getColorClassName,function(e){m()(n,e);var t=Td(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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}(Dd));function Sd(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 xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ed(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Cd=wp.i18n.__,jd=wp.compose,Pd=jd.compose,Hd=jd.withInstanceId,Od=wp.blockEditor,zd=(Od.getColorClassName,Od.RichText),Ad=Od.withColors,Bd=wp.element,Nd=Bd.Fragment,Fd=Bd.Component,Wd=wp.components,Id=Wd.TextControl,Ud=(0,Wd.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}})),Vd=function(e){m()(n,e);var t=Ed(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return u()(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,c=r.buttonTextColor,u=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(Yd,a()({key:"gb-newsletter-inspector-"+this.props.clientId},xd({setAttributes:s},this.props))),React.createElement(Rd,a()({key:"gb-newsletter-container-"+this.props.clientId},this.props),!u&&React.createElement(Nd,null,React.createElement("div",{className:"gb-newsletter-notice"},Cd("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"},Cd("Configure your settings","genesis-blocks"))))),u&&React.createElement(Nd,null,React.createElement(zd,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:o.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),React.createElement(Id,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:b()("gb-block-button")},React.createElement(bn,this.props,React.createElement(zd,{tagName:"span",placeholder:Cd("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:c.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}(Fd),Jd=Pd([Ud,Ad("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Hd(Vd)),Gd=(n(351),n(352),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-newsletter",{title:Gd("Email newsletter","genesis-blocks"),description:Gd("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[Gd("Mailchimp","genesis-blocks"),Gd("Subscribe","genesis-blocks"),Gd("Newsletter","genesis-blocks")],edit:Jd,gb_settings_data:{gb_newsletter_mailingList:{title:Gd("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:Gd("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:Gd("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:Gd("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:Gd("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:Gd("Color Options","genesis-blocks")}},save:function(){return null}});var qd=n(31),$d=n.n(qd);var Kd=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},Zd=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 Qd(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 Xd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var em=function(e){m()(n,e);var t=Xd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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($d()(Kd(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?Qd(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qd(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},Zd(n));return React.createElement("div",{className:o||void 0,style:Object.assign(r,a,s)},this.props.children)}}]),n}(wp.element.Component),tm={};tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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 nm=tm,rm=wp.i18n.__,am={1:[{name:rm("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:nm.oneEqual}],2:[{name:rm("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:nm.twoEqual},{name:rm("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:nm.twoLeftWide},{name:rm("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:nm.twoRightWide}],3:[{name:rm("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:nm.threeEqual},{name:rm("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:nm.threeWideCenter},{name:rm("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:nm.threeWideLeft},{name:rm("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:nm.threeWideRight}],4:[{name:rm("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:nm.fourEqual},{name:rm("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:nm.fourLeft},{name:rm("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:nm.fourRight}],5:[{name:rm("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:nm.fiveEqual}],6:[{name:rm("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:nm.sixEqual}]};function om(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 im(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var sm=wp.i18n.__,lm=wp.element,cm=lm.Fragment,um=lm.Component,dm=wp.components,mm=dm.PanelBody,pm=dm.RangeControl,_m=dm.Button,hm=dm.ButtonGroup,gm=dm.FocalPointPicker,fm=dm.Icon,bm=dm.ToggleControl,ym=dm.SelectControl,km=wp.blockEditor,Mm=km.MediaUpload,vm=km.MediaUploadCheck,Lm=function(e){m()(n,e);var t=im(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,o=[{value:"no-repeat",label:sm("No Repeat","genesis-blocks")},{value:"repeat",label:sm("Repeat","genesis-blocks")},{value:"repeat-x",label:sm("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:sm("Repeat Vertically","genesis-blocks")}],s=[{value:"auto",label:sm("Auto","genesis-blocks")},{value:"cover",label:sm("Cover","genesis-blocks")},{value:"contain",label:sm("Contain","genesis-blocks")}];return"cover"===r.backgroundSize&&(e=sm("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=sm("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===r.backgroundSize&&(e=sm("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(cm,null,React.createElement(mm,{title:sm("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(vm,null,React.createElement(Mm,{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(hm,{className:"gb-background-button-group"},React.createElement(_m,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:sm("Edit image","genesis-blocks"),onClick:t},React.createElement(fm,{icon:"format-image"}),sm("Select Image","genesis-blocks")),r.backgroundImgURL&&React.createElement(_m,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:sm("Remove Image","genesis-blocks"),onClick:function(){return a({backgroundImgURL:null})}},React.createElement(fm,{icon:"dismiss"}),sm("Remove","genesis-blocks"))))}})),r.backgroundImgURL&&React.createElement(cm,null,React.createElement(gm,{label:sm("Focal Point","genesis-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return a({focalPoint:e})}}),React.createElement(pm,{label:sm("Image Opacity","genesis-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),React.createElement(bm,{label:sm("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?om(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om(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(ym,{className:"gb-inspector-help-text",label:sm("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(ym,{label:sm("Image Repeat","genesis-blocks"),value:r.backgroundRepeat,options:o,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}]),n}(um);function wm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Ym=wp.i18n.__,Tm=wp.element,Dm=Tm.Component,Rm=Tm.Fragment,Sm=wp.blockEditor,xm=Sm.InspectorControls,Em=Sm.PanelColorSettings,Cm=Sm.ContrastChecker,jm=wp.components,Pm=jm.PanelBody,Hm=jm.RangeControl,Om=jm.ButtonGroup,zm=jm.Button,Am=jm.Tooltip,Bm=jm.ToggleControl,Nm=jm.SelectControl,Fm=function(e){m()(n,e);var t=wm(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 c=[{value:"px",label:Ym("Pixel (px)","genesis-blocks")},{value:"%",label:Ym("Percent (%)","genesis-blocks")},{value:"em",label:Ym("Em (em)","genesis-blocks")}];return React.createElement(xm,{key:"inspector"},n.layout&&React.createElement(Pm,{title:Ym("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(v,{id:"gb_column_columns"},React.createElement(Hm,{label:Ym("Column Count","genesis-blocks"),help:Ym("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(Rm,null,React.createElement(v,{id:"gb_column_columnLayouts"},React.createElement("p",null,Ym("Column Layout","genesis-blocks")),React.createElement(Om,{"aria-label":Ym("Column Layout","genesis-blocks")},Lo()(am[l],(function(t){var n=t.name,a=t.key,o=t.icon;t.col;return React.createElement(Am,{text:n,key:a},React.createElement(zm,{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,Ym("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(v,{id:"gb_column_columnsGap"},React.createElement(Hm,{label:Ym("Column Gap","genesis-blocks"),help:Ym("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(v,{id:"gb_column_columnMaxWidth"},React.createElement(Hm,{label:Ym("Column Inner Max Width (px)"),help:Ym("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(v,{id:"gb_column_centerColumns"},React.createElement(Bm,{label:Ym("Center Columns In Container","genesis-blocks"),help:Ym("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(v,{id:"gb_column_responsiveToggle"},React.createElement(Bm,{label:Ym("Responsive Columns","genesis-blocks"),help:Ym("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(v,{id:"gb_column_marginPadding"},React.createElement(Pm,{title:Ym("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Nm,{label:Ym("Margin Unit","genesis-blocks"),help:Ym("Choose between pixel, percent, or em units.","genesis-blocks"),options:c,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Bm,{label:Ym("Sync Margin","genesis-blocks"),help:Ym("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(ld,{marginEnableVertical:!0,marginVerticalLabel:Ym("Margin Top/Bottom","genesis-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):React.createElement(ld,{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(Nm,{label:Ym("Padding Unit","genesis-blocks"),help:Ym("Choose between pixel, percent, or em units.","genesis-blocks"),options:c,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Bm,{label:Ym("Sync Padding","genesis-blocks"),help:Ym("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(Js,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):React.createElement(Js,{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(v,{id:"gb_column_colorSettings"},React.createElement(Em,{title:Ym("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a.color,onChange:o,label:Ym("Background Color","genesis-blocks")},{value:i.color,onChange:s,label:Ym("Text Color","genesis-blocks")}]},React.createElement(Cm,{textColor:i.color,backgroundColor:a.color}))),React.createElement(v,{id:"gb_column_backgroundImagePanel"},React.createElement(Lm,this.props)))}}]),n}(Dm);function Wm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Im=wp.i18n.__,Um=wp.element,Vm=Um.Component,Jm=Um.Fragment,Gm=wp.compose.compose,qm=wp.data.dispatch,$m=wp.blockEditor,Km=$m.BlockControls,Zm=$m.BlockAlignmentToolbar,Qm=$m.InnerBlocks,Xm=$m.withColors,ep=wp.components,tp=ep.Placeholder,np=ep.ButtonGroup,rp=ep.Tooltip,ap=ep.Button,op=["genesis-blocks/gb-column"],ip=rs()((function(e){return os()(e,(function(){return["genesis-blocks/gb-column"]}))})),sp=function(e){m()(n,e);var t=Wm(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={selectLayout:!0},r}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&qm("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:Im("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:nm.oneEqual},{name:Im("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:nm.twoEqual},{name:Im("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:nm.threeEqual},{name:Im("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:nm.fourEqual},{name:Im("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:nm.fiveEqual},{name:Im("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:nm.sixEqual}];return!n.layout&&this.state.selectLayout?[React.createElement(tp,{key:"placeholder",icon:"editor-table",label:n.columns?Im("Column Layout","genesis-blocks"):Im("Column Number","genesis-blocks"),instructions:n.columns?Im("Select a layout for this column.","genesis-blocks"):Im("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},n.columns?React.createElement(Jm,null,React.createElement(np,{"aria-label":Im("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},Lo()(am[o],(function(t){var n=t.name,a=t.key,o=t.icon;return React.createElement(rp,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(ap,{key:a,className:b()("gb-column-selector-button",a),isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o)))}))),React.createElement(ap,{className:"gb-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},Im("Return to Column Selection","genesis-blocks"))):React.createElement(np,{"aria-label":Im("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},Lo()(i,(function(t){var n=t.name,a=t.key,o=t.icon,i=t.columns;return React.createElement(rp,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(ap,{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(Km,{key:"controls"},React.createElement(Zm,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),React.createElement(Fm,a()({},this.props,{key:"inspector"})),React.createElement(em,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(Qm,{template:ip(n.columns),templateLock:"all",allowedBlocks:op})))]}}]),n}(Vm),lp=Gm([Xm("backgroundColor",{textColor:"color"})])(sp);function cp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var up=wp.element.Component,dp=wp.blockEditor.InnerBlocks,mp=function(e){m()(n,e);var t=cp(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(em,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(dp.Content,null)))}}]),n}(up),pp={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 _p(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 hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_p(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gp=wp.i18n.__;function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-columns",{title:gp("Advanced Columns","genesis-blocks"),description:gp("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[gp("column","genesis-blocks"),gp("grid","genesis-blocks"),gp("row","genesis-blocks")],attributes:hp(hp({},pp),{},{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:gp("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:gp("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:gp("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:gp("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:gp("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:gp("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:gp("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:gp("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:gp("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(lp,e)},save:function(e){return React.createElement(mp,e)}});var bp=wp.i18n.__,yp=wp.element.Component,kp=wp.compose.compose,Mp=wp.blockEditor,vp=Mp.InspectorControls,Lp=Mp.PanelColorSettings,Yp=Mp.withColors,Tp=Mp.ContrastChecker,Dp=wp.components,Rp=Dp.PanelBody,Sp=Dp.ToggleControl,xp=Dp.SelectControl,Ep=function(e){m()(n,e);var t=fp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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:bp("Pixel (px)","genesis-blocks")},{value:"%",label:bp("Percent (%)","genesis-blocks")},{value:"em",label:bp("Em (em)","genesis-blocks")}];return React.createElement(vp,{key:"inspector"},React.createElement(v,{id:"gb_column_inner_marginPadding"},React.createElement(Rp,{title:bp("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(xp,{label:bp("Margin Unit","genesis-blocks"),help:bp("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(Sp,{label:bp("Sync Margin","genesis-blocks"),help:bp("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(ld,{marginEnableVertical:!0,marginVerticalLabel:bp("Margin Top/Bottom","genesis-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return s({margin:e})}}):React.createElement(ld,{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(xp,{label:bp("Padding Unit","genesis-blocks"),help:bp("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(Sp,{label:bp("Sync Padding","genesis-blocks"),help:bp("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(Js,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return s({padding:e})}}):React.createElement(Js,{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(v,{id:"gb_column_inner_colorSettings"},React.createElement(Lp,{title:bp("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:bp("Background Color","genesis-blocks")},{value:a.color,onChange:o,label:bp("Text Color","genesis-blocks")}]},React.createElement(Tp,{textColor:a.color,backgroundColor:n.color}))),React.createElement(v,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Lm,this.props)))}}]),n}(yp),Cp=kp([Yp("backgroundColor",{textColor:"color"})])(Ep);function jp(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 Pp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Hp=function(e){m()(n,e);var t=Pp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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?jp(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(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},Zd(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($d()(Kd(n)))),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function Op(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var zp=wp.i18n.__,Ap=wp.compose.compose,Bp=wp.element.Component,Np=wp.components.ToolbarGroup,Fp=wp.blockEditor,Wp=Fp.AlignmentToolbar,Ip=Fp.BlockControls,Up=Fp.InnerBlocks,Vp=Fp.withColors,Jp=function(e){m()(n,e);var t=Op(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:zp("Vertical Align Top","genesis-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:zp("Vertical Align Middle","genesis-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:zp("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[React.createElement(Ip,{key:"controls"},React.createElement(Wp,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),React.createElement(Np,{controls:r})),React.createElement(Cp,a()({},this.props,{key:"inspector"})),React.createElement(Hp,a()({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(Up,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}]),n}(Bp),Gp=Ap([Vp("backgroundColor",{textColor:"color"})])(Jp);function qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var $p=wp.element.Component,Kp=wp.blockEditor.InnerBlocks,Zp=function(e){m()(n,e);var t=qp(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(Hp,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Kp.Content,null))}}]),n}($p);function Qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Xp=function(e){m()(n,e);var t=Qp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 e_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var t_=wp.element.Component,n_=wp.blockEditor.InnerBlocks,r_=function(e){m()(n,e);var t=e_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(Xp,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(n_.Content,null))}}]),n}(t_),a_=[{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(r_,e)}}];n(353),n(354);function o_(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 i_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o_(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s_=wp.i18n.__;(0,wp.blocks.registerBlockType)("genesis-blocks/gb-column",{title:s_("Column","genesis-blocks"),description:s_("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[s_("column","genesis-blocks"),s_("layout","genesis-blocks"),s_("row","genesis-blocks")],attributes:i_(i_({},pp),{},{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:s_("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:s_("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:s_("Background Image","genesis-blocks")}},edit:function(e){return React.createElement(Gp,e)},save:function(e){return React.createElement(Zp,e)},deprecated:a_});var l_=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");function c_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",l_);var u_=wp.i18n.__,d_=wp.element,m_=d_.Component,p_=d_.Fragment,__=wp.components,h_=__.Button,g_=__.Dashicon,f_=__.Tooltip,b_=function(e){m()(n,e);var t=c_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(p_,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(h_,{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(f_,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?u_("Remove from Favorites","genesis-blocks"):u_("Add to Favorites","genesis-blocks")},React.createElement(h_,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},React.createElement(g_,{icon:"heart",className:b()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}]),n}(m_);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 _()(this,n)}}var k_=wp.i18n.__,M_=wp.url.addQueryArgs,v_=wp.element,L_=v_.Component,w_=v_.Fragment,Y_=function(e){m()(n,e);var t=y_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return React.createElement(w_,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:M_("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},k_("Edit","genesis-blocks"))))))}}]),n}(L_),T_=wp.blocks.rawHandler;function D_(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,T_({HTML:e,mode:"BLOCKS"}))}var R_=wp.element.useState;wp.i18n.__;var S_=wp.components.Button;function x_(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(S_,{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.__,C_=wp.components.ButtonGroup;function j_(e){var t,n,r,o,i,s,l,c=(n=R_((t={view:"collections",collection:null}).view),r=fo()(n,2),o=r[0],i=r[1],s=R_(t.collection),l=fo()(s,2),{currentView:o,setCurrentView:i,currentCollection:l[0],setCurrentCollection:l[1]});function u(){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")&&c.currentCollection===a.collection.slug&&n.push(React.createElement(b_,{key:a.key,itemKey:a.key,name:a.name,image:a.image,import:D_,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(C_,{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"!==c.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:function(){c.setCurrentView("collections")}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),E_("View All Collections ","genesis-blocks"))),"collections"===c.currentView?React.createElement("h2",{className:"gb-collection-title"},E_("Collections ","genesis-blocks")):"collection"===c.currentView?React.createElement("h2",{className:"gb-collection-title"},E_("Browsing ","genesis-blocks")+e.context.collections[c.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"!==c.currentView)return"";var n=[];for(var r in t)n.push(React.createElement(x_,a()({key:r,collectionSlug:r,collectionsView:c},e)));return React.createElement(C_,{className:"gb-layout-choices","aria-label":E_("Collections Available","genesis-blocks")},n)}(e.context.collections),"collection"!==c.currentView?"":React.createElement(React.Fragment,null,u("sections"),u("layouts"))))}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 _()(this,n)}}var H_=wp.compose.compose,O_=wp.blocks.rawHandler,z_=wp.data,A_=z_.withSelect,B_=z_.withDispatch,N_=wp.element,F_=N_.Component,W_=N_.Fragment,I_=function(e){m()(n,e);var t=P_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"layoutTabContent",value:function(){return"gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(Y_,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(j_,this.props):React.createElement(b_,this.props)}},{key:"render",value:function(){return React.createElement(W_,null,this.layoutTabContent())}}]),n}(F_),U_=H_(A_((function(e,t){var n,r=t.clientId,a=e("core/block-editor").getBlock;return n=!e("core/editor")||(n=e("core/editor").canUserUseUnfilteredHTML)(),{block:a(r),canUserUseUnfilteredHTML:n}})),B_((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}))}}})))(I_),V_=n(16),J_=n.n(V_),G_=n(33),q_=n.n(G_),$_=n(41),K_=n.n($_);function Z_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Q_=wp.apiFetch,X_=Object(Kn.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),eh=function(e){m()(r,e);var t,n=Z_(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()(K_()(e),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),e}return u()(r,[{key:"getFavoriteKeys",value:function(){return Q_({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 Q_({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 Q_({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 Q_({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=q_()(J_.a.mark((function e(){var t,n=this;return J_.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=q_()(J_.a.mark((function e(r){var a,o,i,s,l;return J_.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?Zn.a.createElement(X_.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=q_()(J_.a.mark((function e(n){var r,a;return J_.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}(Kn.Component);function th(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var nh=wp.i18n.__,rh=wp.url.addQueryArgs,ah=wp.element,oh=ah.Component,ih=ah.Fragment,sh=wp.components,lh=sh.ButtonGroup,ch=sh.TextControl,uh=sh.SelectControl,dh=function(e){m()(n,e);var t=th(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return u()(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(j_,a()({key:this.props.data.key},this.props)):React.createElement(ih,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(ih,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(uh,{key:"layout-library-select-categories-"+this.props.clientId,label:nh("Layout Categories","genesis-blocks"),value:this.state.category,options:i,onChange:function(t){return e.setState({category:t})}}),React.createElement(ch,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:nh("Search Layouts","genesis-blocks"),onChange:function(t){return e.setState({search:t})}}))):React.createElement(ih,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,nh("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:rh("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},nh("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(X_.Consumer,null,(function(t){return React.createElement(lh,{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":nh("Layout Options","genesis-blocks")},Lo()(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(U_,{key:"layout-library-item-"+a,name:r,itemKey:a,image:o,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}]),n}(oh),mh=wp.i18n.__,ph=wp.element,_h=ph.Fragment,hh=ph.useState,gh=wp.components,fh=gh.Button,bh=gh.Dashicon,yh=gh.Modal,kh=gh.TabPanel,Mh=wp.data.useDispatch;var vh=function(e){var t=hh("gb-layout-tab-sections"),n=fo()(t,2),r=n[0],a=n[1],o=hh(!0),i=fo()(o,2),s=i[0],l=i[1],c=Mh("core/block-editor").removeBlock,u=[];return e.context.sections.length>0&&u.push({name:"gb-layout-tab-sections",title:mh("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),e.context.layouts.length>0&&u.push({name:"gb-layout-tab-layouts",title:mh("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),Object.keys(e.context.collections).length>0&&u.push({name:"gb-layout-tab-collections",title:mh("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),u.push({name:"gb-layout-tab-favorites",title:mh("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),e.context.reusableBlocks.length&&u.push({name:"gb-layout-tab-reusable-blocks",title:mh("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(_h,{key:"layout-modal-fragment-"+e.clientId},React.createElement(fh,{key:"layout-modal-library-button-"+e.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:function(){l(!0)}},mh("Layout Library","genesis-blocks")),s?React.createElement(yh,{key:"layout-modal-modal-component-"+e.clientId,className:"gb-layout-modal",title:mh("Layout Selector","genesis-blocks"),onRequestClose:function(){l(!1),a(null),c(e.clientId)}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement(bh,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},mh("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"},mh("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(bh,{icon:"admin-comments"})," ",mh("Send Feedback","genesis-blocks"))),React.createElement(kh,{key:"layout-modal-tabpanel-"+e.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:function(e){return a(e)},tabs:u},(function(t){var n=mh("Default tab content","genesis-blocks");if(t.name){if("gb-layout-tab-sections"===t.name)return[React.createElement(dh,{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(dh,{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(dh,{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(dh,{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(dh,{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 Lh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var wh=wp.i18n.__,Yh=wp.components.Placeholder,Th=wp.element,Dh=Th.Component,Rh=Th.Fragment,Sh=wp.blockEditor,xh=Sh.BlockControls,Eh=Sh.BlockAlignmentToolbar,Ch=function(e){m()(n,e);var t=Lh(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[React.createElement(Rh,{key:this.props.clientId},React.createElement(xh,{key:"controls"},React.createElement(Eh,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),React.createElement(Yh,{key:"placeholder",label:wh("Layout Selector","genesis-blocks"),instructions:wh("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(X_.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return React.createElement(vh,{clientId:r,context:e})}))))]}}]),n}(Dh),jh=(n(355),n(356),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-layouts",{title:jh("Layouts","genesis-blocks"),description:jh("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[jh("layout","genesis-blocks"),jh("column","genesis-blocks"),jh("section","genesis-blocks")],edit:function(e){return React.createElement(eh,null,React.createElement(Ch,e))},save:function(){return null}});var Ph=!1;function Hh(){var e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}wp.data.subscribe((function(){!function(){if(Ph)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(jh("Insert Layout","genesis-blocks"),'"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ').concat(jh("Layouts","genesis-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t);var r=document.querySelector(".components-accessible-toolbar.edit-post-header-toolbar");r&&(r.style.flexGrow=0);document.getElementById("gbLayoutInsertButton").addEventListener("click",Hh),Ph=!0}()}));n(357),n(358)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,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){}]);
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=300)}([function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(197);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(198).default,a=n(42);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r;
|
2 |
/*!
|
3 |
+
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var i=a.apply(null,r);i&&e.push(i)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,n,r){return Yt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function f(e){var t=_(NaN);return null!=e?p(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=a.momentProperties=[],y=!1;function k(e,t){var n,r,a;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=h(t)),c(t._locale)||(e._locale=t._locale),b.length>0)for(n=0;n<b.length;n++)c(a=t[r=b[n]])||(e[r]=a);return e}function M(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,a.updateOffset(this),y=!1)}function v(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function L(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,t){var n=!0;return p((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,o,i,l=[];for(o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(i in r+="\n["+o+"] ",arguments[0])s(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}L(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var Y,T={};function D(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),T[e]||(L(t),T[e]=!0)}function R(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function x(e){null!=e&&this.set(e)}function E(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,Y=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},H={};function O(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(H[e]=a),t&&(H[t[0]]=function(){return E(a.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function z(e,t){return e.isValid()?(t=A(t,e.localeData()),P[t]=P[t]||function(e){var t,n,r,a=e.match(C);for(t=0,n=a.length;t<n;t++)H[a[t]]?a[t]=H[a[t]]:a[t]=(r=a[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=R(a[r])?a[r].call(t,e):a[r];return o}}(t),P[t](e)):e.localeData().invalidDate()}function A(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(j.lastIndex=0;n>=0&&j.test(e);)e=e.replace(j,r),j.lastIndex=0,n-=1;return e}var B={};function N(e,t){var n=e.toLowerCase();B[n]=B[n+"s"]=B[t]=e}function F(e){return"string"==typeof e?B[e]||B[e.toLowerCase()]:void 0}function W(e){var t,n,r={};for(n in e)s(e,n)&&(t=F(n))&&(r[t]=e[n]);return r}var I={};function U(e,t){I[e]=t}function V(e){return e%4==0&&e%100!=0||e%400==0}function J(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=J(t)),n}function q(e,t){return function(n){return null!=n?(K(this,e,n),a.updateOffset(this,t),this):$(this,e)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&V(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ve(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,Q=/\d/,X=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,ae=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ce=/\d+/,ue=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,me=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function _e(e,t,n){Z[e]=R(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return s(Z,e)?Z[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a}))))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var fe,be={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)be[e[n]]=r}function ke(e,t){ye(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function Me(e,t,n){null!=t&&s(be,e)&&be[e](t,n._a,n,e)}function ve(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?V(e)?29:28:31-r%7%2}fe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},O("M",["MM",2],"Mo",(function(){return this.month()+1})),O("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),O("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),N("month","M"),U("month",8),_e("M",re),_e("MM",re,X),_e("MMM",(function(e,t){return t.monthsShortRegex(e)})),_e("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=G(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[1]=a:h(n).invalidMonth=e}));var Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),we="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ye=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=pe,De=pe;function Re(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=_([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=fe.call(this._shortMonthsParse,i))?a:null:-1!==(a=fe.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=fe.call(this._shortMonthsParse,i))||-1!==(a=fe.call(this._longMonthsParse,i))?a:null:-1!==(a=fe.call(this._longMonthsParse,i))||-1!==(a=fe.call(this._shortMonthsParse,i))?a:null}function Se(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),ve(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function xe(e){return null!=e?(Se(this,e),a.updateOffset(this,!0),this):$(this,"Month")}function Ee(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=_([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=ge(r[t]),a[t]=ge(a[t]);for(t=0;t<24;t++)o[t]=ge(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ce(e){return V(e)?366:365}O("Y",0,0,(function(){var e=this.year();return e<=9999?E(e,4):"+"+e})),O(0,["YY",2],0,(function(){return this.year()%100})),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,!0],0,"year"),N("year","y"),U("year",1),_e("Y",ue),_e("YY",re,X),_e("YYYY",se,te),_e("YYYYY",le,ne),_e("YYYYYY",le,ne),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?a.parseTwoDigitYear(e):G(e)})),ye("YY",(function(e,t){t[0]=a.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)};var je=q("FullYear",!0);function Pe(e,t,n,r,a,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,o,i),s}function He(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Oe(e,t,n){var r=7+t-n;return-(7+He(e,0,r).getUTCDay()-t)%7+r-1}function ze(e,t,n,r,a){var o,i,s=1+7*(t-1)+(7+n-r)%7+Oe(e,r,a);return s<=0?i=Ce(o=e-1)+s:s>Ce(e)?(o=e+1,i=s-Ce(e)):(o=e,i=s),{year:o,dayOfYear:i}}function Ae(e,t,n){var r,a,o=Oe(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?r=i+Be(a=e.year()-1,t,n):i>Be(e.year(),t,n)?(r=i-Be(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function Be(e,t,n){var r=Oe(e,t,n),a=Oe(e+1,t,n);return(Ce(e)-r+a)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),U("week",5),U("isoWeek",5),_e("w",re),_e("ww",re,X),_e("W",re),_e("WW",re,X),ke(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=G(e)})),O("d",0,"do","day"),O("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),O("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),O("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),_e("d",re),_e("e",re),_e("E",re),_e("dd",(function(e,t){return t.weekdaysMinRegex(e)})),_e("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),_e("dddd",(function(e,t){return t.weekdaysRegex(e)})),ke(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e})),ke(["d","e","E"],(function(e,t,n,r){t[r]=G(e)}));var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=pe,Ve=pe,Je=pe;function Ge(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=fe.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=fe.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=fe.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=fe.call(this._weekdaysParse,i))||-1!==(a=fe.call(this._shortWeekdaysParse,i))||-1!==(a=fe.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=fe.call(this._shortWeekdaysParse,i))||-1!==(a=fe.call(this._weekdaysParse,i))||-1!==(a=fe.call(this._minWeekdaysParse,i))?a:null:-1!==(a=fe.call(this._minWeekdaysParse,i))||-1!==(a=fe.call(this._weekdaysParse,i))||-1!==(a=fe.call(this._shortWeekdaysParse,i))?a:null}function qe(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=ge(this.weekdaysMin(n,"")),a=ge(this.weekdaysShort(n,"")),o=ge(this.weekdays(n,"")),i.push(r),s.push(a),l.push(o),c.push(r),c.push(a),c.push(o);i.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ke(e,t){O(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,$e),O("k",["kk",2],0,(function(){return this.hours()||24})),O("hmm",0,0,(function(){return""+$e.apply(this)+E(this.minutes(),2)})),O("hmmss",0,0,(function(){return""+$e.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),O("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),O("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),N("hour","h"),U("hour",13),_e("a",Ze),_e("A",Ze),_e("H",re),_e("h",re),_e("k",re),_e("HH",re,X),_e("hh",re,X),_e("kk",re,X),_e("hmm",ae),_e("hmmss",oe),_e("Hmm",ae),_e("Hmmss",oe),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=G(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=G(e),h(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r)),h(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(a)),h(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(a))}));var Qe,Xe=q("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Le,monthsShort:we,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ie,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function at(e){return e?e.toLowerCase().replace("_","-"):e}function ot(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{r=Qe._abbr,n(206)("./"+t),it(r)}catch(e){tt[t]=null}return tt[t]}function it(e,t){var n;return e&&((n=c(t)?lt(e):st(e,t))?Qe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new x(S(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),it(e),tt[e]}return delete tt[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,r,a,o=0;o<e.length;){for(t=(a=at(e[o]).split("-")).length,n=(n=at(e[o+1]))?n.split("-"):null;t>0;){if(r=ot(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(a,n)>=t-1)break;t--}o++}return Qe}(e)}function ct(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ve(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ft={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,r,a,o,i,s=e._i,l=ut.exec(s)||dt.exec(s);if(l){for(h(e).iso=!0,t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[1])){a=pt[t][0],r=!1!==pt[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(l[3])){o=(l[2]||" ")+_t[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!mt.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),Lt(e)}else e._isValid=!1}function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function kt(e){var t,n,r,a,o,i,s,l,c=gt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],r=c[3],a=c[2],o=c[5],i=c[6],s=c[7],l=[yt(n),we.indexOf(r),parseInt(a,10),parseInt(o,10),parseInt(i,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||We.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return ft[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(c[8],c[9],c[10]),e._d=He.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Mt(e,t,n){return null!=e?e:null!=t?t:n}function vt(e){var t,n,r,o,i,s=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,a,o,i,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,i=4,n=Mt(t.GG,e._a[0],Ae(Tt(),1,4).year),r=Mt(t.W,1),((a=Mt(t.E,1))<1||a>7)&&(l=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,c=Ae(Tt(),o,i),n=Mt(t.gg,e._a[0],c.year),r=Mt(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(l=!0)):a=o),r<1||r>Be(n,o,i)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=ze(n,r,a,o,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=Mt(e._a[0],r[0]),(e._dayOfYear>Ce(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=He(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?He:Pe).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function Lt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,o,i,s,l=""+e._i,c=l.length,u=0;for(r=A(e._f,e._locale).match(C)||[],t=0;t<r.length;t++)o=r[t],(n=(l.match(he(o,e))||[])[0])&&((i=l.substr(0,l.indexOf(n))).length>0&&h(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),u+=n.length),H[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),Me(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=c-u,l.length>0&&h(e).unusedInput.push(l),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),vt(e),ct(e)}else kt(e);else bt(e)}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new M(ct(t)):(d(t)?e._d=t:o(n)?function(e){var t,n,r,a,o,i,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)o=0,i=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Lt(t),g(t)&&(i=!0),o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||i)&&(r=o,n=t,i&&(s=!0));p(e,n||t)}(e):n?Lt(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(bt(e),!1===e._isValid&&(delete e._isValid,kt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=m(t.slice(0),(function(e){return parseInt(e,10)})),vt(e)):i(t)?function(e){if(!e._d){var t=W(e._i),n=void 0===t.day?t.date:t.day;e._a=m([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),vt(e)}}(e):u(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Yt(e,t,n,r,a){var s,c={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=r,(s=new M(ct(wt(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Tt(e,t,n,r){return Yt(e,t,n,r,!1)}a.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Dt=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()})),Rt=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:f()}));function St(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var xt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Et(e){var t=W(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(s(e,t)&&(-1===fe.call(xt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<xt.length;++n)if(e[xt[n]]){if(r)return!1;parseFloat(e[xt[n]])!==G(e[xt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=lt(),this._bubble()}function Ct(e){return e instanceof Et}function jt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){O(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+E(~~(e/60),2)+t+E(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),_e("Z",me),_e("ZZ",me),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ot(me,e)}));var Ht=/([\+\-]|\d\d)/gi;function Ot(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(Ht)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?r:-r}function zt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(v(e)||d(e)?e.valueOf():Tt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Tt(e).local()}function At(e){return-Math.round(e._d.getTimezoneOffset())}function Bt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Nt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ft=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wt(e,t){var n,r,a,o,i,l,c=e,d=null;return Ct(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Nt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:G(d[2])*n,h:G(d[3])*n,m:G(d[4])*n,s:G(d[5])*n,ms:G(jt(1e3*d[6]))*n}):(d=Ft.exec(e))?(n="-"===d[1]?-1:1,c={y:It(d[2],n),M:It(d[3],n),w:It(d[4],n),d:It(d[5],n),h:It(d[6],n),m:It(d[7],n),s:It(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=Tt(c.from),i=Tt(c.to),a=o.isValid()&&i.isValid()?(i=zt(i,o),o.isBefore(i)?l=Ut(o,i):((l=Ut(i,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=a.milliseconds,c.M=a.months),r=new Et(c),Ct(e)&&s(e,"_locale")&&(r._locale=e._locale),Ct(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function It(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Jt(this,Wt(n,r),e),this}}function Jt(e,t,n,r){var o=t._milliseconds,i=jt(t._days),s=jt(t._months);e.isValid()&&(r=null==r||r,s&&Se(e,$(e,"Month")+s*n),i&&K(e,"Date",$(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&a.updateOffset(e,i||s))}Wt.fn=Et.prototype,Wt.invalid=function(){return Wt(NaN)};var Gt=Vt(1,"add"),qt=Vt(-1,"subtract");function $t(e){return"string"==typeof e||e instanceof String}function Kt(e){return v(e)||d(e)||$t(e)||u(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&$t(e)})).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!l(e),a=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],a=a||s(e,n);return r&&a}(e)||null==e}function Zt(e){var t,n=i(e)&&!l(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)r=r||s(e,a[t]);return n&&r}function Qt(e,t){if(e.date()<t.date())return-Qt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],a=[],o=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(ge(i[e].name)),n.push(ge(i[e].abbr)),a.push(ge(i[e].narrow)),o.push(ge(i[e].name)),o.push(ge(i[e].abbr)),o.push(ge(i[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function ln(e,t){O(0,[e,e.length],0,t)}function cn(e,t,n,r,a){var o;return null==e?Ae(this,r,a).year:(t>(o=Be(e,r,a))&&(t=o),un.call(this,e,t,n,r,a))}function un(e,t,n,r,a){var o=ze(e,t,n,r,a),i=He(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),_e("N",on),_e("NN",on),_e("NNN",on),_e("NNNN",(function(e,t){return t.erasNameRegex(e)})),_e("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?h(n).era=a:h(n).invalidEra=e})),_e("y",ce),_e("yy",ce),_e("yyy",ce),_e("yyyy",ce),_e("yo",(function(e,t){return t._eraYearOrdinalRegex||ce})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),O(0,["gg",2],0,(function(){return this.weekYear()%100})),O(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),_e("G",ue),_e("g",ue),_e("GG",re,X),_e("gg",re,X),_e("GGGG",se,te),_e("gggg",se,te),_e("GGGGG",le,ne),_e("ggggg",le,ne),ke(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=G(e)})),ke(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),O("Q",0,"Qo","quarter"),N("quarter","Q"),U("quarter",7),_e("Q",Q),ye("Q",(function(e,t){t[1]=3*(G(e)-1)})),O("D",["DD",2],"Do","date"),N("date","D"),U("date",9),_e("D",re),_e("DD",re,X),_e("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=G(e.match(re)[0])}));var dn=q("Date",!0);O("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),U("dayOfYear",4),_e("DDD",ie),_e("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),O("m",["mm",2],0,"minute"),N("minute","m"),U("minute",14),_e("m",re),_e("mm",re,X),ye(["m","mm"],4);var mn=q("Minutes",!1);O("s",["ss",2],0,"second"),N("second","s"),U("second",15),_e("s",re),_e("ss",re,X),ye(["s","ss"],5);var pn,_n,hn=q("Seconds",!1);for(O("S",0,0,(function(){return~~(this.millisecond()/100)})),O(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),O(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),O(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),O(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),O(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),O(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),U("millisecond",16),_e("S",ie,Q),_e("SS",ie,X),_e("SSS",ie,ee),pn="SSSS";pn.length<=9;pn+="S")_e(pn,ce);function gn(e,t){t[6]=G(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ye(pn,gn);_n=q("Milliseconds",!1),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName");var fn=M.prototype;function bn(e){return e}fn.add=Gt,fn.calendar=function(e,t){1===arguments.length&&(Kt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0));var n=e||Tt(),r=zt(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(R(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Tt(n)))},fn.clone=function(){return new M(this)},fn.diff=function(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=F(t)){case"year":o=Qt(this,r)/12;break;case"month":o=Qt(this,r);break;case"quarter":o=Qt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:J(o)},fn.endOf=function(e){var t,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},fn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Tt(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(Tt(),e)},fn.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Tt(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(Tt(),e)},fn.get=function(e){return R(this[e=F(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=v(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},fn.isBefore=function(e,t){var n=v(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},fn.isBetween=function(e,t,n,r){var a=v(e)?e:Tt(e),o=v(t)?t:Tt(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},fn.isSame=function(e,t){var n,r=v(e)?e:Tt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},fn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},fn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},fn.isValid=function(){return g(this)},fn.lang=en,fn.locale=Xt,fn.localeData=tn,fn.max=Rt,fn.min=Dt,fn.parsingFlags=function(){return p({},h(this))},fn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:I[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=W(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(R(this[e=F(e)]))return this[e](t);return this},fn.startOf=function(e){var t,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),a.updateOffset(this,!0),this},fn.subtract=qt,fn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},fn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},fn.toDate=function(){return new Date(this.valueOf())},fn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(fn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},fn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},fn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},fn.eraYear=function(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-a(o[e].since).year())*n+o[e].offset;return this.year()},fn.year=je,fn.isLeapYear=function(){return V(this.year())},fn.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=xe,fn.daysInMonth=function(){return ve(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=Ae(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},fn.weeksInWeekYear=function(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Be(this.year(),1,4)},fn.isoWeeksInISOWeekYear=function(){return Be(this.isoWeekYear(),1,4)},fn.date=dn,fn.day=fn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},fn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},fn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},fn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},fn.hour=fn.hours=Xe,fn.minute=fn.minutes=mn,fn.second=fn.seconds=hn,fn.millisecond=fn.milliseconds=_n,fn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ot(me,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=At(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Jt(this,Wt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:At(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(At(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ot(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Bt,fn.isUTC=Bt,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=w("dates accessor is deprecated. Use date instead.",dn),fn.months=w("months accessor is deprecated. Use month instead",xe),fn.years=w("years accessor is deprecated. Use year instead",je),fn.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),fn.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),(t=wt(t))._a?(e=t._isUTC?_(t._a):Tt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&G(e[r])!==G(t[r]))&&i++;return i+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=x.prototype;function kn(e,t,n,r){var a=lt(),o=_().set(r,t);return a[n](o,e)}function Mn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return kn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=kn(e,r,n,"month");return a}function vn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,o=lt(),i=e?o._week.dow:0,s=[];if(null!=n)return kn(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=kn(t,(a+i)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return R(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(C).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=bn,yn.postformat=bn,yn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return R(a)?a(e,t,n,r):a.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return R(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(R(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,r,o,i=this._eras||lt("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=a(i[n].since).startOf("day"),i[n].since=o.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=a(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf()}}return i},yn.erasParse=function(e,t,n){var r,a,o,i,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(o=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([o,i,s].indexOf(e)>=0)return l[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ye).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ye.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,a,o;if(this._monthsParseExact)return Re.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=_([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ee.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ee.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ae(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ne(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Ge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=_([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=w("moment.lang is deprecated. Use moment.locale instead.",it),a.langData=w("moment.langData is deprecated. Use moment.localeData instead.",lt);var Ln=Math.abs;function wn(e,t,n,r){var a=Wt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Yn(e){return e<0?Math.floor(e):Math.ceil(e)}function Tn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var Sn=Rn("ms"),xn=Rn("s"),En=Rn("m"),Cn=Rn("h"),jn=Rn("d"),Pn=Rn("w"),Hn=Rn("M"),On=Rn("Q"),zn=Rn("y");function An(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bn=An("milliseconds"),Nn=An("seconds"),Fn=An("minutes"),Wn=An("hours"),In=An("days"),Un=An("months"),Vn=An("years"),Jn=Math.round,Gn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qn(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}var $n=Math.abs;function Kn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,i,s,l=$n(this._milliseconds)/1e3,c=$n(this._days),u=$n(this._months),d=this.asSeconds();return d?(e=J(l/60),t=J(e/60),l%=60,e%=60,n=J(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",o=Kn(this._months)!==Kn(d)?"-":"",i=Kn(this._days)!==Kn(d)?"-":"",s=Kn(this._milliseconds)!==Kn(d)?"-":"",a+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?i+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Qn=Et.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=Ln(this._milliseconds),this._days=Ln(this._days),this._months=Ln(this._months),e.milliseconds=Ln(e.milliseconds),e.seconds=Ln(e.seconds),e.minutes=Ln(e.minutes),e.hours=Ln(e.hours),e.months=Ln(e.months),e.years=Ln(e.years),this},Qn.add=function(e,t){return wn(this,e,t,1)},Qn.subtract=function(e,t){return wn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Tn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=Sn,Qn.asSeconds=xn,Qn.asMinutes=En,Qn.asHours=Cn,Qn.asDays=jn,Qn.asWeeks=Pn,Qn.asMonths=Hn,Qn.asQuarters=On,Qn.asYears=zn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Qn._bubble=function(){var e,t,n,r,a,o=this._milliseconds,i=this._days,s=this._months,l=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*Yn(Dn(s)+i),i=0,s=0),l.milliseconds=o%1e3,e=J(o/1e3),l.seconds=e%60,t=J(e/60),l.minutes=t%60,n=J(t/60),l.hours=n%24,i+=J(n/24),a=J(Tn(i)),s+=a,i-=Yn(Dn(a)),r=J(s/12),s%=12,l.days=i,l.months=s,l.years=r,this},Qn.clone=function(){return Wt(this)},Qn.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=Bn,Qn.seconds=Nn,Qn.minutes=Fn,Qn.hours=Wn,Qn.days=In,Qn.weeks=function(){return J(this.days()/7)},Qn.months=Un,Qn.years=Vn,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=Gn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(o=Object.assign({},Gn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var a=Wt(e).abs(),o=Jn(a.as("s")),i=Jn(a.as("m")),s=Jn(a.as("h")),l=Jn(a.as("d")),c=Jn(a.as("M")),u=Jn(a.as("w")),d=Jn(a.as("y")),m=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(m=m||u<=1&&["w"]||u<n.w&&["ww",u]),(m=m||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,m[3]=+e>0,m[4]=r,qn.apply(null,m)}(this,!a,o,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},Qn.toISOString=Zn,Qn.toString=Zn,Qn.toJSON=Zn,Qn.locale=Xt,Qn.localeData=tn,Qn.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Qn.lang=en,O("X",0,0,"unix"),O("x",0,0,"valueOf"),_e("x",ue),_e("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(G(e))})),
|
7 |
//! moment.js
|
8 |
+
a.version="2.26.0",t=Tt,a.fn=fn,a.min=function(){var e=[].slice.call(arguments,0);return St("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return St("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=_,a.unix=function(e){return Tt(1e3*e)},a.months=function(e,t){return Mn(e,t,"months")},a.isDate=d,a.locale=it,a.invalid=f,a.duration=Wt,a.isMoment=v,a.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},a.parseZone=function(){return Tt.apply(null,arguments).parseZone()},a.localeData=lt,a.isDuration=Ct,a.monthsShort=function(e,t){return Mn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},a.defineLocale=st,a.updateLocale=function(e,t){if(null!=t){var n,r,a=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(S(tt[e]._config,t)):(null!=(r=ot(e))&&(a=r._config),t=S(a,t),null==r&&(t.abbr=e),(n=new x(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},a.locales=function(){return Y(tt)},a.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},a.normalizeUnits=F,a.relativeTimeRounding=function(e){return void 0===e?Jn:"function"==typeof e&&(Jn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Gn[e]&&(void 0===t?Gn[e]:(Gn[e]=t,"s"===e&&(Gn.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=fn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(35)(e))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t){function n(){return e.exports=n=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},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";e.exports=n(201)},function(e,t,n){var r=n(178),a=n(207),o=n(284),i=n(13);e.exports=function(e,t){return(i(e)?r:o)(e,a(t,3))}},function(e,t,n){var r=n(182),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(203),a=n(204),o=n(44),i=n(205);e.exports=function(e,t){return r(e)||a(e,t)||o(e,t)||i()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t,n,r){var a,o=null==(a=r)||"number"==typeof a||"boolean"==typeof a?r:n(r),i=t.get(o);return void 0===i&&(i=e.call(this,r),t.set(o,i)),i}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),o=t.get(a);return void 0===o&&(o=e.apply(this,r),t.set(a,o)),o}function a(e,t,n,r,a){return n.bind(t,e,r,a)}function o(e,t){return a(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function i(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new s}};e.exports=function(e,t){var n=t&&t.cache?t.cache:l,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:o)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return a(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,n,t.cache.create(),t.serializer)}}},function(e,t,n){e.exports=n(299)},function(e,t,n){var r=n(220),a=n(226);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},function(e,t){e.exports=lodash},function(e,t,n){var r=n(23),a=n(222),o=n(223),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?a(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(210),a=n(211),o=n(212),i=n(213),s=n(214);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(180);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(12).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(235);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(19),a=n(20);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(27);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(193);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},function(e,t,n){e.exports=function(e,t){var n,r,a=0;function o(){var o,i,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(o=new Array(l),i=0;i<l;i++)o[i]=arguments[i];return s={args:o,val:e.apply(null,o)},n?(n.prev=s,s.next=n):r=s,a===t.maxSize?(r=r.prev).next=null:a++,n=s,s.val}return t=t||{},o.clear=function(){n=null,r=null,a=0},o}},function(e,t,n){var r=n(186),a=n(290),o=n(291),i=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=i(e,4294967295);t=a(t),e-=4294967295;for(var l=r(s,t);++n<e;)t(n);return l}},function(e,t,n){var r=n(296),a=n(297),o=n(44),i=n(298);e.exports=function(e){return r(e)||a(e)||o(e)||i()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var o=e[t];o&&(a[r++]=o)}return a}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,l,"next",e)}function l(e){n(i,a,o,s,l,"throw",e)}s(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(17)(n(12),"Map");e.exports=r},function(e,t,n){var r=n(227),a=n(234),o=n(236),i=n(237),s=n(238);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(256),a=n(262),o=n(40);e.exports=function(e){return o(e)?r(e):a(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(181),a=n(39);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},function(e,t,n){var r=n(13),a=n(27),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(i.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){var r=n(45);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){!function(e){"use strict";
|
9 |
//! moment.js locale configuration
|
10 |
e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(6))},function(e,t,n){!function(e){"use strict";
|
11 |
//! moment.js locale configuration
|
269 |
//! moment.js locale configuration
|
270 |
e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(6))},function(e,t,n){!function(e){"use strict";
|
271 |
//! moment.js locale configuration
|
272 |
+
e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(6))},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},function(e,t,n){var r=n(21),a=n(215),o=n(216),i=n(217),s=n(218),l=n(219);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(19),a=n(24);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(221))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(239),a=n(20);e.exports=function e(t,n,o,i,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:r(t,n,o,i,e,s))}},function(e,t,n){var r=n(240),a=n(243),o=n(244);e.exports=function(e,t,n,i,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var m=l.get(e),p=l.get(t);if(m&&p)return m==t&&p==e;var _=-1,h=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++_<u;){var f=e[_],b=t[_];if(i)var y=c?i(b,f,_,t,e,l):i(f,b,_,e,t,l);if(void 0!==y){if(y)continue;h=!1;break}if(g){if(!a(t,(function(e,t){if(!o(g,t)&&(f===e||s(f,e,n,i,l)))return g.push(t)}))){h=!1;break}}else if(f!==b&&!s(f,b,n,i,l)){h=!1;break}}return l.delete(e),l.delete(t),h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(257),a=n(20),o=Object.prototype,i=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){var r=n(12),a=n(258),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l}).call(this,n(35)(e))},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(259),a=n(260),o=n(261),i=o&&o.isTypedArray,s=i?a(i):r;e.exports=s},function(e,t,n){var r=n(24);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(194),a=n(28);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[a(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(13),a=n(41),o=n(273),i=n(276);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:o(i(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r,a,o,i,s;r=n(199),a=n(43).utf8,o=n(200),i=n(43).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?i.stringToBytes(e):a.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var n=r.bytesToWords(e),l=8*e.length,c=1732584193,u=-271733879,d=-1732584194,m=271733878,p=0;p<n.length;p++)n[p]=16711935&(n[p]<<8|n[p]>>>24)|4278255360&(n[p]<<24|n[p]>>>8);n[l>>>5]|=128<<l%32,n[14+(l+64>>>9<<4)]=l;var _=s._ff,h=s._gg,g=s._hh,f=s._ii;for(p=0;p<n.length;p+=16){var b=c,y=u,k=d,M=m;c=_(c,u,d,m,n[p+0],7,-680876936),m=_(m,c,u,d,n[p+1],12,-389564586),d=_(d,m,c,u,n[p+2],17,606105819),u=_(u,d,m,c,n[p+3],22,-1044525330),c=_(c,u,d,m,n[p+4],7,-176418897),m=_(m,c,u,d,n[p+5],12,1200080426),d=_(d,m,c,u,n[p+6],17,-1473231341),u=_(u,d,m,c,n[p+7],22,-45705983),c=_(c,u,d,m,n[p+8],7,1770035416),m=_(m,c,u,d,n[p+9],12,-1958414417),d=_(d,m,c,u,n[p+10],17,-42063),u=_(u,d,m,c,n[p+11],22,-1990404162),c=_(c,u,d,m,n[p+12],7,1804603682),m=_(m,c,u,d,n[p+13],12,-40341101),d=_(d,m,c,u,n[p+14],17,-1502002290),c=h(c,u=_(u,d,m,c,n[p+15],22,1236535329),d,m,n[p+1],5,-165796510),m=h(m,c,u,d,n[p+6],9,-1069501632),d=h(d,m,c,u,n[p+11],14,643717713),u=h(u,d,m,c,n[p+0],20,-373897302),c=h(c,u,d,m,n[p+5],5,-701558691),m=h(m,c,u,d,n[p+10],9,38016083),d=h(d,m,c,u,n[p+15],14,-660478335),u=h(u,d,m,c,n[p+4],20,-405537848),c=h(c,u,d,m,n[p+9],5,568446438),m=h(m,c,u,d,n[p+14],9,-1019803690),d=h(d,m,c,u,n[p+3],14,-187363961),u=h(u,d,m,c,n[p+8],20,1163531501),c=h(c,u,d,m,n[p+13],5,-1444681467),m=h(m,c,u,d,n[p+2],9,-51403784),d=h(d,m,c,u,n[p+7],14,1735328473),c=g(c,u=h(u,d,m,c,n[p+12],20,-1926607734),d,m,n[p+5],4,-378558),m=g(m,c,u,d,n[p+8],11,-2022574463),d=g(d,m,c,u,n[p+11],16,1839030562),u=g(u,d,m,c,n[p+14],23,-35309556),c=g(c,u,d,m,n[p+1],4,-1530992060),m=g(m,c,u,d,n[p+4],11,1272893353),d=g(d,m,c,u,n[p+7],16,-155497632),u=g(u,d,m,c,n[p+10],23,-1094730640),c=g(c,u,d,m,n[p+13],4,681279174),m=g(m,c,u,d,n[p+0],11,-358537222),d=g(d,m,c,u,n[p+3],16,-722521979),u=g(u,d,m,c,n[p+6],23,76029189),c=g(c,u,d,m,n[p+9],4,-640364487),m=g(m,c,u,d,n[p+12],11,-421815835),d=g(d,m,c,u,n[p+15],16,530742520),c=f(c,u=g(u,d,m,c,n[p+2],23,-995338651),d,m,n[p+0],6,-198630844),m=f(m,c,u,d,n[p+7],10,1126891415),d=f(d,m,c,u,n[p+14],15,-1416354905),u=f(u,d,m,c,n[p+5],21,-57434055),c=f(c,u,d,m,n[p+12],6,1700485571),m=f(m,c,u,d,n[p+3],10,-1894986606),d=f(d,m,c,u,n[p+10],15,-1051523),u=f(u,d,m,c,n[p+1],21,-2054922799),c=f(c,u,d,m,n[p+8],6,1873313359),m=f(m,c,u,d,n[p+15],10,-30611744),d=f(d,m,c,u,n[p+6],15,-1560198380),u=f(u,d,m,c,n[p+13],21,1309151649),c=f(c,u,d,m,n[p+4],6,-145523070),m=f(m,c,u,d,n[p+11],10,-1120210379),d=f(d,m,c,u,n[p+2],15,718787259),u=f(u,d,m,c,n[p+9],21,-343485551),c=c+b>>>0,u=u+y>>>0,d=d+k>>>0,m=m+M>>>0}return r.endian([c,u,d,m])})._ff=function(e,t,n,r,a,o,i){var s=e+(t&n|~t&r)+(a>>>0)+i;return(s<<o|s>>>32-o)+t},s._gg=function(e,t,n,r,a,o,i){var s=e+(t&r|n&~r)+(a>>>0)+i;return(s<<o|s>>>32-o)+t},s._hh=function(e,t,n,r,a,o,i){var s=e+(t^n^r)+(a>>>0)+i;return(s<<o|s>>>32-o)+t},s._ii=function(e,t,n,r,a,o,i){var s=e+(n^(t|~r))+(a>>>0)+i;return(s<<o|s>>>32-o)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?i.bytesToString(n):r.bytesToHex(n)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var a=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?t.push(n.charAt(a>>>6*(3-o)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,a=0;r<e.length;a=++r%4)0!=a&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*a+8)-1)<<2*a|n.indexOf(e.charAt(r))>>>6-2*a);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
|
273 |
/*!
|
274 |
* Determine if an object is a Buffer
|
275 |
*
|
284 |
*
|
285 |
* This source code is licensed under the MIT license found in the
|
286 |
* LICENSE file in the root directory of this source tree.
|
287 |
+
*/var r=n(202),a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,s=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,m=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,_=a?Symbol.for("react.memo"):60115,h=a?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function k(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}function M(){}function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},M.prototype=k.prototype;var L=v.prototype=new M;L.constructor=v,r(L,k.prototype),L.isPureReactComponent=!0;var w={current:null},Y=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function D(e,t,n){var r,a={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)Y.call(t,r)&&!T.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:o,type:e,key:i,ref:s,props:a,_owner:w.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g,x=[];function E(e,t,n,r){if(x.length){var a=x.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=r,a.count=0,a}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function C(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>x.length&&x.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case i:l=!0}}if(l)return r(a,t,""===n?"."+P(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+P(s=t[c],c);l+=e(s,u,r,a)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=e(s=s.value,u=n+P(s,c++),r,a);else if("object"===s)throw r=""+t,Error(f(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function H(e,t){e.func.call(e.context,t,e.count++)}function O(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,r,n,(function(e){return e})):null!=e&&(R(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(S,"$&/")+"/")+n)),r.push(e))}function z(e,t,n,r,a){var o="";null!=n&&(o=(""+n).replace(S,"$&/")+"/"),j(e,O,t=E(t,o,r,a)),C(t)}var A={current:null};function B(){var e=A.current;if(null===e)throw Error(f(321));return e}var N={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return z(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;j(e,H,t=E(null,null,t,n)),C(t)},count:function(e){return j(e,(function(){return null}),null)},toArray:function(e){var t=[];return z(e,t,null,(function(e){return e})),t},only:function(e){if(!R(e))throw Error(f(143));return e}},t.Component=k,t.Fragment=s,t.Profiler=c,t.PureComponent=v,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error(f(267,e));var a=r({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)Y.call(t,u)&&!T.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:o,type:e.type,key:i,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=D,t.createFactory=function(e){var t=D.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:m,render:e}},t.isValidElement=R,t.lazy=function(e){return{$$typeof:h,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:_,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";
|
288 |
/*
|
289 |
object-assign
|
290 |
(c) Sindre Sorhus
|
291 |
@license MIT
|
292 |
+
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=i(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}},e.exports.default=e.exports,e.exports.__esModule=!0},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.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-in":77,"./en-in.js":77,"./en-nz":78,"./en-nz.js":78,"./en-sg":79,"./en-sg.js":79,"./eo":80,"./eo.js":80,"./es":81,"./es-do":82,"./es-do.js":82,"./es-us":83,"./es-us.js":83,"./es.js":81,"./et":84,"./et.js":84,"./eu":85,"./eu.js":85,"./fa":86,"./fa.js":86,"./fi":87,"./fi.js":87,"./fil":88,"./fil.js":88,"./fo":89,"./fo.js":89,"./fr":90,"./fr-ca":91,"./fr-ca.js":91,"./fr-ch":92,"./fr-ch.js":92,"./fr.js":90,"./fy":93,"./fy.js":93,"./ga":94,"./ga.js":94,"./gd":95,"./gd.js":95,"./gl":96,"./gl.js":96,"./gom-deva":97,"./gom-deva.js":97,"./gom-latn":98,"./gom-latn.js":98,"./gu":99,"./gu.js":99,"./he":100,"./he.js":100,"./hi":101,"./hi.js":101,"./hr":102,"./hr.js":102,"./hu":103,"./hu.js":103,"./hy-am":104,"./hy-am.js":104,"./id":105,"./id.js":105,"./is":106,"./is.js":106,"./it":107,"./it-ch":108,"./it-ch.js":108,"./it.js":107,"./ja":109,"./ja.js":109,"./jv":110,"./jv.js":110,"./ka":111,"./ka.js":111,"./kk":112,"./kk.js":112,"./km":113,"./km.js":113,"./kn":114,"./kn.js":114,"./ko":115,"./ko.js":115,"./ku":116,"./ku.js":116,"./ky":117,"./ky.js":117,"./lb":118,"./lb.js":118,"./lo":119,"./lo.js":119,"./lt":120,"./lt.js":120,"./lv":121,"./lv.js":121,"./me":122,"./me.js":122,"./mi":123,"./mi.js":123,"./mk":124,"./mk.js":124,"./ml":125,"./ml.js":125,"./mn":126,"./mn.js":126,"./mr":127,"./mr.js":127,"./ms":128,"./ms-my":129,"./ms-my.js":129,"./ms.js":128,"./mt":130,"./mt.js":130,"./my":131,"./my.js":131,"./nb":132,"./nb.js":132,"./ne":133,"./ne.js":133,"./nl":134,"./nl-be":135,"./nl-be.js":135,"./nl.js":134,"./nn":136,"./nn.js":136,"./oc-lnc":137,"./oc-lnc.js":137,"./pa-in":138,"./pa-in.js":138,"./pl":139,"./pl.js":139,"./pt":140,"./pt-br":141,"./pt-br.js":141,"./pt.js":140,"./ro":142,"./ro.js":142,"./ru":143,"./ru.js":143,"./sd":144,"./sd.js":144,"./se":145,"./se.js":145,"./si":146,"./si.js":146,"./sk":147,"./sk.js":147,"./sl":148,"./sl.js":148,"./sq":149,"./sq.js":149,"./sr":150,"./sr-cyrl":151,"./sr-cyrl.js":151,"./sr.js":150,"./ss":152,"./ss.js":152,"./sv":153,"./sv.js":153,"./sw":154,"./sw.js":154,"./ta":155,"./ta.js":155,"./te":156,"./te.js":156,"./tet":157,"./tet.js":157,"./tg":158,"./tg.js":158,"./th":159,"./th.js":159,"./tl-ph":160,"./tl-ph.js":160,"./tlh":161,"./tlh.js":161,"./tr":162,"./tr.js":162,"./tzl":163,"./tzl.js":163,"./tzm":164,"./tzm-latn":165,"./tzm-latn.js":165,"./tzm.js":164,"./ug-cn":166,"./ug-cn.js":166,"./uk":167,"./uk.js":167,"./ur":168,"./ur.js":168,"./uz":169,"./uz-latn":170,"./uz-latn.js":170,"./uz.js":169,"./vi":171,"./vi.js":171,"./x-pseudo":172,"./x-pseudo.js":172,"./yo":173,"./yo.js":173,"./zh-cn":174,"./zh-cn.js":174,"./zh-hk":175,"./zh-hk.js":175,"./zh-mo":176,"./zh-mo.js":176,"./zh-tw":177,"./zh-tw.js":177};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=206},function(e,t,n){var r=n(208),a=n(272),o=n(195),i=n(13),s=n(281);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?a(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(209),a=n(271),o=n(192);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(179),a=n(184);e.exports=function(e,t,n,o){var i=n.length,s=i,l=!o;if(null==e)return!s;for(e=Object(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],d=e[u],m=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(o)var _=o(d,m,u,e,t,p);if(!(void 0===_?a(m,d,3,o,p):_))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(22),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(22);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(22);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(22);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},function(e,t,n){var r=n(21);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(21),a=n(36),o=n(37);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(181),a=n(224),o=n(24),i=n(183),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(r(e)?m:s).test(i(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(23),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,a=n(225),o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(12)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(228),a=n(21),o=n(36);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}},function(e,t,n){var r=n(229),a=n(230),o=n(231),i=n(232),s=n(233);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(25);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(25),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(25),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},function(e,t,n){var r=n(25);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(26);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(26);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(26);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(26);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},function(e,t,n){var r=n(179),a=n(185),o=n(245),i=n(249),s=n(266),l=n(13),c=n(188),u=n(190),d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,_,h){var g=l(e),f=l(t),b=g?"[object Array]":s(e),y=f?"[object Array]":s(t),k=(b="[object Arguments]"==b?d:b)==d,M=(y="[object Arguments]"==y?d:y)==d,v=b==y;if(v&&c(e)){if(!c(t))return!1;g=!0,k=!1}if(v&&!k)return h||(h=new r),g||u(e)?a(e,t,n,p,_,h):o(e,t,b,n,p,_,h);if(!(1&n)){var L=k&&m.call(e,"__wrapped__"),w=M&&m.call(t,"__wrapped__");if(L||w){var Y=L?e.value():e,T=w?t.value():t;return h||(h=new r),_(Y,T,n,p,h)}}return!!v&&(h||(h=new r),i(e,t,n,p,_,h))}},function(e,t,n){var r=n(37),a=n(241),o=n(242);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=a,i.prototype.has=o,e.exports=i},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(23),a=n(246),o=n(180),i=n(185),s=n(247),l=n(248),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,m){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var _=1&r;if(p||(p=l),e.size!=t.size&&!_)return!1;var h=m.get(e);if(h)return h==t;r|=2,m.set(e,t);var g=i(p(e),p(t),r,c,d,m);return m.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,n){var r=n(12).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(250),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,i,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var m=c[d];if(!(l?m in t:a.call(t,m)))return!1}var p=s.get(e),_=s.get(t);if(p&&_)return p==t&&_==e;var h=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var f=e[m=c[d]],b=t[m];if(o)var y=l?o(b,f,m,t,e,s):o(f,b,m,e,t,s);if(!(void 0===y?f===b||i(f,b,n,o,s):y)){h=!1;break}g||(g="constructor"==m)}if(h&&!g){var k=e.constructor,M=t.constructor;k==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof M&&M instanceof M||(h=!1)}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(251),a=n(253),o=n(38);e.exports=function(e){return r(e,o,a)}},function(e,t,n){var r=n(252),a=n(13);e.exports=function(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},function(e,t,n){var r=n(254),a=n(255),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return o.call(e,t)})))}:a;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(186),a=n(187),o=n(13),i=n(188),s=n(189),l=n(190),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&a(e),d=!n&&!u&&i(e),m=!n&&!u&&!d&&l(e),p=n||u||d||m,_=p?r(e.length,String):[],h=_.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||m&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||_.push(g);return _}},function(e,t,n){var r=n(19),a=n(20);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(19),a=n(39),o=n(20),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(182),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(35)(e))},function(e,t,n){var r=n(263),a=n(264),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(265)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(267),a=n(36),o=n(268),i=n(269),s=n(270),l=n(19),c=n(183),u=c(r),d=c(a),m=c(o),p=c(i),_=c(s),h=l;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||a&&"[object Map]"!=h(new a)||o&&"[object Promise]"!=h(o.resolve())||i&&"[object Set]"!=h(new i)||s&&"[object WeakMap]"!=h(new s))&&(h=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case m:return"[object Promise]";case p:return"[object Set]";case _:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,n){var r=n(17)(n(12),"DataView");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Promise");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Set");e.exports=r},function(e,t,n){var r=n(17)(n(12),"WeakMap");e.exports=r},function(e,t,n){var r=n(191),a=n(38);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var o=t[n],i=e[o];t[n]=[o,i,r(i)]}return t}},function(e,t,n){var r=n(184),a=n(29),o=n(278),i=n(41),s=n(191),l=n(192),c=n(28);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(n){var i=a(n,e);return void 0===i&&i===t?o(n,e):r(t,i,3)}}},function(e,t,n){var r=n(274),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)})),t}));e.exports=i},function(e,t,n){var r=n(275);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(37);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},function(e,t,n){var r=n(277);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(23),a=n(178),o=n(13),i=n(27),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(279),a=n(280);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(194),a=n(187),o=n(13),i=n(189),s=n(39),l=n(28);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var m=l(t[c]);if(!(d=null!=e&&n(e,m)))break;e=e[m]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(m,u)&&(o(e)||a(e))}},function(e,t,n){var r=n(282),a=n(283),o=n(41),i=n(28);e.exports=function(e){return o(e)?r(i(e)):a(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(193);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(285),a=n(40);e.exports=function(e,t){var n=-1,o=a(e)?Array(e.length):[];return r(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}},function(e,t,n){var r=n(286),a=n(289)(r);e.exports=a},function(e,t,n){var r=n(287),a=n(38);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t,n){var r=n(288)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,o=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++a];if(!1===n(o[l],l,o))break}return t}}},function(e,t,n){var r=n(40);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var o=n.length,i=t?o:-1,s=Object(n);(t?i--:++i<o)&&!1!==a(s[i],i,s););return n}}},function(e,t,n){var r=n(195);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(292);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(293);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(294),a=n(24),o=n(27),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(295),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(45);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},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.")},e.exports.default=e.exports,e.exports.__esModule=!0},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 u?t:u,o=Object.create(a.prototype),i=new v(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===c)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 u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.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 c={};function u(){}function d(){}function m(){}var p={};p[a]=function(){return this};var _=Object.getPrototypeOf,h=_&&_(_(L([])));h&&h!==t&&n.call(h,a)&&(p=h);var g=m.prototype=u.prototype=Object.create(p);function f(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 c=l(e[a],e,o);if("throw"!==c.type){var u=c.arg,d=u.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){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.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 c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;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,c):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function k(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,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=m,m.constructor=d,m[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,m):(e.__proto__=m,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},f(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()}))},f(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,v.prototype={constructor:v,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(M),!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,c):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),c},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),M(n),c}},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;M(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),c}},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(9),a=n.n(r),o=n(7),i=n.n(o),s=n(1),l=n.n(s),c=n(2),u=n.n(c),d=n(3),m=n.n(d),p=n(4),_=n.n(p),h=n(0),g=n.n(h),f=n(5),b=n.n(f);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 _()(this,n)}}var k=wp.element.Component,M=wp.hooks.applyFilters,v=function(e){m()(n,e);var t=y(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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 M("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}]),n}(k);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 _()(this,n)}}var w=wp.i18n.__,Y=wp.element.Component,T=wp.blockEditor,D=T.InspectorControls,R=T.PanelColorSettings,S=wp.components,x=S.PanelBody,E=S.RangeControl,C=S.SelectControl,j=function(e){m()(n,e);var t=L(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(D,{key:"inspector"},React.createElement(x,null,React.createElement(v,{id:"gb_testimonial_testimonialFontSize"},React.createElement(E,{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(v,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(C,{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(v,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(R,{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(v,{id:"gb_testimonial_testimonialTextColor"},React.createElement(R,{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}(Y);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 _()(this,n)}}var H=function(e){m()(n,e);var t=P(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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),O={};O.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 z=O;function A(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 B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(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 _()(this,n)}}var F=wp.i18n.__,W=wp.element,I=W.Component,U=W.Fragment,V=wp.blockEditor,J=V.RichText,G=V.AlignmentToolbar,q=V.BlockControls,$=V.MediaUpload,K=wp.components,Z=K.Button,Q=K.Dashicon,X=["image"],ee=function(e){m()(n,e);var t=N(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.testimonialImgID,u=n.testimonialImgAlt,d=n.testimonialTextColor,m=t.setAttributes,p=function(){m({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(q,{key:"controls"},React.createElement(G,{value:s,onChange:function(e){return m({testimonialAlignment:e})}})),React.createElement(j,a()({key:"gb-testimonial-inspector-"+this.props.clientId},B({setAttributes:m},this.props))),React.createElement(H,a()({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(J,{tagName:"div",multiline:"p",placeholder:F("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 m({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 m({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt})},allowed:X,type:"image",value:c,render:function(e){var t=e.open;return React.createElement(U,null,React.createElement(Z,{className:c?"gb-change-image":"gb-add-image",onClick:t},c?React.createElement("img",{className:"gb-testimonial-avatar",src:l,alt:u||null}):z.upload),c&&React.createElement(Z,{className:"gb-remove-image",onClick:p},React.createElement(Q,{icon:"dismiss"})))}}))),React.createElement(J,{tagName:"h2",placeholder:F("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:F("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}(I);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 _()(this,n)}}var ne=wp.element.Component,re=wp.blockEditor.RichText,ae=function(e){m()(n,e);var t=te(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(H,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(328),n(330),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 _()(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,ce=wp.blockEditor,ue=ce.InspectorControls,de=ce.PanelColorSettings,me=wp.components,pe=me.PanelBody,_e=me.RangeControl,he=me.SelectControl,ge=me.TextControl,fe=function(e){m()(n,e);var t=ie(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.pinterest,u=t.google,d=t.youtube,m=t.github,p=t.linkedin,_=t.wordpress,h=t.email,g=t.website,f=t.profileAvatarShape,b=this.props.setAttributes,y=[{value:"square",label:se("Square","genesis-blocks")},{value:"round",label:se("Round","genesis-blocks")}];return React.createElement(ue,{key:"inspector"},React.createElement(pe,null,React.createElement(v,{id:"gb_author_profile_profileFontSize"},React.createElement(_e,{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(v,{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:f,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),React.createElement(v,{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(v,{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(v,{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(v,{id:"gb_author_profile_socialLinks"},React.createElement(pe,{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:c,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),React.createElement(ge,{label:se("Google URL","genesis-blocks"),type:"url",value:u,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:m,onChange:function(t){return e.props.setAttributes({github:t})}}),React.createElement(ge,{label:se("LinkedIn URL","genesis-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),React.createElement(ge,{label:se("WordPress Profile URL","genesis-blocks"),type:"url",value:_,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 _()(this,n)}}var ye=function(e){m()(n,e);var t=be(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Me=wp.i18n.__,ve=function(e){m()(n,e);var t=ke(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Website","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-website-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-website-"+this.props.clientId},Me("Visit Website (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Twitter","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},Me("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Facebook","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},Me("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Instagram","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-instagram-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-instagram-"+this.props.clientId},Me("Visit Instagram account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Pinterest","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},Me("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Google","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-google-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-google-"+this.props.clientId},Me("Visit Google account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("YouTube","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-youtube-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-youtube-"+this.props.clientId},Me("Visit YouTube account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("LinkedIn","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},Me("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Github","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-github-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-github-"+this.props.clientId},Me("Visit GitHub account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("WordPress","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-wordpress-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-wordpress-"+this.props.clientId},Me("Visit WordPress account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M21.469 6.825c.84 1.537 1.318 3.3 1.318 5.175 0 3.979-2.156 7.456-5.363 9.325l3.295-9.527c.615-1.54.82-2.771.82-3.864 0-.405-.026-.78-.07-1.11m-7.981.105c.647-.03 1.232-.105 1.232-.105.582-.075.514-.93-.067-.899 0 0-1.755.135-2.88.135-1.064 0-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885 0 0 .54.061 1.125.09l1.68 4.605-2.37 7.08L5.354 6.9c.649-.03 1.234-.1 1.234-.1.585-.075.516-.93-.065-.896 0 0-1.746.138-2.874.138-.2 0-.438-.008-.69-.015C4.911 3.15 8.235 1.215 12 1.215c2.809 0 5.365 1.072 7.286 2.833-.046-.003-.091-.009-.141-.009-1.06 0-1.812.923-1.812 1.914 0 .89.513 1.643 1.06 2.531.411.72.89 1.643.89 2.977 0 .915-.354 1.994-.821 3.479l-1.075 3.585-3.9-11.61.001.014zM12 22.784c-1.059 0-2.081-.153-3.048-.437l3.237-9.406 3.315 9.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211 12c0-1.564.336-3.05.935-4.39L7.29 21.709C3.694 19.96 1.212 16.271 1.211 12M12 0C5.385 0 0 5.385 0 12s5.385 12 12 12 12-5.385 12-12S18.615 0 12 0"})))),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",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Email","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},Me("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})))))}}]),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 _()(this,n)}}var we=function(e){m()(n,e);var t=Le(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 Ye(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 Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Re=wp.i18n.__,Se=wp.element,xe=Se.Component,Ee=Se.Fragment,Ce=wp.blockEditor,je=Ce.RichText,Pe=Ce.AlignmentToolbar,He=Ce.BlockControls,Oe=Ce.MediaUpload,ze=wp.components,Ae=ze.Button,Be=ze.Dashicon,Ne=["image"],Fe=function(e){m()(n,e);var t=De(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.attributes.clientId&&e.props.attributes.clientId===e.props.clientId||e.props.setAttributes({clientId:e.props.clientId}),e}return u()(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,c=t.profileImgAlt,u=t.profileTextColor,d=e.setAttributes;return[React.createElement(He,{key:"controls"},React.createElement(Pe,{value:i,onChange:function(e){return d({profileAlignment:e})}})),React.createElement(fe,a()({key:"gb-author-profile-inspector-"+this.props.clientId},Te({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(Oe,{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(Ee,null,React.createElement(Ae,{onClick:t},l?React.createElement("img",{className:b()("gb-profile-avatar","gb-change-image","wp-image-"+l),src:s,alt:c}):z.upload),l&&React.createElement(Ae,{className:"gb-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(Be,{icon:"dismiss"})))}}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},React.createElement(je,{tagName:"h2",placeholder:Re("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"gb-profile-name",style:{color:u},onChange:function(e){return d({profileName:e})}}),React.createElement(je,{tagName:"p",placeholder:Re("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-profile-title",style:{color:u},onChange:function(e){return d({profileTitle:e})}}),React.createElement(je,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Re("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(ve,this.props)))]}}]),n}(xe);function We(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Ie=wp.element.Component,Ue=wp.blockEditor.RichText,Ve=function(e){m()(n,e);var t=We(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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&&i&&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(ve,this.props)))}}]),n}(Ie);n(331),n(332);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 _()(this,n)}}var Ge=function(e){m()(n,e);var t=Je(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var $e=wp.i18n.__,Ke=function(e){m()(n,e);var t=qe(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("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"},$e("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}]),n}(wp.element.Component);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 _()(this,n)}}var Qe=function(e){m()(n,e);var t=Ze(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var et=wp.element.Component,tt=wp.blockEditor.RichText,nt={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"}},save:function(e){m()(n,e);var t=Xe(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(Ge,this.props,a&&React.createElement(Qe,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(tt.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(tt.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(tt.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Ke,this.props)))}}]),n}(et)};function rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var at=wp.element.Component,ot=wp.blockEditor.RichText,it=[nt,{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){m()(n,e);var t=rt(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(ot.Content,{tagName:"h2",className:"gb-profile-name",style:{color:o},value:t}),n&&React.createElement(ot.Content,{tagName:"p",className:"gb-profile-title",style:{color:o},value:n}),r&&React.createElement(ot.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(ve,this.props)))}}]),n}(at)}],st=wp.i18n.__;function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-profile-box",{title:st("Profile Box","genesis-blocks"),description:st("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[st("author","genesis-blocks"),st("profile","genesis-blocks"),st("atomic","genesis-blocks"),st("genesis","genesis-blocks")],attributes:{clientId:{type:"string",default:""},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:st("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:st("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:st("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:st("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:st("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:st("Social Links","genesis-blocks")}},edit:function(e){return React.createElement(Fe,a()({},e,{clientId:e.clientId}))},save:function(e){return React.createElement(Ve,a()({},e,{clientId:e.attributes.clientId}))},deprecated:it});var ct=wp.i18n.__,ut=wp.element.Component,dt=wp.blockEditor,mt=dt.PanelColorSettings,pt=dt.InspectorControls,_t=wp.components,ht=_t.PanelBody,gt=_t.RangeControl,ft=_t.SelectControl,bt=function(e){m()(n,e);var t=lt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:null,label:ct("Always Show","genesis-blocks")},{value:"gb-dismissable",label:ct("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(pt,{key:"inspector"},React.createElement(ht,null,React.createElement(v,{id:"gb_notice_noticeFontSize"},React.createElement(gt,{label:ct("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_notice_noticeDismiss"},React.createElement(ft,{label:ct("Notice Display","genesis-blocks"),description:ct("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(v,{id:"gb_notice_colorSettings"},React.createElement(mt,{title:ct("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:ct("Notice Color","genesis-blocks")}]}),React.createElement(mt,{title:ct("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({noticeTitleColor:e})},label:ct("Title Color","genesis-blocks")}]}),React.createElement(mt,{title:ct("Text Color","genesis-blocks"),colorValue:a,initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({noticeTextColor:e})},label:ct("Text Color","genesis-blocks")}]})))}}]),n}(ut),yt=n(196),kt=n.n(yt);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 _()(this,n)}}var vt=function(e){m()(n,e);var t=Mt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,kt()(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 Lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var wt=function(e){m()(n,e);var t=Lt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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),Yt={};Yt.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"})),Yt.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 Tt=Yt;n(333),n(334);function Dt(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 Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 _()(this,n)}}var xt=wp.i18n.__,Et=wp.element.Component,Ct=wp.blocks.registerBlockType,jt=wp.blockEditor,Pt=jt.RichText,Ht=jt.AlignmentToolbar,Ot=jt.BlockControls,zt=function(e){m()(n,e);var t=St(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.setAttributes;return[React.createElement(Ot,{key:"controls"},React.createElement(Ht,{value:o,onChange:function(e){return c({noticeAlignment:e})}})),React.createElement(bt,a()({key:"gb-notice-inspector-"+this.props.clientId},Rt({setAttributes:c},this.props))),React.createElement(vt,a()({key:"gb-notice-noticebox-"+this.props.clientId},this.props),l&&"gb-dismissable"===l&&React.createElement(wt,this.props,Tt.dismiss),React.createElement(Pt,{tagName:"p",placeholder:xt("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:b()("gb-notice-title"),style:{color:s},onChange:function(e){return c({noticeTitle:e})}}),React.createElement(Pt,{tagName:"div",multiline:"p",placeholder:xt("Add notice text…","genesis-blocks"),value:r,className:b()("gb-notice-text"),style:{borderColor:i},onChange:function(e){return c({noticeContent:e})}}))]}}]),n}(Et);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 _()(this,n)}}Ct("genesis-blocks/gb-notice",{title:xt("Notice","genesis-blocks"),description:xt("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[xt("notice","genesis-blocks"),xt("message","genesis-blocks"),xt("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:xt("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:xt("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:xt("Notice Color","genesis-blocks")}},edit:zt,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(vt,e,i&&"gb-dismissable"===i&&React.createElement(wt,e,Tt.dismiss),n&&React.createElement("div",{className:"gb-notice-title",style:{color:o}},React.createElement(Pt.Content,{tagName:"p",value:n})),r&&React.createElement(Pt.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:a},value:r}))}});var Bt=wp.i18n.__,Nt=wp.element.Component,Ft=wp.blockEditor.InspectorControls,Wt=wp.components,It=Wt.RangeControl,Ut=Wt.SelectControl,Vt=Wt.PanelBody,Jt=function(e){m()(n,e);var t=At(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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:Bt("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:Bt("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:Bt("Border","genesis-blocks")}];return React.createElement(Ft,{key:"inspector"},React.createElement(Vt,null,React.createElement(v,{id:"gb_dropcap_dropCapFontSize"},React.createElement(It,{label:Bt("Drop Cap Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),React.createElement(v,{id:"gb_dropcap_dropCapStyle"},React.createElement(Ut,{label:Bt("Drop Cap Style","genesis-blocks"),description:Bt("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}(Nt);function Gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var qt=function(e){m()(n,e);var t=Gt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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(335),n(336);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 _()(this,n)}}var Kt=wp.i18n.__,Zt=wp.element.Component,Qt=wp.blocks.registerBlockType,Xt=wp.blockEditor,en=Xt.RichText,tn=Xt.AlignmentToolbar,nn=Xt.BlockControls,rn=function(e){m()(n,e);var t=$t(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,o=t.dropCapFontSize;return[React.createElement(nn,{key:"controls"},React.createElement(tn,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),React.createElement(Jt,a()({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(qt,a()({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(en,{tagName:"div",multiline:"p",placeholder:Kt("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}(Zt);Qt("genesis-blocks/gb-drop-cap",{title:Kt("Drop Cap","genesis-blocks"),description:Kt("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[Kt("drop cap","genesis-blocks"),Kt("quote","genesis-blocks"),Kt("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:Kt("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:Kt("Drop Cap Style","genesis-blocks")}},edit:rn,save:function(e){var t=e.attributes.dropCapContent;return React.createElement(qt,e,t&&React.createElement(en.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});var an=wp.i18n.__,on=wp.element.Fragment,sn=wp.components,ln=sn.SelectControl,cn=sn.ToggleControl,un=wp.blockEditor.PanelColorSettings;function dn(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,c=e.enableButtonSize,u=e.buttonSize,d=e.onChangeButtonSize,m=void 0===d?function(){}:d,p=e.enableButtonShape,_=e.buttonShape,h=e.onChangeButtonShape,g=void 0===h?function(){}:h,f=e.enableButtonTarget,b=e.buttonTarget,y=e.onChangeButtonTarget,k=void 0===y?function(){}:y,M=[{value:"gb-button-size-small",label:an("Small","genesis-blocks")},{value:"gb-button-size-medium",label:an("Medium","genesis-blocks")},{value:"gb-button-size-large",label:an("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:an("Extra Large","genesis-blocks")}],L=[{value:"gb-button-shape-square",label:an("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:an("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:an("Circular","genesis-blocks")}];return React.createElement(on,null,React.createElement(v,{id:"gb_button_buttonOptions"},!1!==f&&React.createElement(cn,{label:an("Open link in new window","genesis-blocks"),checked:b,onChange:k}),!1!==c&&React.createElement(ln,{selected:u,label:an("Button Size","genesis-blocks"),value:u,options:M.map((function(e){return{value:e.value,label:e.label}})),onChange:m}),!1!==p&&React.createElement(ln,{label:an("Button Shape","genesis-blocks"),value:_,options:L.map((function(e){return{value:e.value,label:e.label}})),onChange:g}),!1!==t&&React.createElement(un,{title:an("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:a,label:an("Button Color","genesis-blocks")}]}),!1!==o&&React.createElement(un,{title:an("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:l,label:an("Button Text Color","genesis-blocks")}]})))}function mn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}wp.i18n.__;var pn=wp.element.Component,_n=wp.blockEditor.InspectorControls,hn=wp.components.PanelBody,gn=function(e){m()(n,e);var t=mn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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(_n,{key:"inspector"},React.createElement(hn,null,React.createElement(dn,{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}(pn);function fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var bn=function(e){m()(n,e);var t=fn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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(337),n(338);function yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var kn=wp.i18n.__,Mn=wp.element.Component,vn=wp.blocks.registerBlockType,Ln=wp.blockEditor,wn=Ln.RichText,Yn=Ln.AlignmentToolbar,Tn=Ln.BlockControls,Dn=Ln.URLInput,Rn=wp.components,Sn=Rn.Button,xn=Rn.Dashicon,En=Rn.Icon,Cn=function(e){m()(n,e);var t=yn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.buttonShape,u=e.isSelected,d=e.setAttributes;return[React.createElement(Tn,{key:"controls"},React.createElement(Yn,{value:o,onChange:function(e){d({buttonAlignment:e})}})),React.createElement(gn,a()({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(bn,a()({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(wn,{tagName:"span",placeholder:kn("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:b()("gb-button",c,l),style:{color:s||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),u&&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(xn,{icon:"admin-links"}),React.createElement(Dn,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),React.createElement(Sn,{label:kn("Apply","genesis-blocks"),type:"submit"},React.createElement(En,{icon:"editor-break"})))]}}]),n}(Mn);function jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}vn("genesis-blocks/gb-button",{title:kn("Button","genesis-blocks"),description:kn("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[kn("button","genesis-blocks"),kn("link","genesis-blocks"),kn("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:kn("Button Options","genesis-blocks")}},edit:Cn,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(bn,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(wn.Content,{value:n})))}});var Pn=wp.i18n.__,Hn=wp.element,On=Hn.Component,zn=Hn.Fragment,An=wp.blockEditor,Bn=An.InspectorControls,Nn=An.PanelColorSettings,Fn=wp.components,Wn=Fn.PanelBody,In=Fn.RangeControl,Un=Fn.ToggleControl,Vn=Fn.SelectControl,Jn=function(e){m()(n,e);var t=jn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=[{value:"gb-divider-solid",label:Pn("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:Pn("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:Pn("Dotted","genesis-blocks")}];return React.createElement(Bn,{key:"inspector"},React.createElement(Wn,null,React.createElement(v,{id:"gb_spacer_spacerHeight"},React.createElement(In,{label:Pn("Spacer Height","genesis-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),React.createElement(v,{id:"gb_spacer_spacerDivider"},React.createElement(Un,{label:Pn("Add Divider","genesis-blocks"),checked:a,onChange:function(){return e.props.setAttributes({spacerDivider:!a})}}))),a?React.createElement(zn,null,React.createElement(Wn,null,React.createElement(v,{id:"gb_spacer_spacerDividerStyle"},React.createElement(Vn,{label:Pn("Divider Style","genesis-blocks"),value:o,options:c.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),React.createElement(v,{id:"gb_spacer_spacerDividerHeight"},React.createElement(In,{label:Pn("Divider Height","genesis-blocks"),value:s||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),React.createElement(v,{id:"gb_spacer_dividerColor"},React.createElement(Nn,{title:Pn("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:Pn("Divider Color","genesis-blocks")}]}))):null)}}]),n}(On);function Gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var qn,$n=function(e){m()(n,e);var t=Gn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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),Kn=n(10),Zn=n.n(Kn),Qn=(qn=function(e,t){return(qn=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}qn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xn=function(){return(Xn=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)},er={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"}},tr=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 Qn(t,e),t.prototype.render=function(){return Kn.createElement("div",{className:this.props.className||"",style:Xn(Xn({position:"absolute",userSelect:"none"},er[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(Kn.PureComponent),nr=n(15),rr=n.n(nr),ar=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)}}(),or=function(){return(or=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)},ir={width:"auto",height:"auto"},sr=rr()((function(e,t,n){return Math.max(Math.min(e,n),t)})),lr=rr()((function(e,t){return Math.round(e/t)*t})),cr=rr()((function(e,t){return new RegExp(e,"i").test(t)})),ur=rr()((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})),dr=rr()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),mr=rr()((function(e){return"auto"===(e=e.toString())||dr(e,"px")||dr(e,"%")||dr(e,"vh")||dr(e,"vw")||dr(e,"vmax")||dr(e,"vmin")?e:e+"px"})),pr=function(e,t,n,r){if(e&&"string"==typeof e){if(dr(e,"%"))return t*(Number(e.replace("%",""))/100);if(dr(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(dr(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},_r=rr()((function(e,t,n,r,a,o,i){return r=pr(r,e.width,t,n),a=pr(a,e.height,t,n),o=pr(o,e.width,t,n),i=pr(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)}})),hr=["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"],gr=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 ar(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||ir},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]&&dr(e.propsSize[t].toString(),"%")){if(dr(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 mr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?mr(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?mr(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,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=i.width,m=i.height,p=c||0,_=u||0;return cr("right",o)&&(d=i.width+(e-i.x)*r/n,l&&(m=(d-_)/this.ratio+p)),cr("left",o)&&(d=i.width-(e-i.x)*r/n,l&&(m=(d-_)/this.ratio+p)),cr("bottom",o)&&(m=i.height+(t-i.y)*r/n,l&&(d=(m-p)*this.ratio+_)),cr("top",o)&&(m=i.height-(t-i.y)*r/n,l&&(d=(m-p)*this.ratio+_)),{newWidth:d,newHeight:m}},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,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,m=i||0,p=s||0;if(o){var _=(u-m)*this.ratio+p,h=(d-m)*this.ratio+p,g=(l-p)/this.ratio+m,f=(c-p)/this.ratio+m,b=Math.max(l,_),y=Math.min(c,h),k=Math.max(u,g),M=Math.min(d,f);e=sr(e,b,y),t=sr(t,k,M)}else e=sr(e,l,c),t=sr(t,u,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:or(or({},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,c=l.direction,u=l.original,d=l.width,m=l.height,p=this.getParentSize(),_=_r(p,this.window.innerWidth,this.window.innerHeight,n,r,a,o);n=_.maxWidth,r=_.maxHeight,a=_.minWidth,o=_.minHeight;var h=this.calculateNewSizeFromDirection(i,s),g=h.newHeight,f=h.newWidth,b=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(f,g,{width:b.maxWidth,height:b.maxHeight},{width:a,height:o});if(f=y.newWidth,g=y.newHeight,this.props.grid){var k=lr(f,this.props.grid[0]),M=lr(g,this.props.grid[1]),v=this.props.snapGap||0;f=0===v||Math.abs(k-f)<=v?k:f,g=0===v||Math.abs(M-g)<=v?M:g}this.props.snap&&this.props.snap.x&&(f=ur(f,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=ur(g,this.props.snap.y,this.props.snapGap));var L={width:f-u.width,height:g-u.height};if(d&&"string"==typeof d)if(dr(d,"%"))f=f/p.width*100+"%";else if(dr(d,"vw")){f=f/this.window.innerWidth*100+"vw"}else if(dr(d,"vh")){f=f/this.window.innerHeight*100+"vh"}if(m&&"string"==typeof m)if(dr(m,"%"))g=g/p.height*100+"%";else if(dr(m,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(dr(m,"vh")){g=g/this.window.innerHeight*100+"vh"}var w={width:this.createSizeForCssProperty(f,"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,c,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:or(or({},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]?Kn.createElement(tr,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:a&&a[t]},s&&s[t]?s[t]:null):null}));return Kn.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!==hr.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=or(or(or({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 Kn.createElement(r,or({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&Kn.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}(Kn.PureComponent);n(339),n(340);function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var br=wp.i18n.__,yr=wp.element.Component,kr=wp.blocks.registerBlockType,Mr=function(e){m()(n,e);var t=fr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(Jn,a()({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement($n,a()({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(gr,{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}(yr);function vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}kr("genesis-blocks/gb-spacer",{title:br("Spacer","genesis-blocks"),description:br("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[br("spacer","genesis-blocks"),br("divider","genesis-blocks"),br("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:br("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:br("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:br("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:br("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:br("Divider Color","genesis-blocks")}},edit:Mr,save:function(e){var t=e.attributes.spacerHeight;return React.createElement($n,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var Lr=wp.i18n.__,wr=wp.element.Component,Yr=wp.blockEditor.InspectorControls,Tr=wp.components,Dr=Tr.PanelBody,Rr=Tr.RangeControl,Sr=Tr.ToggleControl,xr=function(e){m()(n,e);var t=vr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this;return React.createElement(Yr,{key:"inspector"},React.createElement(Dr,null,React.createElement(v,{id:"gb_accordion_accordionFontSize"},React.createElement(Rr,{label:Lr("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(v,{id:"gb_accordion_accordionOpen"},React.createElement(Sr,{label:Lr("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}]),n}(wr);function Er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Cr=function(e){m()(n,e);var t=Er(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Pr=wp.i18n.__,Hr=wp.element.Component,Or=wp.blockEditor,zr=Or.RichText,Ar=Or.AlignmentToolbar,Br=Or.BlockControls,Nr=Or.InnerBlocks,Fr=function(e){m()(n,e);var t=jr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this;return[React.createElement(Br,{key:"controls"},React.createElement(Ar,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),React.createElement(xr,a()({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(Cr,a()({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(zr,{tagName:"p",placeholder:Pr("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(Nr,null)))]}}]),n}(Hr);function Wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Ir=wp.element.Component,Ur=wp.blockEditor,Vr=Ur.RichText,Jr=Ur.InnerBlocks,Gr=function(e){m()(n,e);var t=Wr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement(Cr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Vr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Jr.Content,null))))}}]),n}(Ir);function qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var $r=function(e){m()(n,e);var t=qr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 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 _()(this,n)}}var Zr=wp.element.Component,Qr=wp.blockEditor,Xr=Qr.RichText,ea=Qr.InnerBlocks,ta=function(e){m()(n,e);var t=Kr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement($r,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Xr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(ea.Content,null))))}}]),n}(Zr),na=[{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(ta,e)}}],ra=(n(341),n(342),wp.i18n.__),aa=(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 oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-accordion",{title:ra("Accordion","genesis-blocks"),description:ra("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[ra("accordion","genesis-blocks"),ra("list","genesis-blocks"),ra("genesis","genesis-blocks")],attributes:aa,gb_settings_data:{gb_accordion_accordionFontSize:{title:ra("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:ra("Open by default","genesis-blocks")}},edit:function(e){return React.createElement(Fr,e)},save:function(e){return React.createElement(Gr,e)},deprecated:na});var ia=wp.i18n.__,sa=wp.element.Component,la=wp.blockEditor,ca=la.InspectorControls,ua=la.PanelColorSettings,da=la.MediaUpload,ma=wp.components,pa=ma.Button,_a=ma.Icon,ha=ma.PanelBody,ga=ma.RangeControl,fa=ma.SelectControl,ba=ma.ToggleControl,ya=function(e){m()(n,e);var t=oa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.ctaBackgroundColor,u=t.ctaTextColor,d=t.dimRatio,m=t.imgURL,p=t.imgID,_=this.props.setAttributes,h=[{value:"gb-button-size-small",label:ia("Small")},{value:"gb-button-size-medium",label:ia("Medium")},{value:"gb-button-size-large",label:ia("Large")},{value:"gb-button-size-extralarge",label:ia("Extra Large")}],g=[{value:"gb-button-shape-square",label:ia("Square")},{value:"gb-button-shape-rounded",label:ia("Rounded Square")},{value:"gb-button-shape-circular",label:ia("Circular")}],f=function(){_({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(ca,{key:"inspector"},React.createElement(v,{id:"gb_cta_textOptions"},React.createElement(ha,{title:ia("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(ga,{label:ia("Title Font Size","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),React.createElement(ga,{label:ia("Text Font Size","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),React.createElement(ua,{title:ia("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return _({ctaTextColor:e})},label:ia("Text Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_cta_backgroundOptions"},React.createElement(ha,{title:ia("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,ia("Select a background image:","genesis-blocks")),React.createElement(da,{onSelect:function(e){_({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(pa,{className:"gb-cta-inspector-media",label:ia("Edit image","genesis-blocks"),onClick:t},React.createElement(_a,{icon:"format-image"}),ia("Select Image","genesis-blocks")),m&&!!m.length&&React.createElement(pa,{className:"gb-cta-inspector-media",label:ia("Remove Image","genesis-blocks"),onClick:f},React.createElement(_a,{icon:"dismiss"}),ia("Remove","genesis-blocks")))}}),m&&!!m.length&&React.createElement(ga,{label:ia("Image Opacity","genesis-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),React.createElement(ua,{title:ia("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return _({ctaBackgroundColor:e})},label:ia("Overlay Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_cta_buttonOptions"},React.createElement(ha,{title:ia("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(ba,{label:ia("Open link in new window","genesis-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),React.createElement(fa,{label:ia("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(fa,{label:ia("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(ua,{title:ia("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return _({buttonBackgroundColor:e})},label:ia("Button Color","genesis-blocks")}]}),React.createElement(ua,{title:ia("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return _({buttonTextColor:e})},label:ia("Button Text Color","genesis-blocks")}]}))))}}]),n}(sa);function ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Ma=function(e){m()(n,e);var t=ka(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var La=function(e){m()(n,e);var t=va(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 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 _()(this,n)}}var Ya=function(e){m()(n,e);var t=wa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Da=function(e){m()(n,e);var t=Ta(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 Ra(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 Sa=wp.blockEditor.RichText,xa=[{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,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.titleFontSize,p=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(La,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+m),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:p},value:u})),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(Sa.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,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.ctaTextFontSize,p=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(Ya,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+m),style:{color:p},value:u})),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(Sa.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,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.ctaTextFontSize,p=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(Da,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+m),style:{color:p},value:u})),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(Sa.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?Ra(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function Ea(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(343),n(344);function Ca(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 ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 _()(this,n)}}var Ha=wp.i18n.__,Oa=wp.element.Component,za=wp.blocks.registerBlockType,Aa=wp.blockEditor,Ba=Aa.AlignmentToolbar,Na=Aa.URLInput,Fa=Aa.BlockControls,Wa=Aa.BlockAlignmentToolbar,Ia=Aa.RichText,Ua=wp.components,Va=Ua.Button,Ja=Ua.Dashicon,Ga=Ua.Icon,qa=function(e){m()(n,e);var t=Pa(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.buttonShape,u=t.ctaTitle,d=t.ctaText,m=t.titleFontSize,p=t.ctaTextFontSize,_=t.ctaWidth,h=t.ctaTextColor,g=t.imgURL,f=t.imgAlt,y=t.dimRatio,k=e.isSelected,M=e.setAttributes;return[React.createElement(Fa,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(Wa,{value:_,onChange:function(e){return M({ctaWidth:e})},controls:["center","wide","full"]}),React.createElement(Ba,{value:o,onChange:function(e){M({buttonAlignment:e})}})),React.createElement(ya,a()({key:"gb-cta-inspector-"+this.props.clientId},ja({setAttributes:M},this.props))),React.createElement(Ma,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",$a(y),{"has-background-dim":0!==y}),src:g,alt:f})),React.createElement("div",{className:"gb-cta-content"},React.createElement(Ia,{tagName:"h2",placeholder:Ha("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:u,className:b()("gb-cta-title","gb-font-size-"+m),style:{color:h},onChange:function(e){return M({ctaTitle:e})}}),React.createElement(Ia,{tagName:"div",multiline:"p",placeholder:Ha("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:d,className:b()("gb-cta-text","gb-font-size-"+p),style:{color:h},onChange:function(e){return M({ctaText:e})}})),React.createElement("div",{className:"gb-cta-button"},React.createElement(Ia,{tagName:"span",placeholder:Ha("Button text…","genesis-blocks"),value:n,allowedFormats:[],className:b()("gb-button",c,l),style:{color:s,backgroundColor:i},onChange:function(e){return M({buttonText:e})}}),k&&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(Ja,{icon:"admin-links"}),React.createElement(Na,{className:"button-url",value:r,onChange:function(e){return M({buttonUrl:e})}}),React.createElement(Va,{label:Ha("Apply","genesis-blocks"),type:"submit"},React.createElement(Ga,{icon:"editor-break"})))))]}}]),n}(Oa);function $a(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}za("genesis-blocks/gb-cta",{title:Ha("Call To Action","genesis-blocks"),description:Ha("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[Ha("call to action","genesis-blocks"),Ha("cta","genesis-blocks"),Ha("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:Ha("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:Ha("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:Ha("Button Options","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:qa,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,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.titleFontSize,p=t.ctaTextColor,_=t.imgURL,h=t.imgAlt,g=t.dimRatio;return React.createElement(Ma,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",$a(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Ia.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+m),style:{color:p},value:c}),u&&React.createElement(Ia.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:p},value:u})),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(Ia.Content,{value:n}))))},deprecated:xa});var Za=wp.i18n.__,Qa=wp.element.Component,Xa=wp.blockEditor.InspectorControls,eo=wp.components,to=eo.PanelBody,no=eo.SelectControl,ro=eo.ToggleControl,ao=function(e){m()(n,e);var t=Ka(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:"gb-share-icon-text",label:Za("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:Za("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:Za("Text Only","genesis-blocks")}],n=[{value:"gb-share-shape-square",label:Za("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:Za("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:Za("Circular","genesis-blocks")}],r=[{value:"gb-share-size-small",label:Za("Small","genesis-blocks")},{value:"gb-share-size-medium",label:Za("Medium","genesis-blocks")},{value:"gb-share-size-large",label:Za("Large","genesis-blocks")}],a=[{value:"gb-share-color-standard",label:Za("Standard","genesis-blocks")},{value:"gb-share-color-social",label:Za("Social Colors","genesis-blocks")}];return React.createElement(Xa,{key:"inspector"},React.createElement(v,{id:"gb_sharing_links"},React.createElement(to,null,React.createElement("p",null,Za("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(ro,{label:Za("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),React.createElement(ro,{label:Za("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),React.createElement(ro,{label:Za("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),React.createElement(ro,{label:Za("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),React.createElement(ro,{label:Za("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),React.createElement(ro,{label:Za("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),React.createElement(to,{title:Za("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(v,{id:"gb_sharing_shareButtonStyle"},React.createElement(no,{label:Za("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(v,{id:"gb_sharing_shareButtonShape"},React.createElement(no,{label:Za("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(v,{id:"gb_sharing_shareButtonSize"},React.createElement(no,{label:Za("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(v,{id:"gb_sharing_shareButtonColor"},React.createElement(no,{label:Za("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}(Qa);function oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var io=function(e){m()(n,e);var t=oo(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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 so(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var lo=wp.i18n.__,co=wp.element.Component,uo=wp.blockEditor,mo=uo.AlignmentToolbar,po=uo.BlockControls,_o=function(e){m()(n,e);var t=so(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.attributes.clientId&&e.props.attributes.clientId===e.props.clientId||e.props.setAttributes({clientId:e.props.clientId}),e}return u()(n,[{key:"render",value:function(){var e=this;return[React.createElement(po,{key:"controls"},React.createElement(mo,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),React.createElement(ao,a()({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(io,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("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},lo("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},lo("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},lo("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},lo("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("svg",{"aria-labelledby":"gb-link-reddit-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-reddit-"+this.props.clientId},lo("Share on Reddit","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},lo("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})),React.createElement("span",{className:"gb-social-text"},lo("Share via Email","genesis-blocks"))))))]}}]),n}(co),ho=(n(345),n(346),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-sharing",{title:ho("Sharing","genesis-blocks"),description:ho("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[ho("sharing","genesis-blocks"),ho("social","genesis-blocks"),ho("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:ho("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:ho("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:ho("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:ho("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:ho("Button Color","genesis-blocks")}},edit:function(e){return React.createElement(_o,a()({},e,{clientId:e.clientId}))},save:function(){return null}});var go=n(14),fo=n.n(go),bo=n(6),yo=n.n(bo),ko=n(33),Mo=n.n(ko),vo=n(11),Lo=n.n(vo);function wo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Yo=wp.i18n.__,To=wp.element,Do=To.Component,Ro=(To.Fragment,wp.blockEditor.InspectorControls),So=wp.components,xo=So.PanelBody,Eo=So.QueryControls,Co=So.RangeControl,jo=So.SelectControl,Po=So.TextControl,Ho=So.ToggleControl,Oo=So.FormTokenField,zo=So.Spinner,Ao=wp.url.addQueryArgs,Bo=wp.apiFetch,No=[],Fo=function(e){m()(n,e);var t=wo(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={categoriesList:!1,categoriesTitleToIdRelationships:!1,categoriesIdToTitleRelationships:!1,pagesList:!1,pagesTitleToIdRelationships:!1,pagesIdToTitleRelationships:!1,waitingForApiResponse:!1},e}return u()(n,[{key:"componentDidMount",value:function(){this.stillMounted=!0}},{key:"componentDidUpdate",value:function(){if(this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.categories&&!this.state.categoriesList&&"post"===this.props.attributes.postType&&this.getCategoriesFromServer(!!this.props.attributes.categories&&this.props.attributes.categories,!0),this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.selectedPages.length>0&&!this.state.pagesList&&"page"===this.props.attributes.postType){var e=[];for(var t in this.props.attributes.selectedPages)e.push(this.props.attributes.selectedPages[t].value);this.getPagesFromServer(e||!1,!0)}}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"getCategoriesFromServer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r){if(t.setState({waitingForApiResponse:!0,categoriesList:!1}),!e||0===e.length)return n||t.setState({waitingForApiResponse:!1}),void r();var a={per_page:99,search:e};n&&(a={per_page:99,include:e}),t.fetchRequest=Bo({path:Ao("/wp/v2/categories",a)}).then((function(e){var n=t.state.categoriesTitleToIdRelationships?t.state.categoriesTitleToIdRelationships:{},a=t.state.categoriesIdToTitleRelationships?t.state.categoriesIdToTitleRelationships:{};for(var o in e)n[e[o].name+" ("+e[o].slug+")"]=e[o].id,a[e[o].id]=e[o].name+" ("+e[o].slug+")";t.setState({categoriesList:e,categoriesTitleToIdRelationships:n,categoriesIdToTitleRelationships:a,waitingForApiResponse:!1}),r()})).catch((function(){console.log("category request failure: ".concat(error.message)),t.stillMounted&&(t.setState({categoriesList:[],waitingForApiResponse:!1}),r())}))}))}},{key:"getPagesFromServer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r){if(t.setState({waitingForApiResponse:!0,pagesList:!1}),!e||0===e.length)return n||t.setState({waitingForApiResponse:!1}),void r();var a={per_page:-1,search:e};n&&(a={per_page:-1,include:e}),t.fetchRequest=Bo({path:Ao("/wp/v2/pages",a)}).then((function(e){var n=t.state.pagesTitleToIdRelationships?t.state.pagesTitleToIdRelationships:{},a=t.state.pagesIdToTitleRelationships?t.state.pagesIdToTitleRelationships:{};for(var o in e)n[e[o].title.rendered+" ("+e[o].slug+")"]=e[o].id,a[e[o].id]=e[o].title.rendered+" ("+e[o].slug+")";t.setState({pagesList:e,pagesTitleToIdRelationships:n,pagesIdToTitleRelationships:a,waitingForApiResponse:!1}),r()})).catch((function(){t.stillMounted&&(t.setState({pagesList:[],waitingForApiResponse:!1}),r())}))}))}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/block-editor").getSettings();return Mo()(Lo()(e.imageSizes,(function(e){var t=e.name;return{value:e.slug,label:t}})))}},{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,c=l.categoriesList,u=l.categoriesTitleToIdRelationships,d=l.categoriesIdToTitleRelationships,m=l.pagesList,p=l.pagesTitleToIdRelationships,_=l.pagesIdToTitleRelationships,h=[{value:"post",label:Yo("Post","genesis-blocks")},{value:"page",label:Yo("Page","genesis-blocks")}],g=[{value:"div",label:Yo("div","genesis-blocks")},{value:"header",label:Yo("header","genesis-blocks")},{value:"section",label:Yo("section","genesis-blocks")},{value:"article",label:Yo("article","genesis-blocks")},{value:"main",label:Yo("main","genesis-blocks")},{value:"aside",label:Yo("aside","genesis-blocks")},{value:"footer",label:Yo("footer","genesis-blocks")}],f=[{value:"h2",label:Yo("H2","genesis-blocks")},{value:"h3",label:Yo("H3","genesis-blocks")},{value:"h4",label:Yo("H4","genesis-blocks")},{value:"h5",label:Yo("H5","genesis-blocks")},{value:"h6",label:Yo("H6","genesis-blocks")}],b=Array.isArray(o)&&o.length,y="post"===n.postType,k={value:"selectimage",label:Yo("Select image size","genesis-blocks")},M={value:"gb-block-post-grid-landscape",label:Yo("GB Grid Landscape","genesis-blocks")},L={value:"gb-block-post-grid-square",label:Yo("GB Grid Square","genesis-blocks")},w=this.imageSizeSelect();w.push(L,M),w.unshift(k);return React.createElement(Ro,null,React.createElement(xo,{title:Yo("Post and Page Grid Settings","genesis-blocks"),className:y?null:"genesis-blocks-hide-query"},React.createElement(v,{id:"gb_postgrid_postType"},React.createElement(jo,{label:Yo("Content Type","genesis-blocks"),options:h,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&React.createElement(v,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(Oo,{suggestions:Mo()(Lo()(m,(function(e){var t=e.title,n=e.slug;return t.rendered+" ("+n+")"}))),label:React.createElement(React.Fragment,null,Yo("Enter page names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(zo,null)):null),placeholder:Yo("Start typing page name…","genesis-blocks"),value:function(){if(!e.props.attributes.selectedPages)return[];var t=[];for(var n in e.props.attributes.selectedPages){var r=e.props.attributes.selectedPages[n].value;_[r]&&t.push(_[e.props.attributes.selectedPages[n].value])}return t}(),onInputChange:function(t){var n="getPagesFromServer";No[n]&&(clearTimeout(No[n]),No[n]=null),No[n]=setTimeout((function(){clearTimeout(No[n]),e.getPagesFromServer(t)}),500)},onChange:function(e){var t=[];for(var n in e)t.push({value:p[e[n]]});t||(t=void 0),r({selectedPages:t})}})))),"post"===n.postType&&React.createElement(v,{id:"gb_postgrid_categories"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(Oo,{suggestions:Mo()(Lo()(c,(function(e){return e.name+" ("+e.slug+")"}))),label:React.createElement(React.Fragment,null,Yo("Enter category names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(zo,null)):null),placeholder:Yo("Start typing category name…","genesis-blocks"),value:function(){if(!e.props.attributes.categories)return[];var t=e.props.attributes.categories.split(","),n=[];for(var r in t)d[t[r]]&&n.push(d[t[r]]);return n}(),onInputChange:function(t){var n="getCategoriesFromServer";No[n]&&(clearTimeout(No[n]),No[n]=null),No[n]=setTimeout((function(){clearTimeout(No[n]),e.getCategoriesFromServer(t)}),500)},onChange:function(e){var t="";for(var n in e)u[e[n]]&&(t=t+u[e[n]]+",");(t=t.replace(/,\s*$/,""))||(t=void 0),r({categories:void 0!==t?t:""})}})))),"post"===n.postType&&React.createElement(React.Fragment,null,React.createElement(v,{id:"gb_postgrid_queryControls"},React.createElement(Eo,a()({order:i,orderBy:s},{numberOfItems:n.postsToShow,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})}}))),React.createElement(v,{id:"gb_postgrid_offset"},React.createElement(Co,{label:Yo("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(v,{id:"gb_postgrid_columns"},React.createElement(Co,{label:Yo("Columns","genesis-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:b?Math.min(4,o.length):4}))),React.createElement(xo,{title:Yo("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(v,{id:"gb_postgrid_displaySectionTitle"},React.createElement(Ho,{label:Yo("Display Section Title","genesis-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&React.createElement(v,{id:"gb_postgrid_sectionTitle"},React.createElement(Po,{label:Yo("Section Title","genesis-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),React.createElement(v,{id:"gb_postgrid_displayPostImage"},React.createElement(Ho,{label:Yo("Display Featured Image","genesis-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&React.createElement(v,{id:"gb_postgrid_imageSizeValue"},React.createElement(jo,{label:Yo("Image Size","genesis-blocks"),value:function(){for(var e=0;e<w.length;e++)if(w[e].value===n.imageSize)return n.imageSize;return"full"}(),options:w,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),React.createElement(v,{id:"gb_postgrid_displayPostTitle"},React.createElement(Ho,{label:Yo("Display Title","genesis-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),y&&React.createElement(v,{id:"gb_postgrid_displayPostAuthor"},React.createElement(Ho,{label:Yo("Display Author","genesis-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),y&&React.createElement(v,{id:"gb_postgrid_displayPostDate"},React.createElement(Ho,{label:Yo("Display Date","genesis-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),React.createElement(v,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(Ho,{label:Yo("Display Excerpt","genesis-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&React.createElement(v,{id:"gb_postgrid_excerptLength"},React.createElement(Co,{label:Yo("Excerpt Length","genesis-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),React.createElement(v,{id:"gb_postgrid_displayPostLink"},React.createElement(Ho,{label:Yo("Display Continue Reading Link","genesis-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&React.createElement(v,{id:"gb_postgrid_readMoreText"},React.createElement(Po,{label:Yo("Customize Continue Reading Text","genesis-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),React.createElement(xo,{title:Yo("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(v,{id:"gb_postgrid_sectionTag"},React.createElement(jo,{label:Yo("Post Grid Section Tag","genesis-blocks"),options:g,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:Yo("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),n.sectionTitle&&React.createElement(v,{id:"gb_postgrid_sectionTitleTag"},React.createElement(jo,{label:Yo("Section Title Heading Tag","genesis-blocks"),options:f,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:Yo("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),n.displayPostTitle&&React.createElement(v,{id:"gb_postgrid_postTitleTag"},React.createElement(jo,{label:Yo("Post Title Heading Tag","genesis-blocks"),options:f,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:Yo("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}]),n}(Do),Wo=n(29),Io=n.n(Wo);function Uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Vo=wp.i18n.__,Jo=wp.element,Go=Jo.Fragment,qo=Jo.Component,$o=wp.components,Ko=$o.Placeholder,Zo=$o.Dashicon,Qo=function(e){m()(n,e);var t=Uo(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},r}return u()(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 Io()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return Io()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return React.createElement(Go,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(Go,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(Zo,{icon:"warning"})),React.createElement(Ko,{className:"gb-post-grid-no-image-placeholder"},React.createElement(Zo,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},Vo("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":Vo("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"},Vo("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}]),n}(qo);function Xo(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 ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ti=wp.element,ni=ti.useState,ri=ti.useEffect,ai=wp.i18n.__,oi=wp.htmlEntities.decodeEntities,ii=wp.components,si=ii.Placeholder,li=ii.Spinner,ci=ii.ToolbarGroup,ui=wp.blockEditor,di=ui.BlockAlignmentToolbar,mi=ui.BlockControls,pi=wp.apiFetch,_i=wp.url.addQueryArgs,hi=[];n(347),n(348);var gi=wp.i18n.__;function fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-post-grid",{title:gi("Post and Page Grid","genesis-blocks"),description:gi("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[gi("post","genesis-blocks"),gi("page","genesis-blocks"),gi("grid","genesis-blocks"),gi("atomic","genesis-blocks")],edit:function(e){var t,n=ni(),r=fo()(n,2),o=r[0],s=r[1],l=ni(e),c=fo()(l,2),u=c[0],d=c[1],m=e.attributes,p=e.setAttributes;if(e.attributes.postType!==u.postType||e.attributes.selectedPages!==u.selectedPages||e.attributes.categories!==u.categories||e.attributes.order!==u.order||e.attributes.orderby!==u.orderby||e.attributes.offset!==u.offset||e.attributes.postsToShow!==u.postsToShow){var _="handleUpdateAttributes";hi[_]&&(clearTimeout(hi[_]),hi[_]=null),hi[_]=setTimeout((function(){clearTimeout(hi[_]),d(e.attributes)}),500)}ri((function(){s(null)}),[u]),ri((function(){o||("post"===e.attributes.postType&&new Promise((function(t){var n={order:e.attributes.order,orderby:e.attributes.orderBy,per_page:e.attributes.postsToShow,offset:e.attributes.offset};if(wp.data.select("core/editor")){var r=wp.data.select("core/editor").getCurrentPostId();r&&(n.exclude=[r])}e.attributes.categories&&(n.categories=e.attributes.categories),pi({path:_i("/wp/v2/posts",n)}).then((function(e){s(e),t()})).catch((function(e){console.log(e)}))})),"page"===e.attributes.postType&&new Promise((function(t){var n=e.attributes.selectedPages&&e.attributes.selectedPages.length>0?e.attributes.selectedPages.map((function(e){return e.value})):null,r={per_page:6},a=wp.data.select("core/editor").getCurrentPostId();a&&(r.exclude=[a]),n&&(delete r.per_page,r.include=n,r.orderby="include"),pi({path:_i("/wp/v2/pages",r)}).then((function(e){s(e),t()})).catch((function(e){console.log(e)}))})))}),[o]);var h=Array.isArray(o)&&o.length,g="post"===m.postType;if(!h)return React.createElement(React.Fragment,null,React.createElement(Fo,ei({setAttributes:p},e)),React.createElement(si,{icon:"admin-post",label:ai("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(o)?ai("No posts found.","genesis-blocks"):React.createElement(li,null)));var f=[{icon:"grid-view",title:ai("Grid View","genesis-blocks"),onClick:function(){return p({postLayout:"grid"})},isActive:"grid"===m.postLayout},{icon:"list-view",title:ai("List View","genesis-blocks"),onClick:function(){return p({postLayout:"list"})},isActive:"list"===m.postLayout}],y=m.sectionTag?m.sectionTag:"section",k=m.sectionTitleTag?m.sectionTitleTag:"h2",M=m.postTitleTag?m.postTitleTag:"h3";return React.createElement(React.Fragment,null,React.createElement(Fo,ei({setAttributes:p},e)),React.createElement(mi,null,React.createElement(di,{value:m.align,onChange:function(e){p({align:e})},controls:["center","wide","full"]}),React.createElement(ci,{controls:f})),React.createElement(y,{className:b()(e.className,"gb-block-post-grid")},m.displaySectionTitle&&m.sectionTitle&&React.createElement(k,{className:"gb-post-grid-section-title"},m.sectionTitle),React.createElement("div",{className:b()((t={"is-grid":"grid"===m.postLayout,"is-list":"list"===m.postLayout},i()(t,"columns-".concat(m.columns),"grid"===m.postLayout),i()(t,"gb-post-grid-items","gb-post-grid-items"),t))},o.map((function(t,n){return React.createElement("article",{key:n,id:"post-"+t.id,className:b()("post-"+t.id,t.featured_image_src&&m.displayPostImage?"has-post-thumbnail":null)},m.displayPostImage&&t.featured_media?React.createElement(Qo,a()({},e,{imgAlt:oi(t.title.rendered.trim())||ai("(Untitled)","genesis-blocks"),imgClass:"wp-image-".concat(t.featured_media.toString()),imgID:t.featured_media.toString(),imgSize:m.imageSize,imgSizeLandscape:t.featured_image_src,imgSizeSquare:t.featured_image_src_square,imgLink:t.link})):null,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},m.displayPostTitle&&React.createElement(M,{className:"gb-block-post-grid-title"},React.createElement("a",{href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},oi(t.title.rendered.trim())||ai("(Untitled)","genesis-blocks"))),g&&t.author_info&&t.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-byline"},m.displayPostAuthor&&t.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:t.author_info.author_link},t.author_info.display_name)),m.displayPostDate&&t.date_gmt&&React.createElement("time",{dateTime:yo()(t.date_gmt).utc().format(),className:"gb-block-post-grid-date"},yo()(t.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},m.displayPostExcerpt&&t.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(r=t.excerpt.rendered,o=m.excerptLength,r.split(" ").splice(0,o).join(" "))}}),m.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},m.readMoreText)))));var r,o})))))},gb_settings_data:{gb_postgrid_postType:{title:gi("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:gi("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:gi("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:gi("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:gi("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:gi("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:gi("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:gi("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:gi("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:gi("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:gi("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:gi("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:gi("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:gi("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:gi("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:gi("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:gi("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:gi("Post Title Heading Tag","genesis-blocks")}},save:function(){return null}});var bi=wp.i18n.__,yi=wp.element.Component,ki=wp.blockEditor,Mi=ki.InspectorControls,vi=ki.PanelColorSettings,Li=ki.MediaUpload,wi=wp.components,Yi=wi.Button,Ti=wi.Icon,Di=wi.PanelBody,Ri=wi.RangeControl,Si=function(e){m()(n,e);var t=fi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.containerBackgroundColor,u=t.containerDimRatio,d=t.containerImgURL,m=t.containerImgID,p=this.props.setAttributes,_=function(){p({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Mi,{key:"inspector"},React.createElement(v,{id:"gb_container_containerOptions"},React.createElement(Di,{title:bi("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(Ri,{label:bi("Padding Top (%)","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Bottom (%)","genesis-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Left (%)","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Right (%)","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Margin Top (%)","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),React.createElement(Ri,{label:bi("Margin Bottom (%)","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("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(v,{id:"gb_container_backgroundOptions"},React.createElement(Di,{title:bi("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,bi("Select a background image:","genesis-blocks")),React.createElement(Li,{onSelect:function(e){p({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:m,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Yi,{className:"gb-container-inspector-media",label:bi("Edit image","genesis-blocks"),onClick:t},React.createElement(Ti,{icon:"format-image"}),bi("Select Image","genesis-blocks")),d&&!!d.length&&React.createElement(Yi,{className:"gb-container-inspector-media",label:bi("Remove Image","genesis-blocks"),onClick:_},React.createElement(Ti,{icon:"dismiss"}),bi("Remove","genesis-blocks")))}}),d&&!!d.length&&React.createElement(Ri,{label:bi("Image Opacity","genesis-blocks"),value:u,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),React.createElement(vi,{title:bi("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,label:bi("Background Color","genesis-blocks"),onChange:function(e){return p({containerBackgroundColor:e})}}]}))))}}]),n}(yi);function xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ei=function(e){m()(n,e);var t=xi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.containerMarginTop,u=t.containerMarginBottom,d=t.containerWidth,m=t.containerMaxWidth,p=t.containerImgURL,_=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:c?"".concat(c,"%"):void 0,marginBottom:u?"".concat(u,"%"):void 0},f=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:f||void 0},React.createElement("div",{className:"gb-container-inside"},p&&!!p.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:p,alt:_})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:m?"".concat(m,"px"):void 0}},this.props.children)))}}]),n}(wp.element.Component);function Ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var ji=function(e){m()(n,e);var t=Ci(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.containerMarginBottom,u=e.containerWidth,d=(e.containerMaxWidth,b()([this.props.className,"gb-block-container"],i()({},"align"+u,u)));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(c,"%")},className:d||void 0},this.props.children)}}]),n}(wp.element.Component);function Pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Hi=function(e){m()(n,e);var t=Pi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.containerMarginTop,u=t.containerMarginBottom,d=t.containerWidth,m=t.containerMaxWidth,p=t.containerImgURL,_=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:c?"".concat(c,"%"):void 0,marginBottom:u?"".concat(u,"%"):void 0},f=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:f||void 0},React.createElement("div",{className:"gb-container-inside"},p&&!!p.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:p,alt:_})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(m,"px")}},this.props.children)))}}]),n}(wp.element.Component);var Oi=wp.blockEditor.InnerBlocks;var zi=[{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(Hi,e,React.createElement(Oi.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(ji,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(Oi.Content,null))))}}];n(349),n(350);function Ai(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 Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Fi=wp.i18n.__,Wi=wp.element.Component,Ii=wp.blocks.registerBlockType,Ui=wp.blockEditor.InnerBlocks,Vi=function(e){m()(n,e);var t=Ni(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.setAttributes;return[React.createElement(Si,a()({key:"gb-container-inspector-"+this.props.clientId},Bi({setAttributes:e},this.props))),React.createElement(Ei,a()({key:"gb-container-"+this.props.clientId},this.props),React.createElement(Ui,null))]}}]),n}(Wi);function Ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}Ii("genesis-blocks/gb-container",{title:Fi("Container","genesis-blocks"),description:Fi("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[Fi("container","genesis-blocks"),Fi("section","genesis-blocks"),Fi("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:Fi("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:Fi("Background Options","genesis-blocks")}},edit:Vi,save:function(e){return React.createElement(Ei,e,React.createElement(Ui.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:zi});var Gi=wp.i18n.__,qi=wp.element.Component,$i=wp.blockEditor.InspectorControls,Ki=wp.components,Zi=Ki.PanelBody,Qi=Ki.RangeControl,Xi=function(e){m()(n,e);var t=Ji(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return React.createElement($i,{key:"inspector"},React.createElement(Zi,null,React.createElement(v,{id:"gb_pricing_columns"},React.createElement(Qi,{label:Gi("Pricing Columns","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),React.createElement(v,{id:"gb_pricing_columnsGap"},React.createElement(Qi,{label:Gi("Pricing Columns Gap","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}]),n}(qi);function es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var ts=function(e){m()(n,e);var t=es(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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),ns=n(30),rs=n.n(ns),as=n(31),os=n.n(as);function is(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 ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var cs=wp.i18n.__,us=wp.element.Component,ds=wp.blocks.registerBlockType,ms=wp.blockEditor,ps=ms.BlockControls,_s=ms.BlockAlignmentToolbar,hs=ms.InnerBlocks,gs=wp.data.dispatch,fs=["genesis-blocks/gb-pricing-table"],bs=rs()((function(e){return os()(e,(function(){return["genesis-blocks/gb-pricing-table"]}))})),ys=function(e){m()(n,e);var t=ls(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&gs("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(ps,{key:"controls"},React.createElement(_s,{value:o,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),React.createElement(Xi,a()({key:"gb-pricing-table-inspector-"+this.props.clientId},ss({setAttributes:i},this.props))),React.createElement(ts,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(hs,{template:bs(n),templateLock:"all",allowedBlocks:fs})))]}}]),n}(us);function ks(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}ds("genesis-blocks/gb-pricing",{title:cs("Pricing","genesis-blocks"),description:cs("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[cs("pricing table","genesis-blocks"),cs("shop","genesis-blocks"),cs("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:cs("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:cs("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:ys,save:function(e){var t=e.attributes.columnsGap,n=b()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(ts,e,React.createElement("div",{className:n||void 0},React.createElement(hs.Content,null)))}});var Ms=wp.i18n.__,vs=wp.element.Component,Ls=wp.blockEditor,ws=Ls.InspectorControls,Ys=Ls.PanelColorSettings,Ts=wp.components,Ds=Ts.PanelBody,Rs=Ts.RangeControl,Ss=function(e){m()(n,e);var t=ks(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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(ws,{key:"inspector"},React.createElement(Ds,null,React.createElement(v,{id:"gb_pricing_inner_padding"},React.createElement(Rs,{label:Ms("Pricing Column Padding","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),React.createElement(v,{id:"gb_pricing_inner_borderWidth"},React.createElement(Rs,{label:Ms("Pricing Column Border","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),React.createElement(v,{id:"gb_pricing_inner_borderRadius"},React.createElement(Rs,{label:Ms("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(v,{id:"gb_pricing_inner_borderColor"},React.createElement(Ys,{title:Ms("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({borderColor:e})},label:Ms("Border Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_pricing_inner_colorSettings"},React.createElement(Ys,{title:Ms("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return l({backgroundColor:e})},label:Ms("Background Color","genesis-blocks")}]})))}}]),n}(vs);n(351),n(352);function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var js=wp.i18n.__,Ps=wp.element.Component,Hs=wp.blocks.registerBlockType,Os=wp.blockEditor,zs=Os.InnerBlocks,As=Os.AlignmentToolbar,Bs=Os.BlockControls,Ns=wp.element.Fragment,Fs=["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"],Ws=function(e){m()(n,e);var t=Cs(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.setAttributes,u={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:o||null,backgroundColor:i||null,padding:s?s+"%":null};return[React.createElement(Bs,{key:"controls"},React.createElement(As,{value:l,onChange:function(e){c({alignment:e})}})),React.createElement(Ss,a()({key:"gb-pricing-table-inner-inspector-"+this.props.clientId},Es({setAttributes:c},this.props))),React.createElement(Ns,{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:u},React.createElement(zs,{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:Fs,templateInsertUpdatesSelection:!1}))))]}}]),n}(Ps);Hs("genesis-blocks/gb-pricing-table",{title:js("Pricing Column","genesis-blocks"),description:js("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[js("pricing","genesis-blocks"),js("shop","genesis-blocks"),js("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:js("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:js("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:js("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:js("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:js("Pricing Column Background Color","genesis-blocks")}},edit:Ws,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(zs.Content,null)))}});var Is=wp.i18n.__,Us=wp.element.Fragment,Vs=wp.components.RangeControl;function Js(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,c=e.paddingTop,u=e.paddingTopMin,d=e.paddingTopMax,m=e.paddingEnableTop,p=e.onChangePaddingTop,_=void 0===p?function(){}:p,h=e.paddingRight,g=e.paddingRightMin,f=e.paddingRightMax,b=e.paddingEnableRight,y=e.onChangePaddingRight,k=void 0===y?function(){}:y,M=e.paddingBottom,v=e.paddingBottomMin,L=e.paddingBottomMax,w=e.paddingEnableBottom,Y=e.onChangePaddingBottom,T=void 0===Y?function(){}:Y,D=e.paddingLeft,R=e.paddingLeftMin,S=e.paddingLeftMax,x=e.paddingEnableLeft,E=e.onChangePaddingLeft,C=void 0===E?function(){}:E,j=e.paddingVertical,P=e.paddingEnableVertical,H=e.paddingVerticalMin,O=e.paddingVerticalMax,z=e.onChangePaddingVertical,A=void 0===z?function(){}:z,B=e.paddingHorizontal,N=e.paddingEnableHorizontal,F=e.paddingHorizontalMin,W=e.paddingHorizontalMax,I=e.onChangePaddingHorizontal,U=void 0===I?function(){}:I;return React.createElement(Us,null,i&&React.createElement(Vs,{label:n||Is("Padding","genesis-blocks"),help:r||null,value:t,min:a,max:o,onChange:l}),m&&React.createElement(Vs,{label:Is("Padding Top","genesis-blocks"),value:c,min:u,max:d,onChange:_}),b&&React.createElement(Vs,{label:Is("Padding Right","genesis-blocks"),value:h,min:g,max:f,onChange:k}),w&&React.createElement(Vs,{label:Is("Padding Bottom","genesis-blocks"),value:M,min:v,max:L,onChange:T}),x&&React.createElement(Vs,{label:Is("Padding Left","genesis-blocks"),value:D,min:R,max:S,onChange:C}),P&&React.createElement(Vs,{label:Is("Padding Vertical","genesis-blocks"),value:j,min:H,max:O,onChange:A}),N&&React.createElement(Vs,{label:Is("Padding Horizontal","genesis-blocks"),value:B,min:F,max:W,onChange:U}))}function Gs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var qs=wp.i18n.__,$s=wp.element.Component,Ks=wp.compose.compose,Zs=wp.blockEditor,Qs=Zs.InspectorControls,Xs=Zs.FontSizePicker,el=Zs.withFontSizes,tl=Zs.withColors,nl=Zs.ContrastChecker,rl=Zs.PanelColorSettings,al=wp.components,ol=al.withFallbackStyles,il=al.PanelBody,sl=al.ToggleControl,ll=al.TextControl,cl=(al.RangeControl,ol((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}}))),ul=function(e){m()(n,e);var t=Gs(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.paddingRight,u=n.paddingBottom,d=n.paddingLeft,m=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,_=t.fontSize,h=t.setFontSize,g=t.backgroundColor,f=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,k=t.fallbackBackgroundColor,M=t.fallbackTextColor;return React.createElement(Qs,{key:"inspector"},React.createElement(il,{title:qs("Text Settings","genesis-blocks")},React.createElement(Xs,{fallbackFontSize:p,value:_.size,onChange:h}),React.createElement(sl,{label:qs("Show currency symbol","genesis-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&React.createElement(ll,{label:qs("Currency Symbol","genesis-blocks"),type:"text",value:s,onChange:function(t){return e.props.setAttributes({currency:t})}}),React.createElement(sl,{label:qs("Show pricing duration","genesis-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&React.createElement(ll,{label:qs("Pricing Duration","genesis-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({term:t})}})),React.createElement(il,{title:qs("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return m({paddingTop:e})},paddingEnableRight:!0,paddingRight:c,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return m({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:u,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return m({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:d,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return m({paddingLeft:e})}})),React.createElement(rl,{title:qs("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:g.color,onChange:b,label:qs("Background Color","genesis-blocks")},{value:f.color,onChange:y,label:qs("Text Color","genesis-blocks")}]},React.createElement(nl,a()({textColor:f.color,backgroundColor:g.color,fallbackTextColor:M,fallbackBackgroundColor:k},{fontSize:_.size}))))}}]),n}($s),dl=Ks([cl,el("fontSize"),tl("backgroundColor",{textColor:"color"})])(ul);function ml(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var pl=wp.i18n.__,_l=(wp.blocks.registerBlockType,wp.compose.compose),hl=wp.element,gl=hl.Component,fl=hl.Fragment,bl=wp.blockEditor,yl=bl.RichText,kl=bl.withFontSizes,Ml=bl.withColors,vl=function(e){m()(n,e);var t=ml(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.paddingTop,u=n.paddingRight,d=n.paddingBottom,m=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),_=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,g=t.textColor,f=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},_.class,_.class)),k={backgroundColor:h.color,color:g.color,paddingTop:c?c+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:d?d+"px":void 0,paddingLeft:m?m+"px":void 0},M={fontSize:_.size?_.size+"px":void 0},v=Math.floor(_.size/2.5),L={fontSize:_.size?v+"px":void 0},w=Math.floor(_.size/2.5),Y={fontSize:_.size?w+"px":void 0};return[React.createElement(fl,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(dl,this.props),React.createElement("div",{className:f||void 0,style:k},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},l&&React.createElement(yl,{tagName:"span",itemProp:"priceCurrency",placeholder:pl("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return p({currency:e})},className:"gb-pricing-table-currency",style:L}),React.createElement(yl,{tagName:"div",itemProp:"price",placeholder:pl("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({price:e})},style:M,className:y||void 0}),s&&React.createElement(yl,{tagName:"span",value:o,placeholder:pl("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return p({term:e})},className:"gb-pricing-table-term",style:Y}))))]}}]),n}(gl),Ll=_l([kl("fontSize"),Ml("backgroundColor",{textColor:"color"})])(vl),wl=wp.i18n.__,Yl=wp.blockEditor,Tl=Yl.RichText,Dl=Yl.getFontSizeClass,Rl=Yl.getColorClassName,Sl=[{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,c=n.textColor,u=n.customBackgroundColor,d=n.customTextColor,m=n.term,p=n.showTerm,_=n.showCurrency,h=n.paddingTop,g=n.paddingRight,f=n.paddingBottom,y=n.paddingLeft,k=Dl(o),M=Rl("color",c),v=Rl("background-color",l),L=b()((t={"has-background":l||u,"gb-pricing-table-price-wrap":!0},i()(t,M,M),i()(t,v,v),i()(t,"gb-pricing-has-currency",_&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},k,k)),Y={backgroundColor:v?void 0:u,color:M?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:y?y+"px":void 0},T={fontSize:k?void 0:s},D=k?void 0:s,R=Math.floor(D/2.5),S={fontSize:D?R+"px":void 0},x=Math.floor(D/2.5),E={fontSize:D?x+"px":void 0};return React.createElement("div",{className:L||void 0,style:Y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&_&&React.createElement(Tl.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:wl("$","genesis-blocks"),value:a,className:"gb-pricing-table-currency",style:S}),React.createElement(Tl.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:T}),m&&p&&React.createElement(Tl.Content,{tagName:"span",value:m,className:"gb-pricing-table-term",style:E})))}}],xl=wp.i18n.__,El=wp.blocks.registerBlockType,Cl=wp.element,jl=(Cl.Component,Cl.Fragment,wp.blockEditor),Pl=jl.RichText,Hl=jl.getFontSizeClass,Ol=(jl.FontSizePicker,jl.withFontSizes,jl.getColorClassName);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 _()(this,n)}}El("genesis-blocks/gb-pricing-table-price",{title:xl("Product Price","genesis-blocks"),description:xl("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[xl("pricing table","genesis-blocks"),xl("price","genesis-blocks"),xl("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:Ll,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,c=n.textColor,u=n.customBackgroundColor,d=n.customTextColor,m=n.term,p=n.showTerm,_=n.showCurrency,h=n.paddingTop,g=n.paddingRight,f=n.paddingBottom,y=n.paddingLeft,k=Hl(o),M=Ol("color",c),v=Ol("background-color",l),L=b()((t={"has-background":l||u,"gb-pricing-table-price-wrap":!0},i()(t,M,M),i()(t,v,v),i()(t,"gb-pricing-has-currency",_&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},k,k)),Y={backgroundColor:v?void 0:u,color:M?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:y?y+"px":void 0},T={fontSize:k?void 0:s},D=k?void 0:s,R=Math.floor(D/2.5),S={fontSize:D?R+"px":void 0},x=Math.floor(D/2.5),E={fontSize:D?x+"px":void 0};return React.createElement("div",{className:L||void 0,style:Y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&_&&React.createElement(Pl.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"gb-pricing-table-currency",style:S}),React.createElement(Pl.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:T}),m&&p&&React.createElement(Pl.Content,{tagName:"span",value:m,className:"gb-pricing-table-term",style:E})))},deprecated:Sl});var Al=wp.i18n.__,Bl=wp.element.Component,Nl=wp.compose.compose,Fl=wp.blockEditor,Wl=Fl.InspectorControls,Il=Fl.FontSizePicker,Ul=Fl.withFontSizes,Vl=Fl.withColors,Jl=Fl.ContrastChecker,Gl=Fl.PanelColorSettings,ql=Fl.ColorPalette,$l=wp.components,Kl=$l.withFallbackStyles,Zl=$l.PanelBody,Ql=$l.PanelRow,Xl=$l.SelectControl,ec=$l.BaseControl,tc=$l.RangeControl,nc=Kl((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}})),rc=function(e){m()(n,e);var t=zl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.paddingBottom,u=n.paddingLeft,d=(t.isSelected,t.setAttributes),m=t.fallbackFontSize,p=t.fontSize,_=t.setFontSize,h=t.backgroundColor,g=t.textColor,f=t.setBackgroundColor,b=t.setTextColor,y=t.fallbackBackgroundColor,k=t.fallbackTextColor,M=[{value:"gb-list-border-none",label:Al("None")},{value:"gb-list-border-solid",label:Al("Solid")},{value:"gb-list-border-dotted",label:Al("Dotted")},{value:"gb-list-border-dashed",label:Al("Dashed")}];return React.createElement(Wl,{key:"inspector"},React.createElement(Zl,{title:Al("Text Settings","genesis-blocks")},React.createElement(Il,{fallbackFontSize:m,value:p.size,onChange:_}),React.createElement(Xl,{label:Al("List Border Style","genesis-blocks"),value:r,options:M.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(tc,{label:Al("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(Ql,null,React.createElement(ec,{label:Al("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(ql,{initialOpen:!1,value:o,onChange:function(e){return d({borderColor:e})}})))),React.createElement(Zl,{title:Al("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{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:c,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:u,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(Gl,{title:Al("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:f,label:Al("Background Color","genesis-blocks")},{value:g.color,onChange:b,label:Al("Text Color","genesis-blocks")}]},React.createElement(Jl,a()({textColor:g.color,backgroundColor:h.color,fallbackTextColor:k,fallbackBackgroundColor:y},{fontSize:p.size}))))}}]),n}(Bl),ac=Nl([nc,Ul("fontSize"),Vl("backgroundColor",{textColor:"color"})])(rc);function oc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var ic=wp.i18n.__,sc=(wp.blocks.registerBlockType,wp.compose.compose),lc=wp.element,cc=lc.Component,uc=lc.Fragment,dc=wp.blockEditor,mc=dc.RichText,pc=dc.withFontSizes,_c=dc.withColors,hc=function(e){m()(n,e);var t=oc(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=n.paddingRight,u=n.paddingBottom,d=n.paddingLeft,m=(t.isSelected,t.className,t.setAttributes),p=(t.fallbackFontSize,t.fontSize),_=t.backgroundColor,h=t.textColor,g=b()((e={"gb-pricing-table-features":!0},i()(e,p.class,p.class),i()(e,"has-text-color",h.color),i()(e,"has-background",_.color),i()(e,_.class,_.class),i()(e,h.class,h.class),i()(e,a,a),i()(e,"gb-list-border-width-"+s,s),e)),f={fontSize:p.size?p.size+"px":void 0,backgroundColor:_.color,color:h.color,borderColor:o||void 0,paddingTop:l?l+"px":void 0,paddingRight:c?c+"px":void 0,paddingBottom:u?u+"px":void 0,paddingLeft:d?d+"px":void 0};return[React.createElement(uc,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(ac,this.props),React.createElement(mc,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:ic("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return m({features:e})},style:f,className:g||void 0}))]}}]),n}(cc),gc=sc([pc("fontSize"),_c("backgroundColor",{textColor:"color"})])(hc),fc=wp.i18n.__,bc=wp.blocks.registerBlockType,yc=(wp.element.Component,wp.blockEditor),kc=yc.RichText,Mc=yc.getFontSizeClass,vc=(yc.FontSizePicker,yc.withFontSizes,yc.getColorClassName);function Lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}bc("genesis-blocks/gb-pricing-table-features",{title:fc("Product Features","genesis-blocks"),description:fc("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[fc("pricing table","genesis-blocks"),fc("features","genesis-blocks"),fc("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:gc,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.borderStyle,m=n.borderColor,p=n.borderWidth,_=n.paddingTop,h=n.paddingRight,g=n.paddingBottom,f=n.paddingLeft,y=Mc(a),k=vc("color",l),M=vc("background-color",s),v=b()((t={"has-background":s||c,"gb-pricing-table-features":!0},i()(t,y,y),i()(t,k,k),i()(t,M,M),i()(t,d,d),i()(t,"gb-list-border-width-"+p,p),t)),L={fontSize:y?void 0:o,backgroundColor:M?void 0:c,color:k?void 0:u,borderColor:m||void 0,paddingTop:_?_+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:f?f+"px":void 0};return React.createElement(kc.Content,{tagName:"ul",itemProp:"description",value:r,className:v||void 0,style:L})}});var wc=wp.i18n.__,Yc=wp.element.Component,Tc=wp.compose.compose,Dc=wp.blockEditor,Rc=Dc.InspectorControls,Sc=Dc.FontSizePicker,xc=Dc.withFontSizes,Ec=Dc.withColors,Cc=Dc.ContrastChecker,jc=Dc.PanelColorSettings,Pc=(Dc.RangeControl,wp.components),Hc=Pc.withFallbackStyles,Oc=Pc.PanelBody,zc=Hc((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}})),Ac=function(e){m()(n,e);var t=Lc(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.fontSize,u=e.setFontSize,d=e.backgroundColor,m=e.textColor,p=e.setBackgroundColor,_=e.setTextColor,h=e.fallbackBackgroundColor,g=e.fallbackTextColor;return React.createElement(Rc,{key:"inspector"},React.createElement(Oc,{title:wc("Text Settings","genesis-blocks")},React.createElement(Sc,{fallbackFontSize:l,value:c.size,onChange:u})),React.createElement(Oc,{title:wc("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{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(jc,{title:wc("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:p,label:wc("Background Color","genesis-blocks")},{value:m.color,onChange:_,label:wc("Text Color","genesis-blocks")}]},React.createElement(Cc,a()({textColor:m.color,backgroundColor:d.color,fallbackTextColor:g,fallbackBackgroundColor:h},{fontSize:c.size}))))}}]),n}(Yc),Bc=Tc([zc,xc("fontSize"),Ec("backgroundColor",{textColor:"color"})])(Ac);function Nc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Fc=wp.i18n.__,Wc=(wp.blocks.registerBlockType,wp.compose.compose),Ic=wp.element,Uc=Ic.Component,Vc=Ic.Fragment,Jc=wp.blockEditor,Gc=Jc.RichText,qc=Jc.withFontSizes,$c=Jc.withColors,Kc=function(e){m()(n,e);var t=Nc(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=(t.isSelected,t.className,t.setAttributes),u=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,m=t.textColor,p=b()((e={"gb-pricing-table-title":!0},i()(e,u.class,u.class),i()(e,"has-text-color",m.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,m.class,m.class),e)),_={fontSize:u.size?u.size+"px":void 0,backgroundColor:d.color,color:m.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(Vc,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(Bc,this.props),React.createElement(Gc,{tagName:"div",itemProp:"name",placeholder:Fc("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return c({title:e})},style:_,className:p||void 0}))]}}]),n}(Uc),Zc=Wc([qc("fontSize"),$c("backgroundColor",{textColor:"color"})])(Kc),Qc=wp.i18n.__,Xc=wp.blocks.registerBlockType,eu=(wp.element.Component,wp.blockEditor),tu=eu.RichText,nu=eu.getFontSizeClass,ru=(eu.FontSizePicker,eu.withFontSizes,eu.getColorClassName);function au(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}Xc("genesis-blocks/gb-pricing-table-title",{title:Qc("Product Title","genesis-blocks"),description:Qc("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Qc("pricing table","genesis-blocks"),Qc("title","genesis-blocks"),Qc("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:Zc,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.paddingTop,m=n.paddingRight,p=n.paddingBottom,_=n.paddingLeft,h=nu(a),g=ru("color",l),f=ru("background-color",s),y={fontSize:h?void 0:o,backgroundColor:f?void 0:c,color:g?void 0:u,paddingTop:d?d+"px":void 0,paddingRight:m?m+"px":void 0,paddingBottom:p?p+"px":void 0,paddingLeft:_?_+"px":void 0},k=b()((t={"has-background":s||c,"gb-pricing-table-title":!0},i()(t,h,h),i()(t,g,g),i()(t,f,f),t));return React.createElement(tu.Content,{tagName:"div",itemProp:"name",value:r,style:y,className:k||void 0})}});var ou=wp.i18n.__,iu=(wp.blocks.registerBlockType,wp.compose.compose),su=wp.element,lu=su.Component,cu=su.Fragment,uu=wp.blockEditor,du=uu.RichText,mu=uu.withFontSizes,pu=uu.withColors,_u=function(e){m()(n,e);var t=au(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=(t.isSelected,t.className,t.setAttributes),u=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,m=t.textColor,p=b()((e={"gb-pricing-table-subtitle":!0},i()(e,u.class,u.class),i()(e,"has-text-color",m.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,m.class,m.class),e)),_={fontSize:u.size?u.size+"px":void 0,backgroundColor:d.color,color:m.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(cu,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(Bc,this.props),React.createElement(du,{tagName:"div",placeholder:ou("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return c({subtitle:e})},style:_,className:p||void 0}))]}}]),n}(lu),hu=iu([mu("fontSize"),pu("backgroundColor",{textColor:"color"})])(_u),gu=wp.i18n.__,fu=wp.blocks.registerBlockType,bu=(wp.element.Component,wp.blockEditor),yu=bu.RichText,ku=bu.getFontSizeClass,Mu=(bu.FontSizePicker,bu.withFontSizes,bu.getColorClassName);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 _()(this,n)}}fu("genesis-blocks/gb-pricing-table-subtitle",{title:gu("Product Subtitle","genesis-blocks"),description:gu("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[gu("pricing table","genesis-blocks"),gu("subtitle","genesis-blocks"),gu("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:hu,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.paddingTop,m=n.paddingRight,p=n.paddingBottom,_=n.paddingLeft,h=ku(a),g=Mu("color",l),f=Mu("background-color",s),y=b()((t={"has-background":s||c,"gb-pricing-table-subtitle":!0},i()(t,h,h),i()(t,g,g),i()(t,f,f),t)),k={fontSize:h?void 0:o,backgroundColor:f?void 0:c,color:g?void 0:u,paddingTop:d?d+"px":void 0,paddingRight:m?m+"px":void 0,paddingBottom:p?p+"px":void 0,paddingLeft:_?_+"px":void 0};return React.createElement(yu.Content,{tagName:"div",value:r,className:y||void 0,style:k})}});var Lu=wp.i18n.__,wu=wp.element.Component,Yu=wp.compose.compose,Tu=wp.blockEditor,Du=Tu.InspectorControls,Ru=(Tu.FontSizePicker,Tu.withFontSizes),Su=Tu.withColors,xu=(Tu.ContrastChecker,Tu.PanelColorSettings),Eu=wp.components,Cu=Eu.withFallbackStyles,ju=Eu.PanelBody,Pu=(Eu.ToggleControl,Eu.TextControl,Eu.RangeControl,Cu((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}}))),Hu=function(e){m()(n,e);var t=vu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.buttonShape,u=t.buttonTarget,d=(e.isSelected,e.setAttributes),m=e.backgroundColor,p=e.setBackgroundColor;e.fallbackBackgroundColor;return React.createElement(Du,{key:"inspector"},React.createElement(ju,{title:Lu("Button Settings","genesis-blocks")},React.createElement(dn,{buttonTarget:u,onChangeButtonTarget:function(e){return d({buttonTarget:!u})},buttonSize:l,onChangeButtonSize:function(e){return d({buttonSize:e})},buttonShape:c,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(ju,{title:Lu("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{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(xu,{title:Lu("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:m.color,onChange:p,label:Lu("Background Color","genesis-blocks")}]}))}}]),n}(wu),Ou=Yu([Pu,Ru("fontSize"),Su("backgroundColor")])(Hu);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 _()(this,n)}}var Au=wp.i18n.__,Bu=(wp.blocks.registerBlockType,wp.compose.compose),Nu=wp.element,Fu=Nu.Component,Wu=Nu.Fragment,Iu=wp.blockEditor,Uu=Iu.RichText,Vu=Iu.withFontSizes,Ju=Iu.withColors,Gu=(Iu.InnerBlocks,Iu.URLInput),qu=wp.components,$u=qu.Button,Ku=qu.Dashicon,Zu=qu.Icon,Qu=function(e){m()(n,e);var t=zu(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=t.buttonBackgroundColor,u=t.buttonTextColor,d=t.buttonSize,m=t.buttonShape,p=(t.buttonTarget,e.isSelected),_=(e.className,e.setAttributes),h=e.backgroundColor,g=b()({"gb-pricing-table-button":!0}),f={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(Wu,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(Ou,this.props),React.createElement("div",{className:g||void 0,style:f},React.createElement(bn,this.props,React.createElement(Uu,{tagName:"span",placeholder:Au("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:[],className:b()("gb-button",m,d),style:{color:u,backgroundColor:c},onChange:function(e){return _({buttonText:e})}})),p&&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(Ku,{icon:"admin-links"}),React.createElement(Gu,{className:"button-url",value:s,onChange:function(e){return _({buttonUrl:e})}}),React.createElement($u,{label:Au("Apply","genesis-blocks"),type:"submit"},React.createElement(Zu,{icon:"editor-break"})))))]}}]),n}(Fu),Xu=Bu([Vu("fontSize"),Ju("backgroundColor",{textColor:"color"})])(Qu),ed=wp.i18n.__,td=wp.blocks.registerBlockType,nd=(wp.element.Component,wp.blockEditor),rd=nd.RichText,ad=(nd.getFontSizeClass,nd.FontSizePicker,nd.withFontSizes,nd.getColorClassName);td("genesis-blocks/gb-pricing-table-button",{title:ed("Product Button","genesis-blocks"),description:ed("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[ed("pricing table","genesis-blocks"),ed("subtitle","genesis-blocks"),ed("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:Xu,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,c=t.buttonText,u=t.buttonUrl,d=(t.buttonAlignment,t.buttonBackgroundColor),m=t.buttonTextColor,p=t.buttonSize,_=t.buttonShape,h=t.buttonTarget,g=ad("background-color",n),f=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:f||void 0,style:y},React.createElement(bn,e,c&&React.createElement("a",{href:u,target:h?"_blank":null,rel:h?"noopener noreferrer":null,className:b()("gb-button",_,p),style:{color:m,backgroundColor:d}},React.createElement(rd.Content,{value:c}))))}});var od=wp.i18n.__,id=wp.element.Fragment,sd=wp.components.RangeControl;function ld(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,c=e.marginRightLabel,u=e.marginRightMin,d=e.marginRightMax,m=e.marginEnableRight,p=e.onChangeMarginRight,_=void 0===p?function(){}:p,h=e.marginBottom,g=e.marginBottomLabel,f=e.marginBottomMin,b=e.marginBottomMax,y=e.marginEnableBottom,k=e.onChangeMarginBottom,M=void 0===k?function(){}:k,v=e.marginLeft,L=e.marginLeftLabel,w=e.marginLeftMin,Y=e.marginLeftMax,T=e.marginEnableLeft,D=e.onChangeMarginLeft,R=void 0===D?function(){}:D,S=e.marginVertical,x=e.marginVerticalLabel,E=e.marginEnableVertical,C=e.marginVerticalMin,j=e.marginVerticalMax,P=e.onChangeMarginVertical,H=void 0===P?function(){}:P,O=e.marginHorizontal,z=e.marginHorizontalLabel,A=e.marginEnableHorizontal,B=e.marginHorizontalMin,N=e.marginHorizontalMax,F=e.onChangeMarginHorizontal,W=void 0===F?function(){}:F;return React.createElement(id,null,o&&React.createElement(sd,{label:n||od("Margin Top","genesis-blocks"),value:t,min:r,max:a,onChange:s}),m&&React.createElement(sd,{label:c||od("Margin Right","genesis-blocks"),value:l,min:u,max:d,onChange:_}),y&&React.createElement(sd,{label:g||od("Margin Bottom","genesis-blocks"),value:h,min:f,max:b,onChange:M}),T&&React.createElement(sd,{label:L||od("Margin Left","genesis-blocks"),value:v,min:w,max:Y,onChange:R}),E&&React.createElement(sd,{label:x||od("Margin Vertical","genesis-blocks"),value:S,min:C,max:j,onChange:H}),A&&React.createElement(sd,{label:z||od("Margin Horizontal","genesis-blocks"),value:O,min:B,max:N,onChange:W}))}function cd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var ud=wp.i18n.__,dd=wp.element.Component,md=wp.compose.compose,pd=wp.blockEditor,_d=pd.InspectorControls,hd=pd.withColors,gd=pd.ContrastChecker,fd=pd.PanelColorSettings,bd=wp.components,yd=bd.PanelBody,kd=bd.SelectControl,Md=bd.TextControl,vd=bd.FormToggle,Ld=(0,bd.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}})),wd=function(e){m()(n,e);var t=cd(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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,c=e.buttonBackgroundColor,u=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,m=e.fallbackButtonTextColor,p=e.setButtonBackgroundColor,_=e.setButtonTextColor,h={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:ud("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(_d,null,React.createElement(yd,{title:ud("Newsletter","genesis-blocks"),initialOpen:!t.mailingList},React.createElement(v,{id:"gb_newsletter_mailingList"},React.createElement(kd,{label:ud("Mailing List","genesis-blocks"),help:ud("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(v,{id:"gb_newsletter_successMessage"},React.createElement(Md,{type:"string",label:ud("Success Message","genesis-blocks"),help:ud("The message shown when people successfully subscribe.","genesis-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),React.createElement(v,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(vd,{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},ud("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},ud("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(yd,{title:ud("General","genesis-blocks"),initialOpen:!!t.mailingList},React.createElement(v,{id:"gb_newsletter_containerPadding"},React.createElement(Js,{paddingEnable:!0,paddingTitle:ud("Block Padding","genesis-blocks"),paddingHelp:ud("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(v,{id:"gb_newsletter_containerMargin"},React.createElement(ld,{marginEnableTop:!0,marginTopLabel:ud("Block Margin Top","genesis-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:ud("Block Margin Bottom","genesis-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),React.createElement(dn,{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(v,{id:"gb_newsletter_colorOptions"},React.createElement(fd,{title:ud("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:a,label:ud("Block Background Color","genesis-blocks")},{value:i.color,onChange:l,label:ud("Block Text Color","genesis-blocks")},{value:c.color,onChange:p,label:ud("Button Background Color","genesis-blocks")},{value:d.color,onChange:_,label:ud("Button Text Color","genesis-blocks")}]},React.createElement(gd,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:s,fallbackBackgroundColor:o}),React.createElement(gd,{textColor:d.color,backgroundColor:c.color,fallbackButtonTextColor:m,fallbackButtonBackgroundColor:u}),React.createElement(gd,{textColor:c.color,backgroundColor:r.color,fallbackButtonBackgroundColor:u,fallbackBackgroundColor:o}))))}}]),n}(dd),Yd=md([Ld,hd("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(wd);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 _()(this,n)}}var Dd=wp.element.Component,Rd=(wp.blockEditor.getColorClassName,function(e){m()(n,e);var t=Td(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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}(Dd));function Sd(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 xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ed(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Cd=wp.i18n.__,jd=wp.compose,Pd=jd.compose,Hd=jd.withInstanceId,Od=wp.blockEditor,zd=(Od.getColorClassName,Od.RichText),Ad=Od.withColors,Bd=wp.element,Nd=Bd.Fragment,Fd=Bd.Component,Wd=wp.components,Id=Wd.TextControl,Ud=(0,Wd.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}})),Vd=function(e){m()(n,e);var t=Ed(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return u()(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,c=r.buttonTextColor,u=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(Yd,a()({key:"gb-newsletter-inspector-"+this.props.clientId},xd({setAttributes:s},this.props))),React.createElement(Rd,a()({key:"gb-newsletter-container-"+this.props.clientId},this.props),!u&&React.createElement(Nd,null,React.createElement("div",{className:"gb-newsletter-notice"},Cd("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"},Cd("Configure your settings","genesis-blocks"))))),u&&React.createElement(Nd,null,React.createElement(zd,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:o.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),React.createElement(Id,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:b()("gb-block-button")},React.createElement(bn,this.props,React.createElement(zd,{tagName:"span",placeholder:Cd("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:c.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}(Fd),Jd=Pd([Ud,Ad("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Hd(Vd)),Gd=(n(353),n(354),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-newsletter",{title:Gd("Email newsletter","genesis-blocks"),description:Gd("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[Gd("Mailchimp","genesis-blocks"),Gd("Subscribe","genesis-blocks"),Gd("Newsletter","genesis-blocks")],edit:Jd,gb_settings_data:{gb_newsletter_mailingList:{title:Gd("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:Gd("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:Gd("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:Gd("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:Gd("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:Gd("Color Options","genesis-blocks")}},save:function(){return null}});var qd=n(32),$d=n.n(qd);var Kd=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},Zd=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 Qd(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 Xd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var em=function(e){m()(n,e);var t=Xd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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($d()(Kd(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?Qd(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qd(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},Zd(n));return React.createElement("div",{className:o||void 0,style:Object.assign(r,a,s)},this.props.children)}}]),n}(wp.element.Component),tm={};tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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"})),tm.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 nm=tm,rm=wp.i18n.__,am={1:[{name:rm("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:nm.oneEqual}],2:[{name:rm("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:nm.twoEqual},{name:rm("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:nm.twoLeftWide},{name:rm("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:nm.twoRightWide}],3:[{name:rm("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:nm.threeEqual},{name:rm("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:nm.threeWideCenter},{name:rm("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:nm.threeWideLeft},{name:rm("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:nm.threeWideRight}],4:[{name:rm("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:nm.fourEqual},{name:rm("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:nm.fourLeft},{name:rm("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:nm.fourRight}],5:[{name:rm("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:nm.fiveEqual}],6:[{name:rm("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:nm.sixEqual}]};function om(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 im(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var sm=wp.i18n.__,lm=wp.element,cm=lm.Fragment,um=lm.Component,dm=wp.components,mm=dm.PanelBody,pm=dm.RangeControl,_m=dm.Button,hm=dm.ButtonGroup,gm=dm.FocalPointPicker,fm=dm.Icon,bm=dm.ToggleControl,ym=dm.SelectControl,km=wp.blockEditor,Mm=km.MediaUpload,vm=km.MediaUploadCheck,Lm=function(e){m()(n,e);var t=im(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,o=[{value:"no-repeat",label:sm("No Repeat","genesis-blocks")},{value:"repeat",label:sm("Repeat","genesis-blocks")},{value:"repeat-x",label:sm("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:sm("Repeat Vertically","genesis-blocks")}],s=[{value:"auto",label:sm("Auto","genesis-blocks")},{value:"cover",label:sm("Cover","genesis-blocks")},{value:"contain",label:sm("Contain","genesis-blocks")}];return"cover"===r.backgroundSize&&(e=sm("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=sm("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===r.backgroundSize&&(e=sm("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(cm,null,React.createElement(mm,{title:sm("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(vm,null,React.createElement(Mm,{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(hm,{className:"gb-background-button-group"},React.createElement(_m,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:sm("Edit image","genesis-blocks"),onClick:t},React.createElement(fm,{icon:"format-image"}),sm("Select Image","genesis-blocks")),r.backgroundImgURL&&React.createElement(_m,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:sm("Remove Image","genesis-blocks"),onClick:function(){return a({backgroundImgURL:null})}},React.createElement(fm,{icon:"dismiss"}),sm("Remove","genesis-blocks"))))}})),r.backgroundImgURL&&React.createElement(cm,null,React.createElement(gm,{label:sm("Focal Point","genesis-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return a({focalPoint:e})}}),React.createElement(pm,{label:sm("Image Opacity","genesis-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),React.createElement(bm,{label:sm("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?om(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om(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(ym,{className:"gb-inspector-help-text",label:sm("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(ym,{label:sm("Image Repeat","genesis-blocks"),value:r.backgroundRepeat,options:o,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}]),n}(um);function wm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Ym=wp.i18n.__,Tm=wp.element,Dm=Tm.Component,Rm=Tm.Fragment,Sm=wp.blockEditor,xm=Sm.InspectorControls,Em=Sm.PanelColorSettings,Cm=Sm.ContrastChecker,jm=wp.components,Pm=jm.PanelBody,Hm=jm.RangeControl,Om=jm.ButtonGroup,zm=jm.Button,Am=jm.Tooltip,Bm=jm.ToggleControl,Nm=jm.SelectControl,Fm=function(e){m()(n,e);var t=wm(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 c=[{value:"px",label:Ym("Pixel (px)","genesis-blocks")},{value:"%",label:Ym("Percent (%)","genesis-blocks")},{value:"em",label:Ym("Em (em)","genesis-blocks")}];return React.createElement(xm,{key:"inspector"},n.layout&&React.createElement(Pm,{title:Ym("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(v,{id:"gb_column_columns"},React.createElement(Hm,{label:Ym("Column Count","genesis-blocks"),help:Ym("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(Rm,null,React.createElement(v,{id:"gb_column_columnLayouts"},React.createElement("p",null,Ym("Column Layout","genesis-blocks")),React.createElement(Om,{"aria-label":Ym("Column Layout","genesis-blocks")},Lo()(am[l],(function(t){var n=t.name,a=t.key,o=t.icon;t.col;return React.createElement(Am,{text:n,key:a},React.createElement(zm,{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,Ym("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(v,{id:"gb_column_columnsGap"},React.createElement(Hm,{label:Ym("Column Gap","genesis-blocks"),help:Ym("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(v,{id:"gb_column_columnMaxWidth"},React.createElement(Hm,{label:Ym("Column Inner Max Width (px)"),help:Ym("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(v,{id:"gb_column_centerColumns"},React.createElement(Bm,{label:Ym("Center Columns In Container","genesis-blocks"),help:Ym("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(v,{id:"gb_column_responsiveToggle"},React.createElement(Bm,{label:Ym("Responsive Columns","genesis-blocks"),help:Ym("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(v,{id:"gb_column_marginPadding"},React.createElement(Pm,{title:Ym("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Nm,{label:Ym("Margin Unit","genesis-blocks"),help:Ym("Choose between pixel, percent, or em units.","genesis-blocks"),options:c,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Bm,{label:Ym("Sync Margin","genesis-blocks"),help:Ym("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(ld,{marginEnableVertical:!0,marginVerticalLabel:Ym("Margin Top/Bottom","genesis-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):React.createElement(ld,{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(Nm,{label:Ym("Padding Unit","genesis-blocks"),help:Ym("Choose between pixel, percent, or em units.","genesis-blocks"),options:c,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Bm,{label:Ym("Sync Padding","genesis-blocks"),help:Ym("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(Js,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):React.createElement(Js,{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(v,{id:"gb_column_colorSettings"},React.createElement(Em,{title:Ym("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a.color,onChange:o,label:Ym("Background Color","genesis-blocks")},{value:i.color,onChange:s,label:Ym("Text Color","genesis-blocks")}]},React.createElement(Cm,{textColor:i.color,backgroundColor:a.color}))),React.createElement(v,{id:"gb_column_backgroundImagePanel"},React.createElement(Lm,this.props)))}}]),n}(Dm);function Wm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Im=wp.i18n.__,Um=wp.element,Vm=Um.Component,Jm=Um.Fragment,Gm=wp.compose.compose,qm=wp.data.dispatch,$m=wp.blockEditor,Km=$m.BlockControls,Zm=$m.BlockAlignmentToolbar,Qm=$m.InnerBlocks,Xm=$m.withColors,ep=wp.components,tp=ep.Placeholder,np=ep.ButtonGroup,rp=ep.Tooltip,ap=ep.Button,op=["genesis-blocks/gb-column"],ip=rs()((function(e){return os()(e,(function(){return["genesis-blocks/gb-column"]}))})),sp=function(e){m()(n,e);var t=Wm(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={selectLayout:!0},r}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&qm("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:Im("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:nm.oneEqual},{name:Im("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:nm.twoEqual},{name:Im("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:nm.threeEqual},{name:Im("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:nm.fourEqual},{name:Im("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:nm.fiveEqual},{name:Im("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:nm.sixEqual}];return!n.layout&&this.state.selectLayout?[React.createElement(tp,{key:"placeholder",icon:"editor-table",label:n.columns?Im("Column Layout","genesis-blocks"):Im("Column Number","genesis-blocks"),instructions:n.columns?Im("Select a layout for this column.","genesis-blocks"):Im("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},n.columns?React.createElement(Jm,null,React.createElement(np,{"aria-label":Im("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},Lo()(am[o],(function(t){var n=t.name,a=t.key,o=t.icon;return React.createElement(rp,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(ap,{key:a,className:b()("gb-column-selector-button",a),isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o)))}))),React.createElement(ap,{className:"gb-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},Im("Return to Column Selection","genesis-blocks"))):React.createElement(np,{"aria-label":Im("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},Lo()(i,(function(t){var n=t.name,a=t.key,o=t.icon,i=t.columns;return React.createElement(rp,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(ap,{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(Km,{key:"controls"},React.createElement(Zm,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),React.createElement(Fm,a()({},this.props,{key:"inspector"})),React.createElement(em,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(Qm,{template:ip(n.columns),templateLock:"all",allowedBlocks:op})))]}}]),n}(Vm),lp=Gm([Xm("backgroundColor",{textColor:"color"})])(sp);function cp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var up=wp.element.Component,dp=wp.blockEditor.InnerBlocks,mp=function(e){m()(n,e);var t=cp(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(em,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(dp.Content,null)))}}]),n}(up),pp={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 _p(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 hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_p(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gp=wp.i18n.__;function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-columns",{title:gp("Advanced Columns","genesis-blocks"),description:gp("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[gp("column","genesis-blocks"),gp("grid","genesis-blocks"),gp("row","genesis-blocks")],attributes:hp(hp({},pp),{},{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:gp("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:gp("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:gp("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:gp("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:gp("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:gp("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:gp("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:gp("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:gp("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(lp,e)},save:function(e){return React.createElement(mp,e)}});var bp=wp.i18n.__,yp=wp.element.Component,kp=wp.compose.compose,Mp=wp.blockEditor,vp=Mp.InspectorControls,Lp=Mp.PanelColorSettings,Yp=Mp.withColors,Tp=Mp.ContrastChecker,Dp=wp.components,Rp=Dp.PanelBody,Sp=Dp.ToggleControl,xp=Dp.SelectControl,Ep=function(e){m()(n,e);var t=fp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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:bp("Pixel (px)","genesis-blocks")},{value:"%",label:bp("Percent (%)","genesis-blocks")},{value:"em",label:bp("Em (em)","genesis-blocks")}];return React.createElement(vp,{key:"inspector"},React.createElement(v,{id:"gb_column_inner_marginPadding"},React.createElement(Rp,{title:bp("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(xp,{label:bp("Margin Unit","genesis-blocks"),help:bp("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(Sp,{label:bp("Sync Margin","genesis-blocks"),help:bp("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(ld,{marginEnableVertical:!0,marginVerticalLabel:bp("Margin Top/Bottom","genesis-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return s({margin:e})}}):React.createElement(ld,{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(xp,{label:bp("Padding Unit","genesis-blocks"),help:bp("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(Sp,{label:bp("Sync Padding","genesis-blocks"),help:bp("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(Js,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return s({padding:e})}}):React.createElement(Js,{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(v,{id:"gb_column_inner_colorSettings"},React.createElement(Lp,{title:bp("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:bp("Background Color","genesis-blocks")},{value:a.color,onChange:o,label:bp("Text Color","genesis-blocks")}]},React.createElement(Tp,{textColor:a.color,backgroundColor:n.color}))),React.createElement(v,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Lm,this.props)))}}]),n}(yp),Cp=kp([Yp("backgroundColor",{textColor:"color"})])(Ep);function jp(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 Pp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Hp=function(e){m()(n,e);var t=Pp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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?jp(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(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},Zd(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($d()(Kd(n)))),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function Op(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var zp=wp.i18n.__,Ap=wp.compose.compose,Bp=wp.element.Component,Np=wp.components.ToolbarGroup,Fp=wp.blockEditor,Wp=Fp.AlignmentToolbar,Ip=Fp.BlockControls,Up=Fp.InnerBlocks,Vp=Fp.withColors,Jp=function(e){m()(n,e);var t=Op(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:zp("Vertical Align Top","genesis-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:zp("Vertical Align Middle","genesis-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:zp("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[React.createElement(Ip,{key:"controls"},React.createElement(Wp,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),React.createElement(Np,{controls:r})),React.createElement(Cp,a()({},this.props,{key:"inspector"})),React.createElement(Hp,a()({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(Up,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}]),n}(Bp),Gp=Ap([Vp("backgroundColor",{textColor:"color"})])(Jp);function qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var $p=wp.element.Component,Kp=wp.blockEditor.InnerBlocks,Zp=function(e){m()(n,e);var t=qp(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(Hp,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Kp.Content,null))}}]),n}($p);function Qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Xp=function(e){m()(n,e);var t=Qp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(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 e_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var t_=wp.element.Component,n_=wp.blockEditor.InnerBlocks,r_=function(e){m()(n,e);var t=e_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(Xp,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(n_.Content,null))}}]),n}(t_),a_=[{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(r_,e)}}];n(355),n(356);function o_(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 i_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o_(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s_=wp.i18n.__;(0,wp.blocks.registerBlockType)("genesis-blocks/gb-column",{title:s_("Column","genesis-blocks"),description:s_("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[s_("column","genesis-blocks"),s_("layout","genesis-blocks"),s_("row","genesis-blocks")],attributes:i_(i_({},pp),{},{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:s_("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:s_("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:s_("Background Image","genesis-blocks")}},edit:function(e){return React.createElement(Gp,e)},save:function(e){return React.createElement(Zp,e)},deprecated:a_});var l_=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");function c_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",l_);var u_=wp.i18n.__,d_=wp.element,m_=d_.Component,p_=d_.Fragment,__=wp.components,h_=__.Button,g_=__.Dashicon,f_=__.Tooltip,b_=function(e){m()(n,e);var t=c_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(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(p_,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(h_,{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(f_,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?u_("Remove from Favorites","genesis-blocks"):u_("Add to Favorites","genesis-blocks")},React.createElement(h_,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},React.createElement(g_,{icon:"heart",className:b()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}]),n}(m_);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 _()(this,n)}}var k_=wp.i18n.__,M_=wp.url.addQueryArgs,v_=wp.element,L_=v_.Component,w_=v_.Fragment,Y_=function(e){m()(n,e);var t=y_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return React.createElement(w_,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:M_("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},k_("Edit","genesis-blocks"))))))}}]),n}(L_),T_=wp.blocks.rawHandler;function D_(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,T_({HTML:e,mode:"BLOCKS"}))}var R_=wp.element.useState;wp.i18n.__;var S_=wp.components.Button;function x_(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(S_,{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.__,C_=wp.components.ButtonGroup;function j_(e){var t,n,r,o,i,s,l,c=(n=R_((t={view:"collections",collection:null}).view),r=fo()(n,2),o=r[0],i=r[1],s=R_(t.collection),l=fo()(s,2),{currentView:o,setCurrentView:i,currentCollection:l[0],setCurrentCollection:l[1]});function u(){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")&&c.currentCollection===a.collection.slug&&n.push(React.createElement(b_,{key:a.key,itemKey:a.key,name:a.name,image:a.image,import:D_,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(C_,{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"!==c.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:function(){c.setCurrentView("collections")}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),E_("View All Collections ","genesis-blocks"))),"collections"===c.currentView?React.createElement("h2",{className:"gb-collection-title"},E_("Collections ","genesis-blocks")):"collection"===c.currentView?React.createElement("h2",{className:"gb-collection-title"},E_("Browsing ","genesis-blocks")+e.context.collections[c.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"!==c.currentView)return"";var n=[];for(var r in t)n.push(React.createElement(x_,a()({key:r,collectionSlug:r,collectionsView:c},e)));return React.createElement(C_,{className:"gb-layout-choices","aria-label":E_("Collections Available","genesis-blocks")},n)}(e.context.collections),"collection"!==c.currentView?"":React.createElement(React.Fragment,null,u("sections"),u("layouts"))))}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 _()(this,n)}}var H_=wp.compose.compose,O_=wp.blocks.rawHandler,z_=wp.data,A_=z_.withSelect,B_=z_.withDispatch,N_=wp.element,F_=N_.Component,W_=N_.Fragment,I_=function(e){m()(n,e);var t=P_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"layoutTabContent",value:function(){return"gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(Y_,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(j_,this.props):React.createElement(b_,this.props)}},{key:"render",value:function(){return React.createElement(W_,null,this.layoutTabContent())}}]),n}(F_),U_=H_(A_((function(e,t){var n,r=t.clientId,a=e("core/block-editor").getBlock;return n=!e("core/editor")||(n=e("core/editor").canUserUseUnfilteredHTML)(),{block:a(r),canUserUseUnfilteredHTML:n}})),B_((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}))}}})))(I_),V_=n(16),J_=n.n(V_),G_=n(34),q_=n.n(G_),$_=n(42),K_=n.n($_);function Z_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var Q_=wp.apiFetch,X_=Object(Kn.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),eh=function(e){m()(r,e);var t,n=Z_(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()(K_()(e),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),e}return u()(r,[{key:"getFavoriteKeys",value:function(){return Q_({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 Q_({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 Q_({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 Q_({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=q_()(J_.a.mark((function e(){var t,n=this;return J_.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=q_()(J_.a.mark((function e(r){var a,o,i,s,l;return J_.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?Zn.a.createElement(X_.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=q_()(J_.a.mark((function e(n){var r,a;return J_.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}(Kn.Component);function th(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var nh=wp.i18n.__,rh=wp.url.addQueryArgs,ah=wp.element,oh=ah.Component,ih=ah.Fragment,sh=wp.components,lh=sh.ButtonGroup,ch=sh.TextControl,uh=sh.SelectControl,dh=function(e){m()(n,e);var t=th(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return u()(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(j_,a()({key:this.props.data.key},this.props)):React.createElement(ih,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(ih,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(uh,{key:"layout-library-select-categories-"+this.props.clientId,label:nh("Layout Categories","genesis-blocks"),value:this.state.category,options:i,onChange:function(t){return e.setState({category:t})}}),React.createElement(ch,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:nh("Search Layouts","genesis-blocks"),onChange:function(t){return e.setState({search:t})}}))):React.createElement(ih,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,nh("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:rh("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},nh("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(X_.Consumer,null,(function(t){return React.createElement(lh,{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":nh("Layout Options","genesis-blocks")},Lo()(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(U_,{key:"layout-library-item-"+a,name:r,itemKey:a,image:o,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}]),n}(oh),mh=wp.i18n.__,ph=wp.element,_h=ph.Fragment,hh=ph.useState,gh=wp.components,fh=gh.Button,bh=gh.Dashicon,yh=gh.Modal,kh=gh.TabPanel,Mh=wp.data.useDispatch;var vh=function(e){var t=hh("gb-layout-tab-sections"),n=fo()(t,2),r=n[0],a=n[1],o=hh(!0),i=fo()(o,2),s=i[0],l=i[1],c=Mh("core/block-editor").removeBlock,u=[];return e.context.sections.length>0&&u.push({name:"gb-layout-tab-sections",title:mh("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),e.context.layouts.length>0&&u.push({name:"gb-layout-tab-layouts",title:mh("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),Object.keys(e.context.collections).length>0&&u.push({name:"gb-layout-tab-collections",title:mh("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),u.push({name:"gb-layout-tab-favorites",title:mh("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),e.context.reusableBlocks.length&&u.push({name:"gb-layout-tab-reusable-blocks",title:mh("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(_h,{key:"layout-modal-fragment-"+e.clientId},React.createElement(fh,{key:"layout-modal-library-button-"+e.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:function(){l(!0)}},mh("Layout Library","genesis-blocks")),s?React.createElement(yh,{key:"layout-modal-modal-component-"+e.clientId,className:"gb-layout-modal",title:mh("Layout Selector","genesis-blocks"),onRequestClose:function(){l(!1),a(null),c(e.clientId)}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement(bh,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},mh("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"},mh("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(bh,{icon:"admin-comments"})," ",mh("Send Feedback","genesis-blocks"))),React.createElement(kh,{key:"layout-modal-tabpanel-"+e.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:function(e){return a(e)},tabs:u},(function(t){var n=mh("Default tab content","genesis-blocks");if(t.name){if("gb-layout-tab-sections"===t.name)return[React.createElement(dh,{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(dh,{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(dh,{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(dh,{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(dh,{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 Lh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==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 _()(this,n)}}var wh=wp.i18n.__,Yh=wp.components.Placeholder,Th=wp.element,Dh=Th.Component,Rh=Th.Fragment,Sh=wp.blockEditor,xh=Sh.BlockControls,Eh=Sh.BlockAlignmentToolbar,Ch=function(e){m()(n,e);var t=Lh(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[React.createElement(Rh,{key:this.props.clientId},React.createElement(xh,{key:"controls"},React.createElement(Eh,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),React.createElement(Yh,{key:"placeholder",label:wh("Layout Selector","genesis-blocks"),instructions:wh("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(X_.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return React.createElement(vh,{clientId:r,context:e})}))))]}}]),n}(Dh),jh=(n(357),n(358),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-layouts",{title:jh("Layouts","genesis-blocks"),description:jh("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[jh("layout","genesis-blocks"),jh("column","genesis-blocks"),jh("section","genesis-blocks")],edit:function(e){return React.createElement(eh,null,React.createElement(Ch,e))},save:function(){return null}});var Ph=!1;function Hh(){var e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}wp.data.subscribe((function(){!function(){if(Ph)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(jh("Insert Layout","genesis-blocks"),'"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ').concat(jh("Layouts","genesis-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t);var r=document.querySelector(".components-accessible-toolbar.edit-post-header-toolbar");r&&(r.style.flexGrow=0);document.getElementById("gbLayoutInsertButton").addEventListener("click",Hh),Ph=!0}()}));n(359),n(360);var Oh=["core/paragraph","core/heading"],zh="Desktop",Ah="Tablet",Bh="Mobile",Nh={Desktop:"default",Tablet:"1200px",Mobile:"600px"};function Fh(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 Wh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fh(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ih=function(e){return e.replace(/([a-z])([A-Z1-9])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()},Uh=function(e){return"string"!=typeof e||e.match(/[A-Za-z]+$/)?e:"".concat(e,"px")},Vh=function(e,t){var n;return null===(n=t.find((function(t){return e===t.slug})))||void 0===n?void 0:n.size},Jh=n(18);const Gh=e=>{if(!Object(Jh.isObject)(e)||Array.isArray(e))return e;const t=Object(Jh.pickBy)(Object(Jh.mapValues)(e,Gh),Jh.identity);return Object(Jh.isEmpty)(t)?void 0:t};var qh=function(e){var t=e.clientId,n=e.device,r=e.selectedDevice,a=e.settingName,o=e.settingValue;return React.createElement(React.Fragment,null,o?"@media only screen and (max-width: ".concat(n,") {\n\t\t\t\t#block-").concat(t," {\n\t\t\t\t\t").concat(Ih(a),": ").concat(o," !important\n\t\t\t\t}\n\t\t\t}"):null,r===n&&o?"#block-".concat(t," {\n\t\t\t\t").concat(Ih(a),": ").concat(o," !important\n\t\t\t}"):null)};function $h(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 Kh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$h(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zh=wp.blockEditor,Qh=Zh.InspectorControls,Xh=Zh.LineHeightControl,eg=wp.blocks.hasBlockSupport,tg=wp.components,ng=tg.Button,rg=tg.FontSizePicker,ag=tg.NavigableMenu,og=tg.PanelBody,ig=wp.compose.createHigherOrderComponent,sg=wp.data,lg=sg.useDispatch,cg=sg.useSelect,ug=wp.i18n.__,dg=ig((function(e){return function(t){var n=cg((function(e){return e("core/block-editor").getSettings()})),r=n.disableCustomFontSizes,a=n.enableCustomLineHeight,o=n.fontSizes,s=cg((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?t():zh})),l=lg("core/edit-post").__experimentalSetPreviewDeviceType,c=!eg(t.name,"typography.fontSize",!0)||!(null==o?void 0:o.length),u=!eg(t.name,"typography.lineHeight",!0)||!a;if(!Oh.includes(t.name)||c&&u)return React.createElement(e,t);var d,m,p,_=function(e){l&&l(e)},h=function(e,n){return t.attributes.gbResponsiveSettings&&t.attributes.gbResponsiveSettings[n]?t.attributes.gbResponsiveSettings[n][e]:""},g=function(e,n){t.setAttributes(i()({},"gbResponsiveSettings",Kh(Kh({},t.attributes.gbResponsiveSettings),{},i()({},Nh[s],Kh(Kh({},t.attributes.gbResponsiveSettings[Nh[s]]),{},i()({},e,n))))))},f=h("fontSize",Nh.Mobile),b=h("fontSize",Nh.Tablet);return React.createElement(React.Fragment,null,Object.keys(t.attributes.gbResponsiveSettings).length?React.createElement("style",null,c?null:React.createElement(React.Fragment,null,React.createElement(qh,{device:Nh.Tablet,selectedDevice:Nh[s],settingName:"fontSize",settingValue:Uh(Vh(b,o)||b),clientId:t.clientId}),React.createElement(qh,{device:Nh.Mobile,selectedDevice:Nh[s],settingName:"fontSize",settingValue:Uh(Vh(f,o)||f),clientId:t.clientId})),u?null:React.createElement(React.Fragment,null,React.createElement(qh,{device:Nh.Tablet,selectedDevice:Nh[s],settingName:"lineHeight",settingValue:h("lineHeight",Nh.Tablet),clientId:t.clientId}),React.createElement(qh,{device:Nh.Mobile,selectedDevice:Nh[s],settingName:"lineHeight",settingValue:h("lineHeight",Nh.Mobile),clientId:t.clientId}))):null,React.createElement(e,t),React.createElement(Qh,null,React.createElement(og,{title:ug("Responsive Typography","genesis-blocks")},React.createElement(ag,{className:"gb-responsive-toggle",onNavigate:function(){},orientation:"horizontal"},React.createElement(ng,{icon:"laptop",showTooltip:!0,label:ug("Desktop view","genesis-blocks"),onClick:function(){return _(zh)},isPrimary:zh===s,isSecondary:zh!==s},ug("Desktop","genesis-blocks")),React.createElement(ng,{icon:"tablet",showTooltip:!0,label:ug("Tablet view","genesis-blocks"),onClick:function(){return _(Ah)},isPrimary:Ah===s,isSecondary:Ah!==s},ug("Tablet","genesis-blocks")),React.createElement(ng,{icon:"smartphone",showTooltip:!0,label:ug("Mobile view","genesis-blocks"),onClick:function(){return _(Bh)},isPrimary:Bh===s,isSecondary:Bh!==s},ug("Mobile","genesis-blocks"))),c?null:React.createElement(rg,{value:function(){var e,n,r,a,i,l;if(zh===s)return Vh(t.attributes.fontSize,o)||Vh(null===(e=t.attributes)||void 0===e||null===(n=e.style)||void 0===n||null===(r=n.typography)||void 0===r?void 0:r.fontSize,o)||(null===(a=t.attributes)||void 0===a||null===(i=a.style)||void 0===i||null===(l=i.typography)||void 0===l?void 0:l.fontSize);var c=h("fontSize",Nh[s]);return Vh(c,o)||c}(),onChange:function(e){var n=function(e,t){var n;return null===(n=t.find((function(t){return e===t.size})))||void 0===n?void 0:n.slug}(e,o);if(zh!==s)g("fontSize",n||e);else{var r,a,i,l=Kh(Kh({},null===(r=t.attributes)||void 0===r?void 0:r.style),{},{typography:Kh(Kh({},null===(a=t.attributes)||void 0===a||null===(i=a.style)||void 0===i?void 0:i.typography),{},{fontSize:n?void 0:e})});t.setAttributes({style:Gh?Gh(l):l,fontSize:n})}},fontSizes:o,disableCustomFontSizes:r}),u||!Xh?null:React.createElement(Xh,{value:zh===s?null===(d=t.attributes)||void 0===d||null===(m=d.style)||void 0===m||null===(p=m.typography)||void 0===p?void 0:p.lineHeight:h("lineHeight",Nh[s]),onChange:function(e){if(zh!==s)g("lineHeight",e);else{var n,r,a,o=Kh(Kh({},null===(n=t.attributes)||void 0===n?void 0:n.style),{},{typography:Kh(Kh({},null===(r=t.attributes)||void 0===r||null===(a=r.style)||void 0===a?void 0:a.typography),{},{lineHeight:e})});t.setAttributes({style:Gh?Gh(o):o})}}}))))}}),"withResponsiveSettings"),mg=wp.hooks.addFilter;mg("blocks.registerBlockType","genesis-blocks/add-responsive-controls-attributes",(function(e,t){return Oh.includes(t)?Wh(Wh({},e),{},{attributes:Wh(Wh({},null==e?void 0:e.attributes),{},i()({},"gbResponsiveSettings",{type:"object",default:{}}))}):e})),mg("editor.BlockEdit","genesis-blocks/add-responsive-controls",dg)},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]);
|
dist/blocks.editor.build.css
CHANGED
@@ -13,4 +13,4 @@
|
|
13 |
.gb-block-newsletter .gb-newsletter-title.mce-content-body{margin-top:0;line-height:1.3}.gb-form-styles label{margin-bottom:8px;width:100%;display:block}.gb-form-styles input{width:100%;height:auto;border:solid 1px #ccc;min-height:45px;margin-bottom:15px;padding:15px;font-size:16px}.gb-newsletter-double-opt-in-setting-wrapper{margin-bottom:24px}.gb-newsletter-double-opt-in-setting-wrapper .description{margin-bottom:5px}.gb-newsletter-double-opt-in-toggle{margin-right:5px}
|
14 |
.gb-layout-column-wrap-admin,.gb-block-layout-column-inner .block-editor-inner-blocks{position:relative;z-index:1}.editor-styles-wrapper [data-type="genesis-blocks/gb-columns"] .wp-block{max-width:100%}.edit-post-visual-editor .editor-block-list__block [data-type="genesis-blocks/gb-column"],.edit-post-visual-editor .block-editor-block-list__block [data-type="genesis-blocks/gb-column"]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{display:-ms-grid;display:grid;-ms-grid-rows:1fr;grid-template-rows:1fr;grid-gap:0 2em;min-height:0}.gb-block-layout-column-gap-0>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-0>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 0}.gb-block-layout-column-gap-1>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-1>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 1em}.gb-block-layout-column-gap-2>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-2>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 2em}.gb-block-layout-column-gap-3>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-3>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 3em}.gb-block-layout-column-gap-4>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-4>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 4em}.gb-block-layout-column-gap-5>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-5>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 5em}.gb-block-layout-column-gap-6>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-6>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 6em}.gb-block-layout-column-gap-7>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-7>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 7em}.gb-block-layout-column-gap-8>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-8>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 8em}.gb-block-layout-column-gap-9>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-9>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 9em}.gb-block-layout-column-gap-10>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-10>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 10em}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(1),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(2),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(3),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(4),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(5),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(5){-ms-grid-row:1;-ms-grid-column:5;grid-area:col5}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(6),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(6){-ms-grid-row:1;-ms-grid-column:6;grid-area:col6}.gb-layout-columns-1>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-1>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1"}.gb-layout-columns-2>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-2>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}.gb-2-col-wideleft>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-2-col-wideleft>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:2fr 1fr;grid-template-columns:2fr 1fr}.gb-2-col-wideright>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-2-col-wideright>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 2fr;grid-template-columns:1fr 2fr}.gb-layout-columns-3>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-3>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}.gb-3-col-widecenter>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-3-col-widecenter>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 2fr 1fr;grid-template-columns:1fr 2fr 1fr}.gb-3-col-wideleft>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-3-col-wideleft>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:2fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr}.gb-3-col-wideright>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-3-col-wideright>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 2fr;grid-template-columns:1fr 1fr 2fr}.gb-layout-columns-4>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-4>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}.gb-4-col-wideleft>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-4-col-wideleft>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:2fr 1fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr 1fr}.gb-4-col-wideright>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-4-col-wideright>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 2fr;grid-template-columns:1fr 1fr 1fr 2fr}.gb-layout-columns-5>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-5>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5"}.gb-layout-columns-6>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-6>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-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"}.block-editor .gb-layout-columns-4,.block-editor .gb-layout-columns-5,.block-editor .gb-layout-columns-6{overflow-x:visible}.gb-block-layout-column .editor-block-list__block[data-align=full],.gb-block-layout-column .block-editor-block-list__block[data-align=wide],.gb-block-layout-column .editor-block-list__block[data-align=full],.gb-block-layout-column .block-editor-block-list__block[data-align=wide]{margin-left:auto;margin-right:auto}[data-type="genesis-blocks/gb-column"].gb-is-vertically-aligned-top{align-self:flex-start}[data-type="genesis-blocks/gb-column"].gb-is-vertically-aligned-center{align-self:center}[data-type="genesis-blocks/gb-column"].gb-is-vertically-aligned-bottom{align-self:flex-end}[data-type="genesis-blocks/gb-columns"] .components-placeholder{padding:30px}[data-type="genesis-blocks/gb-columns"] .components-placeholder__fieldset{max-width:100%}.gb-column-selector-button-back{line-height:1.4;display:block;vertical-align:middle;width:100%;border-radius:3px;margin:25px auto 0 auto}.gb-column-selector-button-back:hover{color:#007cba}.gb-column-selector-button-back:active,.gb-column-selector-button-back:focus,.gb-column-selector-button-back:focus:enabled{background-color:transparent;box-shadow:none}.gb-column-selector-button-back::before{content:"\2190";margin-right:5px}.gb-column-selector-button-back svg{width:16px;margin-right:5px}.gb-column-select-panel .components-button-group{margin-bottom:4px}.gb-column-select-panel .components-button.is-small{height:auto;padding:8px;margin:0 5px 5px 0}.gb-column-select-panel .components-base-control__field+.components-base-control__help{margin-top:8px}.gb-columns-center .gb-layout-column-wrap-admin{margin:0 auto}.gb-block-layout-column .wp-block-image,.gb-block-layout-column .wp-block-image .components-resizable-box__container{max-width:100% !important}.is-button.gb-inspector-icon-button{display:inline-flex;margin-top:12px;padding-top:5px;padding-bottom:5px;height:40px}.gb-background-button-group{margin-bottom:25px}
|
15 |
.gb-layout-modal{width:1200px;min-height:90%;height:100%;overflow-y:hidden}.gb-layout-modal .components-modal__content{background:#f2f2f2;padding:0;overflow-x:hidden}.gb-layout-modal .components-modal__header{margin-bottom:25px;padding-left:50px;padding-right:25px}.gb-layout-modal .components-modal__header h1{font-weight:bold;font-size:1rem}.gb-layout-modal .components-modal__header .components-button{left:0}.gb-layout-modal .components-tab-panel__tab-content{background:#fff;padding:35px;border-top:1px solid #e2e4e7}.gb-layout-modal .components-tab-panel__tabs{padding:0 35px;margin-bottom:-1px}.gb-layout-modal .components-tab-panel__tabs button{padding:15px 20px;background:none;border:none;font-size:16px;height:auto}.gb-layout-modal .components-tab-panel__tabs button:hover{background:#fff;cursor:pointer}.gb-layout-modal .components-tab-panel__tabs .gb-layout-modal-active-tab{font-weight:600;background:#fff;border:1px solid #e2e4e7;border-bottom:none}.gb-layout-modal .components-base-control{display:inline-block}.gb-layout-modal .components-base-control:last-child{float:right}.gb-layout-modal .gb-layout-modal-header{background:#f2f2f2;padding:20px;margin-bottom:40px;display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-gap:0 5em}.gb-layout-modal .gb-layout-modal-header .components-base-control:last-child{align-self:flex-end;margin:0}.gb-layout-modal .gb-layout-modal-header .components-base-control__field{margin-bottom:0}.gb-layout-modal .gb-layout-modal-header select,.gb-layout-modal .gb-layout-modal-header input{font-size:16px;height:34px;width:100%}.gb-layout-modal .gb-layout-choices{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr;grid-gap:0 2em}.gb-layout-modal .gb-layout-view-full{-ms-grid-columns:1fr;grid-template-columns:1fr}.gb-layout-modal .gb-layout-view{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr;grid-gap:0 2em;margin-bottom:20px}.gb-layout-modal .gb-layout-view-left p{margin:0;line-height:2.2em}.gb-layout-modal .gb-layout-view-left a{font-weight:bold;color:#027bba}.gb-layout-modal .gb-layout-view-right{text-align:right}.gb-layout-modal .gb-layout-view-right button{margin-left:5px;height:auto;padding:5px}.gb-layout-modal .gb-layout-design{text-align:center;margin-bottom:40px;position:relative}.gb-layout-modal .gb-layout-design img{max-width:100%;display:block}.gb-layout-modal .gb-layout-design .gb-layout-insert-button{height:auto;background:none;border:none;box-shadow:none;border-bottom:none;padding:0;z-index:5;position:relative;display:block}.gb-layout-modal .gb-layout-design-inside{transition:0.2s ease;border:solid 1px #ccc}.gb-layout-modal .gb-layout-design-inside:hover,.gb-layout-modal .gb-layout-design-inside:focus-within{box-shadow:0 0 0 8px #ececec}.gb-layout-modal .gb-layout-design-info{background:#fff;border-top:solid 1px #ccc;text-align:left;position:relative;padding:12px}.gb-layout-modal .gb-layout-design-info button:active{vertical-align:middle !important}.gb-layout-modal .gb-layout-design-title{font-weight:bold;font-size:13px;color:#444}.gb-layout-modal button.gb-layout-favorite-button{background:none;border:none;box-shadow:none;float:right;border-radius:3px;margin-top:-3px}.gb-layout-modal .components-button-group .components-button.gb-layout-favorite-button{border-radius:3px;padding:0 8px 0}.gb-layout-modal button.gb-layout-favorite-button:hover{background:#fff;border:none;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,0.2)}.gb-layout-modal .components-button-group .components-button.gb-layout-favorite-button:focus{box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,0.2);background:#fff}.gb-layout-modal button.components-button.is-default:active:enabled{box-shadow:inset 0 0 0 1px #ccd0d4, inset 0 0 0 2px #fff}.gb-layout-modal .gb-layout-icon-favorite{fill:#888}.gb-layout-modal .gb-layout-icon-favorite-active{fill:#f9569b}.gb-layout-modal .gb-layout-zoom-button{position:absolute;top:15px;right:15px;background:#fff;border-radius:5px !important;transition:0.2s ease;z-index:10;padding:5px;height:auto;opacity:0;display:none}.gb-layout-modal .gb-layout-design:hover .gb-layout-zoom-button{opacity:1}.gb-layout-modal .gb-layout-zoom-layout{grid-column:1 / -1}.gb-layout-selector-placeholder .components-placeholder__instructions{margin-bottom:1.4em}.gb-layout-selector-placeholder button.gb-layout-modal-button{font-size:16px;height:auto;padding:6px 18px}[data-type="genesis-blocks/gb-layouts"]{-webkit-animation:2s ease 0s normal forwards 1 fadein;animation:2s ease 0s normal forwards 1 fadein}@keyframes fadein{0%{opacity:0}66%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadein{0%{opacity:0}66%{opacity:0}100%{opacity:1}}.current-tab-gb-layout-tab-reusable-blocks.gb-layout-choices{display:block}.current-tab-gb-layout-tab-reusable-blocks.gb-layout-choices a{text-decoration:none}.gb-layout-reusable{display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-pack:distribute;justify-content:space-around;font-size:14px;font-weight:600;padding:18px}.gb-layout-reusable:nth-child(even){background:#f2f2f2}.gb-layout-reusable>div{display:inline;-ms-flex:1 0 0;flex:1 0 0}.gb-layout-reusable a:hover{cursor:pointer}.gb-layout-reusable:hover .gb-layout-reusable-actions{opacity:1}.gb-layout-reusable-actions{text-align:right;font-size:14px;font-weight:normal;opacity:1;transition:0.1s ease}.gb-layout-reusable-actions span{padding-left:15px}.gb-layout-reusable-actions i{font-size:17px;margin-right:2px}.gb-layout-modal .gb-layout-modal-header-reusable{margin-bottom:0;font-weight:bold}.gb-layout-modal .gb-layout-modal-header-reusable a{text-decoration:none}.gb-layout-modal-header-reusable-actions{text-align:right}.gb-layout-modal-footer{position:absolute;bottom:-1px;width:100%;background:#3c3b3b;border-top:solid 1px #e0e0e0;z-index:50;padding:10px 10px 10px 32px;height:auto;font-size:11px;color:#fff}.gb-layout-modal-footer svg{position:absolute;left:10px;width:18px;color:#fff}.gb-layout-modal-footer a{text-decoration:none;color:#fff}.gb-layout-modal-footer a:hover{text-decoration:underline}.gb-layout-modal-footer a:focus{color:#fff;text-decoration:underline}.gb-layout-modal-footer span{margin:0 5px}.gb-layout-modal-footer .gb-pro-feedback{float:right;font-weight:bold;position:relative}.gb-layout-modal-footer .gb-pro-feedback svg{left:-22px}div[data-type*="genesis-blocks/gb-columns"][data-align="full"],div[data-type*="genesis-blocks/gb-container"][data-align="full"]{margin-top:auto;margin-bottom:auto}div[data-type*="genesis-blocks/gb-container"][data-align="full"] .gb-block-container{overflow:hidden}.components-placeholder.gb-layout-selector-placeholder,.components-placeholder.gb-column-selector-placeholder{align-items:center}.components-placeholder.gb-layout-selector-placeholder .components-placeholder__fieldset,.components-placeholder.gb-column-selector-placeholder .components-placeholder__fieldset{width:auto}.gb-layout-design:nth-child(1) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='18' viewBox='0 0 100 18'%3E%3Cpath fill='%234b4b4b' fill-opacity='0.4' d='M61.82 18c3.47-1.45 6.86-3.78 11.3-7.34C78 6.76 80.34 5.1 83.87 3.42 88.56 1.16 93.75 0 100 0v6.16C98.76 6.05 97.43 6 96 6c-9.59 0-14.23 2.23-23.13 9.34-1.28 1.03-2.39 1.9-3.4 2.66h-7.65zm-23.64 0H22.52c-1-.76-2.1-1.63-3.4-2.66C11.57 9.3 7.08 6.78 0 6.16V0c6.25 0 11.44 1.16 16.14 3.42 3.53 1.7 5.87 3.35 10.73 7.24 4.45 3.56 7.84 5.9 11.31 7.34zM61.82 0h7.66a39.57 39.57 0 0 1-7.34 4.58C57.44 6.84 52.25 8 46 8S34.56 6.84 29.86 4.58A39.57 39.57 0 0 1 22.52 0h15.66C41.65 1.44 45.21 2 50 2c4.8 0 8.35-.56 11.82-2z'%3E%3C/path%3E%3C/svg%3E")}.gb-layout-design:nth-child(2) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23565656' fill-opacity='0.4' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E")}.gb-layout-design:nth-child(3) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235a5a5a' fill-opacity='0.4'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.gb-layout-design:nth-child(4) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='72' viewBox='0 0 36 72'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23565656' fill-opacity='0.4'%3E%3Cpath d='M2 6h12L8 18 2 6zm18 36h12l-6 12-6-12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.gb-layout-design:nth-child(5) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235c5c5c' fill-opacity='0.4'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.gb-layout-design:nth-child(6) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23656565' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.gb-layout-collection-cover{width:100%;min-height:225px;background-color:#2f2f2f;border-radius:0;display:flex;align-items:center;justify-content:center;transition:0.2s ease}.gb-layout-collection-cover:hover{background-color:#202020 !important}.gb-layout-collection-cover .gb-layout-collection-label{color:#fff;font-size:26px}.gb-layout-collection-button{width:100%}.gb-collections-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;background:#f2f2f2;padding:30px 20px}.gb-collections-header h2{margin:0}.gb-collections-link{background:#fff;border-radius:5px;padding:10px;box-shadow:1px 1px 2px #ccc;text-decoration:none}.gb-collections-link:hover{cursor:pointer}.gb-collections-link:focus{box-shadow:0 0 0 2px #007cba}.gb-collections-link span{margin-right:5px;transition:color 0.05s ease-in}.gb-collections-view-all-link{color:#0073aa;border:none;padding:0;margin-bottom:12px;display:flex;align-items:center;line-height:1}.gb-collections-view-all-link:hover{color:#00a0d2;cursor:pointer}.gb-collections-view-all-link span{margin-right:2px;transition:color 0.05s ease-in;font-size:15px}.gb-collections-view-all-link span::before{vertical-align:middle}.gb-collection-title{font-size:28px}.gb-collection-type-title{font-size:20px;margin-bottom:25px}.gb-collections-body .gb-collection-type-title:first-of-type{margin-top:45px}.gpb-slate-section-contact-box .wp-block-genesis-blocks-gb-column{height:100%}
|
16 |
-
#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image{position:absolute;z-index:50;padding:0;top:0;left:0;opacity:1;height:100%}#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image img{transition:0.2s ease}#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image:hover{background:none;box-shadow:none}#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image:hover img{opacity:0.7}#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image:focus{background:none;border:none;outline:none;box-shadow:none}#editor div[class^="wp-block-genesis-blocks-"] .gb-add-image{position:absolute;left:0;top:0;z-index:50;padding:0;width:100%;height:100%}#editor div[class^="wp-block-genesis-blocks-"] .gb-add-image svg{position:absolute;top:17px;left:19px}#editor div[class^="wp-block-genesis-blocks-"] .gb-remove-image{color:#ec3939;position:absolute;right:0;top:0;height:auto;width:20px;left:auto;z-index:60;margin:0;padding:0;background:#fff;border-radius:50px}#editor div[class^="wp-block-genesis-blocks-"] .gb-remove-image:active,#editor div[class^="wp-block-genesis-blocks-"] .gb-remove-image:focus{color:#ec3939;background:#fff}#editor div[class^="wp-block-genesis-blocks-"] .gb-remove-image:not(:disabled):not([aria-disabled=true]):focus{background:#fff}.gb-inspector-help-text .components-base-control__help{margin-top:0}.wp-block *[class*="gpb-fluid"],.editor-styles-wrapper *[class*="gpb-fluid"]{margin:0 0 1rem 0;line-height:1.1;font-weight:normal}.editor-styles-wrapper .gpb-fluid-1{font-size:20px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-1{font-size:calc(11.50943px + 100vw * .01415)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-1{font-size:26px}}.editor-styles-wrapper .gpb-fluid-2{font-size:22px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-2{font-size:calc(10.67925px + 100vw * .01887)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-2{font-size:30px}}.editor-styles-wrapper .gpb-fluid-3{font-size:24px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-3{font-size:calc(4.18868px + 100vw * .03302)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-3{font-size:38px}}.editor-styles-wrapper .gpb-fluid-4{font-size:28px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-4{font-size:calc(5.35849px + 100vw * .03774)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-4{font-size:44px}}.editor-styles-wrapper .gpb-fluid-5{font-size:32px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-5{font-size:calc(3.69811px + 100vw * .04717)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-5{font-size:52px}}.editor-styles-wrapper .gpb-fluid-6{font-size:36px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-6{font-size:calc(2.03774px + 100vw * .0566)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-6{font-size:60px}}
|
13 |
.gb-block-newsletter .gb-newsletter-title.mce-content-body{margin-top:0;line-height:1.3}.gb-form-styles label{margin-bottom:8px;width:100%;display:block}.gb-form-styles input{width:100%;height:auto;border:solid 1px #ccc;min-height:45px;margin-bottom:15px;padding:15px;font-size:16px}.gb-newsletter-double-opt-in-setting-wrapper{margin-bottom:24px}.gb-newsletter-double-opt-in-setting-wrapper .description{margin-bottom:5px}.gb-newsletter-double-opt-in-toggle{margin-right:5px}
|
14 |
.gb-layout-column-wrap-admin,.gb-block-layout-column-inner .block-editor-inner-blocks{position:relative;z-index:1}.editor-styles-wrapper [data-type="genesis-blocks/gb-columns"] .wp-block{max-width:100%}.edit-post-visual-editor .editor-block-list__block [data-type="genesis-blocks/gb-column"],.edit-post-visual-editor .block-editor-block-list__block [data-type="genesis-blocks/gb-column"]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{display:-ms-grid;display:grid;-ms-grid-rows:1fr;grid-template-rows:1fr;grid-gap:0 2em;min-height:0}.gb-block-layout-column-gap-0>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-0>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 0}.gb-block-layout-column-gap-1>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-1>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 1em}.gb-block-layout-column-gap-2>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-2>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 2em}.gb-block-layout-column-gap-3>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-3>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 3em}.gb-block-layout-column-gap-4>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-4>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 4em}.gb-block-layout-column-gap-5>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-5>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 5em}.gb-block-layout-column-gap-6>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-6>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 6em}.gb-block-layout-column-gap-7>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-7>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 7em}.gb-block-layout-column-gap-8>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-8>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 8em}.gb-block-layout-column-gap-9>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-9>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 9em}.gb-block-layout-column-gap-10>.editor-inner-blocks>.editor-block-list__layout,.gb-block-layout-column-gap-10>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:0 10em}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(1),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(2),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(3),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(4),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(5),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(5){-ms-grid-row:1;-ms-grid-column:5;grid-area:col5}.gb-layout-column-wrap-admin .editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(6),.gb-layout-column-wrap-admin .block-editor-block-list__layout [data-type="genesis-blocks/gb-column"]:nth-child(6){-ms-grid-row:1;-ms-grid-column:6;grid-area:col6}.gb-layout-columns-1>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-1>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1"}.gb-layout-columns-2>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-2>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}.gb-2-col-wideleft>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-2-col-wideleft>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:2fr 1fr;grid-template-columns:2fr 1fr}.gb-2-col-wideright>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-2-col-wideright>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 2fr;grid-template-columns:1fr 2fr}.gb-layout-columns-3>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-3>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}.gb-3-col-widecenter>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-3-col-widecenter>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 2fr 1fr;grid-template-columns:1fr 2fr 1fr}.gb-3-col-wideleft>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-3-col-wideleft>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:2fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr}.gb-3-col-wideright>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-3-col-wideright>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 2fr;grid-template-columns:1fr 1fr 2fr}.gb-layout-columns-4>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-4>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}.gb-4-col-wideleft>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-4-col-wideleft>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:2fr 1fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr 1fr}.gb-4-col-wideright>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-4-col-wideright>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 2fr;grid-template-columns:1fr 1fr 1fr 2fr}.gb-layout-columns-5>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-5>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5"}.gb-layout-columns-6>.gb-layout-column-wrap-admin>.editor-inner-blocks>.editor-block-list__layout,.gb-layout-columns-6>.gb-layout-column-wrap-admin>.block-editor-inner-blocks>.block-editor-block-list__layout{-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"}.block-editor .gb-layout-columns-4,.block-editor .gb-layout-columns-5,.block-editor .gb-layout-columns-6{overflow-x:visible}.gb-block-layout-column .editor-block-list__block[data-align=full],.gb-block-layout-column .block-editor-block-list__block[data-align=wide],.gb-block-layout-column .editor-block-list__block[data-align=full],.gb-block-layout-column .block-editor-block-list__block[data-align=wide]{margin-left:auto;margin-right:auto}[data-type="genesis-blocks/gb-column"].gb-is-vertically-aligned-top{align-self:flex-start}[data-type="genesis-blocks/gb-column"].gb-is-vertically-aligned-center{align-self:center}[data-type="genesis-blocks/gb-column"].gb-is-vertically-aligned-bottom{align-self:flex-end}[data-type="genesis-blocks/gb-columns"] .components-placeholder{padding:30px}[data-type="genesis-blocks/gb-columns"] .components-placeholder__fieldset{max-width:100%}.gb-column-selector-button-back{line-height:1.4;display:block;vertical-align:middle;width:100%;border-radius:3px;margin:25px auto 0 auto}.gb-column-selector-button-back:hover{color:#007cba}.gb-column-selector-button-back:active,.gb-column-selector-button-back:focus,.gb-column-selector-button-back:focus:enabled{background-color:transparent;box-shadow:none}.gb-column-selector-button-back::before{content:"\2190";margin-right:5px}.gb-column-selector-button-back svg{width:16px;margin-right:5px}.gb-column-select-panel .components-button-group{margin-bottom:4px}.gb-column-select-panel .components-button.is-small{height:auto;padding:8px;margin:0 5px 5px 0}.gb-column-select-panel .components-base-control__field+.components-base-control__help{margin-top:8px}.gb-columns-center .gb-layout-column-wrap-admin{margin:0 auto}.gb-block-layout-column .wp-block-image,.gb-block-layout-column .wp-block-image .components-resizable-box__container{max-width:100% !important}.is-button.gb-inspector-icon-button{display:inline-flex;margin-top:12px;padding-top:5px;padding-bottom:5px;height:40px}.gb-background-button-group{margin-bottom:25px}
|
15 |
.gb-layout-modal{width:1200px;min-height:90%;height:100%;overflow-y:hidden}.gb-layout-modal .components-modal__content{background:#f2f2f2;padding:0;overflow-x:hidden}.gb-layout-modal .components-modal__header{margin-bottom:25px;padding-left:50px;padding-right:25px}.gb-layout-modal .components-modal__header h1{font-weight:bold;font-size:1rem}.gb-layout-modal .components-modal__header .components-button{left:0}.gb-layout-modal .components-tab-panel__tab-content{background:#fff;padding:35px;border-top:1px solid #e2e4e7}.gb-layout-modal .components-tab-panel__tabs{padding:0 35px;margin-bottom:-1px}.gb-layout-modal .components-tab-panel__tabs button{padding:15px 20px;background:none;border:none;font-size:16px;height:auto}.gb-layout-modal .components-tab-panel__tabs button:hover{background:#fff;cursor:pointer}.gb-layout-modal .components-tab-panel__tabs .gb-layout-modal-active-tab{font-weight:600;background:#fff;border:1px solid #e2e4e7;border-bottom:none}.gb-layout-modal .components-base-control{display:inline-block}.gb-layout-modal .components-base-control:last-child{float:right}.gb-layout-modal .gb-layout-modal-header{background:#f2f2f2;padding:20px;margin-bottom:40px;display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-gap:0 5em}.gb-layout-modal .gb-layout-modal-header .components-base-control:last-child{align-self:flex-end;margin:0}.gb-layout-modal .gb-layout-modal-header .components-base-control__field{margin-bottom:0}.gb-layout-modal .gb-layout-modal-header select,.gb-layout-modal .gb-layout-modal-header input{font-size:16px;height:34px;width:100%}.gb-layout-modal .gb-layout-choices{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr;grid-gap:0 2em}.gb-layout-modal .gb-layout-view-full{-ms-grid-columns:1fr;grid-template-columns:1fr}.gb-layout-modal .gb-layout-view{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr;grid-gap:0 2em;margin-bottom:20px}.gb-layout-modal .gb-layout-view-left p{margin:0;line-height:2.2em}.gb-layout-modal .gb-layout-view-left a{font-weight:bold;color:#027bba}.gb-layout-modal .gb-layout-view-right{text-align:right}.gb-layout-modal .gb-layout-view-right button{margin-left:5px;height:auto;padding:5px}.gb-layout-modal .gb-layout-design{text-align:center;margin-bottom:40px;position:relative}.gb-layout-modal .gb-layout-design img{max-width:100%;display:block}.gb-layout-modal .gb-layout-design .gb-layout-insert-button{height:auto;background:none;border:none;box-shadow:none;border-bottom:none;padding:0;z-index:5;position:relative;display:block}.gb-layout-modal .gb-layout-design-inside{transition:0.2s ease;border:solid 1px #ccc}.gb-layout-modal .gb-layout-design-inside:hover,.gb-layout-modal .gb-layout-design-inside:focus-within{box-shadow:0 0 0 8px #ececec}.gb-layout-modal .gb-layout-design-info{background:#fff;border-top:solid 1px #ccc;text-align:left;position:relative;padding:12px}.gb-layout-modal .gb-layout-design-info button:active{vertical-align:middle !important}.gb-layout-modal .gb-layout-design-title{font-weight:bold;font-size:13px;color:#444}.gb-layout-modal button.gb-layout-favorite-button{background:none;border:none;box-shadow:none;float:right;border-radius:3px;margin-top:-3px}.gb-layout-modal .components-button-group .components-button.gb-layout-favorite-button{border-radius:3px;padding:0 8px 0}.gb-layout-modal button.gb-layout-favorite-button:hover{background:#fff;border:none;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,0.2)}.gb-layout-modal .components-button-group .components-button.gb-layout-favorite-button:focus{box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,0.2);background:#fff}.gb-layout-modal button.components-button.is-default:active:enabled{box-shadow:inset 0 0 0 1px #ccd0d4, inset 0 0 0 2px #fff}.gb-layout-modal .gb-layout-icon-favorite{fill:#888}.gb-layout-modal .gb-layout-icon-favorite-active{fill:#f9569b}.gb-layout-modal .gb-layout-zoom-button{position:absolute;top:15px;right:15px;background:#fff;border-radius:5px !important;transition:0.2s ease;z-index:10;padding:5px;height:auto;opacity:0;display:none}.gb-layout-modal .gb-layout-design:hover .gb-layout-zoom-button{opacity:1}.gb-layout-modal .gb-layout-zoom-layout{grid-column:1 / -1}.gb-layout-selector-placeholder .components-placeholder__instructions{margin-bottom:1.4em}.gb-layout-selector-placeholder button.gb-layout-modal-button{font-size:16px;height:auto;padding:6px 18px}[data-type="genesis-blocks/gb-layouts"]{-webkit-animation:2s ease 0s normal forwards 1 fadein;animation:2s ease 0s normal forwards 1 fadein}@keyframes fadein{0%{opacity:0}66%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadein{0%{opacity:0}66%{opacity:0}100%{opacity:1}}.current-tab-gb-layout-tab-reusable-blocks.gb-layout-choices{display:block}.current-tab-gb-layout-tab-reusable-blocks.gb-layout-choices a{text-decoration:none}.gb-layout-reusable{display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-pack:distribute;justify-content:space-around;font-size:14px;font-weight:600;padding:18px}.gb-layout-reusable:nth-child(even){background:#f2f2f2}.gb-layout-reusable>div{display:inline;-ms-flex:1 0 0;flex:1 0 0}.gb-layout-reusable a:hover{cursor:pointer}.gb-layout-reusable:hover .gb-layout-reusable-actions{opacity:1}.gb-layout-reusable-actions{text-align:right;font-size:14px;font-weight:normal;opacity:1;transition:0.1s ease}.gb-layout-reusable-actions span{padding-left:15px}.gb-layout-reusable-actions i{font-size:17px;margin-right:2px}.gb-layout-modal .gb-layout-modal-header-reusable{margin-bottom:0;font-weight:bold}.gb-layout-modal .gb-layout-modal-header-reusable a{text-decoration:none}.gb-layout-modal-header-reusable-actions{text-align:right}.gb-layout-modal-footer{position:absolute;bottom:-1px;width:100%;background:#3c3b3b;border-top:solid 1px #e0e0e0;z-index:50;padding:10px 10px 10px 32px;height:auto;font-size:11px;color:#fff}.gb-layout-modal-footer svg{position:absolute;left:10px;width:18px;color:#fff}.gb-layout-modal-footer a{text-decoration:none;color:#fff}.gb-layout-modal-footer a:hover{text-decoration:underline}.gb-layout-modal-footer a:focus{color:#fff;text-decoration:underline}.gb-layout-modal-footer span{margin:0 5px}.gb-layout-modal-footer .gb-pro-feedback{float:right;font-weight:bold;position:relative}.gb-layout-modal-footer .gb-pro-feedback svg{left:-22px}div[data-type*="genesis-blocks/gb-columns"][data-align="full"],div[data-type*="genesis-blocks/gb-container"][data-align="full"]{margin-top:auto;margin-bottom:auto}div[data-type*="genesis-blocks/gb-container"][data-align="full"] .gb-block-container{overflow:hidden}.components-placeholder.gb-layout-selector-placeholder,.components-placeholder.gb-column-selector-placeholder{align-items:center}.components-placeholder.gb-layout-selector-placeholder .components-placeholder__fieldset,.components-placeholder.gb-column-selector-placeholder .components-placeholder__fieldset{width:auto}.gb-layout-design:nth-child(1) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='18' viewBox='0 0 100 18'%3E%3Cpath fill='%234b4b4b' fill-opacity='0.4' d='M61.82 18c3.47-1.45 6.86-3.78 11.3-7.34C78 6.76 80.34 5.1 83.87 3.42 88.56 1.16 93.75 0 100 0v6.16C98.76 6.05 97.43 6 96 6c-9.59 0-14.23 2.23-23.13 9.34-1.28 1.03-2.39 1.9-3.4 2.66h-7.65zm-23.64 0H22.52c-1-.76-2.1-1.63-3.4-2.66C11.57 9.3 7.08 6.78 0 6.16V0c6.25 0 11.44 1.16 16.14 3.42 3.53 1.7 5.87 3.35 10.73 7.24 4.45 3.56 7.84 5.9 11.31 7.34zM61.82 0h7.66a39.57 39.57 0 0 1-7.34 4.58C57.44 6.84 52.25 8 46 8S34.56 6.84 29.86 4.58A39.57 39.57 0 0 1 22.52 0h15.66C41.65 1.44 45.21 2 50 2c4.8 0 8.35-.56 11.82-2z'%3E%3C/path%3E%3C/svg%3E")}.gb-layout-design:nth-child(2) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23565656' fill-opacity='0.4' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E")}.gb-layout-design:nth-child(3) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235a5a5a' fill-opacity='0.4'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.gb-layout-design:nth-child(4) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='72' viewBox='0 0 36 72'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23565656' fill-opacity='0.4'%3E%3Cpath d='M2 6h12L8 18 2 6zm18 36h12l-6 12-6-12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.gb-layout-design:nth-child(5) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235c5c5c' fill-opacity='0.4'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.gb-layout-design:nth-child(6) .gb-layout-collection-cover{background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23656565' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.gb-layout-collection-cover{width:100%;min-height:225px;background-color:#2f2f2f;border-radius:0;display:flex;align-items:center;justify-content:center;transition:0.2s ease}.gb-layout-collection-cover:hover{background-color:#202020 !important}.gb-layout-collection-cover .gb-layout-collection-label{color:#fff;font-size:26px}.gb-layout-collection-button{width:100%}.gb-collections-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;background:#f2f2f2;padding:30px 20px}.gb-collections-header h2{margin:0}.gb-collections-link{background:#fff;border-radius:5px;padding:10px;box-shadow:1px 1px 2px #ccc;text-decoration:none}.gb-collections-link:hover{cursor:pointer}.gb-collections-link:focus{box-shadow:0 0 0 2px #007cba}.gb-collections-link span{margin-right:5px;transition:color 0.05s ease-in}.gb-collections-view-all-link{color:#0073aa;border:none;padding:0;margin-bottom:12px;display:flex;align-items:center;line-height:1}.gb-collections-view-all-link:hover{color:#00a0d2;cursor:pointer}.gb-collections-view-all-link span{margin-right:2px;transition:color 0.05s ease-in;font-size:15px}.gb-collections-view-all-link span::before{vertical-align:middle}.gb-collection-title{font-size:28px}.gb-collection-type-title{font-size:20px;margin-bottom:25px}.gb-collections-body .gb-collection-type-title:first-of-type{margin-top:45px}.gpb-slate-section-contact-box .wp-block-genesis-blocks-gb-column{height:100%}
|
16 |
+
#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image{position:absolute;z-index:50;padding:0;top:0;left:0;opacity:1;height:100%}#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image img{transition:0.2s ease}#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image:hover{background:none;box-shadow:none}#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image:hover img{opacity:0.7}#editor div[class^="wp-block-genesis-blocks-"] .gb-change-image:focus{background:none;border:none;outline:none;box-shadow:none}#editor div[class^="wp-block-genesis-blocks-"] .gb-add-image{position:absolute;left:0;top:0;z-index:50;padding:0;width:100%;height:100%}#editor div[class^="wp-block-genesis-blocks-"] .gb-add-image svg{position:absolute;top:17px;left:19px}#editor div[class^="wp-block-genesis-blocks-"] .gb-remove-image{color:#ec3939;position:absolute;right:0;top:0;height:auto;width:20px;left:auto;z-index:60;margin:0;padding:0;background:#fff;border-radius:50px}#editor div[class^="wp-block-genesis-blocks-"] .gb-remove-image:active,#editor div[class^="wp-block-genesis-blocks-"] .gb-remove-image:focus{color:#ec3939;background:#fff}#editor div[class^="wp-block-genesis-blocks-"] .gb-remove-image:not(:disabled):not([aria-disabled=true]):focus{background:#fff}.gb-inspector-help-text .components-base-control__help{margin-top:0}.wp-block *[class*="gpb-fluid"],.editor-styles-wrapper *[class*="gpb-fluid"]{margin:0 0 1rem 0;line-height:1.1;font-weight:normal}.editor-styles-wrapper .gpb-fluid-1{font-size:20px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-1{font-size:calc(11.50943px + 100vw * .01415)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-1{font-size:26px}}.editor-styles-wrapper .gpb-fluid-2{font-size:22px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-2{font-size:calc(10.67925px + 100vw * .01887)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-2{font-size:30px}}.editor-styles-wrapper .gpb-fluid-3{font-size:24px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-3{font-size:calc(4.18868px + 100vw * .03302)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-3{font-size:38px}}.editor-styles-wrapper .gpb-fluid-4{font-size:28px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-4{font-size:calc(5.35849px + 100vw * .03774)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-4{font-size:44px}}.editor-styles-wrapper .gpb-fluid-5{font-size:32px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-5{font-size:calc(3.69811px + 100vw * .04717)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-5{font-size:52px}}.editor-styles-wrapper .gpb-fluid-6{font-size:36px}@media (min-width: 600px){.editor-styles-wrapper .gpb-fluid-6{font-size:calc(2.03774px + 100vw * .0566)}}@media (min-width: 1024px){.editor-styles-wrapper .gpb-fluid-6{font-size:60px}}.gb-responsive-toggle{margin-top:2rem;margin-bottom:1rem}.gb-responsive-toggle .components-button.has-icon.has-text{margin-right:5px}.gb-responsive-toggle .components-button.has-icon .dashicon{margin-right:2px;margin-left:0}
|
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.
|
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.3.0
|
9 |
* License: GPL2+
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
*
|
includes/load-scripts.php
CHANGED
@@ -43,7 +43,7 @@ function genesis_blocks_editor_assets() {
|
|
43 |
wp_enqueue_script(
|
44 |
'genesis-blocks-block-js',
|
45 |
plugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ),
|
46 |
-
array( 'wp-blocks', 'wp-
|
47 |
filemtime( plugin_dir_path( genesis_blocks_main_plugin_file() ) . 'dist/blocks.build.js' ),
|
48 |
true
|
49 |
);
|
43 |
wp_enqueue_script(
|
44 |
'genesis-blocks-block-js',
|
45 |
plugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ),
|
46 |
+
array( 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n' ),
|
47 |
filemtime( plugin_dir_path( genesis_blocks_main_plugin_file() ) . 'dist/blocks.build.js' ),
|
48 |
true
|
49 |
);
|
languages/genesis-blocks.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the GPL2+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Genesis Blocks 1.
|
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-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: genesis-blocks\n"
|
@@ -3061,6 +3061,34 @@ msgstr ""
|
|
3061 |
msgid "Add a user testimonial with a name and title."
|
3062 |
msgstr ""
|
3063 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3064 |
#: src/utils/components/background-image/inspector.js:24
|
3065 |
msgid "No Repeat"
|
3066 |
msgstr ""
|
2 |
# This file is distributed under the GPL2+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Genesis Blocks 1.3.0\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-09-23T18:40:58+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: genesis-blocks\n"
|
3061 |
msgid "Add a user testimonial with a name and title."
|
3062 |
msgstr ""
|
3063 |
|
3064 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:186
|
3065 |
+
msgid "Responsive Typography"
|
3066 |
+
msgstr ""
|
3067 |
+
|
3068 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:191
|
3069 |
+
msgid "Desktop view"
|
3070 |
+
msgstr ""
|
3071 |
+
|
3072 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:196
|
3073 |
+
msgid "Desktop"
|
3074 |
+
msgstr ""
|
3075 |
+
|
3076 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:201
|
3077 |
+
msgid "Tablet view"
|
3078 |
+
msgstr ""
|
3079 |
+
|
3080 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:206
|
3081 |
+
msgid "Tablet"
|
3082 |
+
msgstr ""
|
3083 |
+
|
3084 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:211
|
3085 |
+
msgid "Mobile view"
|
3086 |
+
msgstr ""
|
3087 |
+
|
3088 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:216
|
3089 |
+
msgid "Mobile"
|
3090 |
+
msgstr ""
|
3091 |
+
|
3092 |
#: src/utils/components/background-image/inspector.js:24
|
3093 |
msgid "No Repeat"
|
3094 |
msgstr ""
|
lib/BlockLoader/ManualRequire.php
CHANGED
@@ -99,5 +99,10 @@ final class ManualRequire {
|
|
99 |
* Block Deprecation Handlers.
|
100 |
*/
|
101 |
require_once $blocks_path . 'block-author-profile/deprecated/1.8.2/filter.php';
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
}
|
99 |
* Block Deprecation Handlers.
|
100 |
*/
|
101 |
require_once $blocks_path . 'block-author-profile/deprecated/1.8.2/filter.php';
|
102 |
+
|
103 |
+
/**
|
104 |
+
* Genesis Responsive Controls Handlers.
|
105 |
+
*/
|
106 |
+
require_once $blocks_path . 'responsive-controls/fonts.php';
|
107 |
}
|
108 |
}
|
lib/Migration/js/build/migration.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '06524ad7339eabb301ccd8fa7e9e55e6');
|
lib/Migration/js/build/migration.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){function n(e,t,n,r,c,s,
|
2 |
/*!
|
3 |
-
Copyright (c)
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)&&r.length){var a=c.apply(null,r);a&&e.push(a)}else if("object"===s)for(var o in r)n.call(r,o)&&r[o]&&e.push(o)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},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,c=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,s=e}finally{try{r||null==o.return||o.return()}finally{if(c)throw s}}return n}}},function(e,t,n){var r=n(14);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(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){"use strict";n.r(t);var r=n(0),c=n(8),s=n.n(c),a=n(9),o=n.n(a),i=n(5),l=n.n(i),u=(n(3),n(1)),b=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.goToNext,s=e.goToPrevious,a=e.stepIndex,o=1===a,i=Object(u.__)("Migrating from Atomic Blocks to Genesis Blocks is a one-way action. It can’t be undone. Please back up your site before you begin.","genesis-blocks");return genesisBlocksMigration.isPro&&(i=Object(u.__)("Migrating your Genesis Blocks content is a one-way action. It can’t be undone. Please back up your site before you begin.","genesis-blocks")),Object(r.createElement)(S,{isActive:t,isComplete:n},Object(r.createElement)(T,{index:a,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Back Up Your Site","genesis-blocks"),isStepActive:t},Object(r.createElement)("p",null,i),Object(r.createElement)(C,null,!o&&Object(r.createElement)(y,{onClick:s}),Object(r.createElement)(_,{checkboxLabel:Object(u.__)("I have backed up my site.","genesis-blocks"),onClick:c,stepIndex:a}))))},p=n(2),m=n.n(p),f=n(4),g=n.n(f),O=n(6),j=n(7),d=n.n(j),h=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.stepIndex,s=e.goToNext,a=Object(r.useState)(0),o=l()(a,2),i=o[0],b=o[1],p=Object(r.useState)(!1),f=l()(p,2),j=f[0],h=f[1],v=Object(r.useState)(!1),k=l()(v,2),_=k[0],y=k[1],E=Object(r.useState)(""),x=l()(E,2),w=x[0],A=x[1],M=Object(r.useState)(!1),B=l()(M,2),I=B[0],F=B[1],L=Object(r.useState)(0),R=l()(L,2),U=R[0],H=R[1],z=[Object(u.__)("Migrate block settings.","genesis-blocks"),Object(u.__)("Migrate block content. Migrated: ","genesis-blocks")+" ".concat(U,"."),Object(u.__)("Migrate favorite blocks.","genesis-blocks"),genesisBlocksMigration.isPro?Object(u.__)("Clean up.","genesis-blocks"):Object(u.__)("Deactivate Atomic Blocks.","genesis-blocks")],G=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d()({path:"/genesis-blocks/migrate-settings",method:"POST"}).then(g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(1),e.next=3,V();case 3:return e.next=5,Y();case 5:case"end":return e.stop()}}),e)})))).catch((function(e){e.hasOwnProperty("message")&&A(e.message),Object(O.speak)(Object(u.__)("The migration failed during settings migration.","genesis-blocks")),y(!0),h(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d()({path:"/genesis-blocks/migrate-pro-settings",method:"POST"}).catch((function(e){e.hasOwnProperty("message")&&A(e.message),Object(O.speak)(Object(u.__)("The pro settings migration failed.","genesis-blocks")),y(!0)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"invalid_json",e.next=3,d()({path:"/genesis-blocks/migrate-content",method:"POST"}).then(function(){var e=g()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.results&&t.results.postsFound>0)){e.next=5;break}return H((function(e){return e+t.results.postsFound})),e.next=4,Y();case 4:return e.abrupt("return");case 5:return b(2),e.next=8,D();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch(function(){var e=g()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasOwnProperty("code")||"invalid_json"!==t.code){e.next=6;break}return e.next=3,Y();case 3:return e.abrupt("return");case 6:t.hasOwnProperty("message")&&A(t.message);case 7:Object(O.speak)(Object(u.__)("The migration failed during post content migration","genesis-blocks")),y(!0);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"invalid_json",e.next=3,d()({path:"/genesis-blocks/migrate-user-meta",method:"POST"}).then(g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(3),e.next=3,W();case 3:case"end":return e.stop()}}),e)})))).catch(function(){var e=g()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasOwnProperty("code")||"invalid_json"!==t.code){e.next=6;break}return e.next=3,D();case 3:return e.abrupt("return");case 6:t.hasOwnProperty("message")&&A(t.message);case 7:Object(O.speak)(Object(u.__)("The migration failed while migrating favorite blocks.","genesis-blocks")),y(!0);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d()({path:"/genesis-blocks/migrate-cleanup",method:"POST"}).then((function(){Object(O.speak)(Object(u.__)("The migration was successful!","genesis-blocks")),F(!0),s()}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(O.speak)(Object(u.__)("The migration is now in progress","genesis-blocks")),A(""),h(!0),e.next=5,G();case 5:h(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.createElement)(S,{isActive:t,isComplete:n},Object(r.createElement)(T,{index:c,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Migrate Your Content","genesis-blocks"),isStepActive:t,isLastStep:!0},!I&&Object(r.createElement)("p",null,Object(u.__)("Okay! Everything is ready. Let’s do this. While the migration is underway, don’t leave this page.","genesis-blocks")),!!w&&Object(r.createElement)("div",{className:"gb-migration__error"},Object(r.createElement)("p",null,Object(u.__)("The following error occurred:","genesis-blocks")),Object(r.createElement)("p",null,w)),(j||I)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(N,{steps:z,currentStep:i,complete:!j})),!j&&!I&&Object(r.createElement)("button",{className:"btn",onClick:q},_?Object(u.__)("Try Again","genesis-blocks"):Object(u.__)("Migrate Now","genesis-blocks")),I&&Object(r.createElement)(r.Fragment,null,!genesisBlocksMigration.isPro&&Object(r.createElement)("p",null,Object(r.createElement)("span",{role:"img","aria-label":Object(u.__)("party emoji","genesis-blocks")},"🎉")," ",Object(u.__)("The migration completed successfully! Time to say goodbye to Atomic Blocks (it’s been fun!) and step into the FUTURE","genesis-blocks")," ",Object(r.createElement)("span",{className:"message-future"},Object(u.__)("FUTURE","genesis-blocks"))," ",Object(r.createElement)("sub",null,Object(u.__)("FUTURE","genesis-blocks")),"."),genesisBlocksMigration.isPro&&Object(r.createElement)("p",null,Object(r.createElement)("span",{role:"img","aria-label":Object(u.__)("party emoji","genesis-blocks")},"🎉")," ",Object(u.__)("The migration completed successfully!","genesis-blocks")),Object(r.createElement)(C,null,Object(r.createElement)("a",{href:genesisBlocksMigration.gbUrl,className:"btn"},Object(u.__)("Get started with Genesis Blocks","genesis-blocks"))))))},v=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.stepIndex,s=e.goToNext,a=e.goToPrevious;return Object(r.createElement)(S,{isActive:t,isComplete:n},Object(r.createElement)(T,{index:c,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Update CSS and PHP code","genesis-blocks"),isStepActive:t},Object(r.createElement)("p",null,Object(r.createElement)("b",null,Object(u.__)("You will need to make manual changes if your theme, plugins or customizations include Atomic Blocks CSS or PHP:","genesis-blocks"))),Object(r.createElement)("ul",{className:"list-disc list-inside mt-2"},Object(r.createElement)("li",null,Object(r.createElement)("b",null,Object(u.__)("CSS","genesis-blocks"))," - ",Object(u.__)("CSS classes and HTML markup have changed.","genesis-blocks")," ",Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-css/",target:"_blank",rel:"noopener noreferrer"},Object(u.__)("Check if you need to make CSS changes.","genesis-blocks"))),Object(r.createElement)("li",null,Object(r.createElement)("b",null,Object(u.__)("PHP","genesis-blocks"))," - ",Object(u.__)("Filter, function and block names have changed.","genesis-blocks")," ",Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-php/",target:"_blank",rel:"noopener noreferrer"},Object(u.__)("Check if you need to make PHP changes.","genesis-blocks")))),Object(r.createElement)(C,null,Object(r.createElement)(y,{onClick:a}),Object(r.createElement)(_,{checkboxLabel:Object(u.__)("I have made necessary changes to PHP and CSS.","genesis-blocks"),onClick:s,stepIndex:c}))))},k=function(){var e=Object(r.useState)(1),t=l()(e,2),n=t[0],c=t[1],s=function(){c(n-1)},a=function(){c(n+1)},i=[b,v,h];return Object(r.createElement)("div",{className:"gb-migration__content-wrapper"},Object(r.createElement)("div",{className:"container gb-migration__content-container"},Object(r.createElement)(E,null),i.map((function(e,t){var c=1+t,i=n===c,l=n>c;return Object(r.createElement)(e,o()({key:"gb-migration-step-".concat(c)},{currentStepIndex:n,goToNext:a,goToPrevious:s,isStepActive:i,isStepComplete:l,stepIndex:c}))}))))},_=function(e){var t=e.onClick,n=e.checkboxLabel,c=e.stepIndex,s=Object(r.useState)(!1),a=l()(s,2),o=a[0],i=a[1];if(!n)return Object(r.createElement)("button",{className:"btn",onClick:t},Object(u.__)("Next Step","genesis-blocks"));var b="gb-migration-check-".concat(c);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("form",null,Object(r.createElement)("input",{id:b,type:"checkbox",onClick:function(){i(!o)}}),Object(r.createElement)("label",{htmlFor:b,className:"ml-2 font-medium"},n)),Object(r.createElement)("button",{className:"btn",onClick:t,disabled:!o},Object(u.__)("Next Step","genesis-blocks")))},y=function(e){var t=e.onClick;return Object(r.createElement)("button",{className:"btn btn-secondary",onClick:t},Object(u.__)("Previous","genesis-blocks"))},E=function(){var e=Object(u.__)("Atomic Blocks has been renamed to Genesis Blocks","genesis-blocks");return genesisBlocksMigration.isPro&&(e=Object(u.__)("We need to update your blocks to give you the latest features!","genesis-blocks")),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",null,Object(r.createElement)("h2",null,e),Object(r.createElement)("p",null,Object(u.__)("Same powerful blocks, same beautiful designs, same innovative team.","genesis-blocks")),Object(r.createElement)("p",null,Object(u.__)("To continue receiving the best of what our team is building, we encourage you to migrate. Our migration tool makes this nice and easy, and for the majority of use cases, completely automated.","genesis-blocks")),Object(r.createElement)("div",{className:"dev-notice"},Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20"},Object(r.createElement)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})),Object(r.createElement)("span",null,Object(u.__)("Need to let the developer for this site know about this? Send them this link.","genesis-blocks")),Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-dev/",target:"_blank",rel:"noopener noreferrer",className:"btn"},Object(r.createElement)("span",null,Object(u.__)("Developer Notice","genesis-blocks")),Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M11 3a1 1 0 100 2h3.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),Object(r.createElement)("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))))),Object(r.createElement)("h2",null,Object(u.__)("Let’s Migrate","genesis-blocks")))},x=n(10),w=n.n(x),S=function(e){var t=e.isActive,n=e.isComplete,c=e.children;return Object(r.createElement)("div",{className:w()("step",{"step--active":t,"step--complete":n})},c)},P=function(e){var t=e.children,n=e.heading,c=e.isStepActive,s=e.isLastStep;return Object(r.createElement)("div",{className:"step-content"},Object(r.createElement)("h3",null,n),(c||s)&&t)},C=function(e){var t=e.children;return Object(r.createElement)("div",{className:"step-footer"},t)},T=function(e){var t=e.index,n=e.isComplete,c="gb-migration-icon-".concat(t),s=Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":c},Object(r.createElement)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}),Object(r.createElement)("title",{id:c},Object(u.__)("Step completed","genesis-blocks")));return Object(r.createElement)("div",{className:"step-icon"},n?s:t)},N=function(e){var t=e.steps,n=e.currentStep,c=e.complete,s=t.map((function(e,s){var a="";return n===s&&(a="active"),(n>s||c&&n===t.length-1)&&(a="done"),Object(r.createElement)("li",{key:s,className:a},e,n===s&&!c&&Object(r.createElement)("progress",null))}));return Object(r.createElement)("ul",{className:"substeps"},s)};s()((function(){Object(r.render)(Object(r.createElement)(k,null),document.querySelector(".gb-migration__content"))}))}]);
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){function n(e,t,n,r,c,s,o){try{var a=e[s](o),i=a.value}catch(e){return void n(e)}a.done?t(i):Promise.resolve(i).then(r,c)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(c,s){var o=e.apply(t,r);function a(e){n(o,c,s,a,i,"next",e)}function i(e){n(o,c,s,a,i,"throw",e)}a(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(11),c=n(12),s=n(13),o=n(15);e.exports=function(e,t){return r(e)||c(e,t)||s(e,t)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){function n(){return e.exports=n=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},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r;
|
2 |
/*!
|
3 |
+
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)){if(r.length){var o=c.apply(null,r);o&&e.push(o)}}else if("object"===s)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,c,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(e){a=!0,c=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw c}}return s}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(14);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},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.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=n(0),c=n(8),s=n.n(c),o=n(9),a=n.n(o),i=n(5),l=n.n(i),u=(n(3),n(1)),b=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.goToNext,s=e.goToPrevious,o=e.stepIndex,a=1===o,i=Object(u.__)("Migrating from Atomic Blocks to Genesis Blocks is a one-way action. It can’t be undone. Please back up your site before you begin.","genesis-blocks");return genesisBlocksMigration.isPro&&(i=Object(u.__)("Migrating your Genesis Blocks content is a one-way action. It can’t be undone. Please back up your site before you begin.","genesis-blocks")),Object(r.createElement)(S,{isActive:t,isComplete:n},Object(r.createElement)(M,{index:o,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Back Up Your Site","genesis-blocks"),isStepActive:t},Object(r.createElement)("p",null,i),Object(r.createElement)(C,null,!a&&Object(r.createElement)(x,{onClick:s}),Object(r.createElement)(k,{checkboxLabel:Object(u.__)("I have backed up my site.","genesis-blocks"),onClick:c,stepIndex:o}))))},p=n(2),m=n.n(p),f=n(4),g=n.n(f),d=n(6),O=n(7),j=n.n(O),h=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.stepIndex,s=e.goToNext,o=Object(r.useState)(0),a=l()(o,2),i=a[0],b=a[1],p=Object(r.useState)(!1),f=l()(p,2),O=f[0],h=f[1],v=Object(r.useState)(!1),_=l()(v,2),k=_[0],x=_[1],y=Object(r.useState)(""),E=l()(y,2),w=E[0],N=E[1],A=Object(r.useState)(!1),B=l()(A,2),I=B[0],F=B[1],L=Object(r.useState)(0),R=l()(L,2),U=R[0],H=R[1],z=[Object(u.__)("Migrate block settings.","genesis-blocks"),Object(u.__)("Migrate block content. Migrated: ","genesis-blocks")+" ".concat(U,"."),Object(u.__)("Migrate favorite blocks.","genesis-blocks"),genesisBlocksMigration.isPro?Object(u.__)("Clean up.","genesis-blocks"):Object(u.__)("Deactivate Atomic Blocks.","genesis-blocks")],G=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j()({path:"/genesis-blocks/migrate-settings",method:"POST"}).then(g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(1),e.next=3,V();case 3:return e.next=5,Y();case 5:case"end":return e.stop()}}),e)})))).catch((function(e){e.hasOwnProperty("message")&&N(e.message),Object(d.speak)(Object(u.__)("The migration failed during settings migration.","genesis-blocks")),x(!0),h(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j()({path:"/genesis-blocks/migrate-pro-settings",method:"POST"}).catch((function(e){e.hasOwnProperty("message")&&N(e.message),Object(d.speak)(Object(u.__)("The pro settings migration failed.","genesis-blocks")),x(!0)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"invalid_json",e.next=3,j()({path:"/genesis-blocks/migrate-content",method:"POST"}).then(function(){var e=g()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.results&&t.results.postsFound>0)){e.next=5;break}return H((function(e){return e+t.results.postsFound})),e.next=4,Y();case 4:return e.abrupt("return");case 5:return b(2),e.next=8,D();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch(function(){var e=g()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasOwnProperty("code")||"invalid_json"!==t.code){e.next=6;break}return e.next=3,Y();case 3:return e.abrupt("return");case 6:t.hasOwnProperty("message")&&N(t.message);case 7:Object(d.speak)(Object(u.__)("The migration failed during post content migration","genesis-blocks")),x(!0);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"invalid_json",e.next=3,j()({path:"/genesis-blocks/migrate-user-meta",method:"POST"}).then(g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(3),e.next=3,W();case 3:case"end":return e.stop()}}),e)})))).catch(function(){var e=g()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasOwnProperty("code")||"invalid_json"!==t.code){e.next=6;break}return e.next=3,D();case 3:return e.abrupt("return");case 6:t.hasOwnProperty("message")&&N(t.message);case 7:Object(d.speak)(Object(u.__)("The migration failed while migrating favorite blocks.","genesis-blocks")),x(!0);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j()({path:"/genesis-blocks/migrate-cleanup",method:"POST"}).then((function(){Object(d.speak)(Object(u.__)("The migration was successful!","genesis-blocks")),F(!0),s()}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(d.speak)(Object(u.__)("The migration is now in progress","genesis-blocks")),N(""),h(!0),e.next=5,G();case 5:h(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.createElement)(S,{isActive:t,isComplete:n},Object(r.createElement)(M,{index:c,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Migrate Your Content","genesis-blocks"),isStepActive:t,isLastStep:!0},!I&&Object(r.createElement)("p",null,Object(u.__)("Okay! Everything is ready. Let’s do this. While the migration is underway, don’t leave this page.","genesis-blocks")),!!w&&Object(r.createElement)("div",{className:"gb-migration__error"},Object(r.createElement)("p",null,Object(u.__)("The following error occurred:","genesis-blocks")),Object(r.createElement)("p",null,w)),(O||I)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(T,{steps:z,currentStep:i,complete:!O})),!O&&!I&&Object(r.createElement)("button",{className:"btn",onClick:q},k?Object(u.__)("Try Again","genesis-blocks"):Object(u.__)("Migrate Now","genesis-blocks")),I&&Object(r.createElement)(r.Fragment,null,!genesisBlocksMigration.isPro&&Object(r.createElement)("p",null,Object(r.createElement)("span",{role:"img","aria-label":Object(u.__)("party emoji","genesis-blocks")},"🎉")," ",Object(u.__)("The migration completed successfully! Time to say goodbye to Atomic Blocks (it’s been fun!) and step into the FUTURE","genesis-blocks")," ",Object(r.createElement)("span",{className:"message-future"},Object(u.__)("FUTURE","genesis-blocks"))," ",Object(r.createElement)("sub",null,Object(u.__)("FUTURE","genesis-blocks")),"."),genesisBlocksMigration.isPro&&Object(r.createElement)("p",null,Object(r.createElement)("span",{role:"img","aria-label":Object(u.__)("party emoji","genesis-blocks")},"🎉")," ",Object(u.__)("The migration completed successfully!","genesis-blocks")),Object(r.createElement)(C,null,Object(r.createElement)("a",{href:genesisBlocksMigration.gbUrl,className:"btn"},Object(u.__)("Get started with Genesis Blocks","genesis-blocks"))))))},v=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.stepIndex,s=e.goToNext,o=e.goToPrevious;return Object(r.createElement)(S,{isActive:t,isComplete:n},Object(r.createElement)(M,{index:c,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Update CSS and PHP code","genesis-blocks"),isStepActive:t},Object(r.createElement)("p",null,Object(r.createElement)("b",null,Object(u.__)("You will need to make manual changes if your theme, plugins or customizations include Atomic Blocks CSS or PHP:","genesis-blocks"))),Object(r.createElement)("ul",{className:"list-disc list-inside mt-2"},Object(r.createElement)("li",null,Object(r.createElement)("b",null,Object(u.__)("CSS","genesis-blocks"))," - ",Object(u.__)("CSS classes and HTML markup have changed.","genesis-blocks")," ",Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-css/",target:"_blank",rel:"noopener noreferrer"},Object(u.__)("Check if you need to make CSS changes.","genesis-blocks"))),Object(r.createElement)("li",null,Object(r.createElement)("b",null,Object(u.__)("PHP","genesis-blocks"))," - ",Object(u.__)("Filter, function and block names have changed.","genesis-blocks")," ",Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-php/",target:"_blank",rel:"noopener noreferrer"},Object(u.__)("Check if you need to make PHP changes.","genesis-blocks")))),Object(r.createElement)(C,null,Object(r.createElement)(x,{onClick:o}),Object(r.createElement)(k,{checkboxLabel:Object(u.__)("I have made necessary changes to PHP and CSS.","genesis-blocks"),onClick:s,stepIndex:c}))))},_=function(){var e=Object(r.useState)(1),t=l()(e,2),n=t[0],c=t[1],s=function(){c(n-1)},o=function(){c(n+1)},i=[b,v,h];return Object(r.createElement)("div",{className:"gb-migration__content-wrapper"},Object(r.createElement)("div",{className:"container gb-migration__content-container"},Object(r.createElement)(y,null),i.map((function(e,t){var c=1+t,i=n===c,l=n>c;return Object(r.createElement)(e,a()({key:"gb-migration-step-".concat(c)},{currentStepIndex:n,goToNext:o,goToPrevious:s,isStepActive:i,isStepComplete:l,stepIndex:c}))}))))},k=function(e){var t=e.onClick,n=e.checkboxLabel,c=e.stepIndex,s=Object(r.useState)(!1),o=l()(s,2),a=o[0],i=o[1];if(!n)return Object(r.createElement)("button",{className:"btn",onClick:t},Object(u.__)("Next Step","genesis-blocks"));var b="gb-migration-check-".concat(c);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("form",null,Object(r.createElement)("input",{id:b,type:"checkbox",onClick:function(){i(!a)}}),Object(r.createElement)("label",{htmlFor:b,className:"ml-2 font-medium"},n)),Object(r.createElement)("button",{className:"btn",onClick:t,disabled:!a},Object(u.__)("Next Step","genesis-blocks")))},x=function(e){var t=e.onClick;return Object(r.createElement)("button",{className:"btn btn-secondary",onClick:t},Object(u.__)("Previous","genesis-blocks"))},y=function(){var e=Object(u.__)("Atomic Blocks has been renamed to Genesis Blocks","genesis-blocks");return genesisBlocksMigration.isPro&&(e=Object(u.__)("We need to update your blocks to give you the latest features!","genesis-blocks")),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",null,Object(r.createElement)("h2",null,e),Object(r.createElement)("p",null,Object(u.__)("Same powerful blocks, same beautiful designs, same innovative team.","genesis-blocks")),Object(r.createElement)("p",null,Object(u.__)("To continue receiving the best of what our team is building, we encourage you to migrate. Our migration tool makes this nice and easy, and for the majority of use cases, completely automated.","genesis-blocks")),Object(r.createElement)("div",{className:"dev-notice"},Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20"},Object(r.createElement)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})),Object(r.createElement)("span",null,Object(u.__)("Need to let the developer for this site know about this? Send them this link.","genesis-blocks")),Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-dev/",target:"_blank",rel:"noopener noreferrer",className:"btn"},Object(r.createElement)("span",null,Object(u.__)("Developer Notice","genesis-blocks")),Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M11 3a1 1 0 100 2h3.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),Object(r.createElement)("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))))),Object(r.createElement)("h2",null,Object(u.__)("Let’s Migrate","genesis-blocks")))},E=n(10),w=n.n(E),S=function(e){var t=e.isActive,n=e.isComplete,c=e.children;return Object(r.createElement)("div",{className:w()("step",{"step--active":t,"step--complete":n})},c)},P=function(e){var t=e.children,n=e.heading,c=e.isStepActive,s=e.isLastStep;return Object(r.createElement)("div",{className:"step-content"},Object(r.createElement)("h3",null,n),(c||s)&&t)},C=function(e){var t=e.children;return Object(r.createElement)("div",{className:"step-footer"},t)},M=function(e){var t=e.index,n=e.isComplete,c="gb-migration-icon-".concat(t),s=Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":c},Object(r.createElement)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}),Object(r.createElement)("title",{id:c},Object(u.__)("Step completed","genesis-blocks")));return Object(r.createElement)("div",{className:"step-icon"},n?s:t)},T=function(e){var t=e.steps,n=e.currentStep,c=e.complete,s=t.map((function(e,s){var o="";return n===s&&(o="active"),(n>s||c&&n===t.length-1)&&(o="done"),Object(r.createElement)("li",{key:s,className:o},e,n===s&&!c&&Object(r.createElement)("progress",null))}));return Object(r.createElement)("ul",{className:"substeps"},s)};s()((function(){Object(r.render)(Object(r.createElement)(_,null),document.querySelector(".gb-migration__content"))}))}]);
|
lib/Settings/js/build/app.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '925bf5a483ef8ce1a823e99702085cbb');
|
lib/Settings/js/build/app.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(e){var t={};function n(
|
2 |
/**
|
3 |
* Reducer for the Genesis Blocks data store.
|
4 |
*
|
@@ -8,7 +8,7 @@
|
|
8 |
* @since 1.0.0
|
9 |
* @author StudioPress
|
10 |
* @license GPL-2.0-or-later
|
11 |
-
*/var m=
|
12 |
/**
|
13 |
* Actions let components change store state by sending a payload of data.
|
14 |
*
|
@@ -20,7 +20,7 @@
|
|
20 |
* @author StudioPress
|
21 |
* @license GPL-2.0-or-later
|
22 |
*/
|
23 |
-
function
|
24 |
/**
|
25 |
* Registers the 'genesis-blocks/global-settings' WordPress data store.
|
26 |
*
|
@@ -28,7 +28,7 @@ function w(e){return{type:"UPDATE_SETTING",setting:e}}function x(e){return{type:
|
|
28 |
* @since 1.0.0
|
29 |
* @author StudioPress
|
30 |
* @license GPL-2.0-or-later
|
31 |
-
*/var
|
32 |
/**
|
33 |
* SaveButton component
|
34 |
*
|
@@ -38,14 +38,14 @@ function w(e){return{type:"UPDATE_SETTING",setting:e}}function x(e){return{type:
|
|
38 |
* @author StudioPress
|
39 |
* @license GPL-2.0-or-later
|
40 |
*/
|
41 |
-
function(e){var t=e.form,n=e.settings,
|
42 |
/**
|
43 |
* Checkbox field
|
44 |
*
|
45 |
* @since 1.0.0
|
46 |
* @author StudioPress
|
47 |
* @license GPL-2.0-or-later
|
48 |
-
*/var
|
49 |
/**
|
50 |
* Html field
|
51 |
*
|
@@ -53,7 +53,7 @@ function(e){var t=e.form,n=e.settings,i=e.custom,r=e.children,o=e.successMessage
|
|
53 |
* @author StudioPress
|
54 |
* @license GPL-2.0-or-later
|
55 |
*/
|
56 |
-
function(e){var t=e.field;return Object(
|
57 |
/**
|
58 |
* Radio field
|
59 |
*
|
@@ -61,7 +61,7 @@ function(e){var t=e.field;return Object(s.createElement)("div",{dangerouslySetIn
|
|
61 |
* @author StudioPress
|
62 |
* @license GPL-2.0-or-later
|
63 |
*/
|
64 |
-
function(e){var t=e.settings,n=e.field,
|
65 |
/**
|
66 |
* Select field
|
67 |
*
|
@@ -69,7 +69,7 @@ function(e){var t=e.settings,n=e.field,i=e.onUpdate;return Object(s.createElemen
|
|
69 |
* @author StudioPress
|
70 |
* @license GPL-2.0-or-later
|
71 |
*/
|
72 |
-
function(e){var t=e.settings,n=e.field,
|
73 |
/**
|
74 |
* Text field
|
75 |
*
|
@@ -77,7 +77,7 @@ function(e){var t=e.settings,n=e.field,i=e.onUpdate;return Object(s.createElemen
|
|
77 |
* @author StudioPress
|
78 |
* @license GPL-2.0-or-later
|
79 |
*/
|
80 |
-
function(e){var t=e.settings,n=e.field,
|
81 |
/**
|
82 |
* Textarea field
|
83 |
*
|
@@ -85,11 +85,11 @@ function(e){var t=e.settings,n=e.field,i=e.onUpdate;return Object(s.createElemen
|
|
85 |
* @author StudioPress
|
86 |
* @license GPL-2.0-or-later
|
87 |
*/
|
88 |
-
function(e){var t=e.settings,n=e.field,
|
89 |
/**
|
90 |
* The React application for the Genesis Blocks settings page.
|
91 |
*
|
92 |
* @since 1.0.0
|
93 |
* @author StudioPress
|
94 |
* @license GPL-2.0-or-later
|
95 |
-
*/Object(
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(r,s,function(t){return e[t]}.bind(null,s));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(15),s=n(16),i=n(17),o=n(19);e.exports=function(e,t){return r(e)||s(e,t)||i(e,t)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.coreData}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){a=!0,s=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw s}}return i}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(18);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},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.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"getSettings",(function(){return O})),n.d(r,"getCustom",(function(){return h})),n.d(r,"getFormInfo",(function(){return j})),n.d(r,"getSections",(function(){return _})),n.d(r,"getModifiedSettings",(function(){return y}));var s={};n.r(s),n.d(s,"updateSetting",(function(){return E})),n.d(s,"updateCustom",(function(){return w})),n.d(s,"resetFormSaveState",(function(){return C})),n.d(s,"saveSettings",(function(){return P}));var i=n(0),o=n(4),a=n(3),c=n(2),l=n(1),u=n(9),f=n(10),g=n(5),p=n.n(g);function d(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}
|
2 |
/**
|
3 |
* Reducer for the Genesis Blocks data store.
|
4 |
*
|
8 |
* @since 1.0.0
|
9 |
* @author StudioPress
|
10 |
* @license GPL-2.0-or-later
|
11 |
+
*/var m=b({form:{fail:!1,success:!1,is_saving:!1},custom:[],modifiedSettings:[]},genesisBlocksSettingsData),v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_CUSTOM"===t.type?b(b({},e),{},{custom:b(b({},e.custom),{},p()({},t.setting.key,t.setting.value))}):"UPDATE_SETTING"===t.type?b(b({},e),{},{settings:b(b({},e.settings),{},p()({},t.setting.key,t.setting.value)),modifiedSettings:b(b({},e.modifiedSettings),{},p()({},t.setting.key,t.setting.value))}):"SAVING"===t.type?b(b({},e),{},{form:b(b({},e.form),{},{fail:!1,success:!1,is_saving:!0})}):"SAVED"===t.type?b(b({},e),{},{form:b(b({},e.form),{},{success:!0===t.success,fail:!0!==t.success,is_saving:!1}),modifiedSettings:t.success?[]:e.modifiedSettings}):"RESET"===t.type?b(b({},e),{},{form:b(b({},e.form),{},{fail:!1,success:!1,is_saving:!1})}):e},O=function(e){return e.settings||{}},h=function(e){return e.custom||{}},j=function(e){return e.form||{}};function _(e){return e.hasOwnProperty("sections")?e.sections:{}}var y=function(e){return e.modifiedSettings||[]},S=n(7),k=n.n(S),x=(n(14),k.a.mark(P));
|
12 |
/**
|
13 |
* Actions let components change store state by sending a payload of data.
|
14 |
*
|
20 |
* @author StudioPress
|
21 |
* @license GPL-2.0-or-later
|
22 |
*/
|
23 |
+
function E(e){return{type:"UPDATE_SETTING",setting:e}}function w(e){return{type:"UPDATE_CUSTOM",setting:e}}function C(){return{type:"RESET"}}function P(e){var t;return k.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,{type:"SAVING"};case 2:t=null;try{wp.data.dispatch("core").saveSite(e),t=!0}catch(e){t=!1}return n.abrupt("return",{type:"SAVED",success:t});case 5:case"end":return n.stop()}}),x)}
|
24 |
/**
|
25 |
* Registers the 'genesis-blocks/global-settings' WordPress data store.
|
26 |
*
|
28 |
* @since 1.0.0
|
29 |
* @author StudioPress
|
30 |
* @license GPL-2.0-or-later
|
31 |
+
*/var M={selectors:r,actions:s,reducer:v,controls:f.controls},T=(Object(l.registerStore)("genesis-blocks/global-settings",M),n(11)),D=n(12);var U=Object(a.compose)([Object(l.withSelect)((function(e){return{form:e("genesis-blocks/global-settings").getFormInfo(),settings:e("genesis-blocks/global-settings").getModifiedSettings(),custom:e("genesis-blocks/global-settings").getCustom()}}))])((
|
32 |
/**
|
33 |
* SaveButton component
|
34 |
*
|
38 |
* @author StudioPress
|
39 |
* @license GPL-2.0-or-later
|
40 |
*/
|
41 |
+
function(e){var t=e.form,n=e.settings,r=e.custom,s=e.children,o=e.successMessage,a=e.failMessage,u=e.messageDuration,f=Object(i.useRef)();return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.Button,{isPrimary:!0,isBusy:t.is_saving,disabled:t.is_saving,onClick:function(){Object(D.doAction)("genesisBlocks.savingSettings",n,r),clearTimeout(f.current),Object(l.dispatch)("genesis-blocks/global-settings").saveSettings(n)},className:"genesis-blocks-settings-save has-notices"},s),t.success||t.fail?function(){f.current=setTimeout((function(){return Object(l.dispatch)("genesis-blocks/global-settings").resetFormSaveState()}),1e3*u);var e=t.success?o:a;Object(T.speak)(e,"polite");var n="genesis-blocks-save-notice"+"".concat(t.success?" success":"")+"".concat(t.fail?" fail":"");return Object(i.createElement)("span",{className:n},e)}():"")}));
|
42 |
/**
|
43 |
* Checkbox field
|
44 |
*
|
45 |
* @since 1.0.0
|
46 |
* @author StudioPress
|
47 |
* @license GPL-2.0-or-later
|
48 |
+
*/var A=Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((function(e){var t=e.settings,n=e.field,r=e.onUpdate;return Object(i.createElement)(c.CheckboxControl,{heading:n.heading,label:n.label,help:n.help,checked:!!t[n.id]&&t[n.id],onChange:function(e){return r({key:n.id,value:e})}})}));var I=
|
49 |
/**
|
50 |
* Html field
|
51 |
*
|
53 |
* @author StudioPress
|
54 |
* @license GPL-2.0-or-later
|
55 |
*/
|
56 |
+
function(e){var t=e.field;return Object(i.createElement)("div",{dangerouslySetInnerHTML:{__html:t.content}})},N=n(13),F=n(8),R=["image"],B=Object(o.__)("Image"),z=Object(o.__)("Select an image"),G=Object(o.__)("Choose image"),V=Object(o.__)("Replace image"),L=Object(o.__)("Remove image");var H=Object(l.withSelect)((function(e,t){var n=e("core").getMedia,r=t.settings[t.field.id];return{media:r?n(r):null,imageId:r}})),W=Object(l.withDispatch)((function(e,t){var n=e("genesis-blocks/global-settings").updateSetting;return{onUpdateImage:function(e){n({key:t.field.id,value:e.id})},onRemoveImage:function(){n({key:t.field.id,value:null})}}})),$=Object(a.compose)(H,W)((function(e){var t,n,r,s=e.field,o=e.imageId,a=e.media,l=e.onUpdateImage,u=e.onRemoveImage;if(a){var f=s.image_size||"thumbnail";Object(N.has)(a,["media_details","sizes",f])?(t=a.media_details.sizes[f].width,n=a.media_details.sizes[f].height,r=a.media_details.sizes[f].source_url):(t=a.media_details.width,n=a.media_details.height,r=a.source_url)}return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"genesis-blocks-settings-image"},Object(i.createElement)("p",{className:"components-base-control__label"},s.label||B),Object(i.createElement)(F.MediaUpload,{title:s.label_media_modal||z,onSelect:l,allowedTypes:R,render:function(e){var l=e.open;return Object(i.createElement)("div",{className:"genesis-blocks-settings-image__container"},Object(i.createElement)(c.Button,{className:o?"genesis-blocks-settings-image__preview":"genesis-blocks-settings-image__toggle",onClick:l,"aria-label":s.label_button_aria||null,isSecondary:!0},!!o&&a&&Object(i.createElement)(c.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n,isInline:!0},Object(i.createElement)("img",{src:r,alt:""})),!!o&&!a&&Object(i.createElement)(c.Spinner,null),!o&&(s.label_button||G)))},value:o}),!!o&&a&&!a.isLoading&&Object(i.createElement)(F.MediaUpload,{title:s.label_media_modal||z,onSelect:l,allowedTypes:R,modalClass:"genesis-blocks-settings-image__media-modal",render:function(e){var t=e.open;return Object(i.createElement)(c.Button,{onClick:t,isSecondary:!0,"aria-label":s.label_replace_aria||null},s.label_replace||V)}}),!!o&&Object(i.createElement)(c.Button,{onClick:u,isLink:!0,isDestructive:!0,"aria-label":s.label_remove_aria||null},s.label_remove||L),!!s.help&&Object(i.createElement)("p",{id:s.id+"__help",className:"components-base-control__help"},s.help)))})),q=n(6),J=n.n(q);var K={checkbox:A,html:I,image:$,radio:Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((
|
57 |
/**
|
58 |
* Radio field
|
59 |
*
|
61 |
* @author StudioPress
|
62 |
* @license GPL-2.0-or-later
|
63 |
*/
|
64 |
+
function(e){var t=e.settings,n=e.field,r=e.onUpdate;return Object(i.createElement)(c.RadioControl,{label:n.label,help:n.help,selected:!!t[n.id]&&t[n.id],options:function(e){for(var t=[],n=0,r=Object.entries(e);n<r.length;n++){var s=J()(r[n],2),i=s[0],o=s[1];t.push({value:i,label:o})}return t}(n.options),onChange:function(e){return r({key:n.id,value:e})}})})),select:Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((
|
65 |
/**
|
66 |
* Select field
|
67 |
*
|
69 |
* @author StudioPress
|
70 |
* @license GPL-2.0-or-later
|
71 |
*/
|
72 |
+
function(e){var t=e.settings,n=e.field,r=e.onUpdate;return Object(i.createElement)(c.SelectControl,{label:n.label,value:!!t[n.id]&&t[n.id],options:function(e){for(var t=[],n=0,r=Object.entries(e);n<r.length;n++){var s=J()(r[n],2),i=s[0],o=s[1];t.push({value:i,label:o})}return t}(n.options),onChange:function(e){return r({key:n.id,value:e})}})})),text:Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((
|
73 |
/**
|
74 |
* Text field
|
75 |
*
|
77 |
* @author StudioPress
|
78 |
* @license GPL-2.0-or-later
|
79 |
*/
|
80 |
+
function(e){var t=e.settings,n=e.field,r=e.onUpdate;return Object(i.createElement)(c.TextControl,{label:n.label?n.label:"",help:n.help?n.help:"",onChange:function(e){return r({key:n.id,value:e})},value:t[n.id]?t[n.id]:""})})),textarea:Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((
|
81 |
/**
|
82 |
* Textarea field
|
83 |
*
|
85 |
* @author StudioPress
|
86 |
* @license GPL-2.0-or-later
|
87 |
*/
|
88 |
+
function(e){var t=e.settings,n=e.field,r=e.onUpdate;return Object(i.createElement)(c.TextareaControl,{label:n.label?n.label:"",help:n.help?n.help:"",onChange:function(e){return r({key:n.id,value:e})},value:t[n.id]?t[n.id]:""})}))};var Q=Object(a.compose)([Object(l.withSelect)((function(){return{settings:Object(l.select)("genesis-blocks/global-settings").getSettings(),sections:Object(l.select)("genesis-blocks/global-settings").getSections()}}))])((function(e){var t=e.settings,n=e.sections;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.TabPanel,{className:"genesis-blocks-settings-sections",activeClass:"is-active",onSelect:function(){Object(l.dispatch)("genesis-blocks/global-settings").resetFormSaveState()},tabs:Object.values(n)},(function(e){return Object(i.createElement)(i.Fragment,null,function(e){if(e.hasOwnProperty("fields")&&Array.isArray(e.fields)){var n=e.fields.map((function(e,n){if(!K.hasOwnProperty(e.type))return"";var r=K[e.type];return Object(i.createElement)(r,{key:n,settings:t,field:e})}));if(n.length>0)return Object(i.createElement)(i.Fragment,null,n)}return Object(i.createElement)("p",null,Object(o.__)("No fields found for this section."))}(e),Object(i.createElement)(c.SlotFillProvider,null,Object(i.createElement)(c.Slot,{name:"GenesisBlocksSettings_"+e.name.replace("genesis_blocks_settings_","")}),Object(i.createElement)(u.PluginArea,null)),Object(i.createElement)(U,{successMessage:Object(o.__)("Settings saved"),failMessage:Object(o.__)("Saving failed"),messageDuration:"2"},Object(o.__)("Save All")))})))}));
|
89 |
/**
|
90 |
* The React application for the Genesis Blocks settings page.
|
91 |
*
|
92 |
* @since 1.0.0
|
93 |
* @author StudioPress
|
94 |
* @license GPL-2.0-or-later
|
95 |
+
*/Object(i.render)(Object(i.createElement)(Q,null),document.getElementById("root"))}]);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.8
|
7 |
-
Stable tag: 1.
|
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,9 @@ Yes, you will need to have WordPress 5.3 or later installed to take advantage of
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
100 |
= 1.2.5 =
|
101 |
* Added: block_categories_all filter for WordPress 5.8.
|
102 |
* Changed: Replace Font Awesome with SVG files in the Profile Box (aka Author Profile) block, and the Sharing block.
|
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.8
|
7 |
+
Stable tag: 1.3.0
|
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.3.0 =
|
101 |
+
* Added: Responsive controls for the paragraph and heading core blocks.
|
102 |
+
|
103 |
= 1.2.5 =
|
104 |
* Added: block_categories_all filter for WordPress 5.8.
|
105 |
* Changed: Replace Font Awesome with SVG files in the Profile Box (aka Author Profile) block, and the Sharing block.
|
src/blocks.js
CHANGED
@@ -44,3 +44,5 @@ import './blocks/block-layout/index.js';
|
|
44 |
* Global styles.
|
45 |
*/
|
46 |
import './blocks/global-styles/index.js';
|
|
|
|
44 |
* Global styles.
|
45 |
*/
|
46 |
import './blocks/global-styles/index.js';
|
47 |
+
|
48 |
+
import './blocks/responsive-settings';
|
src/blocks/global-styles/styles/editor.scss
CHANGED
@@ -117,3 +117,18 @@
|
|
117 |
|
118 |
@include fluid-font-size(36px, 60px, $vp-small, $vp-large);
|
119 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
@include fluid-font-size(36px, 60px, $vp-small, $vp-large);
|
119 |
}
|
120 |
+
|
121 |
+
.gb-responsive-toggle {
|
122 |
+
|
123 |
+
margin-top: 2rem;
|
124 |
+
margin-bottom: 1rem;
|
125 |
+
|
126 |
+
.components-button.has-icon.has-text {
|
127 |
+
margin-right: 5px;
|
128 |
+
}
|
129 |
+
|
130 |
+
.components-button.has-icon .dashicon {
|
131 |
+
margin-right: 2px;
|
132 |
+
margin-left: 0;
|
133 |
+
}
|
134 |
+
}
|
src/blocks/responsive-controls/fonts.php
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Functions in this file filter the output for blocks so that the Genesis Responsive Controls work.
|
4 |
+
*
|
5 |
+
* @since 1.4
|
6 |
+
* @package Genesis\Blocks
|
7 |
+
*/
|
8 |
+
|
9 |
+
declare(strict_types=1);
|
10 |
+
namespace GenesisBlocks\Blocks\ResponsiveControls;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Handle responsive controls for any blocks using the gbResponsiveSettings attribute..
|
14 |
+
*
|
15 |
+
* @param string $block_content The block content about to be appended.
|
16 |
+
* @param array $block The full block, including name and attributes.
|
17 |
+
* @param string $uuid Optional: Pass a uuid to use. Default is false, which causes a uuid to be generated.
|
18 |
+
* @return string
|
19 |
+
*/
|
20 |
+
function responsive_settings( $block_content, $block, $uuid = false ) {
|
21 |
+
|
22 |
+
if (
|
23 |
+
'core/paragraph' !== $block['blockName'] &&
|
24 |
+
'core/heading' !== $block['blockName']
|
25 |
+
) {
|
26 |
+
return $block_content;
|
27 |
+
}
|
28 |
+
|
29 |
+
if ( ! isset( $block['attrs']['gbResponsiveSettings'] ) || empty( $block['attrs']['gbResponsiveSettings'] ) ) {
|
30 |
+
return $block_content;
|
31 |
+
}
|
32 |
+
|
33 |
+
// Generate a unique id to use as a class name so we can target it with CSS.
|
34 |
+
$unique_class_name = 'gb-' . ( $uuid ? $uuid : uniqid() );
|
35 |
+
|
36 |
+
// If the block has a class HTML attribute.
|
37 |
+
preg_match( '/(?<=\bclass=")[^"]*/', $block_content, $possibly_existing_class_names );
|
38 |
+
|
39 |
+
if ( $possibly_existing_class_names ) {
|
40 |
+
$block_content = preg_replace( '/(?<=\bclass=")[^"]*/', $unique_class_name . ' ' . implode( ' ', $possibly_existing_class_names ), $block_content, 1 );
|
41 |
+
} else {
|
42 |
+
$block_content = preg_replace(
|
43 |
+
[ '/(<p)/', '/(<h[12345])/' ],
|
44 |
+
'$1 class="' . esc_attr( $unique_class_name ) . '"',
|
45 |
+
$block_content,
|
46 |
+
1
|
47 |
+
);
|
48 |
+
}
|
49 |
+
|
50 |
+
// Open the style tag.
|
51 |
+
$style_tag = '<style>';
|
52 |
+
|
53 |
+
// Render the default fontSize value from WordPress core's typography settings.
|
54 |
+
if ( isset( $block['attrs']['fontSize'] ) && ! empty( $block['attrs']['fontSize'] ) ) {
|
55 |
+
$style_tag .= '.' . $unique_class_name . '{';
|
56 |
+
$style_tag .= block_attr_name_to_css_key( 'fontSize' ) . ': ' . block_attr_value_to_css_value( 'fontSize', $block['attrs']['fontSize'] ) . ';';
|
57 |
+
$style_tag .= '}';
|
58 |
+
}
|
59 |
+
|
60 |
+
// Ensure the smallest breakpoint rules are rendered last, so they can take effect.
|
61 |
+
uksort(
|
62 |
+
$block['attrs']['gbResponsiveSettings'],
|
63 |
+
static function( $first_breakpoint, $second_breakpoint ) {
|
64 |
+
return absint( $first_breakpoint ) < absint( $second_breakpoint );
|
65 |
+
}
|
66 |
+
);
|
67 |
+
|
68 |
+
// Loop through each breakpoint.
|
69 |
+
foreach ( $block['attrs']['gbResponsiveSettings'] as $breakpoint_width => $responsive_settings ) {
|
70 |
+
|
71 |
+
$style_tag .= '@media only screen and (max-width: ' . $breakpoint_width . ') {.' . $unique_class_name . '{';
|
72 |
+
|
73 |
+
// Loop through each value defined in this breakpoint.
|
74 |
+
foreach ( $responsive_settings as $responsive_setting_key => $responsive_setting_value ) {
|
75 |
+
|
76 |
+
// Render each css key and value.
|
77 |
+
$style_tag .= block_attr_name_to_css_key( $responsive_setting_key ) . ': ' . block_attr_value_to_css_value( $responsive_setting_key, $responsive_setting_value ) . '!important;';
|
78 |
+
}
|
79 |
+
|
80 |
+
$style_tag .= '}}';
|
81 |
+
|
82 |
+
}
|
83 |
+
|
84 |
+
// Close the style tag.
|
85 |
+
$style_tag .= '</style>';
|
86 |
+
|
87 |
+
return $style_tag . $block_content;
|
88 |
+
}
|
89 |
+
add_filter( 'render_block', __NAMESPACE__ . '\responsive_settings', 10, 2 );
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Convert a block attribute to a CSS key.
|
93 |
+
*
|
94 |
+
* @param string $block_attribute_name The name of the block attribute, for example: "fontSize".
|
95 |
+
* @return string The CSS equivalent. For example: "font-size".
|
96 |
+
*/
|
97 |
+
function block_attr_name_to_css_key( $block_attribute_name ) {
|
98 |
+
if ( 'fontSize' === $block_attribute_name ) {
|
99 |
+
return 'font-size';
|
100 |
+
}
|
101 |
+
|
102 |
+
if ( 'lineHeight' === $block_attribute_name ) {
|
103 |
+
return 'line-height';
|
104 |
+
}
|
105 |
+
|
106 |
+
return $block_attribute_name;
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Convert a block attribute value to a corresponding CSS value.
|
111 |
+
*
|
112 |
+
* @param string $block_attribute_name The name of the block attribute, for example: "fontSize".
|
113 |
+
* @param string $block_attribute_value The value of the block attribute, for example: "Huge".
|
114 |
+
* @return string The CSS equivalent value. For example: "42px". Note that in most cases, this simply returns the value passed-in.
|
115 |
+
*/
|
116 |
+
function block_attr_value_to_css_value( $block_attribute_name, $block_attribute_value ) {
|
117 |
+
if ( 'fontSize' === $block_attribute_name ) {
|
118 |
+
return block_font_name_to_css_value( $block_attribute_value );
|
119 |
+
}
|
120 |
+
|
121 |
+
return $block_attribute_value;
|
122 |
+
}
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Convert a font string to a CSS value.
|
126 |
+
*
|
127 |
+
* @param string $block_font_name The name of the block font name, for example: "Huge".
|
128 |
+
* @return string The CSS equivalent. For example: "42px".
|
129 |
+
*/
|
130 |
+
function block_font_name_to_css_value( $block_font_name ) {
|
131 |
+
|
132 |
+
// We need to get the available font sizes in the theme, and convert them to pixels here, on the fly.
|
133 |
+
if ( ! class_exists( '\WP_Block_Editor_Context' ) ) {
|
134 |
+
require_once ABSPATH . 'wp-includes/class-wp-block-editor-context.php';
|
135 |
+
}
|
136 |
+
$block_editor_context = new \WP_Block_Editor_Context();
|
137 |
+
$block_editor_settings = get_block_editor_settings( [], $block_editor_context );
|
138 |
+
$font_sizes = $block_editor_settings['fontSizes'];
|
139 |
+
|
140 |
+
$reformatted_font_sizes = [];
|
141 |
+
|
142 |
+
// Format font values into associative array for easier use.
|
143 |
+
foreach ( $font_sizes as $font_size_data ) {
|
144 |
+
$reformatted_font_sizes[ $font_size_data['slug'] ] = $font_size_data['size'];
|
145 |
+
}
|
146 |
+
|
147 |
+
if ( isset( $reformatted_font_sizes[ $block_font_name ] ) ) {
|
148 |
+
return $reformatted_font_sizes[ $block_font_name ];
|
149 |
+
}
|
150 |
+
|
151 |
+
return $block_font_name;
|
152 |
+
}
|
src/blocks/responsive-settings/components/responsive-settings-style.js
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Internal dependencies
|
3 |
+
*/
|
4 |
+
import { camelToKebabCase } from '../utils';
|
5 |
+
|
6 |
+
/**
|
7 |
+
* @typedef {Object} ResponsiveSettingStyleProps The component props.
|
8 |
+
* @property {string} clientId The block's clientId.
|
9 |
+
* @property {string} device The device of the styles.
|
10 |
+
* @property {string} selectedDevice The selected device.
|
11 |
+
* @property { 'fontSize' | 'lineHeight' } settingName The name of the setting.
|
12 |
+
* @property {string} settingValue The value of the setting.
|
13 |
+
*/
|
14 |
+
|
15 |
+
/**
|
16 |
+
* The styling of the responsive settings.
|
17 |
+
*
|
18 |
+
* @param {ResponsiveSettingStyleProps} props The component props.
|
19 |
+
* @return {Function} The component.
|
20 |
+
*/
|
21 |
+
export const ResponsiveSettingStyle = ( {
|
22 |
+
clientId,
|
23 |
+
device,
|
24 |
+
selectedDevice,
|
25 |
+
settingName,
|
26 |
+
settingValue,
|
27 |
+
} ) => (
|
28 |
+
<>
|
29 |
+
{ !! settingValue
|
30 |
+
? `@media only screen and (max-width: ${ device }) {
|
31 |
+
#block-${ clientId } {
|
32 |
+
${ camelToKebabCase( settingName ) }: ${ settingValue } !important
|
33 |
+
}
|
34 |
+
}`
|
35 |
+
: null
|
36 |
+
}
|
37 |
+
{ selectedDevice === device && !! settingValue
|
38 |
+
? `#block-${ clientId } {
|
39 |
+
${ camelToKebabCase( settingName ) }: ${ settingValue } !important
|
40 |
+
}`
|
41 |
+
: null
|
42 |
+
}
|
43 |
+
</>
|
44 |
+
);
|
src/blocks/responsive-settings/components/with-responsive-settings.js
ADDED
@@ -0,0 +1,287 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* WordPress depenencies
|
3 |
+
*/
|
4 |
+
const { InspectorControls, LineHeightControl } = wp.blockEditor;
|
5 |
+
const { hasBlockSupport } = wp.blocks;
|
6 |
+
const { Button, FontSizePicker, NavigableMenu, PanelBody } = wp.components;
|
7 |
+
const { createHigherOrderComponent } = wp.compose;
|
8 |
+
const { useDispatch, useSelect } = wp.data;
|
9 |
+
const { __ } = wp.i18n;
|
10 |
+
import { cleanEmptyObject } from '@wordpress/block-editor/build-module/hooks/utils';
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Internal dependencies
|
14 |
+
*/
|
15 |
+
import { ResponsiveSettingStyle } from './responsive-settings-style';
|
16 |
+
import {
|
17 |
+
BLOCKS_WITH_RESPONSIVE_SETTINGS,
|
18 |
+
DEVICE_NAMES,
|
19 |
+
DEVICE_SIZES,
|
20 |
+
RESPONSIVE_SETTINGS_ATTRIBUTE,
|
21 |
+
} from '../constants';
|
22 |
+
import { conditionallyAddPxUnit, getFontSize, getFontSlug } from '../utils';
|
23 |
+
|
24 |
+
export const withResponsiveSettings = createHigherOrderComponent( ( BlockEdit ) => {
|
25 |
+
return ( props ) => {
|
26 |
+
const {
|
27 |
+
disableCustomFontSizes,
|
28 |
+
enableCustomLineHeight,
|
29 |
+
fontSizes,
|
30 |
+
} = useSelect(
|
31 |
+
( select ) => select( 'core/block-editor' ).getSettings()
|
32 |
+
);
|
33 |
+
const selectedDevice = useSelect(
|
34 |
+
( select ) => {
|
35 |
+
const { __experimentalGetPreviewDeviceType } = select( 'core/edit-post' );
|
36 |
+
return !! __experimentalGetPreviewDeviceType
|
37 |
+
? __experimentalGetPreviewDeviceType()
|
38 |
+
: DEVICE_NAMES.desktop;
|
39 |
+
}
|
40 |
+
);
|
41 |
+
|
42 |
+
// @todo: update this const if and when it becomes stable.
|
43 |
+
const { __experimentalSetPreviewDeviceType } = useDispatch( 'core/edit-post' );
|
44 |
+
const isFontSizeDisabled = ! hasBlockSupport( props.name, 'typography.fontSize', true ) || ! fontSizes?.length;
|
45 |
+
const isLineHeightDisabled = ! hasBlockSupport( props.name, 'typography.lineHeight', true ) || ! enableCustomLineHeight;
|
46 |
+
|
47 |
+
if (
|
48 |
+
! BLOCKS_WITH_RESPONSIVE_SETTINGS.includes( props.name )
|
49 |
+
|| ( isFontSizeDisabled && isLineHeightDisabled )
|
50 |
+
) {
|
51 |
+
return <BlockEdit { ...props } />;
|
52 |
+
}
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Sets the preview device, if the function to set it exists.
|
56 |
+
*
|
57 |
+
* @param { 'Mobile' | 'Tablet' | 'Desktop' } device The device to set the preview to.
|
58 |
+
*/
|
59 |
+
const setSelectedDevice = ( device ) => {
|
60 |
+
if ( !! __experimentalSetPreviewDeviceType ) {
|
61 |
+
__experimentalSetPreviewDeviceType( device );
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Gets the responsive value for the device.
|
67 |
+
*
|
68 |
+
* @param { 'fontSize' | 'lineHeight' } responsiveSettingName The key of the responsive value.
|
69 |
+
* @param {string} device The device The device to get the responsive value for.
|
70 |
+
* @return {string} The responsive value.
|
71 |
+
*/
|
72 |
+
const getResponsiveValueForDevice = ( responsiveSettingName, device ) =>
|
73 |
+
props.attributes[ RESPONSIVE_SETTINGS_ATTRIBUTE ]
|
74 |
+
&& props.attributes[ RESPONSIVE_SETTINGS_ATTRIBUTE ][ device ]
|
75 |
+
? props.attributes[ RESPONSIVE_SETTINGS_ATTRIBUTE ][ device ][ responsiveSettingName ]
|
76 |
+
: '';
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Gets the font size of the selected device.
|
80 |
+
*
|
81 |
+
* @return {string} The font size in px, em or rem, if any.
|
82 |
+
*/
|
83 |
+
const getFontSizeOfSelectedDevice = () => {
|
84 |
+
if ( DEVICE_NAMES.desktop === selectedDevice ) {
|
85 |
+
return getFontSize( props.attributes.fontSize, fontSizes )
|
86 |
+
|| getFontSize( props.attributes?.style?.typography?.fontSize, fontSizes )
|
87 |
+
|| props.attributes?.style?.typography?.fontSize;
|
88 |
+
}
|
89 |
+
|
90 |
+
const responsiveValue = getResponsiveValueForDevice( 'fontSize', DEVICE_SIZES[ selectedDevice ] );
|
91 |
+
|
92 |
+
return getFontSize(
|
93 |
+
responsiveValue,
|
94 |
+
fontSizes
|
95 |
+
) || responsiveValue;
|
96 |
+
}
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Gets the line height of the selected device.
|
100 |
+
*
|
101 |
+
* @return {string} The line height.
|
102 |
+
*/
|
103 |
+
const getLineHeightOfSelectedDevice = () =>
|
104 |
+
DEVICE_NAMES.desktop === selectedDevice
|
105 |
+
? props.attributes?.style?.typography?.lineHeight
|
106 |
+
: getResponsiveValueForDevice( 'lineHeight', DEVICE_SIZES[ selectedDevice ] );
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Sets the responsive value, like a 'lineHeight' of '2.0'.
|
110 |
+
*
|
111 |
+
* @param {string} key The key of the responsive value to set.
|
112 |
+
* @param {string} value The responsive value to set.
|
113 |
+
*/
|
114 |
+
const setResponsiveValue = ( key, value ) => {
|
115 |
+
props.setAttributes( {
|
116 |
+
[ RESPONSIVE_SETTINGS_ATTRIBUTE ]: {
|
117 |
+
...props.attributes[ RESPONSIVE_SETTINGS_ATTRIBUTE ],
|
118 |
+
[ DEVICE_SIZES[ selectedDevice ] ]: {
|
119 |
+
...props.attributes[ RESPONSIVE_SETTINGS_ATTRIBUTE ][ DEVICE_SIZES[ selectedDevice ] ],
|
120 |
+
[ key ]: value,
|
121 |
+
}
|
122 |
+
},
|
123 |
+
} );
|
124 |
+
}
|
125 |
+
|
126 |
+
const mobileFont = getResponsiveValueForDevice( 'fontSize', DEVICE_SIZES.Mobile );
|
127 |
+
const tabletFont = getResponsiveValueForDevice( 'fontSize', DEVICE_SIZES.Tablet );
|
128 |
+
|
129 |
+
return (
|
130 |
+
<>
|
131 |
+
{ Object.keys( props.attributes[ RESPONSIVE_SETTINGS_ATTRIBUTE ] ).length
|
132 |
+
? (
|
133 |
+
<style>
|
134 |
+
{ isFontSizeDisabled
|
135 |
+
? null
|
136 |
+
: (
|
137 |
+
<>
|
138 |
+
<ResponsiveSettingStyle
|
139 |
+
device={ DEVICE_SIZES.Tablet }
|
140 |
+
selectedDevice={ DEVICE_SIZES[ selectedDevice ] }
|
141 |
+
settingName="fontSize"
|
142 |
+
settingValue={ conditionallyAddPxUnit(
|
143 |
+
getFontSize( tabletFont, fontSizes ) || tabletFont
|
144 |
+
) }
|
145 |
+
clientId={ props.clientId }
|
146 |
+
/>
|
147 |
+
<ResponsiveSettingStyle
|
148 |
+
device={ DEVICE_SIZES.Mobile }
|
149 |
+
selectedDevice={ DEVICE_SIZES[ selectedDevice ] }
|
150 |
+
settingName="fontSize"
|
151 |
+
settingValue={ conditionallyAddPxUnit(
|
152 |
+
getFontSize( mobileFont, fontSizes ) || mobileFont
|
153 |
+
) }
|
154 |
+
clientId={ props.clientId }
|
155 |
+
/>
|
156 |
+
</>
|
157 |
+
)
|
158 |
+
}
|
159 |
+
{ isLineHeightDisabled
|
160 |
+
? null
|
161 |
+
: (
|
162 |
+
<>
|
163 |
+
<ResponsiveSettingStyle
|
164 |
+
device={ DEVICE_SIZES.Tablet }
|
165 |
+
selectedDevice={ DEVICE_SIZES[ selectedDevice ] }
|
166 |
+
settingName="lineHeight"
|
167 |
+
settingValue={ getResponsiveValueForDevice( 'lineHeight', DEVICE_SIZES.Tablet ) }
|
168 |
+
clientId={ props.clientId }
|
169 |
+
/>
|
170 |
+
<ResponsiveSettingStyle
|
171 |
+
device={ DEVICE_SIZES.Mobile }
|
172 |
+
selectedDevice={ DEVICE_SIZES[ selectedDevice ] }
|
173 |
+
settingName="lineHeight"
|
174 |
+
settingValue={ getResponsiveValueForDevice( 'lineHeight', DEVICE_SIZES.Mobile ) }
|
175 |
+
clientId={ props.clientId }
|
176 |
+
/>
|
177 |
+
</>
|
178 |
+
)
|
179 |
+
}
|
180 |
+
</style>
|
181 |
+
)
|
182 |
+
: null
|
183 |
+
}
|
184 |
+
<BlockEdit { ...props } />
|
185 |
+
<InspectorControls>
|
186 |
+
<PanelBody title={ __( 'Responsive Typography', 'genesis-blocks' ) }>
|
187 |
+
<NavigableMenu className="gb-responsive-toggle" onNavigate={ () => {} } orientation="horizontal">
|
188 |
+
<Button
|
189 |
+
icon="laptop"
|
190 |
+
showTooltip
|
191 |
+
label={ __( 'Desktop view', 'genesis-blocks' ) }
|
192 |
+
onClick={ () => setSelectedDevice( DEVICE_NAMES.desktop ) }
|
193 |
+
isPrimary={ DEVICE_NAMES.desktop === selectedDevice }
|
194 |
+
isSecondary={ DEVICE_NAMES.desktop !== selectedDevice }
|
195 |
+
>
|
196 |
+
{ __( 'Desktop', 'genesis-blocks' ) }
|
197 |
+
</Button>
|
198 |
+
<Button
|
199 |
+
icon="tablet"
|
200 |
+
showTooltip
|
201 |
+
label={ __( 'Tablet view', 'genesis-blocks' ) }
|
202 |
+
onClick={ () => setSelectedDevice( DEVICE_NAMES.tablet ) }
|
203 |
+
isPrimary={ DEVICE_NAMES.tablet === selectedDevice }
|
204 |
+
isSecondary={ DEVICE_NAMES.tablet !== selectedDevice }
|
205 |
+
>
|
206 |
+
{ __( 'Tablet', 'genesis-blocks' ) }
|
207 |
+
</Button>
|
208 |
+
<Button
|
209 |
+
icon="smartphone"
|
210 |
+
showTooltip
|
211 |
+
label={ __( 'Mobile view', 'genesis-blocks' ) }
|
212 |
+
onClick={ () => setSelectedDevice( DEVICE_NAMES.mobile ) }
|
213 |
+
isPrimary={ DEVICE_NAMES.mobile === selectedDevice }
|
214 |
+
isSecondary={ DEVICE_NAMES.mobile !== selectedDevice }
|
215 |
+
>
|
216 |
+
{ __( 'Mobile', 'genesis-blocks' ) }
|
217 |
+
</Button>
|
218 |
+
</NavigableMenu>
|
219 |
+
{ isFontSizeDisabled
|
220 |
+
? null
|
221 |
+
: (
|
222 |
+
<FontSizePicker
|
223 |
+
value={ getFontSizeOfSelectedDevice() }
|
224 |
+
onChange={ ( newFontSize ) => {
|
225 |
+
const fontSizeSlug = getFontSlug( newFontSize, fontSizes );
|
226 |
+
|
227 |
+
if ( DEVICE_NAMES.desktop === selectedDevice ) {
|
228 |
+
const newStyle = {
|
229 |
+
...props.attributes?.style,
|
230 |
+
typography: {
|
231 |
+
...props.attributes?.style?.typography,
|
232 |
+
fontSize: fontSizeSlug ? undefined : newFontSize,
|
233 |
+
},
|
234 |
+
};
|
235 |
+
|
236 |
+
props.setAttributes( {
|
237 |
+
style: !! cleanEmptyObject
|
238 |
+
? cleanEmptyObject( newStyle )
|
239 |
+
: newStyle,
|
240 |
+
fontSize: fontSizeSlug,
|
241 |
+
} );
|
242 |
+
|
243 |
+
return;
|
244 |
+
}
|
245 |
+
|
246 |
+
setResponsiveValue( 'fontSize', fontSizeSlug || newFontSize );
|
247 |
+
} }
|
248 |
+
fontSizes={ fontSizes }
|
249 |
+
disableCustomFontSizes={ disableCustomFontSizes }
|
250 |
+
/>
|
251 |
+
)
|
252 |
+
}
|
253 |
+
{ isLineHeightDisabled || ! LineHeightControl
|
254 |
+
? null
|
255 |
+
: (
|
256 |
+
<LineHeightControl
|
257 |
+
value={ getLineHeightOfSelectedDevice() }
|
258 |
+
onChange={ ( newLineHeight ) => {
|
259 |
+
if ( DEVICE_NAMES.desktop === selectedDevice ) {
|
260 |
+
const newStyle = {
|
261 |
+
...props.attributes?.style,
|
262 |
+
typography: {
|
263 |
+
...props.attributes?.style?.typography,
|
264 |
+
lineHeight: newLineHeight,
|
265 |
+
},
|
266 |
+
};
|
267 |
+
|
268 |
+
props.setAttributes( {
|
269 |
+
style: !! cleanEmptyObject
|
270 |
+
? cleanEmptyObject( newStyle )
|
271 |
+
: newStyle
|
272 |
+
} );
|
273 |
+
|
274 |
+
return;
|
275 |
+
}
|
276 |
+
|
277 |
+
setResponsiveValue( 'lineHeight', newLineHeight );
|
278 |
+
} }
|
279 |
+
/>
|
280 |
+
)
|
281 |
+
}
|
282 |
+
</PanelBody>
|
283 |
+
</InspectorControls>
|
284 |
+
</>
|
285 |
+
);
|
286 |
+
};
|
287 |
+
}, 'withResponsiveSettings' );
|
src/blocks/responsive-settings/constants.js
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
export const BLOCKS_WITH_RESPONSIVE_SETTINGS = [
|
2 |
+
'core/paragraph',
|
3 |
+
'core/heading',
|
4 |
+
];
|
5 |
+
export const DEVICE_NAMES = {
|
6 |
+
desktop: 'Desktop',
|
7 |
+
tablet: 'Tablet',
|
8 |
+
mobile: 'Mobile',
|
9 |
+
};
|
10 |
+
export const DEVICE_SIZES = {
|
11 |
+
Desktop: 'default',
|
12 |
+
Tablet: '1200px',
|
13 |
+
Mobile: '600px',
|
14 |
+
};
|
15 |
+
export const RESPONSIVE_SETTINGS_ATTRIBUTE = 'gbResponsiveSettings';
|
src/blocks/responsive-settings/index.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* WordPress dependencies
|
3 |
+
*/
|
4 |
+
const { addFilter } = wp.hooks;
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Internal dependencies
|
8 |
+
*/
|
9 |
+
import { addResponsiveAttributes } from './utils';
|
10 |
+
import { withResponsiveSettings } from './components/with-responsive-settings';
|
11 |
+
|
12 |
+
addFilter(
|
13 |
+
'blocks.registerBlockType',
|
14 |
+
'genesis-blocks/add-responsive-controls-attributes',
|
15 |
+
addResponsiveAttributes
|
16 |
+
);
|
17 |
+
|
18 |
+
addFilter(
|
19 |
+
'editor.BlockEdit',
|
20 |
+
'genesis-blocks/add-responsive-controls',
|
21 |
+
withResponsiveSettings
|
22 |
+
);
|
src/blocks/responsive-settings/utils.js
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Internal dependencies
|
3 |
+
*/
|
4 |
+
import {
|
5 |
+
BLOCKS_WITH_RESPONSIVE_SETTINGS,
|
6 |
+
RESPONSIVE_SETTINGS_ATTRIBUTE,
|
7 |
+
} from './constants';
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Adds responsive control attributes.
|
11 |
+
*
|
12 |
+
* Props Phil Johnston.
|
13 |
+
*
|
14 |
+
* @param {Object} settings Settings for the block.
|
15 |
+
* @param {string} name The name of the block.
|
16 |
+
* @return {Object} settings Modified settings.
|
17 |
+
*/
|
18 |
+
export const addResponsiveAttributes = ( settings, name ) => {
|
19 |
+
if ( ! BLOCKS_WITH_RESPONSIVE_SETTINGS.includes( name ) ) {
|
20 |
+
return settings;
|
21 |
+
}
|
22 |
+
|
23 |
+
return {
|
24 |
+
...settings,
|
25 |
+
attributes: {
|
26 |
+
...settings?.attributes,
|
27 |
+
[ RESPONSIVE_SETTINGS_ATTRIBUTE ]: {
|
28 |
+
type: 'object',
|
29 |
+
default: {},
|
30 |
+
},
|
31 |
+
},
|
32 |
+
};
|
33 |
+
};
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Gets a kebab-case string from a camelCase one.
|
37 |
+
*
|
38 |
+
* @param {string} camelCase A camelCase string.
|
39 |
+
* @return {string} A kebab-case string.
|
40 |
+
*/
|
41 |
+
export const camelToKebabCase = ( camelCase ) =>
|
42 |
+
camelCase.replace(
|
43 |
+
/([a-z])([A-Z1-9])/g,
|
44 |
+
( match, p1, p2 ) => p1 + '-' + p2
|
45 |
+
).toLowerCase();
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Adds a px unit to the font-size size if it has no unit.
|
49 |
+
*
|
50 |
+
* If this receives '24', it will return '24px'.
|
51 |
+
* If there's already a unit, like '24rem', it returns that.
|
52 |
+
*
|
53 |
+
* @param {string|undefined} size The size, either with or without a unit like px or rem, like 24px.
|
54 |
+
* @return {string|undefined} The size with px if it didn't already have one.
|
55 |
+
*/
|
56 |
+
export const conditionallyAddPxUnit = ( size ) => {
|
57 |
+
if ( 'string' !== typeof size ) {
|
58 |
+
return size;
|
59 |
+
}
|
60 |
+
|
61 |
+
return size.match( /[A-Za-z]+$/ )
|
62 |
+
? size
|
63 |
+
: `${ size }px`;
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Gets the font as a slug.
|
68 |
+
*
|
69 |
+
* @param {string} fontSize The font size in px, em, or rem to look for, like '20px'.
|
70 |
+
* @param {Object[]} fontSizes All of the possible font sizes.
|
71 |
+
* @return {string|undefined} The font as a slug, like 'large'.
|
72 |
+
*/
|
73 |
+
export const getFontSlug = ( fontSize, fontSizes ) =>
|
74 |
+
fontSizes.find( ( font ) => fontSize === font.size )?.slug;
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Gets the font size in px, em, or rem.
|
78 |
+
*
|
79 |
+
* @param {string} fontSlug The slug to look for, like 'normal'.
|
80 |
+
* @param {Object[]} fontSizes All of the possible font sizes.
|
81 |
+
* @return {string|undefined} The font size in px, em, rem.
|
82 |
+
*/
|
83 |
+
export const getFontSize = ( fontSlug, fontSizes ) =>
|
84 |
+
fontSizes.find( ( font ) => fontSlug === font.slug )?.size;
|
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 ComposerAutoloaderInit8fc3f1a87ab74aa2d782042afd3e138d::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 ComposerAutoloaderInit64d8cc2fadfbef90de42d3bffcc721ce
|
|
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 ComposerAutoloaderInit8fc3f1a87ab74aa2d782042afd3e138d
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit8fc3f1a87ab74aa2d782042afd3e138d', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit8fc3f1a87ab74aa2d782042afd3e138d', '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\ComposerStaticInit8fc3f1a87ab74aa2d782042afd3e138d::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 ComposerStaticInit64d8cc2fadfbef90de42d3bffcc721ce
|
|
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 ComposerStaticInit8fc3f1a87ab74aa2d782042afd3e138d
|
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 = ComposerStaticInit8fc3f1a87ab74aa2d782042afd3e138d::$prefixLengthsPsr4;
|
51 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit8fc3f1a87ab74aa2d782042afd3e138d::$prefixDirsPsr4;
|
52 |
+
$loader->classMap = ComposerStaticInit8fc3f1a87ab74aa2d782042afd3e138d::$classMap;
|
53 |
|
54 |
}, null, ClassLoader::class);
|
55 |
}
|