Genesis Blocks - Version 1.2.1

Version Description

  • Fixed: The layouts block is no longer left over in the editor if the modal is closed by the user.
  • Fixed: The layouts button in the Block Editor header toolbar uses a more reliable javascript event to ensure it is always visible.
  • Fixed: The Post and Page Grid block now shows all pages selected, instead of cutting it off at the number of posts set to show.
  • New: Added a "Leave a review" button to the settings page.
Download this release

Release Info

Developer studiopress
Plugin Icon 128x128 Genesis Blocks
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

dist/blocks.build.js CHANGED
@@ -1,16 +1,16 @@
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=319)}([function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},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}},function(e,t,n){var r=n(211);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)}},function(e,t,n){var r=n(212),a=n(46);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2017 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)&&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 u(e){return void 0===e}function c(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 p(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function m(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 f(e,t,n,r){return Tt(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 _(e){var t=f(NaN);return null!=e?m(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 v(e,t){var n,r,a;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=h(t)),u(t._locale)||(e._locale=t._locale),b.length>0)for(n=0;n<b.length;n++)u(a=t[r=b[n]])||(e[r]=a);return e}function k(e){v(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 M(e){return e instanceof k||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 m((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 T,Y={};function E(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),Y[e]||(L(t),Y[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var n,r=m({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},m(r[n],e[n]),m(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]=m({},r[n]));return r}function D(e){null!=e&&this.set(e)}function C(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,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var R=/(\[[^\[]*\])|(\\)?([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,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},j={};function H(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(j[e]=a),t&&(j[t[0]]=function(){return C(a.apply(this,arguments),t[1],t[2])}),n&&(j[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function A(e,t){return e.isValid()?(t=z(t,e.localeData()),P[t]=P[t]||function(e){var t,n,r,a=e.match(R);for(t=0,n=a.length;t<n;t++)j[a[t]]?a[t]=j[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+=S(a[r])?a[r].call(t,e):a[r];return o}}(t),P[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,n-=1;return e}var F={};function N(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function B(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function I(e){var t,n,r={};for(n in e)s(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var W={};function U(e,t){W[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(),Me(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Q,Z=/\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}/,ue=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,me=/[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 fe(e,t,n){Q[e]=S(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return s(Q,e)?Q[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,"\\$&")}Q={};var _e,be={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)be[e[n]]=r}function ve(e,t){ye(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function ke(e,t,n){null!=t&&s(be,e)&&be[e](t,n._a,n,e)}function Me(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}_e=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},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),N("month","M"),U("month",8),fe("M",re),fe("MM",re,X),fe("MMM",(function(e,t){return t.monthsShortRegex(e)})),fe("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("_"),Te=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ye=me,Ee=me;function Se(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=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=_e.call(this._shortMonthsParse,i))?a:null:-1!==(a=_e.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=_e.call(this._shortMonthsParse,i))||-1!==(a=_e.call(this._longMonthsParse,i))?a:null:-1!==(a=_e.call(this._longMonthsParse,i))||-1!==(a=_e.call(this._shortMonthsParse,i))?a:null}function xe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Me(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function De(e){return null!=e?(xe(this,e),a.updateOffset(this,!0),this):$(this,"Month")}function Ce(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=f([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 Re(e){return V(e)?366:365}H("Y",0,0,(function(){var e=this.year();return e<=9999?C(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),N("year","y"),U("year",1),fe("Y",ce),fe("YY",re,X),fe("YYYY",se,te),fe("YYYYY",le,ne),fe("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 Oe=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 je(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 He(e,t,n){var r=7+t-n;return-(7+je(e,0,r).getUTCDay()-t)%7+r-1}function Ae(e,t,n,r,a){var o,i,s=1+7*(t-1)+(7+n-r)%7+He(e,r,a);return s<=0?i=Re(o=e-1)+s:s>Re(e)?(o=e+1,i=s-Re(e)):(o=e,i=s),{year:o,dayOfYear:i}}function ze(e,t,n){var r,a,o=He(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?r=i+Fe(a=e.year()-1,t,n):i>Fe(e.year(),t,n)?(r=i-Fe(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function Fe(e,t,n){var r=He(e,t,n),a=He(e+1,t,n);return(Re(e)-r+a)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),U("week",5),U("isoWeek",5),fe("w",re),fe("ww",re,X),fe("W",re),fe("WW",re,X),ve(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=G(e)})),H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),fe("d",re),fe("e",re),fe("E",re),fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),fe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["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})),ve(["d","e","E"],(function(e,t,n,r){t[r]=G(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=me,Ve=me,Je=me;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=f([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=_e.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=_e.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=_e.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=_e.call(this._weekdaysParse,i))||-1!==(a=_e.call(this._shortWeekdaysParse,i))||-1!==(a=_e.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=_e.call(this._shortWeekdaysParse,i))||-1!==(a=_e.call(this._weekdaysParse,i))||-1!==(a=_e.call(this._minWeekdaysParse,i))?a:null:-1!==(a=_e.call(this._minWeekdaysParse,i))||-1!==(a=_e.call(this._weekdaysParse,i))||-1!==(a=_e.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=[],u=[];for(t=0;t<7;t++)n=f([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),u.push(r),u.push(a),u.push(o);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.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){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,$e),H("k",["kk",2],0,(function(){return this.hours()||24})),H("hmm",0,0,(function(){return""+$e.apply(this)+C(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+$e.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+C(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),N("hour","h"),U("hour",13),fe("a",Qe),fe("A",Qe),fe("H",re),fe("h",re),fe("k",re),fe("HH",re,X),fe("hh",re,X),fe("kk",re,X),fe("hmm",ae),fe("hmmss",oe),fe("Hmm",ae),fe("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 Ze,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:Be,weekdaysMin:We,weekdaysShort:Ie,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=Ze._abbr,n(296)("./"+t),it(r)}catch(e){tt[t]=null}return tt[t]}function it(e,t){var n;return e&&((n=u(t)?lt(e):st(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])E("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 D(x(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 Ze;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 Ze}(e)}function ut(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]>Me(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 ct=/^\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)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["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]],ft=[["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}))$/,_t={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=ct.exec(s)||dt.exec(s);if(l){for(h(e).iso=!0,t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[1])){a=mt[t][0],r=!1!==mt[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[3])){o=(l[2]||" ")+ft[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!pt.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 vt(e){var t,n,r,a,o,i,s,l,u=gt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],r=u[3],a=u[2],o=u[5],i=u[6],s=u[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||Ie.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return _t[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(u[8],u[9],u[10]),e._d=je.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function kt(e,t,n){return null!=e?e:null!=t?t:n}function Mt(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,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,i=4,n=kt(t.GG,e._a[0],ze(Yt(),1,4).year),r=kt(t.W,1),((a=kt(t.E,1))<1||a>7)&&(l=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,u=ze(Yt(),o,i),n=kt(t.gg,e._a[0],u.year),r=kt(t.w,u.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>Fe(n,o,i)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ae(n,r,a,o,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=kt(e._a[0],r[0]),(e._dayOfYear>Re(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=je(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?je: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,u=l.length,c=0;for(r=z(e._f,e._locale).match(R)||[],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),c+=n.length),j[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),ke(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=u-c,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])),Mt(e),ut(e)}else vt(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?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new k(ut(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=v({},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));m(e,n||t)}(e):n?Lt(e):function(e){var t=e._i;u(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,vt(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=p(t.slice(0),(function(e){return parseInt(e,10)})),Mt(e)):i(t)?function(e){if(!e._d){var t=I(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Mt(e)}}(e):c(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Tt(e,t,n,r,a){var s,u={};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),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,(s=new k(ut(wt(u))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Yt(e,t,n,r){return Tt(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 Et=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Yt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()})),St=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Yt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}));function xt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Yt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Dt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var t=I(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,u=t.minute||0,c=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===_e.call(Dt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Dt.length;++n)if(e[Dt[n]]){if(r)return!1;parseFloat(e[Dt[n]])!==G(e[Dt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+1e3*l*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=lt(),this._bubble()}function Rt(e){return e instanceof Ct}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+C(~~(e/60),2)+t+C(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),fe("Z",pe),fe("ZZ",pe),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ht(pe,e)}));var jt=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(jt)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?r:-r}function At(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(M(e)||d(e)?e.valueOf():Yt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Yt(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Nt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function It(e,t){var n,r,a,o,i,l,u=e,d=null;return Rt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(d=Nt.exec(e))?(n="-"===d[1]?-1:1,u={y:0,d:G(d[2])*n,h:G(d[3])*n,m:G(d[4])*n,s:G(d[5])*n,ms:G(Ot(1e3*d[6]))*n}):(d=Bt.exec(e))?(n="-"===d[1]?-1:1,u={y:Wt(d[2],n),M:Wt(d[3],n),w:Wt(d[4],n),d:Wt(d[5],n),h:Wt(d[6],n),m:Wt(d[7],n),s:Wt(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Yt(u.from),i=Yt(u.to),a=o.isValid()&&i.isValid()?(i=At(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},(u={}).ms=a.milliseconds,u.M=a.months),r=new Ct(u),Rt(e)&&s(e,"_locale")&&(r._locale=e._locale),Rt(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(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)||(E(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,It(n,r),e),this}}function Jt(e,t,n,r){var o=t._milliseconds,i=Ot(t._days),s=Ot(t._months);e.isValid()&&(r=null==r||r,s&&xe(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))}It.fn=Ct.prototype,It.invalid=function(){return It(NaN)};var Gt=Vt(1,"add"),qt=Vt(-1,"subtract");function $t(e){return"string"==typeof e||e instanceof String}function Kt(e){return M(e)||d(e)||$t(e)||c(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(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 Qt(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 Zt(e,t){if(e.date()<t.date())return-Zt(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){H(0,[e,e.length],0,t)}function un(e,t,n,r,a){var o;return null==e?ze(this,r,a).year:(t>(o=Fe(e,r,a))&&(t=o),cn.call(this,e,t,n,r,a))}function cn(e,t,n,r,a){var o=Ae(e,t,n,r,a),i=je(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),fe("N",on),fe("NN",on),fe("NNN",on),fe("NNNN",(function(e,t){return t.erasNameRegex(e)})),fe("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})),fe("y",ue),fe("yy",ue),fe("yyy",ue),fe("yyyy",ue),fe("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),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)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(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),fe("G",ce),fe("g",ce),fe("GG",re,X),fe("gg",re,X),fe("GGGG",se,te),fe("gggg",se,te),fe("GGGGG",le,ne),fe("ggggg",le,ne),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=G(e)})),ve(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),N("quarter","Q"),U("quarter",7),fe("Q",Z),ye("Q",(function(e,t){t[1]=3*(G(e)-1)})),H("D",["DD",2],"Do","date"),N("date","D"),U("date",9),fe("D",re),fe("DD",re,X),fe("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);H("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),U("dayOfYear",4),fe("DDD",ie),fe("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),H("m",["mm",2],0,"minute"),N("minute","m"),U("minute",14),fe("m",re),fe("mm",re,X),ye(["m","mm"],4);var pn=q("Minutes",!1);H("s",["ss",2],0,"second"),N("second","s"),U("second",15),fe("s",re),fe("ss",re,X),ye(["s","ss"],5);var mn,fn,hn=q("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),U("millisecond",16),fe("S",ie,Z),fe("SS",ie,X),fe("SSS",ie,ee),mn="SSSS";mn.length<=9;mn+="S")fe(mn,ue);function gn(e,t){t[6]=G(1e3*("0."+e))}for(mn="S";mn.length<=9;mn+="S")ye(mn,gn);fn=q("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var _n=k.prototype;function bn(e){return e}_n.add=Gt,_n.calendar=function(e,t){1===arguments.length&&(Kt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0));var n=e||Yt(),r=At(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(S(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Yt(n)))},_n.clone=function(){return new k(this)},_n.diff=function(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=At(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":o=Zt(this,r)/12;break;case"month":o=Zt(this,r);break;case"quarter":o=Zt(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)},_n.endOf=function(e){var t,n;if(void 0===(e=B(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},_n.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},_n.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Yt(e).isValid())?It({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.fromNow=function(e){return this.from(Yt(),e)},_n.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Yt(e).isValid())?It({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.toNow=function(e){return this.to(Yt(),e)},_n.get=function(e){return S(this[e=B(e)])?this[e]():this},_n.invalidAt=function(){return h(this).overflow},_n.isAfter=function(e,t){var n=M(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},_n.isBefore=function(e,t){var n=M(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},_n.isBetween=function(e,t,n,r){var a=M(e)?e:Yt(e),o=M(t)?t:Yt(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)))},_n.isSame=function(e,t){var n,r=M(e)?e:Yt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},_n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},_n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},_n.isValid=function(){return g(this)},_n.lang=en,_n.locale=Xt,_n.localeData=tn,_n.max=St,_n.min=Et,_n.parsingFlags=function(){return m({},h(this))},_n.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:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=I(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(S(this[e=B(e)]))return this[e](t);return this},_n.startOf=function(e){var t,n;if(void 0===(e=B(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},_n.subtract=qt,_n.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},_n.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()}},_n.toDate=function(){return new Date(this.valueOf())},_n.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?A(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(n,"Z")):A(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.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&&(_n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.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""},_n.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""},_n.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""},_n.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()},_n.year=Oe,_n.isLeapYear=function(){return V(this.year())},_n.weekYear=function(e){return un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},_n.month=De,_n.daysInMonth=function(){return Me(this.year(),this.month())},_n.week=_n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},_n.isoWeek=_n.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},_n.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},_n.weeksInWeekYear=function(){var e=this.localeData()._week;return Fe(this.weekYear(),e.dow,e.doy)},_n.isoWeeksInYear=function(){return Fe(this.year(),1,4)},_n.isoWeeksInISOWeekYear=function(){return Fe(this.isoWeekYear(),1,4)},_n.date=dn,_n.day=_n.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},_n.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")},_n.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},_n.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")},_n.hour=_n.hours=Xe,_n.minute=_n.minutes=pn,_n.second=_n.seconds=hn,_n.millisecond=_n.milliseconds=fn,_n.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=Ht(pe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Jt(this,It(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:zt(this)},_n.utc=function(e){return this.utcOffset(0,e)},_n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Ft,_n.isUTC=Ft,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=w("dates accessor is deprecated. Use date instead.",dn),_n.months=w("months accessor is deprecated. Use month instead",De),_n.years=w("years accessor is deprecated. Use year instead",Oe),_n.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()})),_n.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=wt(t))._a?(e=t._isUTC?f(t._a):Yt(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=D.prototype;function vn(e,t,n,r){var a=lt(),o=f().set(r,t);return a[n](o,e)}function kn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return vn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=vn(e,r,n,"month");return a}function Mn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,o=lt(),i=e?o._week.dow:0,s=[];if(null!=n)return vn(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=vn(t,(a+i)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(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(R).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 S(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 S(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(S(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||Te).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[Te.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 Se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=f([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")||Ce.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ce.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return ze(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=f([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=It(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function Yn(e){return 4800*e/146097}function En(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var xn=Sn("ms"),Dn=Sn("s"),Cn=Sn("m"),Rn=Sn("h"),On=Sn("d"),Pn=Sn("w"),jn=Sn("M"),Hn=Sn("Q"),An=Sn("y");function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=zn("milliseconds"),Nn=zn("seconds"),Bn=zn("minutes"),In=zn("hours"),Wn=zn("days"),Un=zn("months"),Vn=zn("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 Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,i,s,l=$n(this._milliseconds)/1e3,u=$n(this._days),c=$n(this._months),d=this.asSeconds();return d?(e=J(l/60),t=J(e/60),l%=60,e%=60,n=J(c/12),c%=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":"")+(c?o+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Zn=Ct.prototype;return Zn.isValid=function(){return this._isValid},Zn.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},Zn.add=function(e,t){return wn(this,e,t,1)},Zn.subtract=function(e,t){return wn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Yn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(En(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)}},Zn.asMilliseconds=xn,Zn.asSeconds=Dn,Zn.asMinutes=Cn,Zn.asHours=Rn,Zn.asDays=On,Zn.asWeeks=Pn,Zn.asMonths=jn,Zn.asQuarters=Hn,Zn.asYears=An,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Zn._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*Tn(En(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(Yn(i)),s+=a,i-=Tn(En(a)),r=J(s/12),s%=12,l.days=i,l.months=s,l.years=r,this},Zn.clone=function(){return It(this)},Zn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Fn,Zn.seconds=Nn,Zn.minutes=Bn,Zn.hours=In,Zn.days=Wn,Zn.weeks=function(){return J(this.days()/7)},Zn.months=Un,Zn.years=Vn,Zn.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=It(e).abs(),o=Jn(a.as("s")),i=Jn(a.as("m")),s=Jn(a.as("h")),l=Jn(a.as("d")),u=Jn(a.as("M")),c=Jn(a.as("w")),d=Jn(a.as("y")),p=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&&(p=p||c<=1&&["w"]||c<n.w&&["ww",c]),(p=p||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,qn.apply(null,p)}(this,!a,o,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},Zn.toISOString=Qn,Zn.toString=Qn,Zn.toJSON=Qn,Zn.locale=Xt,Zn.localeData=tn,Zn.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Zn.lang=en,H("X",0,0,"unix"),H("x",0,0,"valueOf"),fe("x",ce),fe("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=Yt,a.fn=_n,a.min=function(){var e=[].slice.call(arguments,0);return xt("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return xt("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=f,a.unix=function(e){return Yt(1e3*e)},a.months=function(e,t){return kn(e,t,"months")},a.isDate=d,a.locale=it,a.invalid=_,a.duration=It,a.isMoment=M,a.weekdays=function(e,t,n){return Mn(e,t,n,"weekdays")},a.parseZone=function(){return Yt.apply(null,arguments).parseZone()},a.localeData=lt,a.isDuration=Rt,a.monthsShort=function(e,t){return kn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return Mn(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(x(tt[e]._config,t)):(null!=(r=ot(e))&&(a=r._config),t=x(a,t),null==r&&(t.abbr=e),(n=new D(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 T(tt)},a.weekdaysShort=function(e,t,n){return Mn(e,t,n,"weekdaysShort")},a.normalizeUnits=B,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=_n,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(41)(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}},function(e,t,n){"use strict";e.exports=n(215)},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},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(36),a=n(54),o=n(297),i=n(13);e.exports=function(e,t){return(i(e)?r:o)(e,a(t,3))}},function(e,t,n){var r=n(57),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){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){var r=n(228),a=n(234);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},function(e,t,n){e.exports=n(318)},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(25),a=n(230),o=n(231),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(30);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){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(303)},function(e,t,n){e.exports=n(306)()},function(e,t,n){var r=n(218),a=n(219),o=n(220),i=n(221),s=n(222);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(37);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,n){var r=n(15)(Object,"create");e.exports=r},function(e,t,n){var r=n(243);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(56),a=n(43);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},function(e,t,n){var r=n(13),a=n(45),o=n(274),i=n(277);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:o(i(e))}},function(e,t,n){var r=n(18),a=n(19);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(44);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(66),a=n(308),o=n(309),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(312),a=n(313),o=n(208),i=n(314);e.exports=function(e){return r(e)||a(e)||o(e)||i()}},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)}))}}},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){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(15)(n(12),"Map");e.exports=r},function(e,t,n){var r=n(235),a=n(242),o=n(244),i=n(245),s=n(246);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(65),a=n(265),o=n(28);e.exports=function(e){return o(e)?r(e):a(e)}},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){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){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(29),a=n(20);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(30),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}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(9),i=l(o),s=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),m=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||m()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||m()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},a,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(o.Component);f.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.default=f},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(36),a=n(54),o=n(285),i=n(290);e.exports=function(e,t){if(null==e)return{};var n=r(i(e),(function(e){return[e]}));return t=a(t),o(e,n,(function(e,n){return t(e,n[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,n){var r=n(315),a=n(316),o=n(208),i=n(317);e.exports=function(e,t){return r(e)||a(e,t)||o(e,t)||i()}},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){"use strict";
9
  /*
10
  object-assign
11
  (c) Sindre Sorhus
12
  @license MIT
13
- */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),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))a.call(n,c)&&(l[c]=n[c]);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,n){var r=n(216),a=n(273),o=n(74),i=n(13),s=n(282);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(23),a=n(223),o=n(224),i=n(225),s=n(226),l=n(227);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=a,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,n){var r=n(18),a=n(17);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(229))},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(247),a=n(19);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(248),a=n(251),o=n(252);e.exports=function(e,t,n,i,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var p=l.get(e);if(p&&l.get(t))return p==t;var m=-1,f=!0,h=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++m<c;){var g=e[m],_=t[m];if(i)var b=u?i(_,g,m,t,e,l):i(g,_,m,e,t,l);if(void 0!==b){if(b)continue;f=!1;break}if(h){if(!a(t,(function(e,t){if(!o(h,t)&&(g===e||s(g,e,n,i,l)))return h.push(t)}))){f=!1;break}}else if(g!==_&&!s(g,_,n,i,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},function(e,t,n){var r=n(62),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(259),a=n(64),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(){return[]}},function(e,t,n){var r=n(66),a=n(67),o=n(13),i=n(68),s=n(42),l=n(69),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&a(e),d=!n&&!c&&i(e),p=!n&&!c&&!d&&l(e),m=n||c||d||p,f=m?r(e.length,String):[],h=f.length;for(var g in e)!t&&!u.call(e,g)||m&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||f.push(g);return f}},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(260),a=n(19),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(261),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(41)(e))},function(e,t,n){var r=n(262),a=n(263),o=n(264),i=o&&o.isTypedArray,s=i?a(i):r;e.exports=s},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){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(17);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){e.exports=function(e){return e}},function(e,t,n){!function(e){"use strict";
14
  //! moment.js locale configuration
15
  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";
16
  //! moment.js locale configuration
@@ -289,7 +289,7 @@ e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeo
289
  *
290
  * This source code is licensed under the MIT license found in the
291
  * LICENSE file in the root directory of this source tree.
292
- */var r=n(53),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,u=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.memo"):60115,h=a?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function _(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 v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}function k(){}function M(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=v.prototype;var L=M.prototype=new k;L.constructor=M,r(L,v.prototype),L.isPureReactComponent=!0;var w={current:null},T=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0};function E(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)T.call(t,r)&&!Y.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}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 S(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var x=/\/+/g,D=[];function C(e,t,n,r){if(D.length){var a=D.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 R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function O(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 u=0;u<t.length;u++){var c=n+P(s=t[u],u);l+=e(s,c,r,a)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(s=t.next()).done;)l+=e(s=s.value,c=n+P(s,u++),r,a);else if("object"===s)throw r=""+t,Error(_(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 j(e,t){e.func.call(e.context,t,e.count++)}function H(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?A(e,r,n,(function(e){return e})):null!=e&&(S(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(x,"$&/")+"/")+n)),r.push(e))}function A(e,t,n,r,a){var o="";null!=n&&(o=(""+n).replace(x,"$&/")+"/"),O(e,H,t=C(t,o,r,a)),R(t)}var z={current:null};function F(){var e=z.current;if(null===e)throw Error(_(321));return e}var N={ReactCurrentDispatcher:z,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 A(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;O(e,j,t=C(null,null,t,n)),R(t)},count:function(e){return O(e,(function(){return null}),null)},toArray:function(e){var t=[];return A(e,t,null,(function(e){return e})),t},only:function(e){if(!S(e))throw Error(_(143));return e}},t.Component=v,t.Fragment=s,t.Profiler=u,t.PureComponent=M,t.StrictMode=l,t.Suspense=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error(_(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 u=e.type.defaultProps;for(c in t)T.call(t,c)&&!Y.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];a.children=u}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:c,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:h,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.13.1"},function(e,t,n){var r=n(217),a=n(272),o=n(73);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(55),a=n(59);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 u=n[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var c=(u=n[i])[0],d=e[c],p=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var m=new r;if(o)var f=o(d,p,c,e,t,m);if(!(void 0===f?a(p,d,3,o,m):f))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(24),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(24);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(24);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(24);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(23);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(23),a=n(38),o=n(39);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(56),a=n(232),o=n(17),i=n(58),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(r(e)?p: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(25),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(233),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(236),a=n(23),o=n(38);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(237),a=n(238),o=n(239),i=n(240),s=n(241);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(26);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(26),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(26),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(26);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(27);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(27);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(27);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(27);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(55),a=n(60),o=n(253),i=n(257),s=n(267),l=n(13),u=n(68),c=n(69),d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,f,h){var g=l(e),_=l(t),b=g?"[object Array]":s(e),y=_?"[object Array]":s(t),v=(b="[object Arguments]"==b?d:b)==d,k=(y="[object Arguments]"==y?d:y)==d,M=b==y;if(M&&u(e)){if(!u(t))return!1;g=!0,v=!1}if(M&&!v)return h||(h=new r),g||c(e)?a(e,t,n,m,f,h):o(e,t,b,n,m,f,h);if(!(1&n)){var L=v&&p.call(e,"__wrapped__"),w=k&&p.call(t,"__wrapped__");if(L||w){var T=L?e.value():e,Y=w?t.value():t;return h||(h=new r),f(T,Y,n,m,h)}}return!!M&&(h||(h=new r),i(e,t,n,m,f,h))}},function(e,t,n){var r=n(39),a=n(249),o=n(250);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(25),a=n(254),o=n(37),i=n(60),s=n(255),l=n(256),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,p){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 m=s;case"[object Set]":var f=1&r;if(m||(m=l),e.size!=t.size&&!f)return!1;var h=p.get(e);if(h)return h==t;r|=2,p.set(e,t);var g=i(m(e),m(t),r,u,d,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.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(258),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,i,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var p=u[d];if(!(l?p in t:a.call(t,p)))return!1}var m=s.get(e);if(m&&s.get(t))return m==t;var f=!0;s.set(e,t),s.set(t,e);for(var h=l;++d<c;){var g=e[p=u[d]],_=t[p];if(o)var b=l?o(_,g,p,t,e,s):o(g,_,p,e,t,s);if(!(void 0===b?g===_||i(g,_,n,o,s):b)){f=!1;break}h||(h="constructor"==p)}if(f&&!h){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(f=!1)}return s.delete(e),s.delete(t),f}},function(e,t,n){var r=n(61),a=n(63),o=n(40);e.exports=function(e){return r(e,o,a)}},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,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(43),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(57),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(41)(e))},function(e,t,n){var r=n(70),a=n(266),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,n){var r=n(71)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(268),a=n(38),o=n(269),i=n(270),s=n(271),l=n(18),u=n(58),c=u(r),d=u(a),p=u(o),m=u(i),f=u(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?u(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,n){var r=n(15)(n(12),"DataView");e.exports=r},function(e,t,n){var r=n(15)(n(12),"Promise");e.exports=r},function(e,t,n){var r=n(15)(n(12),"Set");e.exports=r},function(e,t,n){var r=n(15)(n(12),"WeakMap");e.exports=r},function(e,t,n){var r=n(72),a=n(40);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(59),a=n(31),o=n(279),i=n(45),s=n(72),l=n(73),u=n(20);e.exports=function(e,t){return i(e)&&s(t)?l(u(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(275),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(276);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(39);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(278);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(25),a=n(36),o=n(13),i=n(30),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(280),a=n(281);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(29),a=n(67),o=n(13),i=n(42),s=n(43),l=n(20);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var p=l(t[u]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&i(p,c)&&(o(e)||a(e))}},function(e,t,n){var r=n(283),a=n(284),o=n(45),i=n(20);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(44);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(44),a=n(286),o=n(29);e.exports=function(e,t,n){for(var i=-1,s=t.length,l={};++i<s;){var u=t[i],c=r(e,u);n(c,u)&&a(l,o(u,e),c)}return l}},function(e,t,n){var r=n(287),a=n(29),o=n(42),i=n(17),s=n(20);e.exports=function(e,t,n,l){if(!i(e))return e;for(var u=-1,c=(t=a(t,e)).length,d=c-1,p=e;null!=p&&++u<c;){var m=s(t[u]),f=n;if(u!=d){var h=p[m];void 0===(f=l?l(h,m,p):void 0)&&(f=i(h)?h:o(t[u+1])?[]:{})}r(p,m,f),p=p[m]}return e}},function(e,t,n){var r=n(288),a=n(37),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];o.call(e,t)&&a(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(289);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(15),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},function(e,t,n){var r=n(61),a=n(291),o=n(293);e.exports=function(e){return r(e,o,a)}},function(e,t,n){var r=n(62),a=n(292),o=n(63),i=n(64),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=a(e);return t}:i;e.exports=s},function(e,t,n){var r=n(71)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(65),a=n(294),o=n(28);e.exports=function(e){return o(e)?r(e,!0):a(e)}},function(e,t,n){var r=n(17),a=n(70),o=n(295),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=a(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r={"./af":75,"./af.js":75,"./ar":76,"./ar-dz":77,"./ar-dz.js":77,"./ar-kw":78,"./ar-kw.js":78,"./ar-ly":79,"./ar-ly.js":79,"./ar-ma":80,"./ar-ma.js":80,"./ar-sa":81,"./ar-sa.js":81,"./ar-tn":82,"./ar-tn.js":82,"./ar.js":76,"./az":83,"./az.js":83,"./be":84,"./be.js":84,"./bg":85,"./bg.js":85,"./bm":86,"./bm.js":86,"./bn":87,"./bn.js":87,"./bo":88,"./bo.js":88,"./br":89,"./br.js":89,"./bs":90,"./bs.js":90,"./ca":91,"./ca.js":91,"./cs":92,"./cs.js":92,"./cv":93,"./cv.js":93,"./cy":94,"./cy.js":94,"./da":95,"./da.js":95,"./de":96,"./de-at":97,"./de-at.js":97,"./de-ch":98,"./de-ch.js":98,"./de.js":96,"./dv":99,"./dv.js":99,"./el":100,"./el.js":100,"./en-au":101,"./en-au.js":101,"./en-ca":102,"./en-ca.js":102,"./en-gb":103,"./en-gb.js":103,"./en-ie":104,"./en-ie.js":104,"./en-il":105,"./en-il.js":105,"./en-in":106,"./en-in.js":106,"./en-nz":107,"./en-nz.js":107,"./en-sg":108,"./en-sg.js":108,"./eo":109,"./eo.js":109,"./es":110,"./es-do":111,"./es-do.js":111,"./es-us":112,"./es-us.js":112,"./es.js":110,"./et":113,"./et.js":113,"./eu":114,"./eu.js":114,"./fa":115,"./fa.js":115,"./fi":116,"./fi.js":116,"./fil":117,"./fil.js":117,"./fo":118,"./fo.js":118,"./fr":119,"./fr-ca":120,"./fr-ca.js":120,"./fr-ch":121,"./fr-ch.js":121,"./fr.js":119,"./fy":122,"./fy.js":122,"./ga":123,"./ga.js":123,"./gd":124,"./gd.js":124,"./gl":125,"./gl.js":125,"./gom-deva":126,"./gom-deva.js":126,"./gom-latn":127,"./gom-latn.js":127,"./gu":128,"./gu.js":128,"./he":129,"./he.js":129,"./hi":130,"./hi.js":130,"./hr":131,"./hr.js":131,"./hu":132,"./hu.js":132,"./hy-am":133,"./hy-am.js":133,"./id":134,"./id.js":134,"./is":135,"./is.js":135,"./it":136,"./it-ch":137,"./it-ch.js":137,"./it.js":136,"./ja":138,"./ja.js":138,"./jv":139,"./jv.js":139,"./ka":140,"./ka.js":140,"./kk":141,"./kk.js":141,"./km":142,"./km.js":142,"./kn":143,"./kn.js":143,"./ko":144,"./ko.js":144,"./ku":145,"./ku.js":145,"./ky":146,"./ky.js":146,"./lb":147,"./lb.js":147,"./lo":148,"./lo.js":148,"./lt":149,"./lt.js":149,"./lv":150,"./lv.js":150,"./me":151,"./me.js":151,"./mi":152,"./mi.js":152,"./mk":153,"./mk.js":153,"./ml":154,"./ml.js":154,"./mn":155,"./mn.js":155,"./mr":156,"./mr.js":156,"./ms":157,"./ms-my":158,"./ms-my.js":158,"./ms.js":157,"./mt":159,"./mt.js":159,"./my":160,"./my.js":160,"./nb":161,"./nb.js":161,"./ne":162,"./ne.js":162,"./nl":163,"./nl-be":164,"./nl-be.js":164,"./nl.js":163,"./nn":165,"./nn.js":165,"./oc-lnc":166,"./oc-lnc.js":166,"./pa-in":167,"./pa-in.js":167,"./pl":168,"./pl.js":168,"./pt":169,"./pt-br":170,"./pt-br.js":170,"./pt.js":169,"./ro":171,"./ro.js":171,"./ru":172,"./ru.js":172,"./sd":173,"./sd.js":173,"./se":174,"./se.js":174,"./si":175,"./si.js":175,"./sk":176,"./sk.js":176,"./sl":177,"./sl.js":177,"./sq":178,"./sq.js":178,"./sr":179,"./sr-cyrl":180,"./sr-cyrl.js":180,"./sr.js":179,"./ss":181,"./ss.js":181,"./sv":182,"./sv.js":182,"./sw":183,"./sw.js":183,"./ta":184,"./ta.js":184,"./te":185,"./te.js":185,"./tet":186,"./tet.js":186,"./tg":187,"./tg.js":187,"./th":188,"./th.js":188,"./tl-ph":189,"./tl-ph.js":189,"./tlh":190,"./tlh.js":190,"./tr":191,"./tr.js":191,"./tzl":192,"./tzl.js":192,"./tzm":193,"./tzm-latn":194,"./tzm-latn.js":194,"./tzm.js":193,"./ug-cn":195,"./ug-cn.js":195,"./uk":196,"./uk.js":196,"./ur":197,"./ur.js":197,"./uz":198,"./uz-latn":199,"./uz-latn.js":199,"./uz.js":198,"./vi":200,"./vi.js":200,"./x-pseudo":201,"./x-pseudo.js":201,"./yo":202,"./yo.js":202,"./zh-cn":203,"./zh-cn.js":203,"./zh-hk":204,"./zh-hk.js":204,"./zh-mo":205,"./zh-mo.js":205,"./zh-tw":206,"./zh-tw.js":206};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=296},function(e,t,n){var r=n(298),a=n(28);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(299),a=n(302)(r);e.exports=a},function(e,t,n){var r=n(300),a=n(40);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t,n){var r=n(301)();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(28);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){"use strict";
293
  /** @license React v16.13.1
294
  * react-dom.production.min.js
295
  *
@@ -305,4 +305,4 @@ e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeo
305
  *
306
  * This source code is licensed under the MIT license found in the
307
  * LICENSE file in the root directory of this source tree.
308
- */var r,a,o,i,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},a=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},i=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,m=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var _=m.now();t.unstable_now=function(){return m.now()-_}}var b=!1,y=null,v=-1,k=5,M=0;i=function(){return t.unstable_now()>=M},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var L=new MessageChannel,w=L.port2;L.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();M=e+k;try{y(!0,e)?w.postMessage(null):(b=!1,y=null)}catch(e){throw w.postMessage(null),e}}else b=!1},r=function(e){y=e,b||(b=!0,w.postMessage(null))},a=function(e,n){v=f((function(){e(t.unstable_now())}),n)},o=function(){h(v),v=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<S(a,t)))break e;e[r]=t,e[n]=a,n=r}}function Y(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],s=o+1,l=e[s];if(void 0!==i&&0>S(i,n))void 0!==l&&0>S(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==l&&0>S(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],D=[],C=1,R=null,O=3,P=!1,j=!1,H=!1;function A(e){for(var t=Y(D);null!==t;){if(null===t.callback)E(D);else{if(!(t.startTime<=e))break;E(D),t.sortIndex=t.expirationTime,T(x,t)}t=Y(D)}}function z(e){if(H=!1,A(e),!j)if(null!==Y(x))j=!0,r(F);else{var t=Y(D);null!==t&&a(z,t.startTime-e)}}function F(e,n){j=!1,H&&(H=!1,o()),P=!0;var r=O;try{for(A(n),R=Y(x);null!==R&&(!(R.expirationTime>n)||e&&!i());){var s=R.callback;if(null!==s){R.callback=null,O=R.priorityLevel;var l=s(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?R.callback=l:R===Y(x)&&E(x),A(n)}else E(x);R=Y(x)}if(null!==R)var u=!0;else{var c=Y(D);null!==c&&a(z,c.startTime-n),u=!1}return u}finally{R=null,O=r,P=!1}}function N(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){j||P||(j=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return Y(x)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,n,i){var s=t.unstable_now();if("object"==typeof i&&null!==i){var l=i.delay;l="number"==typeof l&&0<l?s+l:s,i="number"==typeof i.timeout?i.timeout:N(e)}else i=N(e),l=s;return e={id:C++,callback:n,priorityLevel:e,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>s?(e.sortIndex=l,T(D,e),null===Y(x)&&e===Y(D)&&(H?o():H=!0,a(z,l-s))):(e.sortIndex=i,T(x,e),j||P||(j=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();A(e);var n=Y(x);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},function(e,t,n){"use strict";var r=n(307);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(74);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(310);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(311);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(17),a=n(30),o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(207);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var a=t&&t.prototype instanceof c?t:c,o=Object.create(a.prototype),i=new M(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return w()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=y(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function c(){}function d(){}function p(){}var m={};m[a]=function(){return this};var f=Object.getPrototypeOf,h=f&&f(f(L([])));h&&h!==t&&n.call(h,a)&&(m=h);var g=p.prototype=c.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var r;this._invoke=function(a,o){function i(){return new t((function(r,i){!function r(a,o,i,s){var u=l(e[a],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(u.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:w}}function w(){return{value:void 0,done:!0}}return d.prototype=g.constructor=p,p.constructor=d,p[i]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},_(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new b(s(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(g),g[i]="Generator",g[a]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=L,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.r(t);var r=n(10),a=n.n(r),o=n(8),i=n.n(o),s=n(1),l=n.n(s),u=n(2),c=n.n(u),d=n(3),p=n.n(d),m=n(4),f=n.n(m),h=n(0),g=n.n(h),_=n(5),b=n.n(_);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var v=wp.element.Component,k=wp.hooks.applyFilters,M=function(e){p()(n,e);var t=y(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){if(void 0===this.props.children)return null;var e=!1;if(void 0!==this.props.children.props&&void 0!==this.props.children.props.name||(e=!0),e&&(void 0===this.props.children._owner||void 0===this.props.children._owner.memoizedProps||void 0===this.props.children._owner.memoizedProps.name))return this.props.children;var t=e?this.props.children._owner.memoizedProps.name:this.props.children.props.name;return k("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}]),n}(v);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=wp.i18n.__,T=wp.element.Component,Y=wp.blockEditor,E=Y.InspectorControls,S=Y.PanelColorSettings,x=wp.components,D=x.PanelBody,C=x.RangeControl,R=x.SelectControl,O=function(e){p()(n,e);var t=L(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:"left-aligned",label:w("Left Aligned","genesis-blocks")},{value:"right-aligned",label:w("Right Aligned","genesis-blocks")}],n=this.props,r=n.attributes,a=r.testimonialBackgroundColor,o=r.testimonialTextColor,i=r.testimonialFontSize,s=r.testimonialCiteAlign,l=n.setAttributes;return React.createElement(E,{key:"inspector"},React.createElement(D,null,React.createElement(M,{id:"gb_testimonial_testimonialFontSize"},React.createElement(C,{label:w("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({testimonialFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(R,{label:w("Cite Alignment","genesis-blocks"),description:w("Left or right align the cite name and title.","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({testimonialCiteAlign:t})}}))),React.createElement(M,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(S,{title:w("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({testimonialBackgroundColor:e})},label:w("Background Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_testimonial_testimonialTextColor"},React.createElement(S,{title:w("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({testimonialTextColor:e})},label:w("Text Color","genesis-blocks")}]})))}}]),n}(T);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(e){p()(n,e);var t=P(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialImgURL,n=e.testimonialBackgroundColor,r=e.testimonialTextColor,a=e.testimonialFontSize,o=e.testimonialCiteAlign;return React.createElement("div",{style:{backgroundColor:n||"#f2f2f2",color:r||"#32373c"},className:b()(this.props.className,o,{"gb-has-avatar":t},"gb-font-size-"+a,"gb-block-testimonial")},this.props.children)}}]),n}(wp.element.Component),H={};H.upload=React.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));var A=H;function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var B=wp.i18n.__,I=wp.element,W=I.Component,U=I.Fragment,V=wp.blockEditor,J=V.RichText,G=V.AlignmentToolbar,q=V.BlockControls,$=V.MediaUpload,K=wp.components,Q=K.Button,Z=K.Dashicon,X=["image"],ee=function(e){p()(n,e);var t=N(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.testimonialName,o=n.testimonialTitle,i=n.testimonialContent,s=n.testimonialAlignment,l=n.testimonialImgURL,u=n.testimonialImgID,c=n.testimonialImgAlt,d=n.testimonialTextColor,p=t.setAttributes,m=function(){p({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(q,{key:"controls"},React.createElement(G,{value:s,onChange:function(e){return p({testimonialAlignment:e})}})),React.createElement(O,a()({key:"gb-testimonial-inspector-"+this.props.clientId},F({setAttributes:p},this.props))),React.createElement(j,a()({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(J,{tagName:"div",multiline:"p",placeholder:B("Add testimonial text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-testimonial-text"),style:{textAlign:s},onChange:function(e){return p({testimonialContent:e})}}),React.createElement("div",{className:"gb-testimonial-info"},React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement($,{buttonProps:{className:"change-image"},onSelect:function(e){return p({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt})},allowed:X,type:"image",value:u,render:function(e){var t=e.open;return React.createElement(U,null,React.createElement(Q,{className:u?"gb-change-image":"gb-add-image",onClick:t},u?React.createElement("img",{className:"gb-testimonial-avatar",src:l,alt:c||null}):A.upload),u&&React.createElement(Q,{className:"gb-remove-image",onClick:m},React.createElement(Z,{icon:"dismiss"})))}}))),React.createElement(J,{tagName:"h2",placeholder:B("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-testimonial-name",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialName:t})}}),React.createElement(J,{tagName:"small",placeholder:B("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,className:"gb-testimonial-title",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialTitle:t})}})))]}}]),n}(W);function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ne=wp.element.Component,re=wp.blockEditor.RichText,ae=function(e){p()(n,e);var t=te(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialName,n=e.testimonialTitle,r=e.testimonialContent,a=e.testimonialAlignment,o=e.testimonialImgURL,i=e.testimonialImgAlt,s=e.testimonialTextColor;return React.createElement(j,this.props,React.createElement(re.Content,{tagName:"div",className:"gb-testimonial-text",style:{textAlign:a},value:r}),React.createElement("div",{className:"gb-testimonial-info"},o&&React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement("img",{className:"gb-testimonial-avatar",src:o,alt:i||null}))),t&&React.createElement(re.Content,{tagName:"h2",className:"gb-testimonial-name",style:{color:s||"#32373c"},value:t}),n&&React.createElement(re.Content,{tagName:"small",className:"gb-testimonial-title",style:{color:s||"#32373c"},value:n})))}}]),n}(ne),oe=(n(344),n(346),wp.i18n.__);function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-testimonial",{title:oe("Testimonial","genesis-blocks"),description:oe("Add a user testimonial with a name and title.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[oe("testimonial","genesis-blocks"),oe("quote","genesis-blocks"),oe("atomic","genesis-blocks")],attributes:{testimonialName:{type:"array",selector:".gb-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".gb-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".gb-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},gb_settings_data:{gb_testimonial_testimonialFontSize:{title:oe("Font Size","genesis-blocks")},gb_testimonial_testimonialCiteAlign:{title:oe("Cite Alignment","genesis-blocks")},gb_testimonial_testimonialBackgroundColor:{title:oe("Background Color","genesis-blocks")},gb_testimonial_testimonialTextColor:{title:oe("Text Color","genesis-blocks")}},edit:function(e){return React.createElement(ee,e)},save:function(e){return React.createElement(ae,e)}});var se=wp.i18n.__,le=wp.element.Component,ue=wp.blockEditor,ce=ue.InspectorControls,de=ue.PanelColorSettings,pe=wp.components,me=pe.PanelBody,fe=pe.RangeControl,he=pe.SelectControl,ge=pe.TextControl,_e=function(e){p()(n,e);var t=ie(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.profileFontSize,r=t.profileBackgroundColor,a=t.profileTextColor,o=t.profileLinkColor,i=t.twitter,s=t.facebook,l=t.instagram,u=t.pinterest,c=t.google,d=t.youtube,p=t.github,m=t.linkedin,f=t.wordpress,h=t.email,g=t.website,_=t.profileAvatarShape,b=this.props.setAttributes,y=[{value:"square",label:se("Square","genesis-blocks")},{value:"round",label:se("Round","genesis-blocks")}];return React.createElement(ce,{key:"inspector"},React.createElement(me,null,React.createElement(M,{id:"gb_author_profile_profileFontSize"},React.createElement(fe,{label:se("Font Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_author_profile_profileAvatarShape"},React.createElement(he,{label:se("Avatar Shape","genesis-blocks"),description:se("Choose between a round or square avatar shape.","genesis-blocks"),options:y,value:_,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),React.createElement(M,{id:"gb_author_profile_profileBackgroundColor"},React.createElement(de,{title:se("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return b({profileBackgroundColor:e})},label:se("Background Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_author_profile_profileTextColor"},React.createElement(de,{title:se("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return b({profileTextColor:e})},label:se("Text Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_author_profile_profileLinkColor"},React.createElement(de,{title:se("Social Link Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return b({profileLinkColor:e})},label:se("Social Link Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_author_profile_socialLinks"},React.createElement(me,{title:se("Social Links","genesis-blocks"),initialOpen:!1},React.createElement("p",null,se("Add links to your social media site and they will appear in the bottom of the profile box.","genesis-blocks")),React.createElement(ge,{label:se("Twitter URL","genesis-blocks"),type:"url",value:i,onChange:function(t){return e.props.setAttributes({twitter:t})}}),React.createElement(ge,{label:se("Facebook URL","genesis-blocks"),type:"url",value:s,onChange:function(t){return e.props.setAttributes({facebook:t})}}),React.createElement(ge,{label:se("Instagram URL","genesis-blocks"),type:"url",value:l,onChange:function(t){return e.props.setAttributes({instagram:t})}}),React.createElement(ge,{label:se("Pinterest URL","genesis-blocks"),type:"url",value:u,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),React.createElement(ge,{label:se("Google URL","genesis-blocks"),type:"url",value:c,onChange:function(t){return e.props.setAttributes({google:t})}}),React.createElement(ge,{label:se("YouTube URL","genesis-blocks"),type:"url",value:d,onChange:function(t){return e.props.setAttributes({youtube:t})}}),React.createElement(ge,{label:se("Github URL","genesis-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({github:t})}}),React.createElement(ge,{label:se("LinkedIn URL","genesis-blocks"),type:"url",value:m,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),React.createElement(ge,{label:se("WordPress Profile URL","genesis-blocks"),type:"url",value:f,onChange:function(t){return e.props.setAttributes({wordpress:t})}}),React.createElement(ge,{label:se("Email URL","genesis-blocks"),help:se('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"genesis-blocks"),type:"url",value:h,onChange:function(t){return e.props.setAttributes({email:t})}}),React.createElement(ge,{label:se("Website URL","genesis-blocks"),type:"url",value:g,onChange:function(t){return e.props.setAttributes({website:t})}}))))}}]),n}(le);function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ye=function(e){p()(n,e);var t=be(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,o=e.profileTextColor,i=e.profileAvatarShape;return React.createElement("div",{style:{backgroundColor:a,color:o},className:b()(this.props.className,t,i,{"gb-has-avatar":n},"gb-font-size-"+r,"gb-block-profile","gb-profile-columns")},this.props.children)}}]),n}(wp.element.Component);function ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ke=wp.i18n.__,Me=function(e){p()(n,e);var t=ve(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},ke("Website","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},ke("Twitter","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},ke("Facebook","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},ke("Instagram","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},ke("Pinterest","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},ke("Google","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},ke("YouTube","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},ke("LinkedIn","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},ke("Github","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},ke("WordPress","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},ke("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}]),n}(wp.element.Component);function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var we=function(e){p()(n,e);var t=Le(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}]),n}(wp.element.Component);function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Se=wp.i18n.__,xe=wp.element,De=xe.Component,Ce=xe.Fragment,Re=wp.blockEditor,Oe=Re.RichText,Pe=Re.AlignmentToolbar,je=Re.BlockControls,He=Re.MediaUpload,Ae=wp.components,ze=Ae.Button,Fe=Ae.Dashicon,Ne=["image"],Be=function(e){p()(n,e);var t=Ee(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.profileName,r=t.profileTitle,o=t.profileContent,i=t.profileAlignment,s=t.profileImgURL,l=t.profileImgID,u=t.profileImgAlt,c=t.profileTextColor,d=e.setAttributes;return[React.createElement(je,{key:"controls"},React.createElement(Pe,{value:i,onChange:function(e){return d({profileAlignment:e})}})),React.createElement(_e,a()({key:"gb-author-profile-inspector-"+this.props.clientId},Ye({setAttributes:d},this.props))),React.createElement(ye,a()({key:"gb-author-profile-"+this.props.clientId},this.props),React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement(He,{buttonProps:{className:"change-image"},onSelect:function(e){return d({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt})},allowed:Ne,type:"image",value:l,render:function(e){var t=e.open;return React.createElement(Ce,null,React.createElement(ze,{onClick:t},l?React.createElement("img",{className:b()("gb-profile-avatar","gb-change-image","wp-image-"+l),src:s,alt:u}):A.upload),l&&React.createElement(ze,{className:"gb-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(Fe,{icon:"dismiss"})))}}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},React.createElement(Oe,{tagName:"h2",placeholder:Se("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"gb-profile-name",style:{color:c},onChange:function(e){return d({profileName:e})}}),React.createElement(Oe,{tagName:"p",placeholder:Se("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-profile-title",style:{color:c},onChange:function(e){return d({profileTitle:e})}}),React.createElement(Oe,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Se("Add profile text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:function(e){return d({profileContent:e})}}),React.createElement(Me,this.props)))]}}]),n}(De);function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var We=wp.element.Component,Ue=wp.blockEditor.RichText,Ve=function(e){p()(n,e);var t=Ie(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileImgAlt,i=e.profileImgID,s=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:b()("gb-profile-avatar","wp-image-"+i),src:a,alt:o}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(Ue.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(Ue.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(Ue.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Me,this.props)))}}]),n}(We);n(347),n(348);function Je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ge=wp.element.Component,qe=wp.blockEditor.RichText,$e=function(e){p()(n,e);var t=Je(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("div",{className:"gb-profile-image-square"},React.createElement("img",{className:"gb-profile-avatar",src:a,alt:"avatar"}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(qe.Content,{tagName:"h2",className:"gb-profile-name",style:{color:o},value:t}),n&&React.createElement(qe.Content,{tagName:"p",className:"gb-profile-title",style:{color:o},value:n}),r&&React.createElement(qe.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Me,this.props)))}}]),n}(Ge),Ke=[{attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},website:{type:"url"}},save:function(e){return React.createElement($e,e)}}],Qe=wp.i18n.__;function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-profile-box",{title:Qe("Profile Box","genesis-blocks"),description:Qe("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[Qe("author","genesis-blocks"),Qe("profile","genesis-blocks"),Qe("atomic","genesis-blocks"),Qe("genesis","genesis-blocks")],attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},gb_settings_data:{gb_author_profile_profileFontSize:{title:Qe("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:Qe("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:Qe("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:Qe("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:Qe("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:Qe("Social Links","genesis-blocks")}},edit:function(e){return React.createElement(Be,e)},save:function(e){return React.createElement(Ve,e)},deprecated:Ke});var Xe=wp.i18n.__,et=wp.element.Component,tt=wp.blockEditor,nt=tt.PanelColorSettings,rt=tt.InspectorControls,at=wp.components,ot=at.PanelBody,it=at.RangeControl,st=at.SelectControl,lt=function(e){p()(n,e);var t=Ze(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:null,label:Xe("Always Show","genesis-blocks")},{value:"gb-dismissable",label:Xe("Dismissible","genesis-blocks")}],n=this.props.attributes,r=n.noticeBackgroundColor,a=n.noticeTextColor,o=n.noticeTitleColor,i=n.noticeFontSize,s=n.noticeDismiss,l=this.props.setAttributes;return React.createElement(rt,{key:"inspector"},React.createElement(ot,null,React.createElement(M,{id:"gb_notice_noticeFontSize"},React.createElement(it,{label:Xe("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_notice_noticeDismiss"},React.createElement(st,{label:Xe("Notice Display","genesis-blocks"),description:Xe("Do you want the message to always show or dismissible?","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({noticeDismiss:t})}}))),React.createElement(M,{id:"gb_notice_colorSettings"},React.createElement(nt,{title:Xe("Notice Color","genesis-blocks"),colorValue:r,initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return l({noticeBackgroundColor:e})},colors:[{color:"#00d1b2",name:"teal"},{color:"#3373dc",name:"royal blue"},{color:"#209cef",name:"sky blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"},{color:"#392F43",name:"black"}],label:Xe("Notice Color","genesis-blocks")}]}),React.createElement(nt,{title:Xe("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({noticeTitleColor:e})},label:Xe("Title Color","genesis-blocks")}]}),React.createElement(nt,{title:Xe("Text Color","genesis-blocks"),colorValue:a,initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({noticeTextColor:e})},label:Xe("Text Color","genesis-blocks")}]})))}}]),n}(et),ut=n(209),ct=n.n(ut);function dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var pt=function(e){p()(n,e);var t=dt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.noticeTitle,r=t.noticeAlignment,a=t.noticeBackgroundColor,o=t.noticeTextColor,i=t.noticeFontSize,s=t.noticeDismiss,l=(e=s+n,ct()(e).substr(0,6));return React.createElement("div",{style:{color:o,textAlign:r,backgroundColor:a},className:b()(this.props.className,s,"gb-font-size-"+i,"gb-block-notice"),"data-id":l},this.props.children)}}]),n}(wp.element.Component);function mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ft=function(e){p()(n,e);var t=mt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes.noticeTitleColor;return React.createElement("div",{className:"gb-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}]),n}(wp.element.Component),ht={};ht.upload=React.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),ht.dismiss=React.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},React.createElement("path",{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zM15 13l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));var gt=ht;n(349),n(350);function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var vt=wp.i18n.__,kt=wp.element.Component,Mt=wp.blocks.registerBlockType,Lt=wp.blockEditor,wt=Lt.RichText,Tt=Lt.AlignmentToolbar,Yt=Lt.BlockControls,Et=function(e){p()(n,e);var t=yt(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.noticeTitle,r=t.noticeContent,o=t.noticeAlignment,i=t.noticeBackgroundColor,s=t.noticeTitleColor,l=t.noticeDismiss,u=e.setAttributes;return[React.createElement(Yt,{key:"controls"},React.createElement(Tt,{value:o,onChange:function(e){return u({noticeAlignment:e})}})),React.createElement(lt,a()({key:"gb-notice-inspector-"+this.props.clientId},bt({setAttributes:u},this.props))),React.createElement(pt,a()({key:"gb-notice-noticebox-"+this.props.clientId},this.props),l&&"gb-dismissable"===l&&React.createElement(ft,this.props,gt.dismiss),React.createElement(wt,{tagName:"p",placeholder:vt("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:b()("gb-notice-title"),style:{color:s},onChange:function(e){return u({noticeTitle:e})}}),React.createElement(wt,{tagName:"div",multiline:"p",placeholder:vt("Add notice text…","genesis-blocks"),value:r,className:b()("gb-notice-text"),style:{borderColor:i},onChange:function(e){return u({noticeContent:e})}}))]}}]),n}(kt);function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Mt("genesis-blocks/gb-notice",{title:vt("Notice","genesis-blocks"),description:vt("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[vt("notice","genesis-blocks"),vt("message","genesis-blocks"),vt("atomic","genesis-blocks")],attributes:{noticeTitle:{type:"string",selector:".gb-notice-title"},noticeContent:{type:"array",selector:".gb-notice-text",source:"children"},noticeAlignment:{type:"string"},noticeBackgroundColor:{type:"string",default:"#00d1b2"},noticeTextColor:{type:"string",default:"#32373c"},noticeTitleColor:{type:"string",default:"#fff"},noticeFontSize:{type:"number",default:18},noticeDismiss:{type:"string",default:""}},gb_settings_data:{gb_notice_noticeFontSize:{title:vt("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:vt("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:vt("Notice Color","genesis-blocks")}},edit:Et,save:function(e){var t=e.attributes,n=t.noticeTitle,r=t.noticeContent,a=t.noticeBackgroundColor,o=t.noticeTitleColor,i=t.noticeDismiss;return React.createElement(pt,e,i&&"gb-dismissable"===i&&React.createElement(ft,e,gt.dismiss),n&&React.createElement("div",{className:"gb-notice-title",style:{color:o}},React.createElement(wt.Content,{tagName:"p",value:n})),r&&React.createElement(wt.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:a},value:r}))}});var xt=wp.i18n.__,Dt=wp.element.Component,Ct=wp.blockEditor.InspectorControls,Rt=wp.components,Ot=Rt.RangeControl,Pt=Rt.SelectControl,jt=Rt.PanelBody,Ht=function(e){p()(n,e);var t=St(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapFontSize,r=t.dropCapStyle,a=[{value:"gb-drop-cap-letter",label:xt("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:xt("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:xt("Border","genesis-blocks")}];return React.createElement(Ct,{key:"inspector"},React.createElement(jt,null,React.createElement(M,{id:"gb_dropcap_dropCapFontSize"},React.createElement(Ot,{label:xt("Drop Cap Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),React.createElement(M,{id:"gb_dropcap_dropCapStyle"},React.createElement(Pt,{label:xt("Drop Cap Style","genesis-blocks"),description:xt("Choose the style of the drop cap in your paragraph","genesis-blocks"),options:a,value:r,onChange:function(t){return e.props.setAttributes({dropCapStyle:t})}}))))}}]),n}(Dt);function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var zt=function(e){p()(n,e);var t=At(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.dropCapAlignment,n=e.dropCapTextColor,r=e.dropCapFontSize,a=e.dropCapStyle;return React.createElement("div",{style:{color:n,textAlign:t},className:b()(this.props.className,a,"gb-font-size-"+r,"gb-block-drop-cap")},this.props.children)}}]),n}(wp.element.Component);n(351),n(352);function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Nt=wp.i18n.__,Bt=wp.element.Component,It=wp.blocks.registerBlockType,Wt=wp.blockEditor,Ut=Wt.RichText,Vt=Wt.AlignmentToolbar,Jt=Wt.BlockControls,Gt=function(e){p()(n,e);var t=Ft(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,o=t.dropCapFontSize;return[React.createElement(Jt,{key:"controls"},React.createElement(Vt,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),React.createElement(Ht,a()({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(zt,a()({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(Ut,{tagName:"div",multiline:"p",placeholder:Nt("Add paragraph text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-drop-cap-text","gb-font-size-"+o),onChange:function(t){return e.props.setAttributes({dropCapContent:t})}}))]}}]),n}(Bt);It("genesis-blocks/gb-drop-cap",{title:Nt("Drop Cap","genesis-blocks"),description:Nt("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[Nt("drop cap","genesis-blocks"),Nt("quote","genesis-blocks"),Nt("genesis","genesis-blocks")],attributes:{dropCapContent:{type:"array",selector:".gb-drop-cap-text",source:"children"},dropCapAlignment:{type:"string"},dropCapBackgroundColor:{type:"string",default:"#f2f2f2"},dropCapTextColor:{type:"string",default:"#32373c"},dropCapFontSize:{type:"number",default:3},dropCapStyle:{type:"string",default:"drop-cap-letter"}},gb_settings_data:{gb_dropcap_dropCapFontSize:{title:Nt("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:Nt("Drop Cap Style","genesis-blocks")}},edit:Gt,save:function(e){var t=e.attributes.dropCapContent;return React.createElement(zt,e,t&&React.createElement(Ut.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});var qt=wp.i18n.__,$t=wp.element.Fragment,Kt=wp.components,Qt=Kt.SelectControl,Zt=Kt.ToggleControl,Xt=wp.blockEditor.PanelColorSettings;function en(e){var t=e.enableButtonBackgroundColor,n=e.buttonBackgroundColor,r=e.onChangeButtonColor,a=void 0===r?function(){}:r,o=e.enableButtonTextColor,i=e.buttonTextColor,s=e.onChangeButtonTextColor,l=void 0===s?function(){}:s,u=e.enableButtonSize,c=e.buttonSize,d=e.onChangeButtonSize,p=void 0===d?function(){}:d,m=e.enableButtonShape,f=e.buttonShape,h=e.onChangeButtonShape,g=void 0===h?function(){}:h,_=e.enableButtonTarget,b=e.buttonTarget,y=e.onChangeButtonTarget,v=void 0===y?function(){}:y,k=[{value:"gb-button-size-small",label:qt("Small","genesis-blocks")},{value:"gb-button-size-medium",label:qt("Medium","genesis-blocks")},{value:"gb-button-size-large",label:qt("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:qt("Extra Large","genesis-blocks")}],L=[{value:"gb-button-shape-square",label:qt("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:qt("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:qt("Circular","genesis-blocks")}];return React.createElement($t,null,React.createElement(M,{id:"gb_button_buttonOptions"},!1!==_&&React.createElement(Zt,{label:qt("Open link in new window","genesis-blocks"),checked:b,onChange:v}),!1!==u&&React.createElement(Qt,{selected:c,label:qt("Button Size","genesis-blocks"),value:c,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:p}),!1!==m&&React.createElement(Qt,{label:qt("Button Shape","genesis-blocks"),value:f,options:L.map((function(e){return{value:e.value,label:e.label}})),onChange:g}),!1!==t&&React.createElement(Xt,{title:qt("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:a,label:qt("Button Color","genesis-blocks")}]}),!1!==o&&React.createElement(Xt,{title:qt("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:l,label:qt("Button Text Color","genesis-blocks")}]})))}function tn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}wp.i18n.__;var nn=wp.element.Component,rn=wp.blockEditor.InspectorControls,an=wp.components.PanelBody,on=function(e){p()(n,e);var t=tn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonBackgroundColor,n=e.buttonTextColor,r=e.buttonSize,a=e.buttonShape,o=e.buttonTarget,i=this.props.setAttributes;return React.createElement(rn,{key:"inspector"},React.createElement(an,null,React.createElement(en,{buttonTarget:o,onChangeButtonTarget:function(e){return i({buttonTarget:!o})},buttonSize:r,onChangeButtonSize:function(e){return i({buttonSize:e})},buttonShape:a,onChangeButtonShape:function(e){return i({buttonShape:e})},buttonBackgroundColor:t,onChangeButtonColor:function(e){return i({buttonBackgroundColor:e})},buttonTextColor:n,onChangeButtonTextColor:function(e){return i({buttonTextColor:e})}})))}}]),n}(nn);function sn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ln=function(e){p()(n,e);var t=sn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:b()(this.props.className,"gb-block-button")},this.props.children)}}]),n}(wp.element.Component);n(353),n(354);function un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var cn=wp.i18n.__,dn=wp.element.Component,pn=wp.blocks.registerBlockType,mn=wp.blockEditor,fn=mn.RichText,hn=mn.AlignmentToolbar,gn=mn.BlockControls,_n=mn.URLInput,bn=wp.components,yn=bn.Button,vn=bn.Dashicon,kn=bn.Icon,Mn=function(e){p()(n,e);var t=un(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=e.isSelected,d=e.setAttributes;return[React.createElement(gn,{key:"controls"},React.createElement(hn,{value:o,onChange:function(e){d({buttonAlignment:e})}})),React.createElement(on,a()({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(ln,a()({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(fn,{tagName:"span",placeholder:cn("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:b()("gb-button",u,l),style:{color:s||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),c&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(vn,{icon:"admin-links"}),React.createElement(_n,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),React.createElement(yn,{label:cn("Apply","genesis-blocks"),type:"submit"},React.createElement(kn,{icon:"editor-break"})))]}}]),n}(dn);function Ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}pn("genesis-blocks/gb-button",{title:cn("Button","genesis-blocks"),description:cn("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[cn("button","genesis-blocks"),cn("link","genesis-blocks"),cn("genesis","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},gb_settings_data:{gb_button_buttonOptions:{title:cn("Button Options","genesis-blocks")}},edit:Mn,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget;return React.createElement(ln,e,n&&React.createElement("a",{href:r,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o||"#ffffff",backgroundColor:a||"#3373dc"}},React.createElement(fn.Content,{value:n})))}});var wn=wp.i18n.__,Tn=wp.element,Yn=Tn.Component,En=Tn.Fragment,Sn=wp.blockEditor,xn=Sn.InspectorControls,Dn=Sn.PanelColorSettings,Cn=wp.components,Rn=Cn.PanelBody,On=Cn.RangeControl,Pn=Cn.ToggleControl,jn=Cn.SelectControl,Hn=function(e){p()(n,e);var t=Ln(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.spacerHeight,a=n.spacerDivider,o=n.spacerDividerStyle,i=n.spacerDividerColor,s=n.spacerDividerHeight,l=t.setAttributes,u=[{value:"gb-divider-solid",label:wn("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:wn("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:wn("Dotted","genesis-blocks")}];return React.createElement(xn,{key:"inspector"},React.createElement(Rn,null,React.createElement(M,{id:"gb_spacer_spacerHeight"},React.createElement(On,{label:wn("Spacer Height","genesis-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),React.createElement(M,{id:"gb_spacer_spacerDivider"},React.createElement(Pn,{label:wn("Add Divider","genesis-blocks"),checked:a,onChange:function(){return e.props.setAttributes({spacerDivider:!a})}}))),a?React.createElement(En,null,React.createElement(Rn,null,React.createElement(M,{id:"gb_spacer_spacerDividerStyle"},React.createElement(jn,{label:wn("Divider Style","genesis-blocks"),value:o,options:u.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),React.createElement(M,{id:"gb_spacer_spacerDividerHeight"},React.createElement(On,{label:wn("Divider Height","genesis-blocks"),value:s||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),React.createElement(M,{id:"gb_spacer_dividerColor"},React.createElement(Dn,{title:wn("Divider Color","genesis-blocks"),initialOpen:!1,colorSettings:[{colors:[{color:"#ddd",name:"white"},{color:"#333",name:"black"},{color:"#3373dc",name:"royal blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"}],value:i,onChange:function(e){return l({spacerDividerColor:e})},label:wn("Divider Color","genesis-blocks")}]}))):null)}}]),n}(Yn);function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var zn,Fn=function(e){p()(n,e);var t=An(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.spacerDivider,n=e.spacerDividerStyle,r=e.spacerDividerColor,a=e.spacerDividerHeight;return React.createElement("div",{style:{color:r},className:b()(this.props.className,"gb-block-spacer",n,{"gb-spacer-divider":t},"gb-divider-size-"+a)},this.props.children)}}]),n}(wp.element.Component),Nn=n(9),Bn=n.n(Nn),In=(zn=function(e,t){return(zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}zn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Wn=function(){return(Wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Un={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Vn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return In(t,e),t.prototype.render=function(){return Nn.createElement("div",{className:this.props.className||"",style:Wn(Wn({position:"absolute",userSelect:"none"},Un[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(Nn.PureComponent),Jn=n(14),Gn=n.n(Jn),qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$n=function(){return($n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Kn={width:"auto",height:"auto"},Qn=Gn()((function(e,t,n){return Math.max(Math.min(e,n),t)})),Zn=Gn()((function(e,t){return Math.round(e/t)*t})),Xn=Gn()((function(e,t){return new RegExp(e,"i").test(t)})),er=Gn()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n}),0),a=Math.abs(t[r]-e);return 0===n||a<n?t[r]:e})),tr=Gn()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),nr=Gn()((function(e){return"auto"===(e=e.toString())||tr(e,"px")||tr(e,"%")||tr(e,"vh")||tr(e,"vw")||tr(e,"vmax")||tr(e,"vmin")?e:e+"px"})),rr=function(e,t,n,r){if(e&&"string"==typeof e){if(tr(e,"%"))return t*(Number(e.replace("%",""))/100);if(tr(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(tr(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},ar=Gn()((function(e,t,n,r,a,o,i){return r=rr(r,e.width,t,n),a=rr(a,e.height,t,n),o=rr(o,e.width,t,n),i=rr(i,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===a?void 0:Number(a),minWidth:void 0===o?void 0:Number(o),minHeight:void 0===i?void 0:Number(i)}})),or=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],ir=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return qn(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Kn},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){var e=this.parentNode;if(e)for(var t=0,n=[].slice.call(e.children);t<n.length;t++){var r=n[t];if(r.classList.contains("__resizable_base__"))return r}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=a}return{width:e,height:t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&tr(e.propsSize[t].toString(),"%")){if(tr(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return nr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?nr(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?nr(t.height):n("height")}},enumerable:!0,configurable:!0}),t.prototype.getParentSize=function(){if(!this.base||!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=!1,t=this.parentNode.style.flexWrap,n=this.base.style.minWidth;"wrap"!==t&&(e=!0,this.parentNode.style.flexWrap="wrap"),this.base.style.position="relative",this.base.style.minWidth="100%";var r={width:this.base.offsetWidth,height:this.base.offsetHeight};return this.base.style.position="absolute",e&&(this.parentNode.style.flexWrap=t),this.base.style.minWidth=n,r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0});var t=this.parentNode;if(t&&!this.base){var n=this.window.document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.transform="scale(0, 0)",n.style.left="0",n.style.flex="0",n.classList?n.classList.add("__resizable_base__"):n.className+="__resizable_base__",t.appendChild(n)}}},t.prototype.componentWillUnmount=function(){if(this.window){this.unbindEvents();var e=this.parentNode;if(!this.base||!e)return;if(!e||!this.base)return;e.removeChild(this.base)}},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),a=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}}else if("window"===this.props.bounds){if(this.window){r=this.window.innerWidth-this.resizableLeft,a=this.window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<a?t:a}}else if(this.props.bounds){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),a=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,a=this.state,o=a.direction,i=a.original,s=this.props,l=s.lockAspectRatio,u=s.lockAspectRatioExtraHeight,c=s.lockAspectRatioExtraWidth,d=i.width,p=i.height,m=u||0,f=c||0;return Xn("right",o)&&(d=i.width+(e-i.x)*r/n,l&&(p=(d-f)/this.ratio+m)),Xn("left",o)&&(d=i.width-(e-i.x)*r/n,l&&(p=(d-f)/this.ratio+m)),Xn("bottom",o)&&(p=i.height+(t-i.y)*r/n,l&&(d=(p-m)*this.ratio+f)),Xn("top",o)&&(p=i.height-(t-i.y)*r/n,l&&(d=(p-m)*this.ratio+f)),{newWidth:d,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var a=this.props,o=a.lockAspectRatio,i=a.lockAspectRatioExtraHeight,s=a.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,u=void 0===n.width||n.width<0?e:n.width,c=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,p=i||0,m=s||0;if(o){var f=(c-p)*this.ratio+m,h=(d-p)*this.ratio+m,g=(l-m)/this.ratio+p,_=(u-m)/this.ratio+p,b=Math.max(l,f),y=Math.min(u,h),v=Math.max(c,g),k=Math.min(d,_);e=Qn(e,b,y),t=Qn(t,v,k)}else e=Qn(e,l,u),t=Qn(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,o=r.top;this.resizableLeft=a,this.resizableTop=o}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,a=0;if(e.nativeEvent instanceof this.window.MouseEvent){if(r=e.nativeEvent.clientX,a=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof this.window.TouchEvent&&(r=e.nativeEvent.touches[0].clientX,a=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var i=this.parentNode;if(i){var s=this.window.getComputedStyle(i).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:$n($n({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){var t=this.props,n=t.maxWidth,r=t.maxHeight,a=t.minWidth,o=t.minHeight,i=e instanceof this.window.MouseEvent?e.clientX:e.touches[0].clientX,s=e instanceof this.window.MouseEvent?e.clientY:e.touches[0].clientY,l=this.state,u=l.direction,c=l.original,d=l.width,p=l.height,m=this.getParentSize(),f=ar(m,this.window.innerWidth,this.window.innerHeight,n,r,a,o);n=f.maxWidth,r=f.maxHeight,a=f.minWidth,o=f.minHeight;var h=this.calculateNewSizeFromDirection(i,s),g=h.newHeight,_=h.newWidth,b=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(_,g,{width:b.maxWidth,height:b.maxHeight},{width:a,height:o});if(_=y.newWidth,g=y.newHeight,this.props.grid){var v=Zn(_,this.props.grid[0]),k=Zn(g,this.props.grid[1]),M=this.props.snapGap||0;_=0===M||Math.abs(v-_)<=M?v:_,g=0===M||Math.abs(k-g)<=M?k:g}this.props.snap&&this.props.snap.x&&(_=er(_,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=er(g,this.props.snap.y,this.props.snapGap));var L={width:_-c.width,height:g-c.height};if(d&&"string"==typeof d)if(tr(d,"%"))_=_/m.width*100+"%";else if(tr(d,"vw")){_=_/this.window.innerWidth*100+"vw"}else if(tr(d,"vh")){_=_/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(tr(p,"%"))g=g/m.height*100+"%";else if(tr(p,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(tr(p,"vh")){g=g/this.window.innerHeight*100+"vh"}var w={width:this.createSizeForCssProperty(_,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?w.flexBasis=w.width:"column"===this.flexDir&&(w.flexBasis=w.height),this.setState(w),this.props.onResize&&this.props.onResize(e,u,this.resizable,L)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,a=t.original;if(n&&this.resizable){var o={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:$n($n({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,a=t.handleClasses,o=t.handleWrapperStyle,i=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?Nn.createElement(Vn,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:a&&a[t]},s&&s[t]?s[t]:null):null}));return Nn.createElement("span",{className:i,style:o},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==or.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=$n($n($n({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as;return Nn.createElement(r,$n({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&Nn.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(Nn.PureComponent);n(355),n(356);function sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var lr=wp.i18n.__,ur=wp.element.Component,cr=wp.blocks.registerBlockType,dr=function(e){p()(n,e);var t=sr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacerHeight,r=t.spacerDividerColor,o=e.className,i=e.setAttributes,s=e.toggleSelection;return[React.createElement(Hn,a()({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement(Fn,a()({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(ir,{className:b()(o,"gb-spacer-handle"),style:{color:r},size:{width:"100%",height:n},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"gb-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:function(){s(!1)},onResizeStop:function(e,t,r,a){i({spacerHeight:parseInt(n+a.height,10)}),s(!0)}}))]}}]),n}(ur);function pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}cr("genesis-blocks/gb-spacer",{title:lr("Spacer","genesis-blocks"),description:lr("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[lr("spacer","genesis-blocks"),lr("divider","genesis-blocks"),lr("atomic","genesis-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"gb-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},gb_settings_data:{gb_spacer_spacerHeight:{title:lr("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:lr("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:lr("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:lr("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:lr("Divider Color","genesis-blocks")}},edit:dr,save:function(e){var t=e.attributes.spacerHeight;return React.createElement(Fn,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var mr=wp.i18n.__,fr=wp.element.Component,hr=wp.blockEditor.InspectorControls,gr=wp.components,_r=gr.PanelBody,br=gr.RangeControl,yr=gr.ToggleControl,vr=function(e){p()(n,e);var t=pr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return React.createElement(hr,{key:"inspector"},React.createElement(_r,null,React.createElement(M,{id:"gb_accordion_accordionFontSize"},React.createElement(br,{label:mr("Title Font Size","genesis-blocks"),value:this.props.attributes.accordionFontSize,onChange:function(t){return e.props.setAttributes({accordionFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_accordion_accordionOpen"},React.createElement(yr,{label:mr("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}]),n}(fr);function kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mr=function(e){p()(n,e);var t=kr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.accordionAlignment?"gb-align-"+this.props.attributes.accordionAlignment:void 0,"gb-block-accordion",this.props.attributes.accordionFontSize?"gb-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}]),n}(wp.element.Component);function Lr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var wr=wp.i18n.__,Tr=wp.element.Component,Yr=wp.blockEditor,Er=Yr.RichText,Sr=Yr.AlignmentToolbar,xr=Yr.BlockControls,Dr=Yr.InnerBlocks,Cr=function(e){p()(n,e);var t=Lr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return[React.createElement(xr,{key:"controls"},React.createElement(Sr,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),React.createElement(vr,a()({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(Mr,a()({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(Er,{tagName:"p",placeholder:wr("Accordion Title","genesis-blocks"),value:this.props.attributes.accordionTitle,className:"gb-accordion-title",onChange:function(t){return e.props.setAttributes({accordionTitle:t})}}),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Dr,null)))]}}]),n}(Tr);function Rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Or=wp.element.Component,Pr=wp.blockEditor,jr=Pr.RichText,Hr=Pr.InnerBlocks,Ar=function(e){p()(n,e);var t=Rr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement(Mr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(jr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Hr.Content,null))))}}]),n}(Or);function zr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Fr=function(e){p()(n,e);var t=zr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.accordionAlignment,n=e.accordionFontSize;return React.createElement("div",{style:{},className:b()(this.props.className,t,"gb-block-accordion","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Br=wp.element.Component,Ir=wp.blockEditor,Wr=Ir.RichText,Ur=Ir.InnerBlocks,Vr=function(e){p()(n,e);var t=Nr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement(Fr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Wr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Ur.Content,null))))}}]),n}(Br),Jr=[{attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:function(e){return React.createElement(Vr,e)}}],Gr=(n(357),n(358),wp.i18n.__),qr=(wp.element.Component,{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}});function $r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-accordion",{title:Gr("Accordion","genesis-blocks"),description:Gr("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[Gr("accordion","genesis-blocks"),Gr("list","genesis-blocks"),Gr("genesis","genesis-blocks")],attributes:qr,gb_settings_data:{gb_accordion_accordionFontSize:{title:Gr("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:Gr("Open by default","genesis-blocks")}},edit:function(e){return React.createElement(Cr,e)},save:function(e){return React.createElement(Ar,e)},deprecated:Jr});var Kr=wp.i18n.__,Qr=wp.element.Component,Zr=wp.blockEditor,Xr=Zr.InspectorControls,ea=Zr.PanelColorSettings,ta=Zr.MediaUpload,na=wp.components,ra=na.Button,aa=na.Icon,oa=na.PanelBody,ia=na.RangeControl,sa=na.SelectControl,la=na.ToggleControl,ua=function(e){p()(n,e);var t=$r(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.buttonBackgroundColor,r=t.buttonTextColor,a=t.buttonSize,o=t.buttonShape,i=t.buttonTarget,s=t.titleFontSize,l=t.ctaTextFontSize,u=t.ctaBackgroundColor,c=t.ctaTextColor,d=t.dimRatio,p=t.imgURL,m=t.imgID,f=this.props.setAttributes,h=[{value:"gb-button-size-small",label:Kr("Small")},{value:"gb-button-size-medium",label:Kr("Medium")},{value:"gb-button-size-large",label:Kr("Large")},{value:"gb-button-size-extralarge",label:Kr("Extra Large")}],g=[{value:"gb-button-shape-square",label:Kr("Square")},{value:"gb-button-shape-rounded",label:Kr("Rounded Square")},{value:"gb-button-shape-circular",label:Kr("Circular")}],_=function(){f({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(Xr,{key:"inspector"},React.createElement(M,{id:"gb_cta_textOptions"},React.createElement(oa,{title:Kr("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(ia,{label:Kr("Title Font Size","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),React.createElement(ia,{label:Kr("Text Font Size","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),React.createElement(ea,{title:Kr("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return f({ctaTextColor:e})},label:Kr("Text Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_cta_backgroundOptions"},React.createElement(oa,{title:Kr("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,Kr("Select a background image:","genesis-blocks")),React.createElement(ta,{onSelect:function(e){f({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:m,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(ra,{className:"gb-cta-inspector-media",label:Kr("Edit image","genesis-blocks"),onClick:t},React.createElement(aa,{icon:"format-image"}),Kr("Select Image","genesis-blocks")),p&&!!p.length&&React.createElement(ra,{className:"gb-cta-inspector-media",label:Kr("Remove Image","genesis-blocks"),onClick:_},React.createElement(aa,{icon:"dismiss"}),Kr("Remove","genesis-blocks")))}}),p&&!!p.length&&React.createElement(ia,{label:Kr("Image Opacity","genesis-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),React.createElement(ea,{title:Kr("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return f({ctaBackgroundColor:e})},label:Kr("Overlay Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_cta_buttonOptions"},React.createElement(oa,{title:Kr("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(la,{label:Kr("Open link in new window","genesis-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),React.createElement(sa,{label:Kr("Button Size","genesis-blocks"),value:a,options:h.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonSize:t})}}),React.createElement(sa,{label:Kr("Button Shape","genesis-blocks"),value:o,options:g.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonShape:t})}}),React.createElement(ea,{title:Kr("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return f({buttonBackgroundColor:e})},label:Kr("Button Color","genesis-blocks")}]}),React.createElement(ea,{title:Kr("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return f({buttonTextColor:e})},label:Kr("Button Text Color","genesis-blocks")}]}))))}}]),n}(Qr);function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var da=function(e){p()(n,e);var t=ca(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ma=function(e){p()(n,e);var t=pa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ha=function(e){p()(n,e);var t=fa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=(e.ctaWidth,e.ctaBackgroundColor),a=(e.ctaTextColor,b()([this.props.className,"gb-block-cta"],i()({},"gb-font-size-"+n,n))),o={backgroundColor:r||void 0,textAlign:t||void 0};return React.createElement("div",{style:o,className:a||void 0},this.props.children)}}]),n}(wp.element.Component);function ga(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var _a=function(e){p()(n,e);var t=ga(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=e.ctaWidth,a=e.ctaBackgroundColor;e.ctaTextColor;return React.createElement("div",{style:{backgroundColor:a,textAlign:t},className:b()(this.props.className,"align".concat(r),"gb-block-cta","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ya=wp.blockEditor.RichText,va=[{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.titleFontSize,m=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(ma,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+p),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(ha,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+p),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string",default:"#f2f2f2"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(_a,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+p),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.Content,{value:n}))))},migrate:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function ka(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(359),n(360);function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ta=wp.i18n.__,Ya=wp.element.Component,Ea=wp.blocks.registerBlockType,Sa=wp.blockEditor,xa=Sa.AlignmentToolbar,Da=Sa.URLInput,Ca=Sa.BlockControls,Ra=Sa.BlockAlignmentToolbar,Oa=Sa.RichText,Pa=wp.components,ja=Pa.Button,Ha=Pa.Dashicon,Aa=Pa.Icon,za=function(e){p()(n,e);var t=wa(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=t.ctaTitle,d=t.ctaText,p=t.titleFontSize,m=t.ctaTextFontSize,f=t.ctaWidth,h=t.ctaTextColor,g=t.imgURL,_=t.imgAlt,y=t.dimRatio,v=e.isSelected,k=e.setAttributes;return[React.createElement(Ca,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(Ra,{value:f,onChange:function(e){return k({ctaWidth:e})},controls:["center","wide","full"]}),React.createElement(xa,{value:o,onChange:function(e){k({buttonAlignment:e})}})),React.createElement(ua,a()({key:"gb-cta-inspector-"+this.props.clientId},La({setAttributes:k},this.props))),React.createElement(da,a()({key:"gb-cta-"+this.props.clientId},this.props),g&&!!g.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Fa(y),{"has-background-dim":0!==y}),src:g,alt:_})),React.createElement("div",{className:"gb-cta-content"},React.createElement(Oa,{tagName:"h2",placeholder:Ta("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:c,className:b()("gb-cta-title","gb-font-size-"+p),style:{color:h},onChange:function(e){return k({ctaTitle:e})}}),React.createElement(Oa,{tagName:"div",multiline:"p",placeholder:Ta("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:d,className:b()("gb-cta-text","gb-font-size-"+m),style:{color:h},onChange:function(e){return k({ctaText:e})}})),React.createElement("div",{className:"gb-cta-button"},React.createElement(Oa,{tagName:"span",placeholder:Ta("Button text…","genesis-blocks"),value:n,allowedFormats:[],className:b()("gb-button",u,l),style:{color:s,backgroundColor:i},onChange:function(e){return k({buttonText:e})}}),v&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(Ha,{icon:"admin-links"}),React.createElement(Da,{className:"button-url",value:r,onChange:function(e){return k({buttonUrl:e})}}),React.createElement(ja,{label:Ta("Apply","genesis-blocks"),type:"submit"},React.createElement(Aa,{icon:"editor-break"})))))]}}]),n}(Ya);function Fa(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Ea("genesis-blocks/gb-cta",{title:Ta("Call To Action","genesis-blocks"),description:Ta("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[Ta("call to action","genesis-blocks"),Ta("cta","genesis-blocks"),Ta("atomic","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},gb_settings_data:{gb_cta_textOptions:{title:Ta("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:Ta("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:Ta("Button Options","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:za,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.titleFontSize,m=t.ctaTextColor,f=t.imgURL,h=t.imgAlt,g=t.dimRatio;return React.createElement(da,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Fa(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(Oa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+p),style:{color:m},value:u}),c&&React.createElement(Oa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:"noopener noreferrer",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Oa.Content,{value:n}))))},deprecated:va});var Ba=wp.i18n.__,Ia=wp.element.Component,Wa=wp.blockEditor.InspectorControls,Ua=wp.components,Va=Ua.PanelBody,Ja=Ua.SelectControl,Ga=Ua.ToggleControl,qa=function(e){p()(n,e);var t=Na(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:"gb-share-icon-text",label:Ba("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:Ba("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:Ba("Text Only","genesis-blocks")}],n=[{value:"gb-share-shape-square",label:Ba("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:Ba("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:Ba("Circular","genesis-blocks")}],r=[{value:"gb-share-size-small",label:Ba("Small","genesis-blocks")},{value:"gb-share-size-medium",label:Ba("Medium","genesis-blocks")},{value:"gb-share-size-large",label:Ba("Large","genesis-blocks")}],a=[{value:"gb-share-color-standard",label:Ba("Standard","genesis-blocks")},{value:"gb-share-color-social",label:Ba("Social Colors","genesis-blocks")}];return React.createElement(Wa,{key:"inspector"},React.createElement(M,{id:"gb_sharing_links"},React.createElement(Va,null,React.createElement("p",null,Ba("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(Ga,{label:Ba("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),React.createElement(Ga,{label:Ba("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),React.createElement(Ga,{label:Ba("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),React.createElement(Ga,{label:Ba("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),React.createElement(Ga,{label:Ba("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),React.createElement(Ga,{label:Ba("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),React.createElement(Va,{title:Ba("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(M,{id:"gb_sharing_shareButtonStyle"},React.createElement(Ja,{label:Ba("Button Style","genesis-blocks"),value:this.props.attributes.shareButtonStyle,options:t.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonStyle:t})}})),React.createElement(M,{id:"gb_sharing_shareButtonShape"},React.createElement(Ja,{label:Ba("Button Shape","genesis-blocks"),value:this.props.attributes.shareButtonShape,options:n.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonShape:t})}})),React.createElement(M,{id:"gb_sharing_shareButtonSize"},React.createElement(Ja,{label:Ba("Button Size","genesis-blocks"),value:this.props.attributes.shareButtonSize,options:r.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonSize:t})}})),React.createElement(M,{id:"gb_sharing_shareButtonColor"},React.createElement(Ja,{label:Ba("Button Color","genesis-blocks"),value:this.props.attributes.shareButtonColor,options:a.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonColor:t})}}))))}}]),n}(Ia);function $a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ka=function(e){p()(n,e);var t=$a(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"gb-align-"+this.props.attributes.shareAlignment:void 0,"gb-block-sharing")},this.props.children)}}]),n}(wp.element.Component);function Qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Za=wp.i18n.__,Xa=wp.element.Component,eo=wp.blockEditor,to=eo.AlignmentToolbar,no=eo.BlockControls,ro=function(e){p()(n,e);var t=Qa(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return[React.createElement(no,{key:"controls"},React.createElement(to,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),React.createElement(qa,a()({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(Ka,a()({key:"gb-share-links-"+this.props.clientId},this.props),React.createElement("ul",{className:"gb-share-list"},this.props.attributes.twitter&&React.createElement("li",null,React.createElement("a",{className:"gb-share-twitter"},React.createElement("i",{className:"fab fa-twitter"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("i",{className:"fab fa-facebook-f"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("i",{className:"fab fa-pinterest-p"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("i",{className:"fab fa-linkedin"}),React.createElement("span",{className:"gb-social-text"},Za("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("i",{className:"fab fa-reddit-alien"}),React.createElement("span",{className:"gb-social-text"},Za("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("i",{className:"fas fa-envelope"}),React.createElement("span",{className:"gb-social-text"},Za("Share via Email","genesis-blocks"))))))]}}]),n}(Xa),ao=(n(361),n(362),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-sharing",{title:ao("Sharing","genesis-blocks"),description:ao("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[ao("sharing","genesis-blocks"),ao("social","genesis-blocks"),ao("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:ao("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:ao("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:ao("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:ao("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:ao("Button Color","genesis-blocks")}},edit:function(e){return React.createElement(ro,e)},save:function(){return null}});var oo=n(48),io=n.n(oo),so=n(49),lo=n.n(so),uo=n(6),co=n.n(uo),po=n(50),mo=n.n(po),fo=n(11),ho=n.n(fo);function go(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var _o=function(e,t){var n;void 0===t&&(t=go);var r,a=[],o=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return o&&n===this&&t(i,a)||(r=e.apply(this,i),o=!0,n=this,a=i),r}},bo=n(210),yo=n.n(bo);var vo=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);a.insertRule(e,o?0:a.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var ko=function(e){function t(e,t,r){var a=t.trim().split(f);t=a;var o=a.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<i;++u)t[l++]=n(e[u]+" ",a[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var i=e+";",s=2*t+3*n+4*o;if(944===s){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===x||2===x&&a(l,1)?"-webkit-"+l+l:l}if(0===x||2===x&&!a(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(T,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(l=i.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=i.replace(y,"tb");break;case 232:l=i.replace(y,"tb-rl");break;case 220:l=i.replace(y,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(l=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(M,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(M,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===w.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+o&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+i}return i}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(L,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,a,o,i,s,u,c){for(var d,p=0,m=t;p<R;++p)switch(d=C[p].call(l,e,m,n,r,a,o,i,s,u,c)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?x=1:(x=2,O=e):x=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<R){var l=i(-1,n,s,s,E,Y,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,p){for(var m,f,h,y,k,M=0,L=0,w=0,T=0,C=0,O=0,j=h=m=0,H=0,A=0,z=0,F=0,N=l.length,B=N-1,I="",W="",U="",V="";H<N;){if(f=l.charCodeAt(H),H===B&&0!==L+T+w+M&&(0!==L&&(f=47===L?10:47),T=w=M=0,N++,B++),0===L+T+w+M){if(H===B&&(0<A&&(I=I.replace(c,"")),0<I.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:I+=l.charAt(H)}f=59}switch(f){case 123:for(m=(I=I.trim()).charCodeAt(0),h=1,F=++H;H<N;){switch(f=l.charCodeAt(H)){case 123:h++;break;case 125:h--;break;case 47:switch(f=l.charCodeAt(H+1)){case 42:case 47:e:{for(j=H+1;j<B;++j)switch(l.charCodeAt(j)){case 47:if(42===f&&42===l.charCodeAt(j-1)&&H+2!==j){H=j+1;break e}break;case 10:if(47===f){H=j+1;break e}}H=j}}break;case 91:f++;case 40:f++;case 34:case 39:for(;H++<B&&l.charCodeAt(H)!==f;);}if(0===h)break;H++}switch(h=l.substring(F,H),0===m&&(m=(I=I.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<A&&(I=I.replace(c,"")),f=I.charCodeAt(1)){case 100:case 109:case 115:case 45:A=s;break;default:A=D}if(F=(h=e(s,A,h,f,p+1)).length,0<R&&(k=i(3,h,A=t(D,I,z),s,E,Y,F,f,p,d),I=A.join(""),void 0!==k&&0===(F=(h=k.trim()).length)&&(f=0,h="")),0<F)switch(f){case 115:I=I.replace(v,o);case 100:case 109:case 45:h=I+"{"+h+"}";break;case 107:h=(I=I.replace(g,"$1 $2"))+"{"+h+"}",h=1===x||2===x&&a("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=I+h,112===d&&(W+=h,h="")}else h="";break;default:h=e(s,t(s,I,z),h,d,p+1)}U+=h,h=z=A=j=m=0,I="",f=l.charCodeAt(++H);break;case 125:case 59:if(1<(F=(I=(0<A?I.replace(c,""):I).trim()).length))switch(0===j&&(m=I.charCodeAt(0),45===m||96<m&&123>m)&&(F=(I=I.replace(" ",":")).length),0<R&&void 0!==(k=i(1,I,s,n,E,Y,W.length,d,p,d))&&0===(F=(I=k.trim()).length)&&(I="\0\0"),m=I.charCodeAt(0),f=I.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){V+=I+l.charAt(H);break}default:58!==I.charCodeAt(F-1)&&(W+=r(I,m,f,I.charCodeAt(2)))}z=A=j=m=0,I="",f=l.charCodeAt(++H)}}switch(f){case 13:case 10:47===L?L=0:0===1+m&&107!==d&&0<I.length&&(A=1,I+="\0"),0<R*P&&i(0,I,s,n,E,Y,W.length,d,p,d),Y=1,E++;break;case 59:case 125:if(0===L+T+w+M){Y++;break}default:switch(Y++,y=l.charAt(H),f){case 9:case 32:if(0===T+M+L)switch(C){case 44:case 58:case 9:case 32:y="";break;default:32!==f&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===T+L+M&&(A=z=1,y="\f"+y);break;case 108:if(0===T+L+M+S&&0<j)switch(H-j){case 2:112===C&&58===l.charCodeAt(H-3)&&(S=C);case 8:111===O&&(S=O)}break;case 58:0===T+L+M&&(j=H);break;case 44:0===L+w+T+M&&(A=1,y+="\r");break;case 34:case 39:0===L&&(T=T===f?0:0===T?f:T);break;case 91:0===T+L+w&&M++;break;case 93:0===T+L+w&&M--;break;case 41:0===T+L+M&&w--;break;case 40:if(0===T+L+M){if(0===m)switch(2*C+3*O){case 533:break;default:m=1}w++}break;case 64:0===L+w+T+M+j+h&&(h=1);break;case 42:case 47:if(!(0<T+M+w))switch(L){case 0:switch(2*f+3*l.charCodeAt(H+1)){case 235:L=47;break;case 220:F=H,L=42}break;case 42:47===f&&42===C&&F+2!==H&&(33===l.charCodeAt(F+2)&&(W+=l.substring(F,H+1)),y="",L=0)}}0===L&&(I+=y)}O=C,C=f,H++}if(0<(F=W.length)){if(A=s,0<R&&(void 0!==(k=i(2,W,A,n,E,Y,F,d,p,d))&&0===(W=k).length))return V+W+U;if(W=A.join(",")+"{"+W+"}",0!=x*S){switch(2!==x||a(W,2)||(S=0),S){case 111:W=W.replace(b,":-moz-$1")+W;break;case 112:W=W.replace(_,"::-webkit-input-$1")+W.replace(_,"::-moz-$1")+W.replace(_,":-ms-input-$1")+W}S=0}}return V+W+U}(D,s,n,0,0);return 0<R&&(void 0!==(l=i(-2,d,s,s,E,Y,d.length,0,0,0))&&(d=l)),"",S=0,Y=E=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,m=/([,: ])(transform)/g,f=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,M=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,w=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,Y=1,E=1,S=0,x=1,D=[],C=[],R=0,O=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:R=C.length=0;break;default:if("function"==typeof t)C[R++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else P=0|!!t}return e},l.set=s,void 0!==e&&s(e),l};function Mo(e){e&&Lo.current.insert(e+"}")}var Lo={current:null},wo=function(e,t,n,r,a,o,i,s,l,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Lo.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return Lo.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Mo)}},To=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new ko(t);var a,o={};a=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),r.use(e.stylisPlugins)(wo),i=function(e,t,n,a){var o=t.name;Lo.current=n,r(e,t.styles),a&&(l.inserted[o]=!0)};var l={key:n,sheet:new vo({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:i};return l};function Yo(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Eo=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var a=t;do{e.insert("."+r,a,e.sheet,!0);a=a.next}while(void 0!==a)}};var So=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},xo={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Do=/[A-Z]|^ms/g,Co=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ro=function(e){return 45===e.charCodeAt(1)},Oo=function(e){return null!=e&&"boolean"!=typeof e},Po=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Ro(e)?e:e.replace(Do,"-$&").toLowerCase()})),jo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Co,(function(e,t,n){return Ao={name:t,styles:n,next:Ao},t}))}return 1===xo[e]||Ro(e)||"number"!=typeof t||0===t?t:t+"px"};function Ho(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ao={name:n.name,styles:n.styles,next:Ao},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)Ao={name:a.name,styles:a.styles,next:Ao},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Ho(e,t,n[a],!1);else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":Oo(i)&&(r+=Po(o)+":"+jo(o,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Ho(e,t,i,!1);switch(o){case"animation":case"animationName":r+=Po(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Oo(i[l])&&(r+=Po(o)+":"+jo(o,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ao,i=n(e);return Ao=o,Ho(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Ao,zo=/label:\s*([^\s;\n{]+)\s*;/g;var Fo=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";Ao=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=Ho(n,t,o,!1)):a+=o[0];for(var i=1;i<e.length;i++)a+=Ho(n,t,e[i],46===a.charCodeAt(a.length-1)),r&&(a+=o[i]);zo.lastIndex=0;for(var s,l="";null!==(s=zo.exec(a));)l+="-"+s[1];return{name:So(a)+l,styles:a,next:Ao}};var No=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fo(t)},Bo=Object(Nn.createContext)("undefined"!=typeof HTMLElement?To():null),Io=Object(Nn.createContext)({}),Wo=Bo.Provider,Uo=function(e){return Object(Nn.forwardRef)((function(t,n){return Object(Nn.createElement)(Bo.Consumer,null,(function(r){return e(t,r,n)}))}))},Vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jo=Object.prototype.hasOwnProperty,Go=function(e,t,n,r){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var o=t[Vo],i=[a],s="";"string"==typeof t.className?s=Yo(e.registered,i,t.className):null!=t.className&&(s=t.className+" ");var l=Fo(i);Eo(e,l,"string"==typeof o);s+=e.key+"-"+l.name;var u={};for(var c in t)Jo.call(t,c)&&"css"!==c&&c!==Vo&&(u[c]=t[c]);return u.ref=r,u.className=s,Object(Nn.createElement)(o,u)},qo=Uo((function(e,t,n){return"function"==typeof e.css?Object(Nn.createElement)(Io.Consumer,null,(function(r){return Go(t,e,r,n)})):Go(t,e,null,n)}));var $o=function(e,t){var n=arguments;if(null==t||!Jo.call(t,"css"))return Nn.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=qo;var o={};for(var i in t)Jo.call(t,i)&&(o[i]=t[i]);o[Vo]=e,a[1]=o;for(var s=2;s<r;s++)a[s]=n[s];return Nn.createElement.apply(null,a)},Ko=(Nn.Component,function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a});function Qo(e,t,n){var r=[],a=Yo(e,r,n);return r.length<2?n:a+t(r)}var Zo=Uo((function(e,t){return Object(Nn.createElement)(Io.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=Fo(n,t.registered);return Eo(t,a,!1),t.key+"-"+a.name},a={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return Qo(t.registered,r,Ko(n))},theme:n},o=e.children(a);return!0,o}))})),Xo=n(21),ei=n(22),ti=n.n(ei),ni=function(){};function ri(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ai(e,t,n){var r=[n];if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push(""+ri(e,a));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var oi=function(e){return Array.isArray(e)?e.filter(Boolean):"object"==typeof e&&null!==e?[e]:[]};function ii(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function si(e){return ii(e)?window.pageYOffset:e.scrollTop}function li(e,t){ii(e)?window.scrollTo(0,t):e.scrollTop=t}function ui(e,t,n,r){void 0===n&&(n=200),void 0===r&&(r=ni);var a=si(e),o=t-a,i=0;!function t(){var s,l=o*((s=(s=i+=10)/n-1)*s*s+1)+a;li(e,l),i<n?window.requestAnimationFrame(t):r(e)}()}function ci(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var di=n(47),pi=n.n(di);function mi(){return(mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function fi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function hi(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,a=document.documentElement;if("fixed"===t.position)return a;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return a}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,m=d.height,f=d.top,h=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,_=si(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),v=h-y,k=g-f,M=v+_,L=c-_-f,w=p-g+_+b,T=_+f-y;switch(a){case"auto":case"bottom":if(k>=m)return{placement:"bottom",maxHeight:t};if(L>=m&&!i)return o&&ui(l,w,160),{placement:"bottom",maxHeight:t};if(!i&&L>=r||i&&k>=r)return o&&ui(l,w,160),{placement:"bottom",maxHeight:i?k-b:L-b};if("auto"===a||i){var Y=t,E=i?v:M;return E>=r&&(Y=Math.min(E-b-s.controlHeight,t)),{placement:"top",maxHeight:Y}}if("bottom"===a)return li(l,w),{placement:"bottom",maxHeight:t};break;case"top":if(v>=m)return{placement:"top",maxHeight:t};if(M>=m&&!i)return o&&ui(l,T,160),{placement:"top",maxHeight:t};if(!i&&M>=r||i&&v>=r){var S=t;return(!i&&M>=r||i&&v>=r)&&(S=i?v-y:M-y),o&&ui(l,T,160),{placement:"top",maxHeight:S}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+a+'".')}return u}var gi=function(e){return"auto"===e?"bottom":e},_i=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,r=n.minMenuHeight,a=n.maxMenuHeight,o=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme,u=t.context.getPortalPlacement;if(e){var c="fixed"===i,d=hi({maxHeight:a,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!c,isFixedPosition:c,theme:l});u&&u(d),t.setState(d)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||gi(e);return mi({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return fi(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(Nn.Component);_i.contextTypes={getPortalPlacement:ti.a.func};var bi=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},yi=bi,vi=bi,ki=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",mi({css:a("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};ki.defaultProps={children:"No options"};var Mi=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",mi({css:a("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};Mi.defaultProps={children:"Loading..."};var Li=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==gi(t.props.menuPlacement)&&t.setState({placement:n})},t}fi(t,e);var n=t.prototype;return n.getChildContext=function(){return{getPortalPlacement:this.getPortalPlacement}},n.render=function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,a=e.menuPlacement,o=e.menuPosition,i=e.getStyles,s="fixed"===o;if(!t&&!s||!r)return null;var l=this.state.placement||gi(a),u=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),c=s?0:window.pageYOffset,d=u[l]+c,p=$o("div",{css:i("menuPortal",{offset:d,position:o,rect:u})},n);return t?Object(Xo.createPortal)(p,t):p},t}(Nn.Component);Li.childContextTypes={getPortalPlacement:ti.a.func};var wi=Array.isArray,Ti=Object.keys,Yi=Object.prototype.hasOwnProperty;function Ei(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,a,o,i=wi(t),s=wi(n);if(i&&s){if((a=t.length)!=n.length)return!1;for(r=a;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=s)return!1;var l=t instanceof Date,u=n instanceof Date;if(l!=u)return!1;if(l&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var p=Ti(t);if((a=p.length)!==Ti(n).length)return!1;for(r=a;0!=r--;)if(!Yi.call(n,p[r]))return!1;for(r=a;0!=r--;)if(!("_owner"===(o=p[r])&&t.$$typeof||e(t[o],n[o])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function Si(){return(Si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xi(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);return xi=function(){return e},e}function Di(){return(Di=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ci={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Ri=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["size"]);return $o("svg",Di({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ci},n))},Oi=function(e){return $o(Ri,Di({size:20},e),$o("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Pi=function(e){return $o(Ri,Di({size:20},e),$o("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ji=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorContainer",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?a.neutral80:a.neutral40}}},Hi=ji,Ai=ji,zi=function(){var e=No.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(xi()),Fi=function(e){var t=e.delay,n=e.offset;return $o("span",{css:No({animation:zi+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ni=function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps,o=e.isRtl;return $o("div",Di({},a,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),$o(Fi,{delay:0,offset:o}),$o(Fi,{delay:160,offset:!0}),$o(Fi,{delay:320,offset:!o}))};function Bi(){return(Bi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Ni.defaultProps={size:4};function Ii(){return(Ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Wi(){return(Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ui=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Vi(){return(Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ji=function(e){var t=e.children,n=e.innerProps;return $o("div",n,t)},Gi=Ji,qi=Ji;var $i=function(e){var t=e.children,n=e.className,r=e.components,a=e.cx,o=e.data,i=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,d=r.Container,p=r.Label,m=r.Remove;return $o(Zo,null,(function(r){var f=r.css,h=r.cx;return $o(d,{data:o,innerProps:Vi({},s,{className:h(f(i("multiValue",e)),a({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:c},$o(p,{data:o,innerProps:{className:h(f(i("multiValueLabel",e)),a({"multi-value__label":!0},n))},selectProps:c},t),$o(m,{data:o,innerProps:Vi({className:h(f(i("multiValueRemove",e)),a({"multi-value__remove":!0},n))},u),selectProps:c}))}))};function Ki(){return(Ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}$i.defaultProps={cropWithEllipsis:!0};function Qi(){return(Qi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Zi(){return(Zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Xi(){return(Xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var es={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Di({},o,{css:a("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||$o(Oi,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.className,o=e.isDisabled,i=e.isFocused,s=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return $o("div",Bi({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":u},a)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Di({},o,{css:a("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||$o(Pi,null))},DownChevron:Pi,CrossIcon:Oi,Group:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.Heading,i=e.headingProps,s=e.label,l=e.theme,u=e.selectProps;return $o("div",{css:a("group",e),className:r({group:!0},n)},$o(o,Ii({},i,{selectProps:u,theme:l,getStyles:a,cx:r}),s),$o("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.theme,o=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","theme","selectProps"]));return $o("div",Ii({css:r("groupHeading",Ii({theme:a},o)),className:n({"group-heading":!0},t)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles;return $o("div",{css:a("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps;return $o("span",Di({},a,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerRef,o=e.isHidden,i=e.isDisabled,s=e.theme,l=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return $o("div",{css:r("input",Wi({theme:s},l))},$o(pi.a,Wi({className:n({input:!0},t),inputRef:a,inputStyle:Ui(o),disabled:i},l)))},LoadingIndicator:Ni,Menu:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerRef,i=e.innerProps;return $o("div",mi({css:a("menu",e),className:r({menu:!0},n)},i,{ref:o}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isMulti,i=e.innerRef;return $o("div",{css:a("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":o},n),ref:i},t)},MenuPortal:Li,LoadingMessage:Mi,NoOptionsMessage:ki,MultiValue:$i,MultiValueContainer:Gi,MultiValueLabel:qi,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return $o("div",n,t||$o(Oi,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.isFocused,s=e.isSelected,l=e.innerRef,u=e.innerProps;return $o("div",Ki({css:a("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":s},n),ref:l},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Qi({css:a("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps,i=e.isDisabled,s=e.isRtl;return $o("div",Si({css:a("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.innerProps;return $o("div",Zi({css:a("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.isMulti,o=e.getStyles,i=e.hasValue;return $o("div",{css:o("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i},n)},t)}},ts=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],ns=function(e){for(var t=0;t<ts.length;t++)e=e.replace(ts[t].letters,ts[t].base);return e};function rs(){return(rs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var as=function(e){return e.replace(/^\s+|\s+$/g,"")},os=function(e){return e.label+" "+e.value};function is(){return(is=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ss={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},ls=function(e){return $o("span",is({css:ss},e))};function us(){return(us=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cs(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return $o("input",us({ref:t},n,{css:No({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var ds=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.props.innerRef(Object(Xo.findDOMNode)(this))},a.componentWillUnmount=function(){this.props.innerRef(null)},a.render=function(){return this.props.children},r}(Nn.Component),ps=["boxSizing","height","overflow","paddingRight","position"],ms={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function fs(e){e.preventDefault()}function hs(e){e.stopPropagation()}function gs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _s(){return"ontouchstart"in window||navigator.maxTouchPoints}var bs=!(!window.document||!window.document.createElement),ys=0,vs=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){var e=this;if(bs){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;if(n&&ps.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&ys<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+i||0;Object.keys(ms).forEach((function(e){var t=ms[e];o&&(o[e]=t)})),o&&(o.paddingRight=l+"px")}a&&_s()&&(a.addEventListener("touchmove",fs,this.listenerOptions),r&&(r.addEventListener("touchstart",gs,this.listenerOptions),r.addEventListener("touchmove",hs,this.listenerOptions))),ys+=1}},a.componentWillUnmount=function(){var e=this;if(bs){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;ys=Math.max(ys-1,0),n&&ys<1&&ps.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),a&&_s()&&(a.removeEventListener("touchmove",fs,this.listenerOptions),r&&(r.removeEventListener("touchstart",gs,this.listenerOptions),r.removeEventListener("touchmove",hs,this.listenerOptions)))}},a.render=function(){return null},r}(Nn.Component);vs.defaultProps={accountForScrollbars:!0};var ks={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Ms=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?$o("div",null,$o("div",{onClick:this.blurSelectInput,css:ks}),$o(ds,{innerRef:this.getScrollTarget},t),r?$o(vs,{touchScrollTarget:r}):null):t},r}(Nn.PureComponent);var Ls=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},t.handleEventDelta=function(e,n){var r=t.props,a=r.onBottomArrive,o=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,l=t.scrollTarget,u=l.scrollTop,c=l.scrollHeight,d=l.clientHeight,p=t.scrollTarget,m=n>0,f=c-d-u,h=!1;f>n&&t.isBottom&&(o&&o(e),t.isBottom=!1),m&&t.isTop&&(s&&s(e),t.isTop=!1),m&&n>f?(a&&!t.isBottom&&a(e),p.scrollTop=c,h=!0,t.isBottom=!0):!m&&-n>u&&(i&&!t.isTop&&i(e),p.scrollTop=0,h=!0,t.isTop=!0),h&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListening(this.scrollTarget)},a.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},a.startListening=function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},a.stopListening=function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},a.render=function(){return Bn.a.createElement(ds,{innerRef:this.getScrollTarget},this.props.children)},r}(Nn.Component);function ws(e){var t=e.isEnabled,n=void 0===t||t,r=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["isEnabled"]);return n?Bn.a.createElement(Ls,r):r.children}var Ts=function(e,t){void 0===t&&(t={});var n=t,r=n.isSearchable,a=n.isMulti,o=n.label,i=n.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(i?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(o||"Select")+" is focused "+(r?",type to refine list":"")+", press Down to open the menu, "+(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Ys=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return r?"option "+n+" is disabled. Select another option.":"option "+n+", selected."}},Es=function(e){return!!e.isDisabled};var Ss={clearIndicator:Ai,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,a=r.colors,o=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?a.neutral5:a.neutral0,borderColor:t?a.neutral10:n?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+a.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?a.primary:a.neutral30}}},dropdownIndicator:Hi,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,a=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:vi,menu:function(e){var t,n=e.placement,r=e.theme,a=r.borderRadius,o=r.spacing,i=r.colors;return(t={label:"menu"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n)]="100%",t.backgroundColor=i.neutral0,t.borderRadius=a,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=o.menuGutter,t.marginTop=o.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,a=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:a?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,a=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&a.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}}},noOptionsMessage:yi,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,a=e.theme,o=a.spacing,i=a.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*o.baseUnit+"px "+3*o.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{label:"singleValue",color:t?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - "+2*r.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var xs={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function Ds(){return(Ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Rs,Os={backspaceRemovesValue:!0,blurInputOnSelect:ci(),captureMenuScroll:!ci(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=rs({ignoreCase:!0,ignoreAccents:!0,stringify:os,trim:!0,matchFrom:"any"},Rs),r=n.ignoreCase,a=n.ignoreAccents,o=n.stringify,i=n.trim,s=n.matchFrom,l=i?as(t):t,u=i?as(o(e)):o(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=ns(l),u=ns(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Es,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},Ps=1,js=function(e){var t,n;function r(t){var n;(n=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=Xi({},es,{components:e}.components)},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props;(0,r.onChange)(e,Ds({},t,{name:r.name}))},n.setValue=function(e,t,r){void 0===t&&(t="set-value");var a=n.props,o=a.closeMenuOnSelect,i=a.isMulti;n.onInputChange("",{action:"set-value"}),o&&(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,a=t.isMulti,o=n.state.selectValue;if(a)if(n.isOptionSelected(e,o)){var i=n.getOptionValue(e);n.setValue(o.filter((function(e){return n.getOptionValue(e)!==i})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(o,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,r=n.getOptionValue(e),a=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(a.length?a:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var r=Ss[e](t);r.boxSizing="border-box";var a=n.props.styles[e];return a?a(r,t):r},n.getElementId=function(e){return n.instancePrefix+"-"+e},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,a=t.focusedOption;if(a&&e){var o=r.focusable.indexOf(a),i=r.render[o];return i&&i.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:Ys(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:Ts(t,Ds({},r,{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,a=t.menuIsOpen;n.focusInput(),a?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ii(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),a=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||a>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,r=t.isSearchable,a=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:a}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,a=t.backspaceRemovesValue,o=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,m=n.state,f=m.focusedOption,h=m.focusedValue,g=m.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)n.removeValue(h);else{if(!a)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!u||!d||!f||p&&n.isOptionSelected(f,g))return;n.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(n.isComposing)return;n.selectOption(f);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&o&&n.clearValue();break;case" ":if(i)return;if(!u){n.openMenu("first");break}if(!f)return;n.selectOption(f);break;case"ArrowUp":u?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":u?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!u)return;n.focusOption("pageup");break;case"PageDown":if(!u)return;n.focusOption("pagedown");break;case"Home":if(!u)return;n.focusOption("first");break;case"End":if(!u)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var r=e.inputValue,a=void 0===r?"":r,o=e.options,i=function(e,r){var o=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),s=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:s,value:l,data:e},a))){var u=o?void 0:function(){return n.onOptionHover(e)},c=o?void 0:function(){return n.selectOption(e)},d=n.getElementId("option")+"-"+r;return{innerProps:{id:d,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:o,isSelected:i,key:d,label:s,type:"option",value:l}}};return o.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var a=t.options.map((function(t,n){var a=i(t,r+"-"+n);return a&&e.focusable.push(t),a})).filter(Boolean);if(a.length){var o=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:o,data:t,options:a})}}else{var s=i(t,""+r);s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var r=t.value;n.cacheComponents=_o(n.cacheComponents,Ei).bind(Cs(Cs(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Ps);var a=oi(r);n.buildMenuOptions=_o(n.buildMenuOptions,(function(e,t){var n=e,r=n[0],a=n[1],o=t,i=o[0];return Ei(a,o[1])&&Ei(r.inputValue,i.inputValue)&&Ei(r.options,i.options)})).bind(Cs(Cs(n)));var o=t.menuIsOpen?n.buildMenuOptions(t,a):{render:[],focusable:[]};return n.state.menuOptions=o,n.state.selectValue=a,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},a.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,r=t.value,a=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==a||e.inputValue!==o){var i=oi(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},l=this.getNextFocusedValue(i),u=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:u,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},a.componentDidUpdate=function(e){var t,n,r,a,o,i=this.props,s=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=n.offsetHeight/3,a.bottom+o>r.bottom?li(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):a.top-o<r.top&&li(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)},a.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},a.onMenuOpen=function(){this.props.onMenuOpen()},a.onMenuClose=function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},a.onInputChange=function(e,t){this.props.onInputChange(e,t)},a.focusInput=function(){this.inputRef&&this.inputRef.focus()},a.blurInput=function(){this.inputRef&&this.inputRef.blur()},a.openMenu=function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,o=this.buildMenuOptions(this.props,r),i=this.props.isMulti,s="first"===e?0:o.focusable.length-1;if(!i){var l=o.focusable.indexOf(r[0]);l>-1&&(s=l)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[s]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},a.focusValue=function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,a=this.state,o=a.selectValue,i=a.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=o.length-1,u=-1;if(o.length){switch(e){case"previous":u=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(u=s+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:o[u]})}}},a.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,r=n.focusedOption,a=n.menuOptions.focusable;if(a.length){var o=0,i=a.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?o=i>0?i-1:a.length-1:"down"===e?o=(i+1)%a.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>a.length-1&&(o=a.length-1):"last"===e&&(o=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[o],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Es(a[o])}})}},a.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(xs):Ds({},xs,this.props.theme):xs},a.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,a=this.props,o=a.classNamePrefix,i=a.isMulti,s=a.isRtl,l=a.options,u=this.state.selectValue,c=this.hasValue();return{cx:ai.bind(null,o),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:c,isMulti:i,isRtl:s,options:l,selectOption:r,setValue:n,selectProps:a,theme:this.getTheme()}},a.getNextFocusedValue=function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null},a.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},a.hasValue=function(){return this.state.selectValue.length>0},a.hasOptions=function(){return!!this.state.menuOptions.render.length},a.countOptions=function(){return this.state.menuOptions.focusable.length},a.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},a.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},a.isOptionSelected=function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))},a.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},a.formatOptionLabel=function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)},a.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},a.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},a.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},a.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},a.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},a.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,a=e.focusedOption,o=this.props,i=o.options,s=o.menuIsOpen,l=o.inputValue,u=o.screenReaderStatus;return(r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value "+n(t)+" focused, "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(a&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option "+n(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedOption:a,getOptionLabel:this.getOptionLabel,options:i}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:l,screenReaderMessage:u({count:this.countOptions()})})+" "+t},a.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,o=e.tabIndex,i=this.components.Input,s=this.state.inputIsHidden,l=r||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return Bn.a.createElement(cs,Ds({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ni,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:o,value:""},u));var c=this.commonProps,d=c.cx,p=c.theme,m=c.selectProps;return Bn.a.createElement(i,Ds({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:o,theme:p,type:"text",value:a},u))},a.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,o=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,m=u.inputValue,f=u.placeholder,h=this.state,g=h.selectValue,_=h.focusedValue,b=h.isFocused;if(!this.hasValue()||!c)return m?null:Bn.a.createElement(s,Ds({},l,{key:"placeholder",isDisabled:d,isFocused:b}),f);if(p)return g.map((function(t,i){var s=t===_;return Bn.a.createElement(n,Ds({},l,{components:{Container:r,Label:a,Remove:o},isFocused:s,isDisabled:d,key:e.getOptionValue(t),index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var y=g[0];return Bn.a.createElement(i,Ds({},l,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))},a.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Bn.a.createElement(e,Ds({},t,{innerProps:i,isFocused:o}))},a.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!e||!a)return null;return Bn.a.createElement(e,Ds({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))},a.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return Bn.a.createElement(n,Ds({},r,{isDisabled:a,isFocused:o}))},a.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Bn.a.createElement(e,Ds({},t,{innerProps:a,isDisabled:n,isFocused:r}))},a.renderMenu=function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,o=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,c=this.commonProps,d=this.state,p=d.focusedOption,m=d.menuOptions,f=this.props,h=f.captureMenuScroll,g=f.inputValue,_=f.isLoading,b=f.loadingMessage,y=f.minMenuHeight,v=f.maxMenuHeight,k=f.menuIsOpen,M=f.menuPlacement,L=f.menuPosition,w=f.menuPortalTarget,T=f.menuShouldBlockScroll,Y=f.menuShouldScrollIntoView,E=f.noOptionsMessage,S=f.onMenuScrollToTop,x=f.onMenuScrollToBottom;if(!k)return null;var D,C=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,Bn.a.createElement(u,Ds({},c,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=m.render.map((function(t){if("group"===t.type){t.type;var a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["type"]),o=t.key+"-heading";return Bn.a.createElement(n,Ds({},c,a,{Heading:r,headingProps:{id:o},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e)})))}if("option"===t.type)return C(t)}));else if(_){var R=b({inputValue:g});if(null===R)return null;D=Bn.a.createElement(s,c,R)}else{var O=E({inputValue:g});if(null===O)return null;D=Bn.a.createElement(l,c,O)}var P={minMenuHeight:y,maxMenuHeight:v,menuPlacement:M,menuPosition:L,menuShouldScrollIntoView:Y},j=Bn.a.createElement(_i,Ds({},c,P),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return Bn.a.createElement(a,Ds({},c,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:_,placement:i}),Bn.a.createElement(ws,{isEnabled:h,onTopArrive:S,onBottomArrive:x},Bn.a.createElement(Ms,{isEnabled:T},Bn.a.createElement(o,Ds({},c,{innerRef:e.getMenuListRef,isLoading:_,maxHeight:s}),D))))}));return w||"fixed"===L?Bn.a.createElement(i,Ds({},c,{appendTo:w,controlElement:this.controlRef,menuPlacement:M,menuPosition:L}),j):j},a.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,o=t.name,i=this.state.selectValue;if(o&&!r){if(a){if(n){var s=i.map((function(t){return e.getOptionValue(t)})).join(n);return Bn.a.createElement("input",{name:o,type:"hidden",value:s})}var l=i.length>0?i.map((function(t,n){return Bn.a.createElement("input",{key:"i-"+n,name:o,type:"hidden",value:e.getOptionValue(t)})})):Bn.a.createElement("input",{name:o,type:"hidden"});return Bn.a.createElement("div",null,l)}var u=i[0]?this.getOptionValue(i[0]):"";return Bn.a.createElement("input",{name:o,type:"hidden",value:u})}},a.renderLiveRegion=function(){return this.state.isFocused?Bn.a.createElement(ls,{"aria-live":"polite"},Bn.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),Bn.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},a.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,o=this.props,i=o.className,s=o.id,l=o.isDisabled,u=o.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return Bn.a.createElement(r,Ds({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),Bn.a.createElement(t,Ds({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),Bn.a.createElement(a,Ds({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),Bn.a.createElement(n,Ds({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},r}(Nn.Component);function Hs(){return(Hs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}js.defaultProps=Os;var As={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};Nn.Component;var zs,Fs,Ns,Bs=(zs=js,Ns=Fs=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).select=void 0,t.state={inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue},t.onChange=function(e,n){t.callProp("onChange",e,n),t.setState({value:e})},t.onInputChange=function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})},t.onMenuOpen=function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})},t.onMenuClose=function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.focus=function(){this.select.focus()},a.blur=function(){this.select.blur()},a.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},a.callProp=function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return(t=this.props)[e].apply(t,r)}},a.render=function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return Bn.a.createElement(zs,Hs({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))},r}(Nn.Component),Fs.defaultProps=As,Ns);function Is(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ws=wp.i18n.__,Us=wp.element,Vs=Us.Component,Js=Us.Fragment,Gs=wp.blockEditor.InspectorControls,qs=wp.components,$s=qs.PanelBody,Ks=qs.QueryControls,Qs=qs.RangeControl,Zs=qs.SelectControl,Xs=qs.TextControl,el=qs.ToggleControl,tl=wp.url.addQueryArgs,nl=wp.apiFetch,rl=function(e){p()(n,e);var t=Is(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={categoriesList:[]},e}return c()(n,[{key:"componentDidMount",value:function(){var e=this;this.stillMounted=!0,this.fetchRequest=nl({path:tl("/wp/v2/categories",{per_page:-1})}).then((function(t){e.stillMounted&&e.setState({categoriesList:t})})).catch((function(){e.stillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/editor").getEditorSettings();return mo()(ho()(e.imageSizes,(function(e){var t=e.name;return{value:e.slug,label:t}})))}},{key:"pageSelect",value:function(){var e=wp.data.select("core").getEntityRecords("postType","page",{per_page:-1});return mo()(ho()(e,(function(e){return{value:e.id,label:e.title.raw}})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.latestPosts,i=n.order,s=n.orderBy,l=this.state.categoriesList,u=[{value:"post",label:Ws("Post","genesis-blocks")},{value:"page",label:Ws("Page","genesis-blocks")}],c=[{value:"div",label:Ws("div","genesis-blocks")},{value:"header",label:Ws("header","genesis-blocks")},{value:"section",label:Ws("section","genesis-blocks")},{value:"article",label:Ws("article","genesis-blocks")},{value:"main",label:Ws("main","genesis-blocks")},{value:"aside",label:Ws("aside","genesis-blocks")},{value:"footer",label:Ws("footer","genesis-blocks")}],d=[{value:"h2",label:Ws("H2","genesis-blocks")},{value:"h3",label:Ws("H3","genesis-blocks")},{value:"h4",label:Ws("H4","genesis-blocks")},{value:"h5",label:Ws("H5","genesis-blocks")},{value:"h6",label:Ws("H6","genesis-blocks")}],p=Array.isArray(o)&&o.length,m="post"===n.postType,f={value:"selectimage",label:Ws("Select image size","genesis-blocks")},h={value:"gb-block-post-grid-landscape",label:Ws("GB Grid Landscape","genesis-blocks")},g={value:"gb-block-post-grid-square",label:Ws("GB Grid Square","genesis-blocks")},_=this.imageSizeSelect();_.push(g,h),_.unshift(f);var b=this.pageSelect();return React.createElement(Gs,null,React.createElement($s,{title:Ws("Post and Page Grid Settings","genesis-blocks"),className:m?null:"genesis-blocks-hide-query"},React.createElement(M,{id:"gb_postgrid_postType"},React.createElement(Zs,{label:Ws("Content Type","genesis-blocks"),options:u,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&React.createElement(M,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control select2-page"},React.createElement("div",{className:"components-base-control__field"},React.createElement("label",{className:"components-base-control__label",htmlFor:"inspector-select-control"},Ws("Pages To Show","genesis-blocks")),React.createElement(Bs,{options:b,value:n.selectedPages,onChange:function(t){return e.props.setAttributes({selectedPages:t})},isMulti:!0,closeMenuOnSelect:!1})))),"post"===n.postType&&React.createElement(Js,null,React.createElement(M,{id:"gb_postgrid_queryControls"},React.createElement(Ks,a()({order:i,orderBy:s},{numberOfItems:n.postsToShow,categoriesList:l,selectedCategoryId:n.categories,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onCategoryChange:function(e){return r({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return r({postsToShow:e})}}))),React.createElement(M,{id:"gb_postgrid_offset"},React.createElement(Qs,{label:Ws("Number of items to offset","genesis-blocks"),value:n.offset,onChange:function(e){return r({offset:e})},min:0,max:20}))),"grid"===n.postLayout&&React.createElement(M,{id:"gb_postgrid_columns"},React.createElement(Qs,{label:Ws("Columns","genesis-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:p?Math.min(4,o.length):4}))),React.createElement($s,{title:Ws("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(M,{id:"gb_postgrid_displaySectionTitle"},React.createElement(el,{label:Ws("Display Section Title","genesis-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&React.createElement(M,{id:"gb_postgrid_sectionTitle"},React.createElement(Xs,{label:Ws("Section Title","genesis-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),React.createElement(M,{id:"gb_postgrid_displayPostImage"},React.createElement(el,{label:Ws("Display Featured Image","genesis-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&React.createElement(M,{id:"gb_postgrid_imageSizeValue"},React.createElement(Zs,{label:Ws("Image Size","genesis-blocks"),value:function(){for(var e=0;e<_.length;e++)if(_[e].value===n.imageSize)return n.imageSize;return"full"}(),options:_,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),React.createElement(M,{id:"gb_postgrid_displayPostTitle"},React.createElement(el,{label:Ws("Display Title","genesis-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),m&&React.createElement(M,{id:"gb_postgrid_displayPostAuthor"},React.createElement(el,{label:Ws("Display Author","genesis-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),m&&React.createElement(M,{id:"gb_postgrid_displayPostDate"},React.createElement(el,{label:Ws("Display Date","genesis-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),React.createElement(M,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(el,{label:Ws("Display Excerpt","genesis-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&React.createElement(M,{id:"gb_postgrid_excerptLength"},React.createElement(Qs,{label:Ws("Excerpt Length","genesis-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),React.createElement(M,{id:"gb_postgrid_displayPostLink"},React.createElement(el,{label:Ws("Display Continue Reading Link","genesis-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&React.createElement(M,{id:"gb_postgrid_readMoreText"},React.createElement(Xs,{label:Ws("Customize Continue Reading Text","genesis-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),React.createElement($s,{title:Ws("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(M,{id:"gb_postgrid_sectionTag"},React.createElement(Zs,{label:Ws("Post Grid Section Tag","genesis-blocks"),options:c,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:Ws("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),n.sectionTitle&&React.createElement(M,{id:"gb_postgrid_sectionTitleTag"},React.createElement(Zs,{label:Ws("Section Title Heading Tag","genesis-blocks"),options:d,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:Ws("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),n.displayPostTitle&&React.createElement(M,{id:"gb_postgrid_postTitleTag"},React.createElement(Zs,{label:Ws("Post Title Heading Tag","genesis-blocks"),options:d,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:Ws("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}]),n}(Vs),al=n(31),ol=n.n(al);function il(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var sl=wp.i18n.__,ll=wp.element,ul=ll.Fragment,cl=ll.Component,dl=wp.components,pl=dl.Placeholder,ml=dl.Dashicon,fl=function(e){p()(n,e);var t=il(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},r}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.imgSize!==e.imgSize&&this.setImageUrl()}},{key:"componentDidMount",value:function(){var e=this;this.setState({setImageUrlSubscription:wp.data.subscribe((function(){e.setImageUrl()}))})}},{key:"componentWillUnmount",value:function(){this.state.setImageUrlSubscription()}},{key:"setImageUrl",value:function(){var e=this.getImageUrl();e||(e=this.getFullImageSize()),e&&this.setState({imageUrl:e,imageLoaded:!0})}},{key:"getImageUrl",value:function(){return ol()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return ol()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return React.createElement(ul,null,React.createElement("div",{className:b()("gb-block-post-grid-image")},React.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},React.createElement("img",{src:this.state.imageUrl?this.state.imageUrl:this.props.imgSizeLandscape,alt:this.props.imgAlt,className:this.props.imgClass})),!this.getImageUrl()&&this.state.imageLoaded&&"selectimage"!==this.props.imgSize&&React.createElement(ul,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(ml,{icon:"warning"})),React.createElement(pl,{className:"gb-post-grid-no-image-placeholder"},React.createElement(ml,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},sl("There is no image generated for the selected image size, so a fallback image size is being used.","genesis-blocks")),React.createElement("div",{className:"gb-post-grid-image-help"},React.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":sl("Learn more about image sizes (opens in a new tab)","genesis-blocks"),href:"https://github.com/studiopress/genesis-blocks/wiki/Post-Grid-Block#featured-image-sizes"},sl("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}]),n}(cl);function hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hl(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var bl=wp.compose.compose,yl=wp.element,vl=yl.Component,kl=yl.Fragment,Ml=wp.i18n.__,Ll=wp.htmlEntities.decodeEntities,wl=wp.data.withSelect,Tl=wp.components,Yl=Tl.Placeholder,El=Tl.Spinner,Sl=Tl.Toolbar,xl=wp.blockEditor,Dl=xl.BlockAlignmentToolbar,Cl=xl.BlockControls,Rl=function(e){p()(n,e);var t=_l(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.setAttributes,s=n.latestPosts,l=Array.isArray(s)&&s.length,u="post"===r.postType;if(!l)return React.createElement(kl,null,React.createElement(rl,gl({setAttributes:o},this.props)),React.createElement(Yl,{icon:"admin-post",label:Ml("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(s)?Ml("No posts found.","genesis-blocks"):React.createElement(El,null)));var c=s.length>r.postsToShow?s.slice(0,r.postsToShow):s,d=[{icon:"grid-view",title:Ml("Grid View","genesis-blocks"),onClick:function(){return o({postLayout:"grid"})},isActive:"grid"===r.postLayout},{icon:"list-view",title:Ml("List View","genesis-blocks"),onClick:function(){return o({postLayout:"list"})},isActive:"list"===r.postLayout}],p=r.sectionTag?r.sectionTag:"section",m=r.sectionTitleTag?r.sectionTitleTag:"h2",f=r.postTitleTag?r.postTitleTag:"h3";return React.createElement(kl,null,React.createElement(rl,gl({setAttributes:o},this.props)),React.createElement(Cl,null,React.createElement(Dl,{value:r.align,onChange:function(e){o({align:e})},controls:["center","wide","full"]}),React.createElement(Sl,{controls:d})),React.createElement(p,{className:b()(this.props.className,"gb-block-post-grid")},r.displaySectionTitle&&r.sectionTitle&&React.createElement(m,{className:"gb-post-grid-section-title"},r.sectionTitle),React.createElement("div",{className:b()((e={"is-grid":"grid"===r.postLayout,"is-list":"list"===r.postLayout},i()(e,"columns-".concat(r.columns),"grid"===r.postLayout),i()(e,"gb-post-grid-items","gb-post-grid-items"),e))},c.map((function(e,n){return React.createElement("article",{key:n,id:"post-"+e.id,className:b()("post-"+e.id,e.featured_image_src&&r.displayPostImage?"has-post-thumbnail":null)},r.displayPostImage&&e.featured_media?React.createElement(fl,a()({},t.props,{imgAlt:Ll(e.title.rendered.trim())||Ml("(Untitled)","genesis-blocks"),imgClass:"wp-image-".concat(e.featured_media.toString()),imgID:e.featured_media.toString(),imgSize:r.imageSize,imgSizeLandscape:e.featured_image_src,imgSizeSquare:e.featured_image_src_square,imgLink:e.link})):null,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},r.displayPostTitle&&React.createElement(f,{className:"gb-block-post-grid-title"},React.createElement("a",{href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},Ll(e.title.rendered.trim())||Ml("(Untitled)","genesis-blocks"))),u&&React.createElement("div",{className:"gb-block-post-grid-byline"},r.displayPostAuthor&&e.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-author"},React.createElement("a",{className:"gb-text-link",target:"_blank",rel:"noopener noreferrer",href:e.author_info.author_link},e.author_info.display_name)),r.displayPostDate&&e.date_gmt&&React.createElement("time",{dateTime:co()(e.date_gmt).utc().format(),className:"gb-block-post-grid-date"},co()(e.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},r.displayPostExcerpt&&e.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(o=e.excerpt.rendered,i=r.excerptLength,o.split(" ").splice(0,i).join(" "))}}),r.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},r.readMoreText)))));var o,i})))))}}]),n}(vl),Ol=bl([wl((function(e,t){var n=t.attributes,r=n.order,a=n.categories,o=e("core").getEntityRecords,i=lo()({categories:a,order:r,orderby:t.attributes.orderBy,per_page:t.attributes.postsToShow,offset:t.attributes.offset,exclude:[wp.data.select("core/editor").getCurrentPostId()]},(function(e){return!io()(e)})),s=t.attributes.selectedPages&&t.attributes.selectedPages.length>0?t.attributes.selectedPages.map((function(e){return e.value})):null,l=lo()({include:s||null,orderby:s?"include":null},(function(e){return!io()(e)}));return{latestPosts:o("postType",t.attributes.postType,"page"===t.attributes.postType&&s?l:i)}}))])(Rl);n(363),n(364);var Pl=wp.i18n.__,jl=wp.blocks.registerBlockType,Hl=["center","wide","full"];function Al(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}jl("genesis-blocks/gb-post-grid",{title:Pl("Post and Page Grid","genesis-blocks"),description:Pl("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[Pl("post","genesis-blocks"),Pl("page","genesis-blocks"),Pl("grid","genesis-blocks"),Pl("atomic","genesis-blocks")],getEditWrapperProps:function(e){var t=e.align;if(-1!==Hl.indexOf(t))return{"data-align":t}},edit:Ol,gb_settings_data:{gb_postgrid_postType:{title:Pl("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:Pl("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:Pl("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:Pl("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:Pl("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:Pl("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:Pl("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:Pl("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:Pl("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:Pl("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:Pl("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:Pl("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:Pl("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:Pl("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:Pl("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:Pl("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:Pl("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:Pl("Post Title Heading Tag","genesis-blocks")}},save:function(){return null}});var zl=wp.i18n.__,Fl=wp.element.Component,Nl=wp.blockEditor,Bl=Nl.InspectorControls,Il=Nl.PanelColorSettings,Wl=Nl.MediaUpload,Ul=wp.components,Vl=Ul.Button,Jl=Ul.Icon,Gl=Ul.PanelBody,ql=Ul.RangeControl,$l=function(e){p()(n,e);var t=Al(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.containerPaddingTop,r=t.containerPaddingRight,a=t.containerPaddingBottom,o=t.containerPaddingLeft,i=t.containerMarginTop,s=t.containerMarginBottom,l=t.containerMaxWidth,u=t.containerBackgroundColor,c=t.containerDimRatio,d=t.containerImgURL,p=t.containerImgID,m=this.props.setAttributes,f=function(){m({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Bl,{key:"inspector"},React.createElement(M,{id:"gb_container_containerOptions"},React.createElement(Gl,{title:zl("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(ql,{label:zl("Padding Top (%)","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Bottom (%)","genesis-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Left (%)","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Right (%)","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Margin Top (%)","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),React.createElement(ql,{label:zl("Margin Bottom (%)","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Inside Container Max Width (px)","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({containerMaxWidth:t})},min:500,max:1600,step:1}))),React.createElement(M,{id:"gb_container_backgroundOptions"},React.createElement(Gl,{title:zl("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,zl("Select a background image:","genesis-blocks")),React.createElement(Wl,{onSelect:function(e){m({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Vl,{className:"gb-container-inspector-media",label:zl("Edit image","genesis-blocks"),onClick:t},React.createElement(Jl,{icon:"format-image"}),zl("Select Image","genesis-blocks")),d&&!!d.length&&React.createElement(Vl,{className:"gb-container-inspector-media",label:zl("Remove Image","genesis-blocks"),onClick:f},React.createElement(Jl,{icon:"dismiss"}),zl("Remove","genesis-blocks")))}}),d&&!!d.length&&React.createElement(ql,{label:zl("Image Opacity","genesis-blocks"),value:c,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),React.createElement(Il,{title:zl("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,label:zl("Background Color","genesis-blocks"),onChange:function(e){return m({containerBackgroundColor:e})}}]}))))}}]),n}(Fl);function Kl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ql=function(e){p()(n,e);var t=Kl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,u=t.containerMarginTop,c=t.containerMarginBottom,d=t.containerWidth,p=t.containerMaxWidth,m=t.containerImgURL,f=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:u?"".concat(u,"%"):void 0,marginBottom:c?"".concat(c,"%"):void 0},_=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:_||void 0},React.createElement("div",{className:"gb-container-inside"},m&&!!m.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:m,alt:f})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:p?"".concat(p,"px"):void 0}},this.props.children)))}}]),n}(wp.element.Component);function Zl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xl=function(e){p()(n,e);var t=Zl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.containerBackgroundColor,n=e.containerAlignment,r=e.containerPaddingTop,a=e.containerPaddingRight,o=e.containerPaddingBottom,s=e.containerPaddingLeft,l=e.containerMarginTop,u=e.containerMarginBottom,c=e.containerWidth,d=(e.containerMaxWidth,b()([this.props.className,"gb-block-container"],i()({},"align"+c,c)));return React.createElement("div",{style:{backgroundColor:t,textAlign:n,paddingLeft:"".concat(s,"%"),paddingRight:"".concat(a,"%"),paddingBottom:"".concat(o,"%"),paddingTop:"".concat(r,"%"),marginTop:"".concat(l,"%"),marginBottom:"".concat(u,"%")},className:d||void 0},this.props.children)}}]),n}(wp.element.Component);function eu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var tu=function(e){p()(n,e);var t=eu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,u=t.containerMarginTop,c=t.containerMarginBottom,d=t.containerWidth,p=t.containerMaxWidth,m=t.containerImgURL,f=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:u?"".concat(u,"%"):void 0,marginBottom:c?"".concat(c,"%"):void 0},_=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:_||void 0},React.createElement("div",{className:"gb-container-inside"},m&&!!m.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:m,alt:f})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(p,"px")}},this.props.children)))}}]),n}(wp.element.Component);var nu=wp.blockEditor.InnerBlocks;var ru=[{attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){return React.createElement(tu,e,React.createElement(nu.Content,null))}},{attributes:{containerPaddingTop:{type:"number",default:0},containerPaddingRight:{type:"number",default:0},containerPaddingBottom:{type:"number",default:0},containerPaddingLeft:{type:"number",default:0},containerMarginTop:{type:"number",default:0},containerMarginBottom:{type:"number",default:0},containerWidth:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string",default:"#fff"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){var t,n=e.attributes,r=n.containerMaxWidth,a=n.containerImgURL,o=n.containerImgAlt,i=n.containerDimRatio;return React.createElement(Xl,e,React.createElement("div",{className:"gb-container-inside"},a&&!!a.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(t=i,0===t||50===t?null:"has-background-dim-"+10*Math.round(t/10)),{"has-background-dim":0!==i}),src:a,alt:o})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(r,"px")}},React.createElement(nu.Content,null))))}}];n(365),n(366);function au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var su=wp.i18n.__,lu=wp.element.Component,uu=wp.blocks.registerBlockType,cu=wp.blockEditor.InnerBlocks,du=function(e){p()(n,e);var t=iu(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.setAttributes;return[React.createElement($l,a()({key:"gb-container-inspector-"+this.props.clientId},ou({setAttributes:e},this.props))),React.createElement(Ql,a()({key:"gb-container-"+this.props.clientId},this.props),React.createElement(cu,null))]}}]),n}(lu);function pu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}uu("genesis-blocks/gb-container",{title:su("Container","genesis-blocks"),description:su("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[su("container","genesis-blocks"),su("section","genesis-blocks"),su("genesis","genesis-blocks")],supports:{align:["center","wide","full"]},attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number"},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},gb_settings_data:{gb_container_containerOptions:{title:su("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:su("Background Options","genesis-blocks")}},edit:du,save:function(e){return React.createElement(Ql,e,React.createElement(cu.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:ru});var mu=wp.i18n.__,fu=wp.element.Component,hu=wp.blockEditor.InspectorControls,gu=wp.components,_u=gu.PanelBody,bu=gu.RangeControl,yu=function(e){p()(n,e);var t=pu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return React.createElement(hu,{key:"inspector"},React.createElement(_u,null,React.createElement(M,{id:"gb_pricing_columns"},React.createElement(bu,{label:mu("Pricing Columns","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),React.createElement(M,{id:"gb_pricing_columnsGap"},React.createElement(bu,{label:mu("Pricing Columns Gap","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}]),n}(fu);function vu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ku=function(e){p()(n,e);var t=vu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.columns,n=e.align,r=b()([this.props.className,"gb-pricing-columns-"+t],i()({},"align"+n,n));return React.createElement("div",{className:r||void 0},this.props.children)}}]),n}(wp.element.Component),Mu=n(32),Lu=n.n(Mu),wu=n(33),Tu=n.n(wu);function Yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yu(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var xu=wp.i18n.__,Du=wp.element.Component,Cu=wp.blocks.registerBlockType,Ru=wp.blockEditor,Ou=Ru.BlockControls,Pu=Ru.BlockAlignmentToolbar,ju=Ru.InnerBlocks,Hu=wp.data.dispatch,Au=["genesis-blocks/gb-pricing-table"],zu=Lu()((function(e){return Tu()(e,(function(){return["genesis-blocks/gb-pricing-table"]}))})),Fu=function(e){p()(n,e);var t=Su(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&Hu("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.columns,r=t.columnsGap,o=t.align,i=e.setAttributes;return[React.createElement(Ou,{key:"controls"},React.createElement(Pu,{value:o,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),React.createElement(yu,a()({key:"gb-pricing-table-inspector-"+this.props.clientId},Eu({setAttributes:i},this.props))),React.createElement(ku,a()({key:"gb-pricing-table-"+this.props.clientId},this.props),React.createElement("div",{className:b()("gb-pricing-table-wrap-admin","gb-block-pricing-table-gap-"+r)},React.createElement(ju,{template:zu(n),templateLock:"all",allowedBlocks:Au})))]}}]),n}(Du);function Nu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Cu("genesis-blocks/gb-pricing",{title:xu("Pricing","genesis-blocks"),description:xu("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[xu("pricing table","genesis-blocks"),xu("shop","genesis-blocks"),xu("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:xu("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:xu("Pricing Columns Gap","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:Fu,save:function(e){var t=e.attributes.columnsGap,n=b()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(ku,e,React.createElement("div",{className:n||void 0},React.createElement(ju.Content,null)))}});var Bu=wp.i18n.__,Iu=wp.element.Component,Wu=wp.blockEditor,Uu=Wu.InspectorControls,Vu=Wu.PanelColorSettings,Ju=wp.components,Gu=Ju.PanelBody,qu=Ju.RangeControl,$u=function(e){p()(n,e);var t=Nu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderWidth,a=n.borderColor,o=n.borderRadius,i=n.backgroundColor,s=n.padding,l=t.setAttributes;return React.createElement(Uu,{key:"inspector"},React.createElement(Gu,null,React.createElement(M,{id:"gb_pricing_inner_padding"},React.createElement(qu,{label:Bu("Pricing Column Padding","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),React.createElement(M,{id:"gb_pricing_inner_borderWidth"},React.createElement(qu,{label:Bu("Pricing Column Border","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),React.createElement(M,{id:"gb_pricing_inner_borderRadius"},React.createElement(qu,{label:Bu("Pricing Column Border Radius","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({borderRadius:t})},min:0,max:20,step:1}))),0<r&&React.createElement(M,{id:"gb_pricing_inner_borderColor"},React.createElement(Vu,{title:Bu("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({borderColor:e})},label:Bu("Border Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_pricing_inner_colorSettings"},React.createElement(Vu,{title:Bu("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return l({backgroundColor:e})},label:Bu("Background Color","genesis-blocks")}]})))}}]),n}(Iu);n(367),n(368);function Ku(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ku(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xu=wp.i18n.__,ec=wp.element.Component,tc=wp.blocks.registerBlockType,nc=wp.blockEditor,rc=nc.InnerBlocks,ac=nc.AlignmentToolbar,oc=nc.BlockControls,ic=wp.element.Fragment,sc=["genesis-blocks/gb-pricing-table-description","genesis-blocks/gb-pricing-table-price","genesis-blocks/gb-pricing-table-subtitle","genesis-blocks/gb-pricing-table-title","genesis-blocks/gb-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"],lc=function(e){p()(n,e);var t=Zu(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.borderWidth,r=t.borderColor,o=t.borderRadius,i=t.backgroundColor,s=t.padding,l=t.alignment,u=e.setAttributes,c={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:o||null,backgroundColor:i||null,padding:s?s+"%":null};return[React.createElement(oc,{key:"controls"},React.createElement(ac,{value:l,onChange:function(e){u({alignment:e})}})),React.createElement($u,a()({key:"gb-pricing-table-inner-inspector-"+this.props.clientId},Qu({setAttributes:u},this.props))),React.createElement(ic,{key:"gb-pricing-table-inner-fragment-"+this.props.clientId},React.createElement("div",{className:b()(l?"gb-block-pricing-table-"+l:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:c},React.createElement(rc,{template:[["genesis-blocks/gb-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-features",{features:"<li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li>",multilineTag:"li",ordered:!1,customFontSize:20,paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["genesis-blocks/gb-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:sc,templateInsertUpdatesSelection:!1}))))]}}]),n}(ec);tc("genesis-blocks/gb-pricing-table",{title:Xu("Pricing Column","genesis-blocks"),description:Xu("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[Xu("pricing","genesis-blocks"),Xu("shop","genesis-blocks"),Xu("buy","genesis-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},gb_settings_data:{gb_pricing_inner_padding:{title:Xu("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:Xu("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:Xu("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:Xu("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:Xu("Pricing Column Background Color","genesis-blocks")}},edit:lc,save:function(e){var t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,o=t.backgroundColor,i=t.alignment,s=t.padding,l={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:o||null,padding:s?s+"%":null};return React.createElement("div",{className:b()(i?"gb-block-pricing-table-"+i:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:l},React.createElement(rc.Content,null)))}});var uc=wp.i18n.__,cc=wp.element.Fragment,dc=wp.components.RangeControl;function pc(e){var t=e.padding,n=e.paddingTitle,r=e.paddingHelp,a=e.paddingMin,o=e.paddingMax,i=e.paddingEnable,s=e.onChangePadding,l=void 0===s?function(){}:s,u=e.paddingTop,c=e.paddingTopMin,d=e.paddingTopMax,p=e.paddingEnableTop,m=e.onChangePaddingTop,f=void 0===m?function(){}:m,h=e.paddingRight,g=e.paddingRightMin,_=e.paddingRightMax,b=e.paddingEnableRight,y=e.onChangePaddingRight,v=void 0===y?function(){}:y,k=e.paddingBottom,M=e.paddingBottomMin,L=e.paddingBottomMax,w=e.paddingEnableBottom,T=e.onChangePaddingBottom,Y=void 0===T?function(){}:T,E=e.paddingLeft,S=e.paddingLeftMin,x=e.paddingLeftMax,D=e.paddingEnableLeft,C=e.onChangePaddingLeft,R=void 0===C?function(){}:C,O=e.paddingVertical,P=e.paddingEnableVertical,j=e.paddingVerticalMin,H=e.paddingVerticalMax,A=e.onChangePaddingVertical,z=void 0===A?function(){}:A,F=e.paddingHorizontal,N=e.paddingEnableHorizontal,B=e.paddingHorizontalMin,I=e.paddingHorizontalMax,W=e.onChangePaddingHorizontal,U=void 0===W?function(){}:W;return React.createElement(cc,null,i&&React.createElement(dc,{label:n||uc("Padding","genesis-blocks"),help:r||null,value:t,min:a,max:o,onChange:l}),p&&React.createElement(dc,{label:uc("Padding Top","genesis-blocks"),value:u,min:c,max:d,onChange:f}),b&&React.createElement(dc,{label:uc("Padding Right","genesis-blocks"),value:h,min:g,max:_,onChange:v}),w&&React.createElement(dc,{label:uc("Padding Bottom","genesis-blocks"),value:k,min:M,max:L,onChange:Y}),D&&React.createElement(dc,{label:uc("Padding Left","genesis-blocks"),value:E,min:S,max:x,onChange:R}),P&&React.createElement(dc,{label:uc("Padding Vertical","genesis-blocks"),value:O,min:j,max:H,onChange:z}),N&&React.createElement(dc,{label:uc("Padding Horizontal","genesis-blocks"),value:F,min:B,max:I,onChange:U}))}function mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var fc=wp.i18n.__,hc=wp.element.Component,gc=wp.compose.compose,_c=wp.blockEditor,bc=_c.InspectorControls,yc=_c.FontSizePicker,vc=_c.withFontSizes,kc=_c.withColors,Mc=_c.ContrastChecker,Lc=_c.PanelColorSettings,wc=wp.components,Tc=wc.withFallbackStyles,Yc=wc.PanelBody,Ec=wc.ToggleControl,Sc=wc.TextControl,xc=(wc.RangeControl,Tc((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}}))),Dc=function(e){p()(n,e);var t=mc(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.showTerm,o=n.showCurrency,i=n.term,s=n.currency,l=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.setAttributes),m=t.fallbackFontSize,f=t.fontSize,h=t.setFontSize,g=t.backgroundColor,_=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,v=t.fallbackBackgroundColor,k=t.fallbackTextColor;return React.createElement(bc,{key:"inspector"},React.createElement(Yc,{title:fc("Text Settings","genesis-blocks")},React.createElement(yc,{fallbackFontSize:m,value:f.size,onChange:h}),React.createElement(Ec,{label:fc("Show currency symbol","genesis-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&React.createElement(Sc,{label:fc("Currency Symbol","genesis-blocks"),type:"text",value:s,onChange:function(t){return e.props.setAttributes({currency:t})}}),React.createElement(Ec,{label:fc("Show pricing duration","genesis-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&React.createElement(Sc,{label:fc("Pricing Duration","genesis-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({term:t})}})),React.createElement(Yc,{title:fc("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return p({paddingTop:e})},paddingEnableRight:!0,paddingRight:u,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return p({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:c,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return p({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:d,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return p({paddingLeft:e})}})),React.createElement(Lc,{title:fc("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:g.color,onChange:b,label:fc("Background Color","genesis-blocks")},{value:_.color,onChange:y,label:fc("Text Color","genesis-blocks")}]},React.createElement(Mc,a()({textColor:_.color,backgroundColor:g.color,fallbackTextColor:k,fallbackBackgroundColor:v},{fontSize:f.size}))))}}]),n}(hc),Cc=gc([xc,vc("fontSize"),kc("backgroundColor",{textColor:"color"})])(Dc);function Rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Oc=wp.i18n.__,Pc=(wp.blocks.registerBlockType,wp.compose.compose),jc=wp.element,Hc=jc.Component,Ac=jc.Fragment,zc=wp.blockEditor,Fc=zc.RichText,Nc=zc.withFontSizes,Bc=zc.withColors,Ic=function(e){p()(n,e);var t=Rc(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.price,a=n.currency,o=n.term,s=n.showTerm,l=n.showCurrency,u=n.paddingTop,c=n.paddingRight,d=n.paddingBottom,p=n.paddingLeft,m=(t.isSelected,t.className,t.setAttributes),f=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,g=t.textColor,_=b()((e={"gb-pricing-table-price-wrap":!0,"has-text-color":g.color,"has-background":h.color},i()(e,h.class,h.class),i()(e,g.class,g.class),i()(e,"gb-pricing-has-currency",l),e)),y=b()(i()({"gb-pricing-table-price":!0},f.class,f.class)),v={backgroundColor:h.color,color:g.color,paddingTop:u?u+"px":void 0,paddingRight:c?c+"px":void 0,paddingBottom:d?d+"px":void 0,paddingLeft:p?p+"px":void 0},k={fontSize:f.size?f.size+"px":void 0},M=Math.floor(f.size/2.5),L={fontSize:f.size?M+"px":void 0},w=Math.floor(f.size/2.5),T={fontSize:f.size?w+"px":void 0};return[React.createElement(Ac,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(Cc,this.props),React.createElement("div",{className:_||void 0,style:v},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},l&&React.createElement(Fc,{tagName:"span",itemProp:"priceCurrency",placeholder:Oc("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return m({currency:e})},className:"gb-pricing-table-currency",style:L}),React.createElement(Fc,{tagName:"div",itemProp:"price",placeholder:Oc("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return m({price:e})},style:k,className:y||void 0}),s&&React.createElement(Fc,{tagName:"span",value:o,placeholder:Oc("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return m({term:e})},className:"gb-pricing-table-term",style:T}))))]}}]),n}(Hc),Wc=Pc([Nc("fontSize"),Bc("backgroundColor",{textColor:"color"})])(Ic),Uc=wp.i18n.__,Vc=wp.blockEditor,Jc=Vc.RichText,Gc=Vc.getFontSizeClass,qc=Vc.getColorClassName,$c=[{attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,m=n.showTerm,f=n.showCurrency,h=n.paddingTop,g=n.paddingRight,_=n.paddingBottom,y=n.paddingLeft,v=Gc(o),k=qc("color",u),M=qc("background-color",l),L=b()((t={"has-background":l||c,"gb-pricing-table-price-wrap":!0},i()(t,k,k),i()(t,M,M),i()(t,"gb-pricing-has-currency",f&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},v,v)),T={backgroundColor:M?void 0:c,color:k?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:_?_+"px":void 0,paddingLeft:y?y+"px":void 0},Y={fontSize:v?void 0:s},E=v?void 0:s,S=Math.floor(E/2.5),x={fontSize:E?S+"px":void 0},D=Math.floor(E/2.5),C={fontSize:E?D+"px":void 0};return React.createElement("div",{className:L||void 0,style:T},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&f&&React.createElement(Jc.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:Uc("$","genesis-blocks"),value:a,className:"gb-pricing-table-currency",style:x}),React.createElement(Jc.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:Y}),p&&m&&React.createElement(Jc.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:C})))}}],Kc=wp.i18n.__,Qc=wp.blocks.registerBlockType,Zc=wp.element,Xc=(Zc.Component,Zc.Fragment,wp.blockEditor),ed=Xc.RichText,td=Xc.getFontSizeClass,nd=(Xc.FontSizePicker,Xc.withFontSizes,Xc.getColorClassName);function rd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Qc("genesis-blocks/gb-pricing-table-price",{title:Kc("Product Price","genesis-blocks"),description:Kc("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Kc("pricing table","genesis-blocks"),Kc("price","genesis-blocks"),Kc("shop","genesis-blocks")],attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Wc,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,m=n.showTerm,f=n.showCurrency,h=n.paddingTop,g=n.paddingRight,_=n.paddingBottom,y=n.paddingLeft,v=td(o),k=nd("color",u),M=nd("background-color",l),L=b()((t={"has-background":l||c,"gb-pricing-table-price-wrap":!0},i()(t,k,k),i()(t,M,M),i()(t,"gb-pricing-has-currency",f&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},v,v)),T={backgroundColor:M?void 0:c,color:k?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:_?_+"px":void 0,paddingLeft:y?y+"px":void 0},Y={fontSize:v?void 0:s},E=v?void 0:s,S=Math.floor(E/2.5),x={fontSize:E?S+"px":void 0},D=Math.floor(E/2.5),C={fontSize:E?D+"px":void 0};return React.createElement("div",{className:L||void 0,style:T},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&f&&React.createElement(ed.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"gb-pricing-table-currency",style:x}),React.createElement(ed.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:Y}),p&&m&&React.createElement(ed.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:C})))},deprecated:$c});var ad=wp.i18n.__,od=wp.element.Component,id=wp.compose.compose,sd=wp.blockEditor,ld=sd.InspectorControls,ud=sd.FontSizePicker,cd=sd.withFontSizes,dd=sd.withColors,pd=sd.ContrastChecker,md=sd.PanelColorSettings,fd=sd.ColorPalette,hd=wp.components,gd=hd.withFallbackStyles,_d=hd.PanelBody,bd=hd.PanelRow,yd=hd.SelectControl,vd=hd.BaseControl,kd=hd.RangeControl,Md=gd((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),Ld=function(e){p()(n,e);var t=rd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderStyle,o=n.borderColor,i=n.borderWidth,s=n.paddingTop,l=n.paddingRight,u=n.paddingBottom,c=n.paddingLeft,d=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,m=t.fontSize,f=t.setFontSize,h=t.backgroundColor,g=t.textColor,_=t.setBackgroundColor,b=t.setTextColor,y=t.fallbackBackgroundColor,v=t.fallbackTextColor,k=[{value:"gb-list-border-none",label:ad("None")},{value:"gb-list-border-solid",label:ad("Solid")},{value:"gb-list-border-dotted",label:ad("Dotted")},{value:"gb-list-border-dashed",label:ad("Dashed")}];return React.createElement(ld,{key:"inspector"},React.createElement(_d,{title:ad("Text Settings","genesis-blocks")},React.createElement(ud,{fallbackFontSize:p,value:m.size,onChange:f}),React.createElement(yd,{label:ad("List Border Style","genesis-blocks"),value:r,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({borderStyle:t})}}),"gb-list-border-none"!==r&&React.createElement(kd,{label:ad("List Border Width","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:1,max:5,step:1}),"gb-list-border-none"!==r&&React.createElement(bd,null,React.createElement(vd,{label:ad("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(fd,{initialOpen:!1,value:o,onChange:function(e){return d({borderColor:e})}})))),React.createElement(_d,{title:ad("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:s,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:l,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:u,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:c,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(md,{title:ad("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:_,label:ad("Background Color","genesis-blocks")},{value:g.color,onChange:b,label:ad("Text Color","genesis-blocks")}]},React.createElement(pd,a()({textColor:g.color,backgroundColor:h.color,fallbackTextColor:v,fallbackBackgroundColor:y},{fontSize:m.size}))))}}]),n}(od),wd=id([Md,cd("fontSize"),dd("backgroundColor",{textColor:"color"})])(Ld);function Td(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Yd=wp.i18n.__,Ed=(wp.blocks.registerBlockType,wp.compose.compose),Sd=wp.element,xd=Sd.Component,Dd=Sd.Fragment,Cd=wp.blockEditor,Rd=Cd.RichText,Od=Cd.withFontSizes,Pd=Cd.withColors,jd=function(e){p()(n,e);var t=Td(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.features,a=n.borderStyle,o=n.borderColor,s=n.borderWidth,l=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),m=(t.fallbackFontSize,t.fontSize),f=t.backgroundColor,h=t.textColor,g=b()((e={"gb-pricing-table-features":!0},i()(e,m.class,m.class),i()(e,"has-text-color",h.color),i()(e,"has-background",f.color),i()(e,f.class,f.class),i()(e,h.class,h.class),i()(e,a,a),i()(e,"gb-list-border-width-"+s,s),e)),_={fontSize:m.size?m.size+"px":void 0,backgroundColor:f.color,color:h.color,borderColor:o||void 0,paddingTop:l?l+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:d?d+"px":void 0};return[React.createElement(Dd,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(wd,this.props),React.createElement(Rd,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:Yd("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({features:e})},style:_,className:g||void 0}))]}}]),n}(xd),Hd=Ed([Od("fontSize"),Pd("backgroundColor",{textColor:"color"})])(jd),Ad=wp.i18n.__,zd=wp.blocks.registerBlockType,Fd=(wp.element.Component,wp.blockEditor),Nd=Fd.RichText,Bd=Fd.getFontSizeClass,Id=(Fd.FontSizePicker,Fd.withFontSizes,Fd.getColorClassName);function Wd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}zd("genesis-blocks/gb-pricing-table-features",{title:Ad("Product Features","genesis-blocks"),description:Ad("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ad("pricing table","genesis-blocks"),Ad("features","genesis-blocks"),Ad("shop","genesis-blocks")],attributes:{features:{type:"string",source:"html",selector:"ol,ul",multiline:"li"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},borderStyle:{type:"string",default:"gb-list-border-none"},borderColor:{type:"string"},borderWidth:{type:"number",default:1},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Hd,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.borderStyle,p=n.borderColor,m=n.borderWidth,f=n.paddingTop,h=n.paddingRight,g=n.paddingBottom,_=n.paddingLeft,y=Bd(a),v=Id("color",l),k=Id("background-color",s),M=b()((t={"has-background":s||u,"gb-pricing-table-features":!0},i()(t,y,y),i()(t,v,v),i()(t,k,k),i()(t,d,d),i()(t,"gb-list-border-width-"+m,m),t)),L={fontSize:y?void 0:o,backgroundColor:k?void 0:u,color:v?void 0:c,borderColor:p||void 0,paddingTop:f?f+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:_?_+"px":void 0};return React.createElement(Nd.Content,{tagName:"ul",itemProp:"description",value:r,className:M||void 0,style:L})}});var Ud=wp.i18n.__,Vd=wp.element.Component,Jd=wp.compose.compose,Gd=wp.blockEditor,qd=Gd.InspectorControls,$d=Gd.FontSizePicker,Kd=Gd.withFontSizes,Qd=Gd.withColors,Zd=Gd.ContrastChecker,Xd=Gd.PanelColorSettings,ep=(Gd.RangeControl,wp.components),tp=ep.withFallbackStyles,np=ep.PanelBody,rp=tp((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),ap=function(e){p()(n,e);var t=Wd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,s=(e.isSelected,e.setAttributes),l=e.fallbackFontSize,u=e.fontSize,c=e.setFontSize,d=e.backgroundColor,p=e.textColor,m=e.setBackgroundColor,f=e.setTextColor,h=e.fallbackBackgroundColor,g=e.fallbackTextColor;return React.createElement(qd,{key:"inspector"},React.createElement(np,{title:Ud("Text Settings","genesis-blocks")},React.createElement($d,{fallbackFontSize:l,value:u.size,onChange:c})),React.createElement(np,{title:Ud("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return s({paddingLeft:e})}})),React.createElement(Xd,{title:Ud("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:m,label:Ud("Background Color","genesis-blocks")},{value:p.color,onChange:f,label:Ud("Text Color","genesis-blocks")}]},React.createElement(Zd,a()({textColor:p.color,backgroundColor:d.color,fallbackTextColor:g,fallbackBackgroundColor:h},{fontSize:u.size}))))}}]),n}(Vd),op=Jd([rp,Kd("fontSize"),Qd("backgroundColor",{textColor:"color"})])(ap);function ip(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var sp=wp.i18n.__,lp=(wp.blocks.registerBlockType,wp.compose.compose),up=wp.element,cp=up.Component,dp=up.Fragment,pp=wp.blockEditor,mp=pp.RichText,fp=pp.withFontSizes,hp=pp.withColors,gp=function(e){p()(n,e);var t=ip(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.title,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,m=b()((e={"gb-pricing-table-title":!0},i()(e,c.class,c.class),i()(e,"has-text-color",p.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,p.class,p.class),e)),f={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(dp,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(op,this.props),React.createElement(mp,{tagName:"div",itemProp:"name",placeholder:sp("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({title:e})},style:f,className:m||void 0}))]}}]),n}(cp),_p=lp([fp("fontSize"),hp("backgroundColor",{textColor:"color"})])(gp),bp=wp.i18n.__,yp=wp.blocks.registerBlockType,vp=(wp.element.Component,wp.blockEditor),kp=vp.RichText,Mp=vp.getFontSizeClass,Lp=(vp.FontSizePicker,vp.withFontSizes,vp.getColorClassName);function Tp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}yp("genesis-blocks/gb-pricing-table-title",{title:bp("Product Title","genesis-blocks"),description:bp("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[bp("pricing table","genesis-blocks"),bp("title","genesis-blocks"),bp("shop","genesis-blocks")],attributes:{title:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:_p,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,m=n.paddingBottom,f=n.paddingLeft,h=Mp(a),g=Lp("color",l),_=Lp("background-color",s),y={fontSize:h?void 0:o,backgroundColor:_?void 0:u,color:g?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:f?f+"px":void 0},v=b()((t={"has-background":s||u,"gb-pricing-table-title":!0},i()(t,h,h),i()(t,g,g),i()(t,_,_),t));return React.createElement(kp.Content,{tagName:"div",itemProp:"name",value:r,style:y,className:v||void 0})}});var Yp=wp.i18n.__,Ep=(wp.blocks.registerBlockType,wp.compose.compose),Sp=wp.element,xp=Sp.Component,Dp=Sp.Fragment,Cp=wp.blockEditor,Rp=Cp.RichText,Op=Cp.withFontSizes,Pp=Cp.withColors,jp=function(e){p()(n,e);var t=Tp(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.subtitle,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,m=b()((e={"gb-pricing-table-subtitle":!0},i()(e,c.class,c.class),i()(e,"has-text-color",p.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,p.class,p.class),e)),f={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(Dp,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(op,this.props),React.createElement(Rp,{tagName:"div",placeholder:Yp("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({subtitle:e})},style:f,className:m||void 0}))]}}]),n}(xp),Hp=Ep([Op("fontSize"),Pp("backgroundColor",{textColor:"color"})])(jp),Ap=wp.i18n.__,zp=wp.blocks.registerBlockType,Fp=(wp.element.Component,wp.blockEditor),Np=Fp.RichText,Bp=Fp.getFontSizeClass,Ip=(Fp.FontSizePicker,Fp.withFontSizes,Fp.getColorClassName);function Wp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}zp("genesis-blocks/gb-pricing-table-subtitle",{title:Ap("Product Subtitle","genesis-blocks"),description:Ap("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ap("pricing table","genesis-blocks"),Ap("subtitle","genesis-blocks"),Ap("shop","genesis-blocks")],attributes:{subtitle:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Hp,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,m=n.paddingBottom,f=n.paddingLeft,h=Bp(a),g=Ip("color",l),_=Ip("background-color",s),y=b()((t={"has-background":s||u,"gb-pricing-table-subtitle":!0},i()(t,h,h),i()(t,g,g),i()(t,_,_),t)),v={fontSize:h?void 0:o,backgroundColor:_?void 0:u,color:g?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:f?f+"px":void 0};return React.createElement(Np.Content,{tagName:"div",value:r,className:y||void 0,style:v})}});var Up=wp.i18n.__,Vp=wp.element.Component,Jp=wp.compose.compose,Gp=wp.blockEditor,qp=Gp.InspectorControls,$p=(Gp.FontSizePicker,Gp.withFontSizes),Kp=Gp.withColors,Qp=(Gp.ContrastChecker,Gp.PanelColorSettings),Zp=wp.components,Xp=Zp.withFallbackStyles,em=Zp.PanelBody,tm=(Zp.ToggleControl,Zp.TextControl,Zp.RangeControl,Xp((function(e,t){var n=t.attributes.backgroundColor,r=e.querySelector('[contenteditable="true"]'),a=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!a?void 0:a.backgroundColor}}))),nm=function(e){p()(n,e);var t=Wp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=(t.buttonText,t.buttonUrl,t.buttonAlignment,t.buttonBackgroundColor),s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=t.buttonTarget,d=(e.isSelected,e.setAttributes),p=e.backgroundColor,m=e.setBackgroundColor;e.fallbackBackgroundColor;return React.createElement(qp,{key:"inspector"},React.createElement(em,{title:Up("Button Settings","genesis-blocks")},React.createElement(en,{buttonTarget:c,onChangeButtonTarget:function(e){return d({buttonTarget:!c})},buttonSize:l,onChangeButtonSize:function(e){return d({buttonSize:e})},buttonShape:u,onChangeButtonShape:function(e){return d({buttonShape:e})},buttonBackgroundColor:i,onChangeButtonColor:function(e){return d({buttonBackgroundColor:e})},buttonTextColor:s,onChangeButtonTextColor:function(e){return d({buttonTextColor:e})}})),React.createElement(em,{title:Up("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:a,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:o,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(Qp,{title:Up("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:p.color,onChange:m,label:Up("Background Color","genesis-blocks")}]}))}}]),n}(Vp),rm=Jp([tm,$p("fontSize"),Kp("backgroundColor")])(nm);function am(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var om=wp.i18n.__,im=(wp.blocks.registerBlockType,wp.compose.compose),sm=wp.element,lm=sm.Component,um=sm.Fragment,cm=wp.blockEditor,dm=cm.RichText,pm=cm.withFontSizes,mm=cm.withColors,fm=(cm.InnerBlocks,cm.URLInput),hm=wp.components,gm=hm.Button,_m=hm.Dashicon,bm=hm.Icon,ym=function(e){p()(n,e);var t=am(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.subtitle,t.paddingTop),r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=t.buttonText,s=t.buttonUrl,l=t.buttonAlignment,u=t.buttonBackgroundColor,c=t.buttonTextColor,d=t.buttonSize,p=t.buttonShape,m=(t.buttonTarget,e.isSelected),f=(e.className,e.setAttributes),h=e.backgroundColor,g=b()({"gb-pricing-table-button":!0}),_={backgroundColor:h.color,paddingTop:n?n+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:a?a+"px":void 0,paddingLeft:o?o+"px":void 0};return[React.createElement(um,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(rm,this.props),React.createElement("div",{className:g||void 0,style:_},React.createElement(ln,this.props,React.createElement(dm,{tagName:"span",placeholder:om("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:[],className:b()("gb-button",p,d),style:{color:c,backgroundColor:u},onChange:function(e){return f({buttonText:e})}})),m&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(l),onSubmit:function(e){return e.preventDefault()},style:{textAlign:l}},React.createElement(_m,{icon:"admin-links"}),React.createElement(fm,{className:"button-url",value:s,onChange:function(e){return f({buttonUrl:e})}}),React.createElement(gm,{label:om("Apply","genesis-blocks"),type:"submit"},React.createElement(bm,{icon:"editor-break"})))))]}}]),n}(lm),vm=im([pm("fontSize"),mm("backgroundColor",{textColor:"color"})])(ym),km=wp.i18n.__,Mm=wp.blocks.registerBlockType,Lm=(wp.element.Component,wp.blockEditor),wm=Lm.RichText,Tm=(Lm.getFontSizeClass,Lm.FontSizePicker,Lm.withFontSizes,Lm.getColorClassName);Mm("genesis-blocks/gb-pricing-table-button",{title:km("Product Button","genesis-blocks"),description:km("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[km("pricing table","genesis-blocks"),km("subtitle","genesis-blocks"),km("shop","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:vm,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,a=t.paddingTop,o=t.paddingRight,s=t.paddingBottom,l=t.paddingLeft,u=t.buttonText,c=t.buttonUrl,d=(t.buttonAlignment,t.buttonBackgroundColor),p=t.buttonTextColor,m=t.buttonSize,f=t.buttonShape,h=t.buttonTarget,g=Tm("background-color",n),_=b()(i()({"has-background":n||r,"gb-pricing-table-button":!0},g,g)),y={backgroundColor:g?void 0:r,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return React.createElement("div",{className:_||void 0,style:y},React.createElement(ln,e,u&&React.createElement("a",{href:c,target:h?"_blank":null,rel:h?"noopener noreferrer":null,className:b()("gb-button",f,m),style:{color:p,backgroundColor:d}},React.createElement(wm.Content,{value:u}))))}});var Ym=wp.i18n.__,Em=wp.element.Fragment,Sm=wp.components.RangeControl;function xm(e){var t=e.marginTop,n=e.marginTopLabel,r=e.marginTopMin,a=e.marginTopMax,o=e.marginEnableTop,i=e.onChangeMarginTop,s=void 0===i?function(){}:i,l=e.marginRight,u=e.marginRightLabel,c=e.marginRightMin,d=e.marginRightMax,p=e.marginEnableRight,m=e.onChangeMarginRight,f=void 0===m?function(){}:m,h=e.marginBottom,g=e.marginBottomLabel,_=e.marginBottomMin,b=e.marginBottomMax,y=e.marginEnableBottom,v=e.onChangeMarginBottom,k=void 0===v?function(){}:v,M=e.marginLeft,L=e.marginLeftLabel,w=e.marginLeftMin,T=e.marginLeftMax,Y=e.marginEnableLeft,E=e.onChangeMarginLeft,S=void 0===E?function(){}:E,x=e.marginVertical,D=e.marginVerticalLabel,C=e.marginEnableVertical,R=e.marginVerticalMin,O=e.marginVerticalMax,P=e.onChangeMarginVertical,j=void 0===P?function(){}:P,H=e.marginHorizontal,A=e.marginHorizontalLabel,z=e.marginEnableHorizontal,F=e.marginHorizontalMin,N=e.marginHorizontalMax,B=e.onChangeMarginHorizontal,I=void 0===B?function(){}:B;return React.createElement(Em,null,o&&React.createElement(Sm,{label:n||Ym("Margin Top","genesis-blocks"),value:t,min:r,max:a,onChange:s}),p&&React.createElement(Sm,{label:u||Ym("Margin Right","genesis-blocks"),value:l,min:c,max:d,onChange:f}),y&&React.createElement(Sm,{label:g||Ym("Margin Bottom","genesis-blocks"),value:h,min:_,max:b,onChange:k}),Y&&React.createElement(Sm,{label:L||Ym("Margin Left","genesis-blocks"),value:M,min:w,max:T,onChange:S}),C&&React.createElement(Sm,{label:D||Ym("Margin Vertical","genesis-blocks"),value:x,min:R,max:O,onChange:j}),z&&React.createElement(Sm,{label:A||Ym("Margin Horizontal","genesis-blocks"),value:H,min:F,max:N,onChange:I}))}function Dm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Cm=wp.i18n.__,Rm=wp.element.Component,Om=wp.compose.compose,Pm=wp.blockEditor,jm=Pm.InspectorControls,Hm=Pm.withColors,Am=Pm.ContrastChecker,zm=Pm.PanelColorSettings,Fm=wp.components,Nm=Fm.PanelBody,Bm=Fm.SelectControl,Im=Fm.TextControl,Wm=Fm.FormToggle,Um=(0,Fm.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=n.buttonTextColor,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:r||!l?void 0:l.backgroundColor,fallbackTextColor:a||!l?void 0:l.color,fallbackButtonBackgroundColor:o||!l?void 0:l.buttonBackgroundColor,fallbackButtonTextColor:i||!l?void 0:l.buttonTextColor}})),Vm=function(e){p()(n,e);var t=Dm(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"doubleOptInChange",value:function(e){this.props.doubleOptIn&&this.props.doubleOptIn(e.target.checked)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.backgroundColor,a=e.setBackgroundColor,o=e.fallbackBackgroundColor,i=e.textColor,s=e.fallbackTextColor,l=e.setTextColor,u=e.buttonBackgroundColor,c=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,p=e.fallbackButtonTextColor,m=e.setButtonBackgroundColor,f=e.setButtonTextColor,h={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:Cm("Select a list","genesis-blocks"),value:""}]}};return genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((function(e){return h.mailchimp.lists.push({label:e.name,value:e.id})})),React.createElement(jm,null,React.createElement(Nm,{title:Cm("Newsletter","genesis-blocks"),initialOpen:!t.mailingList},React.createElement(M,{id:"gb_newsletter_mailingList"},React.createElement(Bm,{label:Cm("Mailing List","genesis-blocks"),help:Cm("The list people will be subscribed to.","genesis-blocks"),options:h.mailchimp.lists,value:t.mailingList,onChange:function(e){return n({mailingList:e})}})),React.createElement(M,{id:"gb_newsletter_successMessage"},React.createElement(Im,{type:"string",label:Cm("Success Message","genesis-blocks"),help:Cm("The message shown when people successfully subscribe.","genesis-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),React.createElement(M,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(Wm,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"gb-newsletter-double-opt-in-toggle",checked:t.doubleOptIn,onChange:function(e){return n({doubleOptIn:e.target.checked})}}),React.createElement("label",{className:"gb-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},Cm("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},Cm("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(Nm,{title:Cm("General","genesis-blocks"),initialOpen:!!t.mailingList},React.createElement(M,{id:"gb_newsletter_containerPadding"},React.createElement(pc,{paddingEnable:!0,paddingTitle:Cm("Block Padding","genesis-blocks"),paddingHelp:Cm("Adjust the padding applied to the inside of the block.","genesis-blocks"),padding:t.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:function(e){return n({containerPadding:e})}})),React.createElement(M,{id:"gb_newsletter_containerMargin"},React.createElement(xm,{marginEnableTop:!0,marginTopLabel:Cm("Block Margin Top","genesis-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:Cm("Block Margin Bottom","genesis-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),React.createElement(en,{enableButtonTarget:!1,buttonSize:t.buttonSize,onChangeButtonSize:function(e){return n({buttonSize:e})},buttonShape:t.buttonShape,onChangeButtonShape:function(e){return n({buttonShape:e})},enableButtonBackgroundColor:!1,enableButtonTextColor:!1})),React.createElement(M,{id:"gb_newsletter_colorOptions"},React.createElement(zm,{title:Cm("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:a,label:Cm("Block Background Color","genesis-blocks")},{value:i.color,onChange:l,label:Cm("Block Text Color","genesis-blocks")},{value:u.color,onChange:m,label:Cm("Button Background Color","genesis-blocks")},{value:d.color,onChange:f,label:Cm("Button Text Color","genesis-blocks")}]},React.createElement(Am,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:s,fallbackBackgroundColor:o}),React.createElement(Am,{textColor:d.color,backgroundColor:u.color,fallbackButtonTextColor:p,fallbackButtonBackgroundColor:c}),React.createElement(Am,{textColor:u.color,backgroundColor:r.color,fallbackButtonBackgroundColor:c,fallbackBackgroundColor:o}))))}}]),n}(Rm),Jm=Om([Um,Hm("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Vm);function Gm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var qm=wp.element.Component,$m=(wp.blockEditor.getColorClassName,function(e){p()(n,e);var t=Gm(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n,r=this.props,a=r.attributes,o=r.backgroundColor,s=r.textColor;return t=a.customBackgroundColor?"gb-has-custom-background-color":a.backgroundColor?"has-"+a.backgroundColor+"-background-color":null,n=a.customTextColor?"gb-has-custom-text-color":a.textColor?"has-"+a.textColor+"-color":null,React.createElement("div",{style:{backgroundColor:o.color,padding:a.containerPadding?a.containerPadding:void 0,marginTop:a.containerMarginTop?a.containerMarginTop:void 0,marginBottom:a.containerMarginBottom?a.containerMarginBottom:void 0,color:s.color},className:b()([this.props.className],(e={"gb-block-newsletter":!0,"gb-form-styles":!0,"has-background":a.backgroundColor||a.customBackgroundColor},i()(e,t,t),i()(e,n,n),e))},this.props.children)}}]),n}(qm));function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xm=wp.i18n.__,ef=wp.compose,tf=ef.compose,nf=ef.withInstanceId,rf=wp.blockEditor,af=(rf.getColorClassName,rf.RichText),of=rf.withColors,sf=wp.element,lf=sf.Fragment,uf=sf.Component,cf=wp.components,df=cf.TextControl,pf=(0,cf.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=e.querySelector('[contenteditable="true"]'),s=i?getComputedStyle(i):null;return{fallbackBackgroundColor:r||!s?void 0:s.backgroundColor,fallbackTextColor:a||!s?void 0:s.color,fallbackButtonBackgroundColor:o||!s?void 0:s.buttonBackgroundColor}})),mf=function(e){p()(n,e);var t=Zm(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return c()(n,[{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.attributes,i=r.isSelected,s=r.setAttributes,l=r.buttonBackgroundColor,u=r.buttonTextColor,c=genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;return e=o.customButtonBackgroundColor?"gb-has-custom-background-color":o.buttonBackgroundColor?"has-"+o.buttonBackgroundColor+"-background-color":null,t=o.customButtonTextColor?"gb-has-custom-text-color":o.buttonTextColor?"has-"+o.buttonTextColor+"-color":null,[React.createElement(Jm,a()({key:"gb-newsletter-inspector-"+this.props.clientId},Qm({setAttributes:s},this.props))),React.createElement($m,a()({key:"gb-newsletter-container-"+this.props.clientId},this.props),!c&&React.createElement(lf,null,React.createElement("div",{className:"gb-newsletter-notice"},Xm("You must define your newsletter provider API keys to use this block.","genesis-blocks"),React.createElement("p",null,React.createElement("a",{href:genesis_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},Xm("Configure your settings","genesis-blocks"))))),c&&React.createElement(lf,null,React.createElement(af,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:o.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),React.createElement(df,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:b()("gb-block-button")},React.createElement(ln,this.props,React.createElement(af,{tagName:"span",placeholder:Xm("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o.buttonText,allowedFormats:[],className:b()("gb-button",o.buttonClass,o.buttonShape,o.buttonSize,e,t,{"has-background":o.buttonBackgroundColor||o.customButtonBackgroundColor,"has-text-color":o.buttonTextColor||o.customButtonTextColor}),style:{backgroundColor:l.color,color:u.color},onChange:function(e){return n.props.setAttributes({buttonText:e})}})),i&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o.buttonAlignment),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o.buttonAlignment}}))))]}}]),n}(uf),ff=tf([pf,of("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(nf(mf)),hf=(n(369),n(370),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-newsletter",{title:hf("Email newsletter","genesis-blocks"),description:hf("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[hf("Mailchimp","genesis-blocks"),hf("Subscribe","genesis-blocks"),hf("Newsletter","genesis-blocks")],edit:ff,gb_settings_data:{gb_newsletter_mailingList:{title:hf("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:hf("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:hf("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:hf("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:hf("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:hf("Color Options","genesis-blocks")}},save:function(){return null}});var gf=n(34),_f=n.n(gf);var bf=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"gb-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"gb-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"gb-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"gb-background-"+e.backgroundRepeat:null,e.hasParallax?"gb-has-parallax":null];var t},yf=function(e){return{backgroundImage:e.backgroundImgURL?"url(".concat(e.backgroundImgURL,")"):void 0,backgroundPosition:e.focalPoint?"".concat(100*e.focalPoint.x,"% ").concat(100*e.focalPoint.y,"%"):void 0}};function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mf=function(e){p()(n,e);var t=kf(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,t=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null;var r,a,o=b()([this.props.className,"gb-layout-columns-"+n.columns,n.layout].concat(_f()(bf(n)),[e,t,n.columnMaxWidth&&n.centerColumns?"gb-columns-center":null]),i()({},"align"+n.align,n.align));r=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},a=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null},yf(n));return React.createElement("div",{className:o||void 0,style:Object.assign(r,a,s)},this.props.children)}}]),n}(wp.element.Component),Lf={};Lf.oneEqual=React.createElement("svg",{className:"dashicon",height:"26",viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),Lf.twoEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),Lf.twoLeftWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),Lf.twoRightWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),Lf.threeEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),Lf.threeWideCenter=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Lf.threeWideLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Lf.threeWideRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),Lf.fourEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),Lf.fourLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Lf.fourRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),Lf.fiveEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Lf.sixEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),Lf.blockIcon=React.createElement("svg",{viewBox:"0 0 60 34",height:"34",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));var wf=Lf,Tf=wp.i18n.__,Yf={1:[{name:Tf("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:wf.oneEqual}],2:[{name:Tf("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:wf.twoEqual},{name:Tf("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:wf.twoLeftWide},{name:Tf("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:wf.twoRightWide}],3:[{name:Tf("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:wf.threeEqual},{name:Tf("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:wf.threeWideCenter},{name:Tf("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:wf.threeWideLeft},{name:Tf("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:wf.threeWideRight}],4:[{name:Tf("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:wf.fourEqual},{name:Tf("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:wf.fourLeft},{name:Tf("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:wf.fourRight}],5:[{name:Tf("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:wf.fiveEqual}],6:[{name:Tf("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:wf.sixEqual}]};function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var xf=wp.i18n.__,Df=wp.element,Cf=Df.Fragment,Rf=Df.Component,Of=wp.components,Pf=Of.PanelBody,jf=Of.RangeControl,Hf=Of.Button,Af=Of.ButtonGroup,zf=Of.FocalPointPicker,Ff=Of.Icon,Nf=Of.ToggleControl,Bf=Of.SelectControl,If=wp.blockEditor,Wf=If.MediaUpload,Uf=If.MediaUploadCheck,Vf=function(e){p()(n,e);var t=Sf(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,o=[{value:"no-repeat",label:xf("No Repeat","genesis-blocks")},{value:"repeat",label:xf("Repeat","genesis-blocks")},{value:"repeat-x",label:xf("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:xf("Repeat Vertically","genesis-blocks")}],s=[{value:"auto",label:xf("Auto","genesis-blocks")},{value:"cover",label:xf("Cover","genesis-blocks")},{value:"contain",label:xf("Contain","genesis-blocks")}];return"cover"===r.backgroundSize&&(e=xf("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","genesis-blocks")),"contain"===r.backgroundSize&&(e=xf("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===r.backgroundSize&&(e=xf("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(Cf,null,React.createElement(Pf,{title:xf("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(Uf,null,React.createElement(Wf,{onSelect:function(e){a({backgroundImgURL:e.url})},type:"image",value:r.backgroundImgURL,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Af,{className:"gb-background-button-group"},React.createElement(Hf,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:xf("Edit image","genesis-blocks"),onClick:t},React.createElement(Ff,{icon:"format-image"}),xf("Select Image","genesis-blocks")),r.backgroundImgURL&&React.createElement(Hf,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:xf("Remove Image","genesis-blocks"),onClick:function(){return a({backgroundImgURL:null})}},React.createElement(Ff,{icon:"dismiss"}),xf("Remove","genesis-blocks"))))}})),r.backgroundImgURL&&React.createElement(Cf,null,React.createElement(zf,{label:xf("Focal Point","genesis-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return a({focalPoint:e})}}),React.createElement(jf,{label:xf("Image Opacity","genesis-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),React.createElement(Nf,{label:xf("Fixed Background","genesis-blocks"),checked:r.hasParallax,onChange:function(){a(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasParallax:!r.hasParallax},r.hasParallax?{}:{focalPoint:void 0}))}}),React.createElement(Bf,{className:"gb-inspector-help-text",label:xf("Image Display","genesis-blocks"),value:r.backgroundSize,help:e,options:s,onChange:function(e){return t.props.setAttributes({backgroundSize:e})}}),"cover"!==r.backgroundSize&&React.createElement(Bf,{label:xf("Image Repeat","genesis-blocks"),value:r.backgroundRepeat,options:o,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}]),n}(Rf);function Jf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Gf=wp.i18n.__,qf=wp.element,$f=qf.Component,Kf=qf.Fragment,Qf=wp.blockEditor,Zf=Qf.InspectorControls,Xf=Qf.PanelColorSettings,eh=Qf.ContrastChecker,th=wp.components,nh=th.PanelBody,rh=th.RangeControl,ah=th.ButtonGroup,oh=th.Button,ih=th.Tooltip,sh=th.ToggleControl,lh=th.SelectControl,uh=function(e){p()(n,e);var t=Jf(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,a=t.backgroundColor,o=t.setBackgroundColor,i=t.textColor,s=t.setTextColor,l=1;n.columns&&(l=parseInt(n.columns.toString().split("-")));var u=[{value:"px",label:Gf("Pixel (px)","genesis-blocks")},{value:"%",label:Gf("Percent (%)","genesis-blocks")},{value:"em",label:Gf("Em (em)","genesis-blocks")}];return React.createElement(Zf,{key:"inspector"},n.layout&&React.createElement(nh,{title:Gf("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(M,{id:"gb_column_columns"},React.createElement(rh,{label:Gf("Column Count","genesis-blocks"),help:Gf("Note: Changing the column count after you've added content to the column can cause loss of content.","genesis-blocks"),value:n.columns,onChange:function(t){return e.props.setAttributes({columns:t,layout:"gb-"+t+"-col-equal"})},min:1,max:6,step:1})),React.createElement("hr",null),(2===n.columns||3===n.columns||4===n.columns)&&React.createElement(Kf,null,React.createElement(M,{id:"gb_column_columnLayouts"},React.createElement("p",null,Gf("Column Layout","genesis-blocks")),React.createElement(ah,{"aria-label":Gf("Column Layout","genesis-blocks")},ho()(Yf[l],(function(t){var n=t.name,a=t.key,o=t.icon;t.col;return React.createElement(ih,{text:n,key:a},React.createElement(oh,{key:a,className:"gb-column-selector-button",isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o))}))),React.createElement("p",null,React.createElement("i",null,Gf("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(M,{id:"gb_column_columnsGap"},React.createElement(rh,{label:Gf("Column Gap","genesis-blocks"),help:Gf("Adjust the spacing between columns.","genesis-blocks"),value:n.columnsGap,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:10,step:1})),React.createElement("hr",null),React.createElement(M,{id:"gb_column_columnMaxWidth"},React.createElement(rh,{label:Gf("Column Inner Max Width (px)"),help:Gf("Adjust the width of the content inside the container wrapper.","genesis-blocks"),value:n.columnMaxWidth,onChange:function(t){return e.props.setAttributes({columnMaxWidth:t})},min:0,max:2e3,step:1})),0<n.columnMaxWidth&&React.createElement(M,{id:"gb_column_centerColumns"},React.createElement(sh,{label:Gf("Center Columns In Container","genesis-blocks"),help:Gf("Center the columns in the container when max-width is used.","genesis-blocks"),checked:n.centerColumns,onChange:function(){return e.props.setAttributes({centerColumns:!n.centerColumns})}})),React.createElement("hr",null),React.createElement(M,{id:"gb_column_responsiveToggle"},React.createElement(sh,{label:Gf("Responsive Columns","genesis-blocks"),help:Gf("Columns will be adjusted to fit on tablets and mobile devices.","genesis-blocks"),checked:n.responsiveToggle,onChange:function(){return e.props.setAttributes({responsiveToggle:!n.responsiveToggle})}}))),React.createElement(M,{id:"gb_column_marginPadding"},React.createElement(nh,{title:Gf("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(lh,{label:Gf("Margin Unit","genesis-blocks"),help:Gf("Choose between pixel, percent, or em units.","genesis-blocks"),options:u,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(sh,{label:Gf("Sync Margin","genesis-blocks"),help:Gf("Top and bottom margins will have the same value.","genesis-blocks"),checked:n.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!n.marginSync})}}),n.marginSync?React.createElement(xm,{marginEnableVertical:!0,marginVerticalLabel:Gf("Margin Top/Bottom","genesis-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):React.createElement(xm,{marginEnableTop:!0,marginTop:n.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return r({marginTop:e})},marginEnableBottom:!0,marginBottom:n.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return r({marginBottom:e})}}),React.createElement("hr",null),React.createElement(lh,{label:Gf("Padding Unit","genesis-blocks"),help:Gf("Choose between pixel, percent, or em units.","genesis-blocks"),options:u,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(sh,{label:Gf("Sync Padding","genesis-blocks"),help:Gf("Padding on all sides will have the same value.","genesis-blocks"),checked:n.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!n.paddingSync})}}),n.paddingSync?React.createElement(pc,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):React.createElement(pc,{paddingEnableTop:!0,paddingTop:n.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return r({paddingTop:e})},paddingEnableRight:!0,paddingRight:n.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return r({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:n.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return r({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:n.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return r({paddingLeft:e})}}))),React.createElement(M,{id:"gb_column_colorSettings"},React.createElement(Xf,{title:Gf("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a.color,onChange:o,label:Gf("Background Color","genesis-blocks")},{value:i.color,onChange:s,label:Gf("Text Color","genesis-blocks")}]},React.createElement(eh,{textColor:i.color,backgroundColor:a.color}))),React.createElement(M,{id:"gb_column_backgroundImagePanel"},React.createElement(Vf,this.props)))}}]),n}($f);function ch(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var dh=wp.i18n.__,ph=wp.element,mh=ph.Component,fh=ph.Fragment,hh=wp.compose.compose,gh=wp.data.dispatch,_h=wp.blockEditor,bh=_h.BlockControls,yh=_h.BlockAlignmentToolbar,vh=_h.InnerBlocks,kh=_h.withColors,Mh=wp.components,Lh=Mh.Placeholder,wh=Mh.ButtonGroup,Th=Mh.Tooltip,Yh=Mh.Button,Eh=["genesis-blocks/gb-column"],Sh=Lu()((function(e){return Tu()(e,(function(){return["genesis-blocks/gb-column"]}))})),xh=function(e){p()(n,e);var t=ch(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={selectLayout:!0},r}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&gh("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=1;n.columns&&(o=parseInt(n.columns.toString().split("-")));var i=[{name:dh("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:wf.oneEqual},{name:dh("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:wf.twoEqual},{name:dh("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:wf.threeEqual},{name:dh("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:wf.fourEqual},{name:dh("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:wf.fiveEqual},{name:dh("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:wf.sixEqual}];return!n.layout&&this.state.selectLayout?[React.createElement(Lh,{key:"placeholder",icon:"editor-table",label:n.columns?dh("Column Layout","genesis-blocks"):dh("Column Number","genesis-blocks"),instructions:n.columns?dh("Select a layout for this column.","genesis-blocks"):dh("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},n.columns?React.createElement(fh,null,React.createElement(wh,{"aria-label":dh("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},ho()(Yf[o],(function(t){var n=t.name,a=t.key,o=t.icon;return React.createElement(Th,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(Yh,{key:a,className:b()("gb-column-selector-button",a),isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o)))}))),React.createElement(Yh,{className:"gb-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},dh("Return to Column Selection","genesis-blocks"))):React.createElement(wh,{"aria-label":dh("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},ho()(i,(function(t){var n=t.name,a=t.key,o=t.icon,i=t.columns;return React.createElement(Th,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(Yh,{className:b()("gb-column-selector-button","gb-select-"+a),isSmall:!0,onClick:function(){r({columns:i,layout:1===i||5===i||6===i?a:null}),1===i&&e.setState({selectLayout:!1})}},o)))}))))]:[React.createElement(bh,{key:"controls"},React.createElement(yh,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),React.createElement(uh,a()({},this.props,{key:"inspector"})),React.createElement(Mf,a()({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),React.createElement("div",{className:b()("gb-layout-column-wrap-admin","gb-block-layout-column-gap-"+n.columnsGap,n.responsiveToggle?"gb-is-responsive-column":null),style:{maxWidth:n.columnMaxWidth?n.columnMaxWidth:null}},React.createElement(vh,{template:Sh(n.columns),templateLock:"all",allowedBlocks:Eh})))]}}]),n}(mh),Dh=hh([kh("backgroundColor",{textColor:"color"})])(xh);function Ch(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Rh=wp.element.Component,Oh=wp.blockEditor.InnerBlocks,Ph=function(e){p()(n,e);var t=Ch(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=b()(["gb-layout-column-wrap","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null]);return React.createElement(Mf,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(Oh.Content,null)))}}]),n}(Rh),jh={backgroundImgURL:{type:"string"},backgroundDimRatio:{type:"number",default:100},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundSize:{type:"string",default:"cover"},hasParallax:{type:"boolean",default:!1},focalPoint:{type:"object"}};function Hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hh(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zh=wp.i18n.__;function Fh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-columns",{title:zh("Advanced Columns","genesis-blocks"),description:zh("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[zh("column","genesis-blocks"),zh("grid","genesis-blocks"),zh("row","genesis-blocks")],attributes:Ah(Ah({},jh),{},{columns:{type:"number"},layout:{type:"string"},columnsGap:{type:"number",default:2},align:{type:"string"},responsiveToggle:{type:"boolean",default:!0},marginSync:{type:"boolean",default:!1},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},marginUnit:{type:"string",default:"px"},paddingSync:{type:"boolean",default:!1},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingUnit:{type:"string",default:"px"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},columnMaxWidth:{type:"number"},centerColumns:{type:"boolean",default:!0}}),gb_settings_data:{gb_column_columns:{title:zh("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:zh("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:zh("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:zh("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:zh("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:zh("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:zh("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:zh("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:zh("Background Settings","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:function(e){return React.createElement(Dh,e)},save:function(e){return React.createElement(Ph,e)}});var Nh=wp.i18n.__,Bh=wp.element.Component,Ih=wp.compose.compose,Wh=wp.blockEditor,Uh=Wh.InspectorControls,Vh=Wh.PanelColorSettings,Jh=Wh.withColors,Gh=Wh.ContrastChecker,qh=wp.components,$h=qh.PanelBody,Kh=qh.ToggleControl,Qh=qh.SelectControl,Zh=function(e){p()(n,e);var t=Fh(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.backgroundColor,r=t.setBackgroundColor,a=t.textColor,o=t.setTextColor,i=t.attributes,s=t.setAttributes,l=[{value:"px",label:Nh("Pixel (px)","genesis-blocks")},{value:"%",label:Nh("Percent (%)","genesis-blocks")},{value:"em",label:Nh("Em (em)","genesis-blocks")}];return React.createElement(Uh,{key:"inspector"},React.createElement(M,{id:"gb_column_inner_marginPadding"},React.createElement($h,{title:Nh("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Qh,{label:Nh("Margin Unit","genesis-blocks"),help:Nh("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Kh,{label:Nh("Sync Margin","genesis-blocks"),help:Nh("Top and bottom margins will have the same value.","genesis-blocks"),checked:i.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!i.marginSync})}}),i.marginSync?React.createElement(xm,{marginEnableVertical:!0,marginVerticalLabel:Nh("Margin Top/Bottom","genesis-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return s({margin:e})}}):React.createElement(xm,{marginEnableTop:!0,marginTop:i.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return s({marginTop:e})},marginEnableBottom:!0,marginBottom:i.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return s({marginBottom:e})}}),React.createElement("hr",null),React.createElement(Qh,{label:Nh("Padding Unit","genesis-blocks"),help:Nh("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Kh,{label:Nh("Sync Padding","genesis-blocks"),help:Nh("Padding on all sides will have the same value.","genesis-blocks"),checked:i.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!i.paddingSync})}}),i.paddingSync?React.createElement(pc,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return s({padding:e})}}):React.createElement(pc,{paddingEnableTop:!0,paddingTop:i.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:i.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:i.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return s({paddingLeft:e})}}))),React.createElement(M,{id:"gb_column_inner_colorSettings"},React.createElement(Vh,{title:Nh("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:Nh("Background Color","genesis-blocks")},{value:a.color,onChange:o,label:Nh("Text Color","genesis-blocks")}]},React.createElement(Gh,{textColor:a.color,backgroundColor:n.color}))),React.createElement(M,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Vf,this.props)))}}]),n}(Bh),Xh=Ih([Jh("backgroundColor",{textColor:"color"})])(Zh);function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ng=function(e){p()(n,e);var t=tg(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eg(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null},yf(n));return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()(this.props.className,"gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b.a.apply(void 0,["gb-block-layout-column-inner",r,a].concat(_f()(bf(n)))),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function rg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ag=wp.i18n.__,og=wp.compose.compose,ig=wp.element.Component,sg=wp.components.Toolbar,lg=wp.blockEditor,ug=lg.AlignmentToolbar,cg=lg.BlockControls,dg=lg.InnerBlocks,pg=lg.withColors,mg=function(e){p()(n,e);var t=rg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:ag("Vertical Align Top","genesis-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:ag("Vertical Align Middle","genesis-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:ag("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[React.createElement(cg,{key:"controls"},React.createElement(ug,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),React.createElement(sg,{controls:r})),React.createElement(Xh,a()({},this.props,{key:"inspector"})),React.createElement(ng,a()({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(dg,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}]),n}(ig),fg=og([pg("backgroundColor",{textColor:"color"})])(mg);function hg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var gg=wp.element.Component,_g=wp.blockEditor.InnerBlocks,bg=function(e){p()(n,e);var t=hg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(ng,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(_g.Content,null))}}]),n}(gg);function yg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var vg=function(e){p()(n,e);var t=yg(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,o={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null};return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()("gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b()("gb-block-layout-column-inner",r,a),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function kg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mg=wp.element.Component,Lg=wp.blockEditor.InnerBlocks,wg=function(e){p()(n,e);var t=kg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(vg,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Lg.Content,null))}}]),n}(Mg),Tg=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},save:function(e){return React.createElement(wg,e)}}];n(371),n(372);function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sg=wp.i18n.__;(0,wp.blocks.registerBlockType)("genesis-blocks/gb-column",{title:Sg("Column","genesis-blocks"),description:Sg("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[Sg("column","genesis-blocks"),Sg("layout","genesis-blocks"),Sg("row","genesis-blocks")],attributes:Eg(Eg({},jh),{},{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}}),gb_settings_data:{gb_column_inner_marginPadding:{title:Sg("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:Sg("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:Sg("Background Image","genesis-blocks")}},edit:function(e){return React.createElement(fg,e)},save:function(e){return React.createElement(bg,e)},deprecated:Tg});var xg=wp.compose.createHigherOrderComponent((function(e){return function(t){return"genesis-blocks/gb-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?React.createElement(e,a()({},t,{className:"gb-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):React.createElement(e,t)}}),"withClientIdClassName");function Dg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",xg);var Cg=wp.i18n.__,Rg=wp.element,Og=Rg.Component,Pg=Rg.Fragment,jg=wp.components,Hg=jg.Button,Ag=jg.Dashicon,zg=jg.Tooltip,Fg=function(e){p()(n,e);var t=Dg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return React.createElement(Pg,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(Hg,{key:this.props.itemKey,className:"gb-layout-insert-button",isSmall:!0,onClick:function(){e.props.import(e.props.content,e.props.clientId)}},React.createElement("img",{src:this.props.image,alt:this.props.name})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},this.props.name,React.createElement(zg,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?Cg("Remove from Favorites","genesis-blocks"):Cg("Add to Favorites","genesis-blocks")},React.createElement(Hg,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},React.createElement(Ag,{icon:"heart",className:b()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}]),n}(Og);function Ng(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Bg=wp.i18n.__,Ig=wp.url.addQueryArgs,Wg=wp.element,Ug=Wg.Component,Vg=Wg.Fragment,Jg=function(e){p()(n,e);var t=Ng(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return React.createElement(Vg,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:Ig("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},Bg("Edit","genesis-blocks"))))))}}]),n}(Ug),Gg=wp.blocks.rawHandler;function qg(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,Gg({HTML:e,mode:"BLOCKS"}))}var $g=n(51),Kg=n.n($g),Qg=wp.element.useState;var Zg=wp.i18n.__,Xg=wp.components.Button;function e_(e){return React.createElement(React.Fragment,null,React.createElement("div",{className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(Xg,{className:"gb-layout-insert-button gb-layout-collection-button",isSmall:!0,onClick:function(){e.collectionsView.setCurrentView("collection"),e.collectionsView.setCurrentCollection(e.collectionSlug)}},React.createElement("div",{className:"gb-layout-collection-cover"},React.createElement("div",{className:"gb-layout-collection-label"},e.context.collections[e.collectionSlug].label)),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},Zg("Browse","genesis-blocks"))))))))}var t_=wp.i18n.__,n_=wp.components.ButtonGroup;function r_(e){var t,n,r,o,i,s,l,u=(n=Qg((t={view:"collections",collection:null}).view),r=Kg()(n,2),o=r[0],i=r[1],s=Qg(t.collection),l=Kg()(s,2),{currentView:o,setCurrentView:i,currentCollection:l[0],setCurrentCollection:l[1]});function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"layouts",n=[];for(var r in e.context[t]){var a=e.context[t][r];a.hasOwnProperty("collection")&&u.currentCollection===a.collection.slug&&n.push(React.createElement(Fg,{key:a.key,itemKey:a.key,name:a.name,image:a.image,import:qg,content:a.content,context:e.context,clientId:e.clientId}))}return 0===n.length?"":React.createElement(React.Fragment,null,React.createElement("h3",{className:"gb-collection-type-title"},"layouts"===t?t_("Page Layouts","genesis-blocks"):"sections"===t?t_("Page Sections","genesis-blocks"):void 0),React.createElement(n_,{className:"gb-layout-choices","aria-label":t_("Layout Options in this Collection","genesis-blocks")},n))}return React.createElement("div",{className:"gb-collections"},React.createElement("div",{className:"gb-collections-header"},React.createElement("div",{className:"gb-collections-header-left"},"collection"!==u.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:function(){u.setCurrentView("collections")}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),t_("View All Collections ","genesis-blocks"))),"collections"===u.currentView?React.createElement("h2",{className:"gb-collection-title"},t_("Collections ","genesis-blocks")):"collection"===u.currentView?React.createElement("h2",{className:"gb-collection-title"},t_("Browsing ","genesis-blocks")+e.context.collections[u.currentCollection].label):void 0),React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://developer.wpengine.com/genesis-blocks/layouts-block/#collections",tabIndex:"0",className:"gb-collections-link"},React.createElement("span",{className:"dashicons dashicons-info"}),t_("Learn about Collections","genesis-blocks"))),React.createElement("div",{className:"gb-collections-body"},function(t){if("collections"!==u.currentView)return"";var n=[];for(var r in t)n.push(React.createElement(e_,a()({key:r,collectionSlug:r,collectionsView:u},e)));return React.createElement(n_,{className:"gb-layout-choices","aria-label":t_("Collections Available","genesis-blocks")},n)}(e.context.collections),"collection"!==u.currentView?"":React.createElement(React.Fragment,null,c("sections"),c("layouts"))))}function a_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var o_=wp.compose.compose,i_=wp.blocks.rawHandler,s_=wp.data,l_=s_.withSelect,u_=s_.withDispatch,c_=wp.element,d_=c_.Component,p_=c_.Fragment,m_=function(e){p()(n,e);var t=a_(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"layoutTabContent",value:function(){return"gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(Jg,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(r_,this.props):React.createElement(Fg,this.props)}},{key:"render",value:function(){return React.createElement(p_,null,this.layoutTabContent())}}]),n}(d_),f_=o_(l_((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,a=e("core/editor").canUserUseUnfilteredHTML;return{block:r(n),canUserUseUnfilteredHTML:a()}})),u_((function(e,t){var n=t.block,r=t.canUserUseUnfilteredHTML;return{import:function(t){return e("core/block-editor").replaceBlocks(n.clientId,i_({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:r}))}}})))(m_),h_=n(16),g_=n.n(h_),__=n(35),b_=n.n(__),y_=n(46),v_=n.n(y_);function k_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var M_=wp.apiFetch,L_=Object(Nn.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),w_=function(e){p()(r,e);var t,n=k_(r);function r(){var e;l()(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),i()(v_()(e),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),e}return c()(r,[{key:"getFavoriteKeys",value:function(){return M_({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"getFavorites",value:function(){var e=this;return M_({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((function(t){var n=[];return Object.values(e.state.all).forEach((function(e){t.includes(e.key)&&n.push(e)})),n})).catch((function(e){return console.error(e)}))}},{key:"addFavorite",value:function(e){return M_({path:"/genesisblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"removeFavorite",value:function(e){return M_({path:"/genesisblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"componentDidMount",value:(t=b_()(g_.a.mark((function e(){var t,n=this;return g_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getFavoriteKeys();case 2:t=e.sent,wp.apiFetch({method:"GET",path:"/genesisblocks/v1/layouts/all?filter=allowed"}).then(function(){var e=b_()(g_.a.mark((function e(r){var a,o,i,s,l;return g_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],o=[],i=[],s=[],l=[],Object.values(r).forEach((function(e){"layout"===e.type&&a.push(e),"section"===e.type&&o.push(e),"wp_block"===e.type&&i.push(e),e.hasOwnProperty("collection")&&(l.hasOwnProperty(e.collection.slug)||(l[e.collection.slug]=[],e.collection.image=e.image,l[e.collection.slug]=e.collection)),t.includes(e.key)&&s.push(e)})),n.setState({all:r,layouts:a,sections:o,favorites:s,favoriteKeys:t,reusableBlocks:i,collections:l});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e,t=this;return this.state.all?Bn.a.createElement(L_.Provider,{value:{favorites:this.state.favorites,favoriteKeys:this.state.favoriteKeys,layouts:this.state.layouts,sections:this.state.sections,all:this.state.all,reusableBlocks:this.state.reusableBlocks,collections:this.state.collections,toggleFavorite:(e=b_()(g_.a.mark((function e(n){var r,a;return g_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFavoriteKeys();case 2:if(!(r=e.sent).includes(n)){e.next=9;break}return e.next=6,t.removeFavorite(n);case 6:r=e.sent,e.next=12;break;case 9:return e.next=11,t.addFavorite(n);case 11:r=e.sent;case 12:return e.next=14,t.getFavorites();case 14:return a=e.sent,t.setState({favorites:a,favoriteKeys:r}),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}},this.props.children):null}}]),r}(Nn.Component);function T_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Y_=wp.i18n.__,E_=wp.url.addQueryArgs,S_=wp.element,x_=S_.Component,D_=S_.Fragment,C_=wp.components,R_=C_.ButtonGroup,O_=C_.TextControl,P_=C_.SelectControl,j_=function(e){p()(n,e);var t=T_(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return c()(n,[{key:"getLayoutArray",value:function(){var e=[];switch(this.props.currentTab){case"gb-layout-tab-layouts":e=this.props.context.layouts;break;case"gb-layout-tab-sections":e=this.props.context.sections;break;case"gb-layout-tab-favorites":e=this.props.context.favorites;break;case"gb-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks;break;case"gb-layout-tab-collections":e=this.props.context.collections}return e}},{key:"render",value:function(){var e=this,t=this.getLayoutArray(),n=["all"];if("gb-layout-tab-collections"!==this.props.currentTab)for(var r=0;r<t.length;r++)for(var o=0;o<t[r].category.length;o++)n.includes(t[r].category[o])||n.push(t[r].category[o]);var i=n.map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}})),s=this.props.data;return"gb-layout-tab-collections"===this.props.currentTab?React.createElement(r_,a()({key:this.props.data.key},this.props)):React.createElement(D_,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(D_,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(P_,{key:"layout-library-select-categories-"+this.props.clientId,label:Y_("Layout Categories","genesis-blocks"),value:this.state.category,options:i,onChange:function(t){return e.setState({category:t})}}),React.createElement(O_,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:Y_("Search Layouts","genesis-blocks"),onChange:function(t){return e.setState({search:t})}}))):React.createElement(D_,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,Y_("Reusable Blocks","genesis-blocks")),React.createElement("div",{className:"gb-layout-modal-header-reusable-actions"},React.createElement("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:E_("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},Y_("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(L_.Consumer,null,(function(t){return React.createElement(R_,{key:"layout-library-context-button-group-"+e.props.clientId,className:b()("gb-layout-choices","current-tab-"+e.props.currentTab,"full"===e.state.activeView?"gb-layout-view-full":null),"aria-label":Y_("Layout Options","genesis-blocks")},ho()(s,(function(n){var r=n.name,a=n.key,o=n.image,i=n.content,s=n.category,l=n.keywords;if(("all"===e.state.category||s.includes(e.state.category))&&(!e.state.search||l&&l.some((function(t){return t.toLowerCase().includes(e.state.search.toLowerCase())}))))return React.createElement(f_,{key:"layout-library-item-"+a,name:r,itemKey:a,image:o,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}]),n}(x_);function H_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var A_=wp.i18n.__,z_=wp.element,F_=z_.Component,N_=z_.Fragment,B_=wp.components,I_=B_.Button,W_=B_.Dashicon,U_=B_.Modal,V_=B_.TabPanel,J_=function(e){p()(n,e);var t=H_(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={currentTab:"gb-layout-tab-sections"},e}return c()(n,[{key:"componentDidMount",value:function(){this.setState({modalOpen:!0})}},{key:"render",value:function(){var e=this,t=[];return this.props.context.sections.length>0&&t.push({name:"gb-layout-tab-sections",title:A_("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),this.props.context.layouts.length>0&&t.push({name:"gb-layout-tab-layouts",title:A_("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),Object.keys(this.props.context.collections).length>0&&t.push({name:"gb-layout-tab-collections",title:A_("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),t.push({name:"gb-layout-tab-favorites",title:A_("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),this.props.context.reusableBlocks.length&&t.push({name:"gb-layout-tab-reusable-blocks",title:A_("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(N_,{key:"layout-modal-fragment-"+this.props.clientId},React.createElement(I_,{key:"layout-modal-library-button-"+this.props.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:function(){return e.setState({modalOpen:!0})}},A_("Layout Library","genesis-blocks")),this.state.modalOpen?React.createElement(U_,{key:"layout-modal-modal-component-"+this.props.clientId,className:"gb-layout-modal",title:A_("Layout Selector","genesis-blocks"),onRequestClose:function(){return e.setState({modalOpen:!1,currentTab:null})}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement(W_,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},A_("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"},A_("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(W_,{icon:"admin-comments"})," ",A_("Send Feedback","genesis-blocks"))),React.createElement(V_,{key:"layout-modal-tabpanel-"+this.props.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:function(t){return e.setState({currentTab:t})},tabs:t},(function(t){var n=A_("Default tab content","genesis-blocks");if(t.name){if("gb-layout-tab-sections"===t.name)return[React.createElement(j_,{key:"layout-library-sections-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.sections,context:e.props.context})];if("gb-layout-tab-layouts"===t.name)return[React.createElement(j_,{key:"layout-library-layouts-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.layouts,context:e.props.context})];if("gb-layout-tab-collections"===t.name)return[React.createElement(j_,{key:"layout-library-collections-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.collections,context:e.props.context})];if("gb-layout-tab-favorites"===t.name)return[React.createElement(j_,{key:"layout-library-favorites-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.favorites,context:e.props.context})];if("gb-layout-tab-reusable-blocks"===t.name)return[React.createElement(j_,{key:"layout-library-reusable-blocks-"+e.props.clientId,clientId:e.props.clientId,currentTab:e.state.currentTab,data:e.props.context.reusableBlocks,context:e.props.context})]}return React.createElement("div",null,n)}))):null)}}]),n}(F_);function G_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var q_=wp.i18n.__,$_=wp.components.Placeholder,K_=wp.element,Q_=K_.Component,Z_=K_.Fragment,X_=wp.blockEditor,eb=X_.BlockControls,tb=X_.BlockAlignmentToolbar,nb=function(e){p()(n,e);var t=G_(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[React.createElement(Z_,{key:this.props.clientId},React.createElement(eb,{key:"controls"},React.createElement(tb,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),React.createElement($_,{key:"placeholder",label:q_("Layout Selector","genesis-blocks"),instructions:q_("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(L_.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return React.createElement(J_,{clientId:r,context:e})}))))]}}]),n}(Q_),rb=(n(373),n(374),wp.i18n.__);function ab(){var e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-layouts",{title:rb("Layouts","genesis-blocks"),description:rb("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[rb("layout","genesis-blocks"),rb("column","genesis-blocks"),rb("section","genesis-blocks")],edit:function(e){return React.createElement(w_,null,React.createElement(nb,e))},save:function(){return null}}),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector(".edit-post-header-toolbar");if(!e)return;var t=document.createElement("div"),n='<div class="gb-toolbar-insert-layout">';n+='<button id="gbLayoutInsertButton" class="components-button components-icon-button" aria-label="'.concat(rb("Insert Layout","genesis-blocks"),'"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ').concat(rb("Layouts","genesis-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t),document.getElementById("gbLayoutInsertButton").addEventListener("click",ab)}));n(375),n(376)},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]);
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=319)}([function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},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}},function(e,t,n){var r=n(211);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)}},function(e,t,n){var r=n(212),a=n(47);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2017 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)&&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 u(e){return void 0===e}function c(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 p(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function m(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 f(e,t,n,r){return Tt(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 _(e){var t=f(NaN);return null!=e?m(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 v(e,t){var n,r,a;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=h(t)),u(t._locale)||(e._locale=t._locale),b.length>0)for(n=0;n<b.length;n++)u(a=t[r=b[n]])||(e[r]=a);return e}function k(e){v(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 M(e){return e instanceof k||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 m((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 T,Y={};function E(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),Y[e]||(L(t),Y[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var n,r=m({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},m(r[n],e[n]),m(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]=m({},r[n]));return r}function D(e){null!=e&&this.set(e)}function C(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,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var R=/(\[[^\[]*\])|(\\)?([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,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},j={};function H(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(j[e]=a),t&&(j[t[0]]=function(){return C(a.apply(this,arguments),t[1],t[2])}),n&&(j[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function A(e,t){return e.isValid()?(t=z(t,e.localeData()),P[t]=P[t]||function(e){var t,n,r,a=e.match(R);for(t=0,n=a.length;t<n;t++)j[a[t]]?a[t]=j[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+=S(a[r])?a[r].call(t,e):a[r];return o}}(t),P[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,n-=1;return e}var F={};function N(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function B(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function I(e){var t,n,r={};for(n in e)s(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var W={};function U(e,t){W[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(),Me(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Q,Z=/\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}/,ue=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,me=/[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 fe(e,t,n){Q[e]=S(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return s(Q,e)?Q[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,"\\$&")}Q={};var _e,be={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)be[e[n]]=r}function ve(e,t){ye(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function ke(e,t,n){null!=t&&s(be,e)&&be[e](t,n._a,n,e)}function Me(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}_e=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},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),N("month","M"),U("month",8),fe("M",re),fe("MM",re,X),fe("MMM",(function(e,t){return t.monthsShortRegex(e)})),fe("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("_"),Te=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ye=me,Ee=me;function Se(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=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=_e.call(this._shortMonthsParse,i))?a:null:-1!==(a=_e.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=_e.call(this._shortMonthsParse,i))||-1!==(a=_e.call(this._longMonthsParse,i))?a:null:-1!==(a=_e.call(this._longMonthsParse,i))||-1!==(a=_e.call(this._shortMonthsParse,i))?a:null}function xe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Me(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function De(e){return null!=e?(xe(this,e),a.updateOffset(this,!0),this):$(this,"Month")}function Ce(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=f([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 Re(e){return V(e)?366:365}H("Y",0,0,(function(){var e=this.year();return e<=9999?C(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),N("year","y"),U("year",1),fe("Y",ce),fe("YY",re,X),fe("YYYY",se,te),fe("YYYYY",le,ne),fe("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 Oe=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 je(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 He(e,t,n){var r=7+t-n;return-(7+je(e,0,r).getUTCDay()-t)%7+r-1}function Ae(e,t,n,r,a){var o,i,s=1+7*(t-1)+(7+n-r)%7+He(e,r,a);return s<=0?i=Re(o=e-1)+s:s>Re(e)?(o=e+1,i=s-Re(e)):(o=e,i=s),{year:o,dayOfYear:i}}function ze(e,t,n){var r,a,o=He(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?r=i+Fe(a=e.year()-1,t,n):i>Fe(e.year(),t,n)?(r=i-Fe(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function Fe(e,t,n){var r=He(e,t,n),a=He(e+1,t,n);return(Re(e)-r+a)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),U("week",5),U("isoWeek",5),fe("w",re),fe("ww",re,X),fe("W",re),fe("WW",re,X),ve(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=G(e)})),H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),fe("d",re),fe("e",re),fe("E",re),fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),fe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["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})),ve(["d","e","E"],(function(e,t,n,r){t[r]=G(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=me,Ve=me,Je=me;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=f([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=_e.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=_e.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=_e.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=_e.call(this._weekdaysParse,i))||-1!==(a=_e.call(this._shortWeekdaysParse,i))||-1!==(a=_e.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=_e.call(this._shortWeekdaysParse,i))||-1!==(a=_e.call(this._weekdaysParse,i))||-1!==(a=_e.call(this._minWeekdaysParse,i))?a:null:-1!==(a=_e.call(this._minWeekdaysParse,i))||-1!==(a=_e.call(this._weekdaysParse,i))||-1!==(a=_e.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=[],u=[];for(t=0;t<7;t++)n=f([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),u.push(r),u.push(a),u.push(o);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.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){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,$e),H("k",["kk",2],0,(function(){return this.hours()||24})),H("hmm",0,0,(function(){return""+$e.apply(this)+C(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+$e.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+C(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),N("hour","h"),U("hour",13),fe("a",Qe),fe("A",Qe),fe("H",re),fe("h",re),fe("k",re),fe("HH",re,X),fe("hh",re,X),fe("kk",re,X),fe("hmm",ae),fe("hmmss",oe),fe("Hmm",ae),fe("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 Ze,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:Be,weekdaysMin:We,weekdaysShort:Ie,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=Ze._abbr,n(296)("./"+t),it(r)}catch(e){tt[t]=null}return tt[t]}function it(e,t){var n;return e&&((n=u(t)?lt(e):st(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])E("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 D(x(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 Ze;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 Ze}(e)}function ut(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]>Me(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 ct=/^\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)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["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]],ft=[["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}))$/,_t={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=ct.exec(s)||dt.exec(s);if(l){for(h(e).iso=!0,t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[1])){a=mt[t][0],r=!1!==mt[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[3])){o=(l[2]||" ")+ft[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!pt.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 vt(e){var t,n,r,a,o,i,s,l,u=gt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],r=u[3],a=u[2],o=u[5],i=u[6],s=u[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||Ie.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return _t[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(u[8],u[9],u[10]),e._d=je.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function kt(e,t,n){return null!=e?e:null!=t?t:n}function Mt(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,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,i=4,n=kt(t.GG,e._a[0],ze(Yt(),1,4).year),r=kt(t.W,1),((a=kt(t.E,1))<1||a>7)&&(l=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,u=ze(Yt(),o,i),n=kt(t.gg,e._a[0],u.year),r=kt(t.w,u.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>Fe(n,o,i)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ae(n,r,a,o,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=kt(e._a[0],r[0]),(e._dayOfYear>Re(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=je(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?je: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,u=l.length,c=0;for(r=z(e._f,e._locale).match(R)||[],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),c+=n.length),j[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),ke(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=u-c,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])),Mt(e),ut(e)}else vt(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?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new k(ut(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=v({},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));m(e,n||t)}(e):n?Lt(e):function(e){var t=e._i;u(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,vt(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=p(t.slice(0),(function(e){return parseInt(e,10)})),Mt(e)):i(t)?function(e){if(!e._d){var t=I(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Mt(e)}}(e):c(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Tt(e,t,n,r,a){var s,u={};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),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,(s=new k(ut(wt(u))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Yt(e,t,n,r){return Tt(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 Et=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Yt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()})),St=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Yt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}));function xt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Yt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Dt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var t=I(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,u=t.minute||0,c=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===_e.call(Dt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Dt.length;++n)if(e[Dt[n]]){if(r)return!1;parseFloat(e[Dt[n]])!==G(e[Dt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+1e3*l*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=lt(),this._bubble()}function Rt(e){return e instanceof Ct}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+C(~~(e/60),2)+t+C(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),fe("Z",pe),fe("ZZ",pe),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ht(pe,e)}));var jt=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(jt)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?r:-r}function At(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(M(e)||d(e)?e.valueOf():Yt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Yt(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Nt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function It(e,t){var n,r,a,o,i,l,u=e,d=null;return Rt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(d=Nt.exec(e))?(n="-"===d[1]?-1:1,u={y:0,d:G(d[2])*n,h:G(d[3])*n,m:G(d[4])*n,s:G(d[5])*n,ms:G(Ot(1e3*d[6]))*n}):(d=Bt.exec(e))?(n="-"===d[1]?-1:1,u={y:Wt(d[2],n),M:Wt(d[3],n),w:Wt(d[4],n),d:Wt(d[5],n),h:Wt(d[6],n),m:Wt(d[7],n),s:Wt(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Yt(u.from),i=Yt(u.to),a=o.isValid()&&i.isValid()?(i=At(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},(u={}).ms=a.milliseconds,u.M=a.months),r=new Ct(u),Rt(e)&&s(e,"_locale")&&(r._locale=e._locale),Rt(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(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)||(E(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,It(n,r),e),this}}function Jt(e,t,n,r){var o=t._milliseconds,i=Ot(t._days),s=Ot(t._months);e.isValid()&&(r=null==r||r,s&&xe(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))}It.fn=Ct.prototype,It.invalid=function(){return It(NaN)};var Gt=Vt(1,"add"),qt=Vt(-1,"subtract");function $t(e){return"string"==typeof e||e instanceof String}function Kt(e){return M(e)||d(e)||$t(e)||c(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(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 Qt(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 Zt(e,t){if(e.date()<t.date())return-Zt(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){H(0,[e,e.length],0,t)}function un(e,t,n,r,a){var o;return null==e?ze(this,r,a).year:(t>(o=Fe(e,r,a))&&(t=o),cn.call(this,e,t,n,r,a))}function cn(e,t,n,r,a){var o=Ae(e,t,n,r,a),i=je(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),fe("N",on),fe("NN",on),fe("NNN",on),fe("NNNN",(function(e,t){return t.erasNameRegex(e)})),fe("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})),fe("y",ue),fe("yy",ue),fe("yyy",ue),fe("yyyy",ue),fe("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),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)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(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),fe("G",ce),fe("g",ce),fe("GG",re,X),fe("gg",re,X),fe("GGGG",se,te),fe("gggg",se,te),fe("GGGGG",le,ne),fe("ggggg",le,ne),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=G(e)})),ve(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),N("quarter","Q"),U("quarter",7),fe("Q",Z),ye("Q",(function(e,t){t[1]=3*(G(e)-1)})),H("D",["DD",2],"Do","date"),N("date","D"),U("date",9),fe("D",re),fe("DD",re,X),fe("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);H("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),U("dayOfYear",4),fe("DDD",ie),fe("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),H("m",["mm",2],0,"minute"),N("minute","m"),U("minute",14),fe("m",re),fe("mm",re,X),ye(["m","mm"],4);var pn=q("Minutes",!1);H("s",["ss",2],0,"second"),N("second","s"),U("second",15),fe("s",re),fe("ss",re,X),ye(["s","ss"],5);var mn,fn,hn=q("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),U("millisecond",16),fe("S",ie,Z),fe("SS",ie,X),fe("SSS",ie,ee),mn="SSSS";mn.length<=9;mn+="S")fe(mn,ue);function gn(e,t){t[6]=G(1e3*("0."+e))}for(mn="S";mn.length<=9;mn+="S")ye(mn,gn);fn=q("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var _n=k.prototype;function bn(e){return e}_n.add=Gt,_n.calendar=function(e,t){1===arguments.length&&(Kt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0));var n=e||Yt(),r=At(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(S(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Yt(n)))},_n.clone=function(){return new k(this)},_n.diff=function(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=At(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":o=Zt(this,r)/12;break;case"month":o=Zt(this,r);break;case"quarter":o=Zt(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)},_n.endOf=function(e){var t,n;if(void 0===(e=B(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},_n.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},_n.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Yt(e).isValid())?It({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.fromNow=function(e){return this.from(Yt(),e)},_n.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Yt(e).isValid())?It({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.toNow=function(e){return this.to(Yt(),e)},_n.get=function(e){return S(this[e=B(e)])?this[e]():this},_n.invalidAt=function(){return h(this).overflow},_n.isAfter=function(e,t){var n=M(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},_n.isBefore=function(e,t){var n=M(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},_n.isBetween=function(e,t,n,r){var a=M(e)?e:Yt(e),o=M(t)?t:Yt(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)))},_n.isSame=function(e,t){var n,r=M(e)?e:Yt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},_n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},_n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},_n.isValid=function(){return g(this)},_n.lang=en,_n.locale=Xt,_n.localeData=tn,_n.max=St,_n.min=Et,_n.parsingFlags=function(){return m({},h(this))},_n.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:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=I(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(S(this[e=B(e)]))return this[e](t);return this},_n.startOf=function(e){var t,n;if(void 0===(e=B(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},_n.subtract=qt,_n.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},_n.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()}},_n.toDate=function(){return new Date(this.valueOf())},_n.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?A(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(n,"Z")):A(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.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&&(_n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.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""},_n.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""},_n.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""},_n.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()},_n.year=Oe,_n.isLeapYear=function(){return V(this.year())},_n.weekYear=function(e){return un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},_n.month=De,_n.daysInMonth=function(){return Me(this.year(),this.month())},_n.week=_n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},_n.isoWeek=_n.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},_n.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},_n.weeksInWeekYear=function(){var e=this.localeData()._week;return Fe(this.weekYear(),e.dow,e.doy)},_n.isoWeeksInYear=function(){return Fe(this.year(),1,4)},_n.isoWeeksInISOWeekYear=function(){return Fe(this.isoWeekYear(),1,4)},_n.date=dn,_n.day=_n.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},_n.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")},_n.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},_n.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")},_n.hour=_n.hours=Xe,_n.minute=_n.minutes=pn,_n.second=_n.seconds=hn,_n.millisecond=_n.milliseconds=fn,_n.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=Ht(pe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Jt(this,It(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:zt(this)},_n.utc=function(e){return this.utcOffset(0,e)},_n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Ft,_n.isUTC=Ft,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=w("dates accessor is deprecated. Use date instead.",dn),_n.months=w("months accessor is deprecated. Use month instead",De),_n.years=w("years accessor is deprecated. Use year instead",Oe),_n.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()})),_n.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=wt(t))._a?(e=t._isUTC?f(t._a):Yt(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=D.prototype;function vn(e,t,n,r){var a=lt(),o=f().set(r,t);return a[n](o,e)}function kn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return vn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=vn(e,r,n,"month");return a}function Mn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,o=lt(),i=e?o._week.dow:0,s=[];if(null!=n)return vn(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=vn(t,(a+i)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(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(R).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 S(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 S(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(S(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||Te).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[Te.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 Se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=f([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")||Ce.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ce.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return ze(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=f([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=It(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function Yn(e){return 4800*e/146097}function En(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var xn=Sn("ms"),Dn=Sn("s"),Cn=Sn("m"),Rn=Sn("h"),On=Sn("d"),Pn=Sn("w"),jn=Sn("M"),Hn=Sn("Q"),An=Sn("y");function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=zn("milliseconds"),Nn=zn("seconds"),Bn=zn("minutes"),In=zn("hours"),Wn=zn("days"),Un=zn("months"),Vn=zn("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 Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,i,s,l=$n(this._milliseconds)/1e3,u=$n(this._days),c=$n(this._months),d=this.asSeconds();return d?(e=J(l/60),t=J(e/60),l%=60,e%=60,n=J(c/12),c%=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":"")+(c?o+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Zn=Ct.prototype;return Zn.isValid=function(){return this._isValid},Zn.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},Zn.add=function(e,t){return wn(this,e,t,1)},Zn.subtract=function(e,t){return wn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Yn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(En(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)}},Zn.asMilliseconds=xn,Zn.asSeconds=Dn,Zn.asMinutes=Cn,Zn.asHours=Rn,Zn.asDays=On,Zn.asWeeks=Pn,Zn.asMonths=jn,Zn.asQuarters=Hn,Zn.asYears=An,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Zn._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*Tn(En(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(Yn(i)),s+=a,i-=Tn(En(a)),r=J(s/12),s%=12,l.days=i,l.months=s,l.years=r,this},Zn.clone=function(){return It(this)},Zn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Fn,Zn.seconds=Nn,Zn.minutes=Bn,Zn.hours=In,Zn.days=Wn,Zn.weeks=function(){return J(this.days()/7)},Zn.months=Un,Zn.years=Vn,Zn.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=It(e).abs(),o=Jn(a.as("s")),i=Jn(a.as("m")),s=Jn(a.as("h")),l=Jn(a.as("d")),u=Jn(a.as("M")),c=Jn(a.as("w")),d=Jn(a.as("y")),p=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&&(p=p||c<=1&&["w"]||c<n.w&&["ww",c]),(p=p||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,qn.apply(null,p)}(this,!a,o,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},Zn.toISOString=Qn,Zn.toString=Qn,Zn.toJSON=Qn,Zn.locale=Xt,Zn.localeData=tn,Zn.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Zn.lang=en,H("X",0,0,"unix"),H("x",0,0,"valueOf"),fe("x",ce),fe("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=Yt,a.fn=_n,a.min=function(){var e=[].slice.call(arguments,0);return xt("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return xt("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=f,a.unix=function(e){return Yt(1e3*e)},a.months=function(e,t){return kn(e,t,"months")},a.isDate=d,a.locale=it,a.invalid=_,a.duration=It,a.isMoment=M,a.weekdays=function(e,t,n){return Mn(e,t,n,"weekdays")},a.parseZone=function(){return Yt.apply(null,arguments).parseZone()},a.localeData=lt,a.isDuration=Rt,a.monthsShort=function(e,t){return kn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return Mn(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(x(tt[e]._config,t)):(null!=(r=ot(e))&&(a=r._config),t=x(a,t),null==r&&(t.abbr=e),(n=new D(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 T(tt)},a.weekdaysShort=function(e,t,n){return Mn(e,t,n,"weekdaysShort")},a.normalizeUnits=B,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=_n,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(42)(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}},function(e,t,n){"use strict";e.exports=n(215)},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},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(37),a=n(54),o=n(297),i=n(13);e.exports=function(e,t){return(i(e)?r:o)(e,a(t,3))}},function(e,t,n){var r=n(57),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){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){var r=n(228),a=n(234);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},function(e,t,n){e.exports=n(318)},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(315),a=n(316),o=n(208),i=n(317);e.exports=function(e,t){return r(e)||a(e,t)||o(e,t)||i()}},function(e,t,n){var r=n(26),a=n(230),o=n(231),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(31);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){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(303)},function(e,t,n){e.exports=n(306)()},function(e,t,n){var r=n(218),a=n(219),o=n(220),i=n(221),s=n(222);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(38);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,n){var r=n(15)(Object,"create");e.exports=r},function(e,t,n){var r=n(243);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(56),a=n(44);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},function(e,t,n){var r=n(13),a=n(46),o=n(274),i=n(277);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:o(i(e))}},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(45);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(66),a=n(308),o=n(309),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(312),a=n(313),o=n(208),i=n(314);e.exports=function(e){return r(e)||a(e)||o(e)||i()}},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)}))}}},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){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(15)(n(12),"Map");e.exports=r},function(e,t,n){var r=n(235),a=n(242),o=n(244),i=n(245),s=n(246);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(65),a=n(265),o=n(29);e.exports=function(e){return o(e)?r(e):a(e)}},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){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){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(30),a=n(21);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(31),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}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(9),i=l(o),s=l(n(23));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),m=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||m()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||m()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},a,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(o.Component);f.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.default=f},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(37),a=n(54),o=n(285),i=n(290);e.exports=function(e,t){if(null==e)return{};var n=r(i(e),(function(e){return[e]}));return t=a(t),o(e,n,(function(e,n){return t(e,n[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){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){"use strict";
9
  /*
10
  object-assign
11
  (c) Sindre Sorhus
12
  @license MIT
13
+ */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),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))a.call(n,c)&&(l[c]=n[c]);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,n){var r=n(216),a=n(273),o=n(74),i=n(13),s=n(282);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(24),a=n(223),o=n(224),i=n(225),s=n(226),l=n(227);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=a,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,n){var r=n(19),a=n(17);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(229))},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(247),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(248),a=n(251),o=n(252);e.exports=function(e,t,n,i,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var p=l.get(e);if(p&&l.get(t))return p==t;var m=-1,f=!0,h=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++m<c;){var g=e[m],_=t[m];if(i)var b=u?i(_,g,m,t,e,l):i(g,_,m,e,t,l);if(void 0!==b){if(b)continue;f=!1;break}if(h){if(!a(t,(function(e,t){if(!o(h,t)&&(g===e||s(g,e,n,i,l)))return h.push(t)}))){f=!1;break}}else if(g!==_&&!s(g,_,n,i,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},function(e,t,n){var r=n(62),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(259),a=n(64),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(){return[]}},function(e,t,n){var r=n(66),a=n(67),o=n(13),i=n(68),s=n(43),l=n(69),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&a(e),d=!n&&!c&&i(e),p=!n&&!c&&!d&&l(e),m=n||c||d||p,f=m?r(e.length,String):[],h=f.length;for(var g in e)!t&&!u.call(e,g)||m&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||f.push(g);return f}},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(260),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(261),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(42)(e))},function(e,t,n){var r=n(262),a=n(263),o=n(264),i=o&&o.isTypedArray,s=i?a(i):r;e.exports=s},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){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(17);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){e.exports=function(e){return e}},function(e,t,n){!function(e){"use strict";
14
  //! moment.js locale configuration
15
  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";
16
  //! moment.js locale configuration
289
  *
290
  * This source code is licensed under the MIT license found in the
291
  * LICENSE file in the root directory of this source tree.
292
+ */var r=n(53),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,u=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.memo"):60115,h=a?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function _(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 v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}function k(){}function M(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=v.prototype;var L=M.prototype=new k;L.constructor=M,r(L,v.prototype),L.isPureReactComponent=!0;var w={current:null},T=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0};function E(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)T.call(t,r)&&!Y.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}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 S(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var x=/\/+/g,D=[];function C(e,t,n,r){if(D.length){var a=D.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 R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function O(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 u=0;u<t.length;u++){var c=n+P(s=t[u],u);l+=e(s,c,r,a)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(s=t.next()).done;)l+=e(s=s.value,c=n+P(s,u++),r,a);else if("object"===s)throw r=""+t,Error(_(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 j(e,t){e.func.call(e.context,t,e.count++)}function H(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?A(e,r,n,(function(e){return e})):null!=e&&(S(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(x,"$&/")+"/")+n)),r.push(e))}function A(e,t,n,r,a){var o="";null!=n&&(o=(""+n).replace(x,"$&/")+"/"),O(e,H,t=C(t,o,r,a)),R(t)}var z={current:null};function F(){var e=z.current;if(null===e)throw Error(_(321));return e}var N={ReactCurrentDispatcher:z,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 A(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;O(e,j,t=C(null,null,t,n)),R(t)},count:function(e){return O(e,(function(){return null}),null)},toArray:function(e){var t=[];return A(e,t,null,(function(e){return e})),t},only:function(e){if(!S(e))throw Error(_(143));return e}},t.Component=v,t.Fragment=s,t.Profiler=u,t.PureComponent=M,t.StrictMode=l,t.Suspense=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error(_(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 u=e.type.defaultProps;for(c in t)T.call(t,c)&&!Y.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];a.children=u}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:c,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:h,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.13.1"},function(e,t,n){var r=n(217),a=n(272),o=n(73);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(55),a=n(59);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 u=n[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var c=(u=n[i])[0],d=e[c],p=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var m=new r;if(o)var f=o(d,p,c,e,t,m);if(!(void 0===f?a(p,d,3,o,m):f))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(25),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(25);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(25);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(25);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(24);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(24),a=n(39),o=n(40);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(56),a=n(232),o=n(17),i=n(58),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(r(e)?p: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(26),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(233),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(236),a=n(24),o=n(39);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(237),a=n(238),o=n(239),i=n(240),s=n(241);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(27);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(27),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(27),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(27);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(28);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(28);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(28);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(28);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(55),a=n(60),o=n(253),i=n(257),s=n(267),l=n(13),u=n(68),c=n(69),d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,f,h){var g=l(e),_=l(t),b=g?"[object Array]":s(e),y=_?"[object Array]":s(t),v=(b="[object Arguments]"==b?d:b)==d,k=(y="[object Arguments]"==y?d:y)==d,M=b==y;if(M&&u(e)){if(!u(t))return!1;g=!0,v=!1}if(M&&!v)return h||(h=new r),g||c(e)?a(e,t,n,m,f,h):o(e,t,b,n,m,f,h);if(!(1&n)){var L=v&&p.call(e,"__wrapped__"),w=k&&p.call(t,"__wrapped__");if(L||w){var T=L?e.value():e,Y=w?t.value():t;return h||(h=new r),f(T,Y,n,m,h)}}return!!M&&(h||(h=new r),i(e,t,n,m,f,h))}},function(e,t,n){var r=n(40),a=n(249),o=n(250);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(26),a=n(254),o=n(38),i=n(60),s=n(255),l=n(256),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,p){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 m=s;case"[object Set]":var f=1&r;if(m||(m=l),e.size!=t.size&&!f)return!1;var h=p.get(e);if(h)return h==t;r|=2,p.set(e,t);var g=i(m(e),m(t),r,u,d,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.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(258),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,i,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var p=u[d];if(!(l?p in t:a.call(t,p)))return!1}var m=s.get(e);if(m&&s.get(t))return m==t;var f=!0;s.set(e,t),s.set(t,e);for(var h=l;++d<c;){var g=e[p=u[d]],_=t[p];if(o)var b=l?o(_,g,p,t,e,s):o(g,_,p,e,t,s);if(!(void 0===b?g===_||i(g,_,n,o,s):b)){f=!1;break}h||(h="constructor"==p)}if(f&&!h){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(f=!1)}return s.delete(e),s.delete(t),f}},function(e,t,n){var r=n(61),a=n(63),o=n(41);e.exports=function(e){return r(e,o,a)}},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,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(44),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(57),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(42)(e))},function(e,t,n){var r=n(70),a=n(266),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,n){var r=n(71)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(268),a=n(39),o=n(269),i=n(270),s=n(271),l=n(19),u=n(58),c=u(r),d=u(a),p=u(o),m=u(i),f=u(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?u(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,n){var r=n(15)(n(12),"DataView");e.exports=r},function(e,t,n){var r=n(15)(n(12),"Promise");e.exports=r},function(e,t,n){var r=n(15)(n(12),"Set");e.exports=r},function(e,t,n){var r=n(15)(n(12),"WeakMap");e.exports=r},function(e,t,n){var r=n(72),a=n(41);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(59),a=n(32),o=n(279),i=n(46),s=n(72),l=n(73),u=n(21);e.exports=function(e,t){return i(e)&&s(t)?l(u(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(275),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(276);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(40);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(278);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(26),a=n(37),o=n(13),i=n(31),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(280),a=n(281);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(30),a=n(67),o=n(13),i=n(43),s=n(44),l=n(21);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var p=l(t[u]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&i(p,c)&&(o(e)||a(e))}},function(e,t,n){var r=n(283),a=n(284),o=n(46),i=n(21);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(45);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(45),a=n(286),o=n(30);e.exports=function(e,t,n){for(var i=-1,s=t.length,l={};++i<s;){var u=t[i],c=r(e,u);n(c,u)&&a(l,o(u,e),c)}return l}},function(e,t,n){var r=n(287),a=n(30),o=n(43),i=n(17),s=n(21);e.exports=function(e,t,n,l){if(!i(e))return e;for(var u=-1,c=(t=a(t,e)).length,d=c-1,p=e;null!=p&&++u<c;){var m=s(t[u]),f=n;if(u!=d){var h=p[m];void 0===(f=l?l(h,m,p):void 0)&&(f=i(h)?h:o(t[u+1])?[]:{})}r(p,m,f),p=p[m]}return e}},function(e,t,n){var r=n(288),a=n(38),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];o.call(e,t)&&a(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(289);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(15),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},function(e,t,n){var r=n(61),a=n(291),o=n(293);e.exports=function(e){return r(e,o,a)}},function(e,t,n){var r=n(62),a=n(292),o=n(63),i=n(64),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=a(e);return t}:i;e.exports=s},function(e,t,n){var r=n(71)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(65),a=n(294),o=n(29);e.exports=function(e){return o(e)?r(e,!0):a(e)}},function(e,t,n){var r=n(17),a=n(70),o=n(295),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=a(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r={"./af":75,"./af.js":75,"./ar":76,"./ar-dz":77,"./ar-dz.js":77,"./ar-kw":78,"./ar-kw.js":78,"./ar-ly":79,"./ar-ly.js":79,"./ar-ma":80,"./ar-ma.js":80,"./ar-sa":81,"./ar-sa.js":81,"./ar-tn":82,"./ar-tn.js":82,"./ar.js":76,"./az":83,"./az.js":83,"./be":84,"./be.js":84,"./bg":85,"./bg.js":85,"./bm":86,"./bm.js":86,"./bn":87,"./bn.js":87,"./bo":88,"./bo.js":88,"./br":89,"./br.js":89,"./bs":90,"./bs.js":90,"./ca":91,"./ca.js":91,"./cs":92,"./cs.js":92,"./cv":93,"./cv.js":93,"./cy":94,"./cy.js":94,"./da":95,"./da.js":95,"./de":96,"./de-at":97,"./de-at.js":97,"./de-ch":98,"./de-ch.js":98,"./de.js":96,"./dv":99,"./dv.js":99,"./el":100,"./el.js":100,"./en-au":101,"./en-au.js":101,"./en-ca":102,"./en-ca.js":102,"./en-gb":103,"./en-gb.js":103,"./en-ie":104,"./en-ie.js":104,"./en-il":105,"./en-il.js":105,"./en-in":106,"./en-in.js":106,"./en-nz":107,"./en-nz.js":107,"./en-sg":108,"./en-sg.js":108,"./eo":109,"./eo.js":109,"./es":110,"./es-do":111,"./es-do.js":111,"./es-us":112,"./es-us.js":112,"./es.js":110,"./et":113,"./et.js":113,"./eu":114,"./eu.js":114,"./fa":115,"./fa.js":115,"./fi":116,"./fi.js":116,"./fil":117,"./fil.js":117,"./fo":118,"./fo.js":118,"./fr":119,"./fr-ca":120,"./fr-ca.js":120,"./fr-ch":121,"./fr-ch.js":121,"./fr.js":119,"./fy":122,"./fy.js":122,"./ga":123,"./ga.js":123,"./gd":124,"./gd.js":124,"./gl":125,"./gl.js":125,"./gom-deva":126,"./gom-deva.js":126,"./gom-latn":127,"./gom-latn.js":127,"./gu":128,"./gu.js":128,"./he":129,"./he.js":129,"./hi":130,"./hi.js":130,"./hr":131,"./hr.js":131,"./hu":132,"./hu.js":132,"./hy-am":133,"./hy-am.js":133,"./id":134,"./id.js":134,"./is":135,"./is.js":135,"./it":136,"./it-ch":137,"./it-ch.js":137,"./it.js":136,"./ja":138,"./ja.js":138,"./jv":139,"./jv.js":139,"./ka":140,"./ka.js":140,"./kk":141,"./kk.js":141,"./km":142,"./km.js":142,"./kn":143,"./kn.js":143,"./ko":144,"./ko.js":144,"./ku":145,"./ku.js":145,"./ky":146,"./ky.js":146,"./lb":147,"./lb.js":147,"./lo":148,"./lo.js":148,"./lt":149,"./lt.js":149,"./lv":150,"./lv.js":150,"./me":151,"./me.js":151,"./mi":152,"./mi.js":152,"./mk":153,"./mk.js":153,"./ml":154,"./ml.js":154,"./mn":155,"./mn.js":155,"./mr":156,"./mr.js":156,"./ms":157,"./ms-my":158,"./ms-my.js":158,"./ms.js":157,"./mt":159,"./mt.js":159,"./my":160,"./my.js":160,"./nb":161,"./nb.js":161,"./ne":162,"./ne.js":162,"./nl":163,"./nl-be":164,"./nl-be.js":164,"./nl.js":163,"./nn":165,"./nn.js":165,"./oc-lnc":166,"./oc-lnc.js":166,"./pa-in":167,"./pa-in.js":167,"./pl":168,"./pl.js":168,"./pt":169,"./pt-br":170,"./pt-br.js":170,"./pt.js":169,"./ro":171,"./ro.js":171,"./ru":172,"./ru.js":172,"./sd":173,"./sd.js":173,"./se":174,"./se.js":174,"./si":175,"./si.js":175,"./sk":176,"./sk.js":176,"./sl":177,"./sl.js":177,"./sq":178,"./sq.js":178,"./sr":179,"./sr-cyrl":180,"./sr-cyrl.js":180,"./sr.js":179,"./ss":181,"./ss.js":181,"./sv":182,"./sv.js":182,"./sw":183,"./sw.js":183,"./ta":184,"./ta.js":184,"./te":185,"./te.js":185,"./tet":186,"./tet.js":186,"./tg":187,"./tg.js":187,"./th":188,"./th.js":188,"./tl-ph":189,"./tl-ph.js":189,"./tlh":190,"./tlh.js":190,"./tr":191,"./tr.js":191,"./tzl":192,"./tzl.js":192,"./tzm":193,"./tzm-latn":194,"./tzm-latn.js":194,"./tzm.js":193,"./ug-cn":195,"./ug-cn.js":195,"./uk":196,"./uk.js":196,"./ur":197,"./ur.js":197,"./uz":198,"./uz-latn":199,"./uz-latn.js":199,"./uz.js":198,"./vi":200,"./vi.js":200,"./x-pseudo":201,"./x-pseudo.js":201,"./yo":202,"./yo.js":202,"./zh-cn":203,"./zh-cn.js":203,"./zh-hk":204,"./zh-hk.js":204,"./zh-mo":205,"./zh-mo.js":205,"./zh-tw":206,"./zh-tw.js":206};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=296},function(e,t,n){var r=n(298),a=n(29);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(299),a=n(302)(r);e.exports=a},function(e,t,n){var r=n(300),a=n(41);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t,n){var r=n(301)();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(29);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){"use strict";
293
  /** @license React v16.13.1
294
  * react-dom.production.min.js
295
  *
305
  *
306
  * This source code is licensed under the MIT license found in the
307
  * LICENSE file in the root directory of this source tree.
308
+ */var r,a,o,i,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},a=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},i=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,m=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var _=m.now();t.unstable_now=function(){return m.now()-_}}var b=!1,y=null,v=-1,k=5,M=0;i=function(){return t.unstable_now()>=M},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var L=new MessageChannel,w=L.port2;L.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();M=e+k;try{y(!0,e)?w.postMessage(null):(b=!1,y=null)}catch(e){throw w.postMessage(null),e}}else b=!1},r=function(e){y=e,b||(b=!0,w.postMessage(null))},a=function(e,n){v=f((function(){e(t.unstable_now())}),n)},o=function(){h(v),v=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<S(a,t)))break e;e[r]=t,e[n]=a,n=r}}function Y(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],s=o+1,l=e[s];if(void 0!==i&&0>S(i,n))void 0!==l&&0>S(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==l&&0>S(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],D=[],C=1,R=null,O=3,P=!1,j=!1,H=!1;function A(e){for(var t=Y(D);null!==t;){if(null===t.callback)E(D);else{if(!(t.startTime<=e))break;E(D),t.sortIndex=t.expirationTime,T(x,t)}t=Y(D)}}function z(e){if(H=!1,A(e),!j)if(null!==Y(x))j=!0,r(F);else{var t=Y(D);null!==t&&a(z,t.startTime-e)}}function F(e,n){j=!1,H&&(H=!1,o()),P=!0;var r=O;try{for(A(n),R=Y(x);null!==R&&(!(R.expirationTime>n)||e&&!i());){var s=R.callback;if(null!==s){R.callback=null,O=R.priorityLevel;var l=s(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?R.callback=l:R===Y(x)&&E(x),A(n)}else E(x);R=Y(x)}if(null!==R)var u=!0;else{var c=Y(D);null!==c&&a(z,c.startTime-n),u=!1}return u}finally{R=null,O=r,P=!1}}function N(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){j||P||(j=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return Y(x)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,n,i){var s=t.unstable_now();if("object"==typeof i&&null!==i){var l=i.delay;l="number"==typeof l&&0<l?s+l:s,i="number"==typeof i.timeout?i.timeout:N(e)}else i=N(e),l=s;return e={id:C++,callback:n,priorityLevel:e,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>s?(e.sortIndex=l,T(D,e),null===Y(x)&&e===Y(D)&&(H?o():H=!0,a(z,l-s))):(e.sortIndex=i,T(x,e),j||P||(j=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();A(e);var n=Y(x);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},function(e,t,n){"use strict";var r=n(307);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(74);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(310);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(311);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(17),a=n(31),o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(207);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var a=t&&t.prototype instanceof c?t:c,o=Object.create(a.prototype),i=new M(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return w()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=y(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function c(){}function d(){}function p(){}var m={};m[a]=function(){return this};var f=Object.getPrototypeOf,h=f&&f(f(L([])));h&&h!==t&&n.call(h,a)&&(m=h);var g=p.prototype=c.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var r;this._invoke=function(a,o){function i(){return new t((function(r,i){!function r(a,o,i,s){var u=l(e[a],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(u.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:w}}function w(){return{value:void 0,done:!0}}return d.prototype=g.constructor=p,p.constructor=d,p[i]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},_(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new b(s(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(g),g[i]="Generator",g[a]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=L,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.r(t);var r=n(10),a=n.n(r),o=n(8),i=n.n(o),s=n(1),l=n.n(s),u=n(2),c=n.n(u),d=n(3),p=n.n(d),m=n(4),f=n.n(m),h=n(0),g=n.n(h),_=n(5),b=n.n(_);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var v=wp.element.Component,k=wp.hooks.applyFilters,M=function(e){p()(n,e);var t=y(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){if(void 0===this.props.children)return null;var e=!1;if(void 0!==this.props.children.props&&void 0!==this.props.children.props.name||(e=!0),e&&(void 0===this.props.children._owner||void 0===this.props.children._owner.memoizedProps||void 0===this.props.children._owner.memoizedProps.name))return this.props.children;var t=e?this.props.children._owner.memoizedProps.name:this.props.children.props.name;return k("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}]),n}(v);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=wp.i18n.__,T=wp.element.Component,Y=wp.blockEditor,E=Y.InspectorControls,S=Y.PanelColorSettings,x=wp.components,D=x.PanelBody,C=x.RangeControl,R=x.SelectControl,O=function(e){p()(n,e);var t=L(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:"left-aligned",label:w("Left Aligned","genesis-blocks")},{value:"right-aligned",label:w("Right Aligned","genesis-blocks")}],n=this.props,r=n.attributes,a=r.testimonialBackgroundColor,o=r.testimonialTextColor,i=r.testimonialFontSize,s=r.testimonialCiteAlign,l=n.setAttributes;return React.createElement(E,{key:"inspector"},React.createElement(D,null,React.createElement(M,{id:"gb_testimonial_testimonialFontSize"},React.createElement(C,{label:w("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({testimonialFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(R,{label:w("Cite Alignment","genesis-blocks"),description:w("Left or right align the cite name and title.","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({testimonialCiteAlign:t})}}))),React.createElement(M,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(S,{title:w("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({testimonialBackgroundColor:e})},label:w("Background Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_testimonial_testimonialTextColor"},React.createElement(S,{title:w("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({testimonialTextColor:e})},label:w("Text Color","genesis-blocks")}]})))}}]),n}(T);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(e){p()(n,e);var t=P(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialImgURL,n=e.testimonialBackgroundColor,r=e.testimonialTextColor,a=e.testimonialFontSize,o=e.testimonialCiteAlign;return React.createElement("div",{style:{backgroundColor:n||"#f2f2f2",color:r||"#32373c"},className:b()(this.props.className,o,{"gb-has-avatar":t},"gb-font-size-"+a,"gb-block-testimonial")},this.props.children)}}]),n}(wp.element.Component),H={};H.upload=React.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));var A=H;function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var B=wp.i18n.__,I=wp.element,W=I.Component,U=I.Fragment,V=wp.blockEditor,J=V.RichText,G=V.AlignmentToolbar,q=V.BlockControls,$=V.MediaUpload,K=wp.components,Q=K.Button,Z=K.Dashicon,X=["image"],ee=function(e){p()(n,e);var t=N(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.testimonialName,o=n.testimonialTitle,i=n.testimonialContent,s=n.testimonialAlignment,l=n.testimonialImgURL,u=n.testimonialImgID,c=n.testimonialImgAlt,d=n.testimonialTextColor,p=t.setAttributes,m=function(){p({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(q,{key:"controls"},React.createElement(G,{value:s,onChange:function(e){return p({testimonialAlignment:e})}})),React.createElement(O,a()({key:"gb-testimonial-inspector-"+this.props.clientId},F({setAttributes:p},this.props))),React.createElement(j,a()({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(J,{tagName:"div",multiline:"p",placeholder:B("Add testimonial text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-testimonial-text"),style:{textAlign:s},onChange:function(e){return p({testimonialContent:e})}}),React.createElement("div",{className:"gb-testimonial-info"},React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement($,{buttonProps:{className:"change-image"},onSelect:function(e){return p({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt})},allowed:X,type:"image",value:u,render:function(e){var t=e.open;return React.createElement(U,null,React.createElement(Q,{className:u?"gb-change-image":"gb-add-image",onClick:t},u?React.createElement("img",{className:"gb-testimonial-avatar",src:l,alt:c||null}):A.upload),u&&React.createElement(Q,{className:"gb-remove-image",onClick:m},React.createElement(Z,{icon:"dismiss"})))}}))),React.createElement(J,{tagName:"h2",placeholder:B("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-testimonial-name",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialName:t})}}),React.createElement(J,{tagName:"small",placeholder:B("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,className:"gb-testimonial-title",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialTitle:t})}})))]}}]),n}(W);function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ne=wp.element.Component,re=wp.blockEditor.RichText,ae=function(e){p()(n,e);var t=te(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialName,n=e.testimonialTitle,r=e.testimonialContent,a=e.testimonialAlignment,o=e.testimonialImgURL,i=e.testimonialImgAlt,s=e.testimonialTextColor;return React.createElement(j,this.props,React.createElement(re.Content,{tagName:"div",className:"gb-testimonial-text",style:{textAlign:a},value:r}),React.createElement("div",{className:"gb-testimonial-info"},o&&React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement("img",{className:"gb-testimonial-avatar",src:o,alt:i||null}))),t&&React.createElement(re.Content,{tagName:"h2",className:"gb-testimonial-name",style:{color:s||"#32373c"},value:t}),n&&React.createElement(re.Content,{tagName:"small",className:"gb-testimonial-title",style:{color:s||"#32373c"},value:n})))}}]),n}(ne),oe=(n(344),n(346),wp.i18n.__);function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-testimonial",{title:oe("Testimonial","genesis-blocks"),description:oe("Add a user testimonial with a name and title.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[oe("testimonial","genesis-blocks"),oe("quote","genesis-blocks"),oe("atomic","genesis-blocks")],attributes:{testimonialName:{type:"array",selector:".gb-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".gb-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".gb-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},gb_settings_data:{gb_testimonial_testimonialFontSize:{title:oe("Font Size","genesis-blocks")},gb_testimonial_testimonialCiteAlign:{title:oe("Cite Alignment","genesis-blocks")},gb_testimonial_testimonialBackgroundColor:{title:oe("Background Color","genesis-blocks")},gb_testimonial_testimonialTextColor:{title:oe("Text Color","genesis-blocks")}},edit:function(e){return React.createElement(ee,e)},save:function(e){return React.createElement(ae,e)}});var se=wp.i18n.__,le=wp.element.Component,ue=wp.blockEditor,ce=ue.InspectorControls,de=ue.PanelColorSettings,pe=wp.components,me=pe.PanelBody,fe=pe.RangeControl,he=pe.SelectControl,ge=pe.TextControl,_e=function(e){p()(n,e);var t=ie(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.profileFontSize,r=t.profileBackgroundColor,a=t.profileTextColor,o=t.profileLinkColor,i=t.twitter,s=t.facebook,l=t.instagram,u=t.pinterest,c=t.google,d=t.youtube,p=t.github,m=t.linkedin,f=t.wordpress,h=t.email,g=t.website,_=t.profileAvatarShape,b=this.props.setAttributes,y=[{value:"square",label:se("Square","genesis-blocks")},{value:"round",label:se("Round","genesis-blocks")}];return React.createElement(ce,{key:"inspector"},React.createElement(me,null,React.createElement(M,{id:"gb_author_profile_profileFontSize"},React.createElement(fe,{label:se("Font Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_author_profile_profileAvatarShape"},React.createElement(he,{label:se("Avatar Shape","genesis-blocks"),description:se("Choose between a round or square avatar shape.","genesis-blocks"),options:y,value:_,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),React.createElement(M,{id:"gb_author_profile_profileBackgroundColor"},React.createElement(de,{title:se("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return b({profileBackgroundColor:e})},label:se("Background Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_author_profile_profileTextColor"},React.createElement(de,{title:se("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return b({profileTextColor:e})},label:se("Text Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_author_profile_profileLinkColor"},React.createElement(de,{title:se("Social Link Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return b({profileLinkColor:e})},label:se("Social Link Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_author_profile_socialLinks"},React.createElement(me,{title:se("Social Links","genesis-blocks"),initialOpen:!1},React.createElement("p",null,se("Add links to your social media site and they will appear in the bottom of the profile box.","genesis-blocks")),React.createElement(ge,{label:se("Twitter URL","genesis-blocks"),type:"url",value:i,onChange:function(t){return e.props.setAttributes({twitter:t})}}),React.createElement(ge,{label:se("Facebook URL","genesis-blocks"),type:"url",value:s,onChange:function(t){return e.props.setAttributes({facebook:t})}}),React.createElement(ge,{label:se("Instagram URL","genesis-blocks"),type:"url",value:l,onChange:function(t){return e.props.setAttributes({instagram:t})}}),React.createElement(ge,{label:se("Pinterest URL","genesis-blocks"),type:"url",value:u,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),React.createElement(ge,{label:se("Google URL","genesis-blocks"),type:"url",value:c,onChange:function(t){return e.props.setAttributes({google:t})}}),React.createElement(ge,{label:se("YouTube URL","genesis-blocks"),type:"url",value:d,onChange:function(t){return e.props.setAttributes({youtube:t})}}),React.createElement(ge,{label:se("Github URL","genesis-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({github:t})}}),React.createElement(ge,{label:se("LinkedIn URL","genesis-blocks"),type:"url",value:m,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),React.createElement(ge,{label:se("WordPress Profile URL","genesis-blocks"),type:"url",value:f,onChange:function(t){return e.props.setAttributes({wordpress:t})}}),React.createElement(ge,{label:se("Email URL","genesis-blocks"),help:se('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"genesis-blocks"),type:"url",value:h,onChange:function(t){return e.props.setAttributes({email:t})}}),React.createElement(ge,{label:se("Website URL","genesis-blocks"),type:"url",value:g,onChange:function(t){return e.props.setAttributes({website:t})}}))))}}]),n}(le);function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ye=function(e){p()(n,e);var t=be(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,o=e.profileTextColor,i=e.profileAvatarShape;return React.createElement("div",{style:{backgroundColor:a,color:o},className:b()(this.props.className,t,i,{"gb-has-avatar":n},"gb-font-size-"+r,"gb-block-profile","gb-profile-columns")},this.props.children)}}]),n}(wp.element.Component);function ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ke=wp.i18n.__,Me=function(e){p()(n,e);var t=ve(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},ke("Website","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},ke("Twitter","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},ke("Facebook","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},ke("Instagram","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},ke("Pinterest","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},ke("Google","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},ke("YouTube","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},ke("LinkedIn","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},ke("Github","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},ke("WordPress","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},ke("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}]),n}(wp.element.Component);function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var we=function(e){p()(n,e);var t=Le(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}]),n}(wp.element.Component);function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Se=wp.i18n.__,xe=wp.element,De=xe.Component,Ce=xe.Fragment,Re=wp.blockEditor,Oe=Re.RichText,Pe=Re.AlignmentToolbar,je=Re.BlockControls,He=Re.MediaUpload,Ae=wp.components,ze=Ae.Button,Fe=Ae.Dashicon,Ne=["image"],Be=function(e){p()(n,e);var t=Ee(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.profileName,r=t.profileTitle,o=t.profileContent,i=t.profileAlignment,s=t.profileImgURL,l=t.profileImgID,u=t.profileImgAlt,c=t.profileTextColor,d=e.setAttributes;return[React.createElement(je,{key:"controls"},React.createElement(Pe,{value:i,onChange:function(e){return d({profileAlignment:e})}})),React.createElement(_e,a()({key:"gb-author-profile-inspector-"+this.props.clientId},Ye({setAttributes:d},this.props))),React.createElement(ye,a()({key:"gb-author-profile-"+this.props.clientId},this.props),React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement(He,{buttonProps:{className:"change-image"},onSelect:function(e){return d({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt})},allowed:Ne,type:"image",value:l,render:function(e){var t=e.open;return React.createElement(Ce,null,React.createElement(ze,{onClick:t},l?React.createElement("img",{className:b()("gb-profile-avatar","gb-change-image","wp-image-"+l),src:s,alt:u}):A.upload),l&&React.createElement(ze,{className:"gb-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(Fe,{icon:"dismiss"})))}}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},React.createElement(Oe,{tagName:"h2",placeholder:Se("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"gb-profile-name",style:{color:c},onChange:function(e){return d({profileName:e})}}),React.createElement(Oe,{tagName:"p",placeholder:Se("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-profile-title",style:{color:c},onChange:function(e){return d({profileTitle:e})}}),React.createElement(Oe,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Se("Add profile text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:function(e){return d({profileContent:e})}}),React.createElement(Me,this.props)))]}}]),n}(De);function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var We=wp.element.Component,Ue=wp.blockEditor.RichText,Ve=function(e){p()(n,e);var t=Ie(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileImgAlt,i=e.profileImgID,s=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:b()("gb-profile-avatar","wp-image-"+i),src:a,alt:o}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(Ue.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(Ue.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(Ue.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Me,this.props)))}}]),n}(We);n(347),n(348);function Je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ge=wp.element.Component,qe=wp.blockEditor.RichText,$e=function(e){p()(n,e);var t=Je(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("div",{className:"gb-profile-image-square"},React.createElement("img",{className:"gb-profile-avatar",src:a,alt:"avatar"}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(qe.Content,{tagName:"h2",className:"gb-profile-name",style:{color:o},value:t}),n&&React.createElement(qe.Content,{tagName:"p",className:"gb-profile-title",style:{color:o},value:n}),r&&React.createElement(qe.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Me,this.props)))}}]),n}(Ge),Ke=[{attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},website:{type:"url"}},save:function(e){return React.createElement($e,e)}}],Qe=wp.i18n.__;function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-profile-box",{title:Qe("Profile Box","genesis-blocks"),description:Qe("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[Qe("author","genesis-blocks"),Qe("profile","genesis-blocks"),Qe("atomic","genesis-blocks"),Qe("genesis","genesis-blocks")],attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},gb_settings_data:{gb_author_profile_profileFontSize:{title:Qe("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:Qe("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:Qe("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:Qe("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:Qe("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:Qe("Social Links","genesis-blocks")}},edit:function(e){return React.createElement(Be,e)},save:function(e){return React.createElement(Ve,e)},deprecated:Ke});var Xe=wp.i18n.__,et=wp.element.Component,tt=wp.blockEditor,nt=tt.PanelColorSettings,rt=tt.InspectorControls,at=wp.components,ot=at.PanelBody,it=at.RangeControl,st=at.SelectControl,lt=function(e){p()(n,e);var t=Ze(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:null,label:Xe("Always Show","genesis-blocks")},{value:"gb-dismissable",label:Xe("Dismissible","genesis-blocks")}],n=this.props.attributes,r=n.noticeBackgroundColor,a=n.noticeTextColor,o=n.noticeTitleColor,i=n.noticeFontSize,s=n.noticeDismiss,l=this.props.setAttributes;return React.createElement(rt,{key:"inspector"},React.createElement(ot,null,React.createElement(M,{id:"gb_notice_noticeFontSize"},React.createElement(it,{label:Xe("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_notice_noticeDismiss"},React.createElement(st,{label:Xe("Notice Display","genesis-blocks"),description:Xe("Do you want the message to always show or dismissible?","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({noticeDismiss:t})}}))),React.createElement(M,{id:"gb_notice_colorSettings"},React.createElement(nt,{title:Xe("Notice Color","genesis-blocks"),colorValue:r,initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return l({noticeBackgroundColor:e})},colors:[{color:"#00d1b2",name:"teal"},{color:"#3373dc",name:"royal blue"},{color:"#209cef",name:"sky blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"},{color:"#392F43",name:"black"}],label:Xe("Notice Color","genesis-blocks")}]}),React.createElement(nt,{title:Xe("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({noticeTitleColor:e})},label:Xe("Title Color","genesis-blocks")}]}),React.createElement(nt,{title:Xe("Text Color","genesis-blocks"),colorValue:a,initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({noticeTextColor:e})},label:Xe("Text Color","genesis-blocks")}]})))}}]),n}(et),ut=n(209),ct=n.n(ut);function dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var pt=function(e){p()(n,e);var t=dt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.noticeTitle,r=t.noticeAlignment,a=t.noticeBackgroundColor,o=t.noticeTextColor,i=t.noticeFontSize,s=t.noticeDismiss,l=(e=s+n,ct()(e).substr(0,6));return React.createElement("div",{style:{color:o,textAlign:r,backgroundColor:a},className:b()(this.props.className,s,"gb-font-size-"+i,"gb-block-notice"),"data-id":l},this.props.children)}}]),n}(wp.element.Component);function mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ft=function(e){p()(n,e);var t=mt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes.noticeTitleColor;return React.createElement("div",{className:"gb-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}]),n}(wp.element.Component),ht={};ht.upload=React.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),ht.dismiss=React.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},React.createElement("path",{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zM15 13l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));var gt=ht;n(349),n(350);function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var vt=wp.i18n.__,kt=wp.element.Component,Mt=wp.blocks.registerBlockType,Lt=wp.blockEditor,wt=Lt.RichText,Tt=Lt.AlignmentToolbar,Yt=Lt.BlockControls,Et=function(e){p()(n,e);var t=yt(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.noticeTitle,r=t.noticeContent,o=t.noticeAlignment,i=t.noticeBackgroundColor,s=t.noticeTitleColor,l=t.noticeDismiss,u=e.setAttributes;return[React.createElement(Yt,{key:"controls"},React.createElement(Tt,{value:o,onChange:function(e){return u({noticeAlignment:e})}})),React.createElement(lt,a()({key:"gb-notice-inspector-"+this.props.clientId},bt({setAttributes:u},this.props))),React.createElement(pt,a()({key:"gb-notice-noticebox-"+this.props.clientId},this.props),l&&"gb-dismissable"===l&&React.createElement(ft,this.props,gt.dismiss),React.createElement(wt,{tagName:"p",placeholder:vt("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:b()("gb-notice-title"),style:{color:s},onChange:function(e){return u({noticeTitle:e})}}),React.createElement(wt,{tagName:"div",multiline:"p",placeholder:vt("Add notice text…","genesis-blocks"),value:r,className:b()("gb-notice-text"),style:{borderColor:i},onChange:function(e){return u({noticeContent:e})}}))]}}]),n}(kt);function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Mt("genesis-blocks/gb-notice",{title:vt("Notice","genesis-blocks"),description:vt("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[vt("notice","genesis-blocks"),vt("message","genesis-blocks"),vt("atomic","genesis-blocks")],attributes:{noticeTitle:{type:"string",selector:".gb-notice-title"},noticeContent:{type:"array",selector:".gb-notice-text",source:"children"},noticeAlignment:{type:"string"},noticeBackgroundColor:{type:"string",default:"#00d1b2"},noticeTextColor:{type:"string",default:"#32373c"},noticeTitleColor:{type:"string",default:"#fff"},noticeFontSize:{type:"number",default:18},noticeDismiss:{type:"string",default:""}},gb_settings_data:{gb_notice_noticeFontSize:{title:vt("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:vt("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:vt("Notice Color","genesis-blocks")}},edit:Et,save:function(e){var t=e.attributes,n=t.noticeTitle,r=t.noticeContent,a=t.noticeBackgroundColor,o=t.noticeTitleColor,i=t.noticeDismiss;return React.createElement(pt,e,i&&"gb-dismissable"===i&&React.createElement(ft,e,gt.dismiss),n&&React.createElement("div",{className:"gb-notice-title",style:{color:o}},React.createElement(wt.Content,{tagName:"p",value:n})),r&&React.createElement(wt.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:a},value:r}))}});var xt=wp.i18n.__,Dt=wp.element.Component,Ct=wp.blockEditor.InspectorControls,Rt=wp.components,Ot=Rt.RangeControl,Pt=Rt.SelectControl,jt=Rt.PanelBody,Ht=function(e){p()(n,e);var t=St(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapFontSize,r=t.dropCapStyle,a=[{value:"gb-drop-cap-letter",label:xt("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:xt("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:xt("Border","genesis-blocks")}];return React.createElement(Ct,{key:"inspector"},React.createElement(jt,null,React.createElement(M,{id:"gb_dropcap_dropCapFontSize"},React.createElement(Ot,{label:xt("Drop Cap Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),React.createElement(M,{id:"gb_dropcap_dropCapStyle"},React.createElement(Pt,{label:xt("Drop Cap Style","genesis-blocks"),description:xt("Choose the style of the drop cap in your paragraph","genesis-blocks"),options:a,value:r,onChange:function(t){return e.props.setAttributes({dropCapStyle:t})}}))))}}]),n}(Dt);function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var zt=function(e){p()(n,e);var t=At(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.dropCapAlignment,n=e.dropCapTextColor,r=e.dropCapFontSize,a=e.dropCapStyle;return React.createElement("div",{style:{color:n,textAlign:t},className:b()(this.props.className,a,"gb-font-size-"+r,"gb-block-drop-cap")},this.props.children)}}]),n}(wp.element.Component);n(351),n(352);function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Nt=wp.i18n.__,Bt=wp.element.Component,It=wp.blocks.registerBlockType,Wt=wp.blockEditor,Ut=Wt.RichText,Vt=Wt.AlignmentToolbar,Jt=Wt.BlockControls,Gt=function(e){p()(n,e);var t=Ft(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,o=t.dropCapFontSize;return[React.createElement(Jt,{key:"controls"},React.createElement(Vt,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),React.createElement(Ht,a()({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(zt,a()({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(Ut,{tagName:"div",multiline:"p",placeholder:Nt("Add paragraph text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-drop-cap-text","gb-font-size-"+o),onChange:function(t){return e.props.setAttributes({dropCapContent:t})}}))]}}]),n}(Bt);It("genesis-blocks/gb-drop-cap",{title:Nt("Drop Cap","genesis-blocks"),description:Nt("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[Nt("drop cap","genesis-blocks"),Nt("quote","genesis-blocks"),Nt("genesis","genesis-blocks")],attributes:{dropCapContent:{type:"array",selector:".gb-drop-cap-text",source:"children"},dropCapAlignment:{type:"string"},dropCapBackgroundColor:{type:"string",default:"#f2f2f2"},dropCapTextColor:{type:"string",default:"#32373c"},dropCapFontSize:{type:"number",default:3},dropCapStyle:{type:"string",default:"drop-cap-letter"}},gb_settings_data:{gb_dropcap_dropCapFontSize:{title:Nt("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:Nt("Drop Cap Style","genesis-blocks")}},edit:Gt,save:function(e){var t=e.attributes.dropCapContent;return React.createElement(zt,e,t&&React.createElement(Ut.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});var qt=wp.i18n.__,$t=wp.element.Fragment,Kt=wp.components,Qt=Kt.SelectControl,Zt=Kt.ToggleControl,Xt=wp.blockEditor.PanelColorSettings;function en(e){var t=e.enableButtonBackgroundColor,n=e.buttonBackgroundColor,r=e.onChangeButtonColor,a=void 0===r?function(){}:r,o=e.enableButtonTextColor,i=e.buttonTextColor,s=e.onChangeButtonTextColor,l=void 0===s?function(){}:s,u=e.enableButtonSize,c=e.buttonSize,d=e.onChangeButtonSize,p=void 0===d?function(){}:d,m=e.enableButtonShape,f=e.buttonShape,h=e.onChangeButtonShape,g=void 0===h?function(){}:h,_=e.enableButtonTarget,b=e.buttonTarget,y=e.onChangeButtonTarget,v=void 0===y?function(){}:y,k=[{value:"gb-button-size-small",label:qt("Small","genesis-blocks")},{value:"gb-button-size-medium",label:qt("Medium","genesis-blocks")},{value:"gb-button-size-large",label:qt("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:qt("Extra Large","genesis-blocks")}],L=[{value:"gb-button-shape-square",label:qt("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:qt("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:qt("Circular","genesis-blocks")}];return React.createElement($t,null,React.createElement(M,{id:"gb_button_buttonOptions"},!1!==_&&React.createElement(Zt,{label:qt("Open link in new window","genesis-blocks"),checked:b,onChange:v}),!1!==u&&React.createElement(Qt,{selected:c,label:qt("Button Size","genesis-blocks"),value:c,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:p}),!1!==m&&React.createElement(Qt,{label:qt("Button Shape","genesis-blocks"),value:f,options:L.map((function(e){return{value:e.value,label:e.label}})),onChange:g}),!1!==t&&React.createElement(Xt,{title:qt("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:a,label:qt("Button Color","genesis-blocks")}]}),!1!==o&&React.createElement(Xt,{title:qt("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:l,label:qt("Button Text Color","genesis-blocks")}]})))}function tn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}wp.i18n.__;var nn=wp.element.Component,rn=wp.blockEditor.InspectorControls,an=wp.components.PanelBody,on=function(e){p()(n,e);var t=tn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonBackgroundColor,n=e.buttonTextColor,r=e.buttonSize,a=e.buttonShape,o=e.buttonTarget,i=this.props.setAttributes;return React.createElement(rn,{key:"inspector"},React.createElement(an,null,React.createElement(en,{buttonTarget:o,onChangeButtonTarget:function(e){return i({buttonTarget:!o})},buttonSize:r,onChangeButtonSize:function(e){return i({buttonSize:e})},buttonShape:a,onChangeButtonShape:function(e){return i({buttonShape:e})},buttonBackgroundColor:t,onChangeButtonColor:function(e){return i({buttonBackgroundColor:e})},buttonTextColor:n,onChangeButtonTextColor:function(e){return i({buttonTextColor:e})}})))}}]),n}(nn);function sn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ln=function(e){p()(n,e);var t=sn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:b()(this.props.className,"gb-block-button")},this.props.children)}}]),n}(wp.element.Component);n(353),n(354);function un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var cn=wp.i18n.__,dn=wp.element.Component,pn=wp.blocks.registerBlockType,mn=wp.blockEditor,fn=mn.RichText,hn=mn.AlignmentToolbar,gn=mn.BlockControls,_n=mn.URLInput,bn=wp.components,yn=bn.Button,vn=bn.Dashicon,kn=bn.Icon,Mn=function(e){p()(n,e);var t=un(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=e.isSelected,d=e.setAttributes;return[React.createElement(gn,{key:"controls"},React.createElement(hn,{value:o,onChange:function(e){d({buttonAlignment:e})}})),React.createElement(on,a()({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(ln,a()({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(fn,{tagName:"span",placeholder:cn("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:b()("gb-button",u,l),style:{color:s||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),c&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(vn,{icon:"admin-links"}),React.createElement(_n,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),React.createElement(yn,{label:cn("Apply","genesis-blocks"),type:"submit"},React.createElement(kn,{icon:"editor-break"})))]}}]),n}(dn);function Ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}pn("genesis-blocks/gb-button",{title:cn("Button","genesis-blocks"),description:cn("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[cn("button","genesis-blocks"),cn("link","genesis-blocks"),cn("genesis","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},gb_settings_data:{gb_button_buttonOptions:{title:cn("Button Options","genesis-blocks")}},edit:Mn,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget;return React.createElement(ln,e,n&&React.createElement("a",{href:r,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o||"#ffffff",backgroundColor:a||"#3373dc"}},React.createElement(fn.Content,{value:n})))}});var wn=wp.i18n.__,Tn=wp.element,Yn=Tn.Component,En=Tn.Fragment,Sn=wp.blockEditor,xn=Sn.InspectorControls,Dn=Sn.PanelColorSettings,Cn=wp.components,Rn=Cn.PanelBody,On=Cn.RangeControl,Pn=Cn.ToggleControl,jn=Cn.SelectControl,Hn=function(e){p()(n,e);var t=Ln(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.spacerHeight,a=n.spacerDivider,o=n.spacerDividerStyle,i=n.spacerDividerColor,s=n.spacerDividerHeight,l=t.setAttributes,u=[{value:"gb-divider-solid",label:wn("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:wn("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:wn("Dotted","genesis-blocks")}];return React.createElement(xn,{key:"inspector"},React.createElement(Rn,null,React.createElement(M,{id:"gb_spacer_spacerHeight"},React.createElement(On,{label:wn("Spacer Height","genesis-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),React.createElement(M,{id:"gb_spacer_spacerDivider"},React.createElement(Pn,{label:wn("Add Divider","genesis-blocks"),checked:a,onChange:function(){return e.props.setAttributes({spacerDivider:!a})}}))),a?React.createElement(En,null,React.createElement(Rn,null,React.createElement(M,{id:"gb_spacer_spacerDividerStyle"},React.createElement(jn,{label:wn("Divider Style","genesis-blocks"),value:o,options:u.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),React.createElement(M,{id:"gb_spacer_spacerDividerHeight"},React.createElement(On,{label:wn("Divider Height","genesis-blocks"),value:s||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),React.createElement(M,{id:"gb_spacer_dividerColor"},React.createElement(Dn,{title:wn("Divider Color","genesis-blocks"),initialOpen:!1,colorSettings:[{colors:[{color:"#ddd",name:"white"},{color:"#333",name:"black"},{color:"#3373dc",name:"royal blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"}],value:i,onChange:function(e){return l({spacerDividerColor:e})},label:wn("Divider Color","genesis-blocks")}]}))):null)}}]),n}(Yn);function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var zn,Fn=function(e){p()(n,e);var t=An(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.spacerDivider,n=e.spacerDividerStyle,r=e.spacerDividerColor,a=e.spacerDividerHeight;return React.createElement("div",{style:{color:r},className:b()(this.props.className,"gb-block-spacer",n,{"gb-spacer-divider":t},"gb-divider-size-"+a)},this.props.children)}}]),n}(wp.element.Component),Nn=n(9),Bn=n.n(Nn),In=(zn=function(e,t){return(zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}zn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Wn=function(){return(Wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Un={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Vn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return In(t,e),t.prototype.render=function(){return Nn.createElement("div",{className:this.props.className||"",style:Wn(Wn({position:"absolute",userSelect:"none"},Un[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(Nn.PureComponent),Jn=n(14),Gn=n.n(Jn),qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$n=function(){return($n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Kn={width:"auto",height:"auto"},Qn=Gn()((function(e,t,n){return Math.max(Math.min(e,n),t)})),Zn=Gn()((function(e,t){return Math.round(e/t)*t})),Xn=Gn()((function(e,t){return new RegExp(e,"i").test(t)})),er=Gn()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n}),0),a=Math.abs(t[r]-e);return 0===n||a<n?t[r]:e})),tr=Gn()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),nr=Gn()((function(e){return"auto"===(e=e.toString())||tr(e,"px")||tr(e,"%")||tr(e,"vh")||tr(e,"vw")||tr(e,"vmax")||tr(e,"vmin")?e:e+"px"})),rr=function(e,t,n,r){if(e&&"string"==typeof e){if(tr(e,"%"))return t*(Number(e.replace("%",""))/100);if(tr(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(tr(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},ar=Gn()((function(e,t,n,r,a,o,i){return r=rr(r,e.width,t,n),a=rr(a,e.height,t,n),o=rr(o,e.width,t,n),i=rr(i,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===a?void 0:Number(a),minWidth:void 0===o?void 0:Number(o),minHeight:void 0===i?void 0:Number(i)}})),or=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],ir=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return qn(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Kn},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){var e=this.parentNode;if(e)for(var t=0,n=[].slice.call(e.children);t<n.length;t++){var r=n[t];if(r.classList.contains("__resizable_base__"))return r}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=a}return{width:e,height:t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&tr(e.propsSize[t].toString(),"%")){if(tr(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return nr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?nr(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?nr(t.height):n("height")}},enumerable:!0,configurable:!0}),t.prototype.getParentSize=function(){if(!this.base||!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=!1,t=this.parentNode.style.flexWrap,n=this.base.style.minWidth;"wrap"!==t&&(e=!0,this.parentNode.style.flexWrap="wrap"),this.base.style.position="relative",this.base.style.minWidth="100%";var r={width:this.base.offsetWidth,height:this.base.offsetHeight};return this.base.style.position="absolute",e&&(this.parentNode.style.flexWrap=t),this.base.style.minWidth=n,r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0});var t=this.parentNode;if(t&&!this.base){var n=this.window.document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.transform="scale(0, 0)",n.style.left="0",n.style.flex="0",n.classList?n.classList.add("__resizable_base__"):n.className+="__resizable_base__",t.appendChild(n)}}},t.prototype.componentWillUnmount=function(){if(this.window){this.unbindEvents();var e=this.parentNode;if(!this.base||!e)return;if(!e||!this.base)return;e.removeChild(this.base)}},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),a=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}}else if("window"===this.props.bounds){if(this.window){r=this.window.innerWidth-this.resizableLeft,a=this.window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<a?t:a}}else if(this.props.bounds){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),a=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,a=this.state,o=a.direction,i=a.original,s=this.props,l=s.lockAspectRatio,u=s.lockAspectRatioExtraHeight,c=s.lockAspectRatioExtraWidth,d=i.width,p=i.height,m=u||0,f=c||0;return Xn("right",o)&&(d=i.width+(e-i.x)*r/n,l&&(p=(d-f)/this.ratio+m)),Xn("left",o)&&(d=i.width-(e-i.x)*r/n,l&&(p=(d-f)/this.ratio+m)),Xn("bottom",o)&&(p=i.height+(t-i.y)*r/n,l&&(d=(p-m)*this.ratio+f)),Xn("top",o)&&(p=i.height-(t-i.y)*r/n,l&&(d=(p-m)*this.ratio+f)),{newWidth:d,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var a=this.props,o=a.lockAspectRatio,i=a.lockAspectRatioExtraHeight,s=a.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,u=void 0===n.width||n.width<0?e:n.width,c=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,p=i||0,m=s||0;if(o){var f=(c-p)*this.ratio+m,h=(d-p)*this.ratio+m,g=(l-m)/this.ratio+p,_=(u-m)/this.ratio+p,b=Math.max(l,f),y=Math.min(u,h),v=Math.max(c,g),k=Math.min(d,_);e=Qn(e,b,y),t=Qn(t,v,k)}else e=Qn(e,l,u),t=Qn(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,o=r.top;this.resizableLeft=a,this.resizableTop=o}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,a=0;if(e.nativeEvent instanceof this.window.MouseEvent){if(r=e.nativeEvent.clientX,a=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof this.window.TouchEvent&&(r=e.nativeEvent.touches[0].clientX,a=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var i=this.parentNode;if(i){var s=this.window.getComputedStyle(i).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:$n($n({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){var t=this.props,n=t.maxWidth,r=t.maxHeight,a=t.minWidth,o=t.minHeight,i=e instanceof this.window.MouseEvent?e.clientX:e.touches[0].clientX,s=e instanceof this.window.MouseEvent?e.clientY:e.touches[0].clientY,l=this.state,u=l.direction,c=l.original,d=l.width,p=l.height,m=this.getParentSize(),f=ar(m,this.window.innerWidth,this.window.innerHeight,n,r,a,o);n=f.maxWidth,r=f.maxHeight,a=f.minWidth,o=f.minHeight;var h=this.calculateNewSizeFromDirection(i,s),g=h.newHeight,_=h.newWidth,b=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(_,g,{width:b.maxWidth,height:b.maxHeight},{width:a,height:o});if(_=y.newWidth,g=y.newHeight,this.props.grid){var v=Zn(_,this.props.grid[0]),k=Zn(g,this.props.grid[1]),M=this.props.snapGap||0;_=0===M||Math.abs(v-_)<=M?v:_,g=0===M||Math.abs(k-g)<=M?k:g}this.props.snap&&this.props.snap.x&&(_=er(_,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=er(g,this.props.snap.y,this.props.snapGap));var L={width:_-c.width,height:g-c.height};if(d&&"string"==typeof d)if(tr(d,"%"))_=_/m.width*100+"%";else if(tr(d,"vw")){_=_/this.window.innerWidth*100+"vw"}else if(tr(d,"vh")){_=_/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(tr(p,"%"))g=g/m.height*100+"%";else if(tr(p,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(tr(p,"vh")){g=g/this.window.innerHeight*100+"vh"}var w={width:this.createSizeForCssProperty(_,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?w.flexBasis=w.width:"column"===this.flexDir&&(w.flexBasis=w.height),this.setState(w),this.props.onResize&&this.props.onResize(e,u,this.resizable,L)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,a=t.original;if(n&&this.resizable){var o={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:$n($n({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,a=t.handleClasses,o=t.handleWrapperStyle,i=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?Nn.createElement(Vn,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:a&&a[t]},s&&s[t]?s[t]:null):null}));return Nn.createElement("span",{className:i,style:o},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==or.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=$n($n($n({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as;return Nn.createElement(r,$n({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&Nn.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(Nn.PureComponent);n(355),n(356);function sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var lr=wp.i18n.__,ur=wp.element.Component,cr=wp.blocks.registerBlockType,dr=function(e){p()(n,e);var t=sr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacerHeight,r=t.spacerDividerColor,o=e.className,i=e.setAttributes,s=e.toggleSelection;return[React.createElement(Hn,a()({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement(Fn,a()({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(ir,{className:b()(o,"gb-spacer-handle"),style:{color:r},size:{width:"100%",height:n},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"gb-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:function(){s(!1)},onResizeStop:function(e,t,r,a){i({spacerHeight:parseInt(n+a.height,10)}),s(!0)}}))]}}]),n}(ur);function pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}cr("genesis-blocks/gb-spacer",{title:lr("Spacer","genesis-blocks"),description:lr("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[lr("spacer","genesis-blocks"),lr("divider","genesis-blocks"),lr("atomic","genesis-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"gb-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},gb_settings_data:{gb_spacer_spacerHeight:{title:lr("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:lr("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:lr("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:lr("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:lr("Divider Color","genesis-blocks")}},edit:dr,save:function(e){var t=e.attributes.spacerHeight;return React.createElement(Fn,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var mr=wp.i18n.__,fr=wp.element.Component,hr=wp.blockEditor.InspectorControls,gr=wp.components,_r=gr.PanelBody,br=gr.RangeControl,yr=gr.ToggleControl,vr=function(e){p()(n,e);var t=pr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return React.createElement(hr,{key:"inspector"},React.createElement(_r,null,React.createElement(M,{id:"gb_accordion_accordionFontSize"},React.createElement(br,{label:mr("Title Font Size","genesis-blocks"),value:this.props.attributes.accordionFontSize,onChange:function(t){return e.props.setAttributes({accordionFontSize:t})},min:14,max:24,step:1})),React.createElement(M,{id:"gb_accordion_accordionOpen"},React.createElement(yr,{label:mr("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}]),n}(fr);function kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mr=function(e){p()(n,e);var t=kr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.accordionAlignment?"gb-align-"+this.props.attributes.accordionAlignment:void 0,"gb-block-accordion",this.props.attributes.accordionFontSize?"gb-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}]),n}(wp.element.Component);function Lr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var wr=wp.i18n.__,Tr=wp.element.Component,Yr=wp.blockEditor,Er=Yr.RichText,Sr=Yr.AlignmentToolbar,xr=Yr.BlockControls,Dr=Yr.InnerBlocks,Cr=function(e){p()(n,e);var t=Lr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return[React.createElement(xr,{key:"controls"},React.createElement(Sr,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),React.createElement(vr,a()({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(Mr,a()({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(Er,{tagName:"p",placeholder:wr("Accordion Title","genesis-blocks"),value:this.props.attributes.accordionTitle,className:"gb-accordion-title",onChange:function(t){return e.props.setAttributes({accordionTitle:t})}}),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Dr,null)))]}}]),n}(Tr);function Rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Or=wp.element.Component,Pr=wp.blockEditor,jr=Pr.RichText,Hr=Pr.InnerBlocks,Ar=function(e){p()(n,e);var t=Rr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement(Mr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(jr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Hr.Content,null))))}}]),n}(Or);function zr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Fr=function(e){p()(n,e);var t=zr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.accordionAlignment,n=e.accordionFontSize;return React.createElement("div",{style:{},className:b()(this.props.className,t,"gb-block-accordion","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Br=wp.element.Component,Ir=wp.blockEditor,Wr=Ir.RichText,Ur=Ir.InnerBlocks,Vr=function(e){p()(n,e);var t=Nr(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement(Fr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Wr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Ur.Content,null))))}}]),n}(Br),Jr=[{attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:function(e){return React.createElement(Vr,e)}}],Gr=(n(357),n(358),wp.i18n.__),qr=(wp.element.Component,{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}});function $r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-accordion",{title:Gr("Accordion","genesis-blocks"),description:Gr("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[Gr("accordion","genesis-blocks"),Gr("list","genesis-blocks"),Gr("genesis","genesis-blocks")],attributes:qr,gb_settings_data:{gb_accordion_accordionFontSize:{title:Gr("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:Gr("Open by default","genesis-blocks")}},edit:function(e){return React.createElement(Cr,e)},save:function(e){return React.createElement(Ar,e)},deprecated:Jr});var Kr=wp.i18n.__,Qr=wp.element.Component,Zr=wp.blockEditor,Xr=Zr.InspectorControls,ea=Zr.PanelColorSettings,ta=Zr.MediaUpload,na=wp.components,ra=na.Button,aa=na.Icon,oa=na.PanelBody,ia=na.RangeControl,sa=na.SelectControl,la=na.ToggleControl,ua=function(e){p()(n,e);var t=$r(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.buttonBackgroundColor,r=t.buttonTextColor,a=t.buttonSize,o=t.buttonShape,i=t.buttonTarget,s=t.titleFontSize,l=t.ctaTextFontSize,u=t.ctaBackgroundColor,c=t.ctaTextColor,d=t.dimRatio,p=t.imgURL,m=t.imgID,f=this.props.setAttributes,h=[{value:"gb-button-size-small",label:Kr("Small")},{value:"gb-button-size-medium",label:Kr("Medium")},{value:"gb-button-size-large",label:Kr("Large")},{value:"gb-button-size-extralarge",label:Kr("Extra Large")}],g=[{value:"gb-button-shape-square",label:Kr("Square")},{value:"gb-button-shape-rounded",label:Kr("Rounded Square")},{value:"gb-button-shape-circular",label:Kr("Circular")}],_=function(){f({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(Xr,{key:"inspector"},React.createElement(M,{id:"gb_cta_textOptions"},React.createElement(oa,{title:Kr("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(ia,{label:Kr("Title Font Size","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),React.createElement(ia,{label:Kr("Text Font Size","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),React.createElement(ea,{title:Kr("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return f({ctaTextColor:e})},label:Kr("Text Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_cta_backgroundOptions"},React.createElement(oa,{title:Kr("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,Kr("Select a background image:","genesis-blocks")),React.createElement(ta,{onSelect:function(e){f({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:m,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(ra,{className:"gb-cta-inspector-media",label:Kr("Edit image","genesis-blocks"),onClick:t},React.createElement(aa,{icon:"format-image"}),Kr("Select Image","genesis-blocks")),p&&!!p.length&&React.createElement(ra,{className:"gb-cta-inspector-media",label:Kr("Remove Image","genesis-blocks"),onClick:_},React.createElement(aa,{icon:"dismiss"}),Kr("Remove","genesis-blocks")))}}),p&&!!p.length&&React.createElement(ia,{label:Kr("Image Opacity","genesis-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),React.createElement(ea,{title:Kr("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return f({ctaBackgroundColor:e})},label:Kr("Overlay Color","genesis-blocks")}]}))),React.createElement(M,{id:"gb_cta_buttonOptions"},React.createElement(oa,{title:Kr("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(la,{label:Kr("Open link in new window","genesis-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),React.createElement(sa,{label:Kr("Button Size","genesis-blocks"),value:a,options:h.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonSize:t})}}),React.createElement(sa,{label:Kr("Button Shape","genesis-blocks"),value:o,options:g.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonShape:t})}}),React.createElement(ea,{title:Kr("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return f({buttonBackgroundColor:e})},label:Kr("Button Color","genesis-blocks")}]}),React.createElement(ea,{title:Kr("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return f({buttonTextColor:e})},label:Kr("Button Text Color","genesis-blocks")}]}))))}}]),n}(Qr);function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var da=function(e){p()(n,e);var t=ca(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ma=function(e){p()(n,e);var t=pa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ha=function(e){p()(n,e);var t=fa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=(e.ctaWidth,e.ctaBackgroundColor),a=(e.ctaTextColor,b()([this.props.className,"gb-block-cta"],i()({},"gb-font-size-"+n,n))),o={backgroundColor:r||void 0,textAlign:t||void 0};return React.createElement("div",{style:o,className:a||void 0},this.props.children)}}]),n}(wp.element.Component);function ga(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var _a=function(e){p()(n,e);var t=ga(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=e.ctaWidth,a=e.ctaBackgroundColor;e.ctaTextColor;return React.createElement("div",{style:{backgroundColor:a,textAlign:t},className:b()(this.props.className,"align".concat(r),"gb-block-cta","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ya=wp.blockEditor.RichText,va=[{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.titleFontSize,m=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(ma,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+p),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(ha,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+p),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string",default:"#f2f2f2"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.ctaTextFontSize,m=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),f=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(_a,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",ka(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(ya.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:m},value:u}),c&&React.createElement(ya.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+p),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(ya.Content,{value:n}))))},migrate:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function ka(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(359),n(360);function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ta=wp.i18n.__,Ya=wp.element.Component,Ea=wp.blocks.registerBlockType,Sa=wp.blockEditor,xa=Sa.AlignmentToolbar,Da=Sa.URLInput,Ca=Sa.BlockControls,Ra=Sa.BlockAlignmentToolbar,Oa=Sa.RichText,Pa=wp.components,ja=Pa.Button,Ha=Pa.Dashicon,Aa=Pa.Icon,za=function(e){p()(n,e);var t=wa(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=t.ctaTitle,d=t.ctaText,p=t.titleFontSize,m=t.ctaTextFontSize,f=t.ctaWidth,h=t.ctaTextColor,g=t.imgURL,_=t.imgAlt,y=t.dimRatio,v=e.isSelected,k=e.setAttributes;return[React.createElement(Ca,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(Ra,{value:f,onChange:function(e){return k({ctaWidth:e})},controls:["center","wide","full"]}),React.createElement(xa,{value:o,onChange:function(e){k({buttonAlignment:e})}})),React.createElement(ua,a()({key:"gb-cta-inspector-"+this.props.clientId},La({setAttributes:k},this.props))),React.createElement(da,a()({key:"gb-cta-"+this.props.clientId},this.props),g&&!!g.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Fa(y),{"has-background-dim":0!==y}),src:g,alt:_})),React.createElement("div",{className:"gb-cta-content"},React.createElement(Oa,{tagName:"h2",placeholder:Ta("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:c,className:b()("gb-cta-title","gb-font-size-"+p),style:{color:h},onChange:function(e){return k({ctaTitle:e})}}),React.createElement(Oa,{tagName:"div",multiline:"p",placeholder:Ta("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:d,className:b()("gb-cta-text","gb-font-size-"+m),style:{color:h},onChange:function(e){return k({ctaText:e})}})),React.createElement("div",{className:"gb-cta-button"},React.createElement(Oa,{tagName:"span",placeholder:Ta("Button text…","genesis-blocks"),value:n,allowedFormats:[],className:b()("gb-button",u,l),style:{color:s,backgroundColor:i},onChange:function(e){return k({buttonText:e})}}),v&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(Ha,{icon:"admin-links"}),React.createElement(Da,{className:"button-url",value:r,onChange:function(e){return k({buttonUrl:e})}}),React.createElement(ja,{label:Ta("Apply","genesis-blocks"),type:"submit"},React.createElement(Aa,{icon:"editor-break"})))))]}}]),n}(Ya);function Fa(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Ea("genesis-blocks/gb-cta",{title:Ta("Call To Action","genesis-blocks"),description:Ta("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[Ta("call to action","genesis-blocks"),Ta("cta","genesis-blocks"),Ta("atomic","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},gb_settings_data:{gb_cta_textOptions:{title:Ta("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:Ta("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:Ta("Button Options","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:za,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,u=t.ctaTitle,c=t.ctaText,d=t.ctaTitleFontSize,p=t.titleFontSize,m=t.ctaTextColor,f=t.imgURL,h=t.imgAlt,g=t.dimRatio;return React.createElement(da,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Fa(g),{"has-background-dim":0!==g}),src:f,alt:h})),React.createElement("div",{className:"gb-cta-content"},u&&React.createElement(Oa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+p),style:{color:m},value:u}),c&&React.createElement(Oa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:m},value:c})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:"noopener noreferrer",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Oa.Content,{value:n}))))},deprecated:va});var Ba=wp.i18n.__,Ia=wp.element.Component,Wa=wp.blockEditor.InspectorControls,Ua=wp.components,Va=Ua.PanelBody,Ja=Ua.SelectControl,Ga=Ua.ToggleControl,qa=function(e){p()(n,e);var t=Na(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=[{value:"gb-share-icon-text",label:Ba("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:Ba("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:Ba("Text Only","genesis-blocks")}],n=[{value:"gb-share-shape-square",label:Ba("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:Ba("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:Ba("Circular","genesis-blocks")}],r=[{value:"gb-share-size-small",label:Ba("Small","genesis-blocks")},{value:"gb-share-size-medium",label:Ba("Medium","genesis-blocks")},{value:"gb-share-size-large",label:Ba("Large","genesis-blocks")}],a=[{value:"gb-share-color-standard",label:Ba("Standard","genesis-blocks")},{value:"gb-share-color-social",label:Ba("Social Colors","genesis-blocks")}];return React.createElement(Wa,{key:"inspector"},React.createElement(M,{id:"gb_sharing_links"},React.createElement(Va,null,React.createElement("p",null,Ba("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(Ga,{label:Ba("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),React.createElement(Ga,{label:Ba("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),React.createElement(Ga,{label:Ba("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),React.createElement(Ga,{label:Ba("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),React.createElement(Ga,{label:Ba("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),React.createElement(Ga,{label:Ba("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),React.createElement(Va,{title:Ba("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(M,{id:"gb_sharing_shareButtonStyle"},React.createElement(Ja,{label:Ba("Button Style","genesis-blocks"),value:this.props.attributes.shareButtonStyle,options:t.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonStyle:t})}})),React.createElement(M,{id:"gb_sharing_shareButtonShape"},React.createElement(Ja,{label:Ba("Button Shape","genesis-blocks"),value:this.props.attributes.shareButtonShape,options:n.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonShape:t})}})),React.createElement(M,{id:"gb_sharing_shareButtonSize"},React.createElement(Ja,{label:Ba("Button Size","genesis-blocks"),value:this.props.attributes.shareButtonSize,options:r.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonSize:t})}})),React.createElement(M,{id:"gb_sharing_shareButtonColor"},React.createElement(Ja,{label:Ba("Button Color","genesis-blocks"),value:this.props.attributes.shareButtonColor,options:a.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonColor:t})}}))))}}]),n}(Ia);function $a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ka=function(e){p()(n,e);var t=$a(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"gb-align-"+this.props.attributes.shareAlignment:void 0,"gb-block-sharing")},this.props.children)}}]),n}(wp.element.Component);function Qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Za=wp.i18n.__,Xa=wp.element.Component,eo=wp.blockEditor,to=eo.AlignmentToolbar,no=eo.BlockControls,ro=function(e){p()(n,e);var t=Qa(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return[React.createElement(no,{key:"controls"},React.createElement(to,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),React.createElement(qa,a()({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(Ka,a()({key:"gb-share-links-"+this.props.clientId},this.props),React.createElement("ul",{className:"gb-share-list"},this.props.attributes.twitter&&React.createElement("li",null,React.createElement("a",{className:"gb-share-twitter"},React.createElement("i",{className:"fab fa-twitter"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("i",{className:"fab fa-facebook-f"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("i",{className:"fab fa-pinterest-p"}),React.createElement("span",{className:"gb-social-text"},Za("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("i",{className:"fab fa-linkedin"}),React.createElement("span",{className:"gb-social-text"},Za("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("i",{className:"fab fa-reddit-alien"}),React.createElement("span",{className:"gb-social-text"},Za("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("i",{className:"fas fa-envelope"}),React.createElement("span",{className:"gb-social-text"},Za("Share via Email","genesis-blocks"))))))]}}]),n}(Xa),ao=(n(361),n(362),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-sharing",{title:ao("Sharing","genesis-blocks"),description:ao("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[ao("sharing","genesis-blocks"),ao("social","genesis-blocks"),ao("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:ao("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:ao("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:ao("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:ao("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:ao("Button Color","genesis-blocks")}},edit:function(e){return React.createElement(ro,e)},save:function(){return null}});var oo=n(49),io=n.n(oo),so=n(50),lo=n.n(so),uo=n(6),co=n.n(uo),po=n(51),mo=n.n(po),fo=n(11),ho=n.n(fo);function go(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var _o=function(e,t){var n;void 0===t&&(t=go);var r,a=[],o=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return o&&n===this&&t(i,a)||(r=e.apply(this,i),o=!0,n=this,a=i),r}},bo=n(210),yo=n.n(bo);var vo=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);a.insertRule(e,o?0:a.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var ko=function(e){function t(e,t,r){var a=t.trim().split(f);t=a;var o=a.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<i;++u)t[l++]=n(e[u]+" ",a[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var i=e+";",s=2*t+3*n+4*o;if(944===s){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===x||2===x&&a(l,1)?"-webkit-"+l+l:l}if(0===x||2===x&&!a(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(T,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(l=i.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=i.replace(y,"tb");break;case 232:l=i.replace(y,"tb-rl");break;case 220:l=i.replace(y,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(l=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(M,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(M,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===w.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+o&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+i}return i}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(L,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,a,o,i,s,u,c){for(var d,p=0,m=t;p<R;++p)switch(d=C[p].call(l,e,m,n,r,a,o,i,s,u,c)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?x=1:(x=2,O=e):x=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<R){var l=i(-1,n,s,s,E,Y,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,p){for(var m,f,h,y,k,M=0,L=0,w=0,T=0,C=0,O=0,j=h=m=0,H=0,A=0,z=0,F=0,N=l.length,B=N-1,I="",W="",U="",V="";H<N;){if(f=l.charCodeAt(H),H===B&&0!==L+T+w+M&&(0!==L&&(f=47===L?10:47),T=w=M=0,N++,B++),0===L+T+w+M){if(H===B&&(0<A&&(I=I.replace(c,"")),0<I.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:I+=l.charAt(H)}f=59}switch(f){case 123:for(m=(I=I.trim()).charCodeAt(0),h=1,F=++H;H<N;){switch(f=l.charCodeAt(H)){case 123:h++;break;case 125:h--;break;case 47:switch(f=l.charCodeAt(H+1)){case 42:case 47:e:{for(j=H+1;j<B;++j)switch(l.charCodeAt(j)){case 47:if(42===f&&42===l.charCodeAt(j-1)&&H+2!==j){H=j+1;break e}break;case 10:if(47===f){H=j+1;break e}}H=j}}break;case 91:f++;case 40:f++;case 34:case 39:for(;H++<B&&l.charCodeAt(H)!==f;);}if(0===h)break;H++}switch(h=l.substring(F,H),0===m&&(m=(I=I.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<A&&(I=I.replace(c,"")),f=I.charCodeAt(1)){case 100:case 109:case 115:case 45:A=s;break;default:A=D}if(F=(h=e(s,A,h,f,p+1)).length,0<R&&(k=i(3,h,A=t(D,I,z),s,E,Y,F,f,p,d),I=A.join(""),void 0!==k&&0===(F=(h=k.trim()).length)&&(f=0,h="")),0<F)switch(f){case 115:I=I.replace(v,o);case 100:case 109:case 45:h=I+"{"+h+"}";break;case 107:h=(I=I.replace(g,"$1 $2"))+"{"+h+"}",h=1===x||2===x&&a("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=I+h,112===d&&(W+=h,h="")}else h="";break;default:h=e(s,t(s,I,z),h,d,p+1)}U+=h,h=z=A=j=m=0,I="",f=l.charCodeAt(++H);break;case 125:case 59:if(1<(F=(I=(0<A?I.replace(c,""):I).trim()).length))switch(0===j&&(m=I.charCodeAt(0),45===m||96<m&&123>m)&&(F=(I=I.replace(" ",":")).length),0<R&&void 0!==(k=i(1,I,s,n,E,Y,W.length,d,p,d))&&0===(F=(I=k.trim()).length)&&(I="\0\0"),m=I.charCodeAt(0),f=I.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){V+=I+l.charAt(H);break}default:58!==I.charCodeAt(F-1)&&(W+=r(I,m,f,I.charCodeAt(2)))}z=A=j=m=0,I="",f=l.charCodeAt(++H)}}switch(f){case 13:case 10:47===L?L=0:0===1+m&&107!==d&&0<I.length&&(A=1,I+="\0"),0<R*P&&i(0,I,s,n,E,Y,W.length,d,p,d),Y=1,E++;break;case 59:case 125:if(0===L+T+w+M){Y++;break}default:switch(Y++,y=l.charAt(H),f){case 9:case 32:if(0===T+M+L)switch(C){case 44:case 58:case 9:case 32:y="";break;default:32!==f&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===T+L+M&&(A=z=1,y="\f"+y);break;case 108:if(0===T+L+M+S&&0<j)switch(H-j){case 2:112===C&&58===l.charCodeAt(H-3)&&(S=C);case 8:111===O&&(S=O)}break;case 58:0===T+L+M&&(j=H);break;case 44:0===L+w+T+M&&(A=1,y+="\r");break;case 34:case 39:0===L&&(T=T===f?0:0===T?f:T);break;case 91:0===T+L+w&&M++;break;case 93:0===T+L+w&&M--;break;case 41:0===T+L+M&&w--;break;case 40:if(0===T+L+M){if(0===m)switch(2*C+3*O){case 533:break;default:m=1}w++}break;case 64:0===L+w+T+M+j+h&&(h=1);break;case 42:case 47:if(!(0<T+M+w))switch(L){case 0:switch(2*f+3*l.charCodeAt(H+1)){case 235:L=47;break;case 220:F=H,L=42}break;case 42:47===f&&42===C&&F+2!==H&&(33===l.charCodeAt(F+2)&&(W+=l.substring(F,H+1)),y="",L=0)}}0===L&&(I+=y)}O=C,C=f,H++}if(0<(F=W.length)){if(A=s,0<R&&(void 0!==(k=i(2,W,A,n,E,Y,F,d,p,d))&&0===(W=k).length))return V+W+U;if(W=A.join(",")+"{"+W+"}",0!=x*S){switch(2!==x||a(W,2)||(S=0),S){case 111:W=W.replace(b,":-moz-$1")+W;break;case 112:W=W.replace(_,"::-webkit-input-$1")+W.replace(_,"::-moz-$1")+W.replace(_,":-ms-input-$1")+W}S=0}}return V+W+U}(D,s,n,0,0);return 0<R&&(void 0!==(l=i(-2,d,s,s,E,Y,d.length,0,0,0))&&(d=l)),"",S=0,Y=E=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,m=/([,: ])(transform)/g,f=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,M=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,w=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,Y=1,E=1,S=0,x=1,D=[],C=[],R=0,O=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:R=C.length=0;break;default:if("function"==typeof t)C[R++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else P=0|!!t}return e},l.set=s,void 0!==e&&s(e),l};function Mo(e){e&&Lo.current.insert(e+"}")}var Lo={current:null},wo=function(e,t,n,r,a,o,i,s,l,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Lo.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return Lo.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Mo)}},To=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new ko(t);var a,o={};a=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),r.use(e.stylisPlugins)(wo),i=function(e,t,n,a){var o=t.name;Lo.current=n,r(e,t.styles),a&&(l.inserted[o]=!0)};var l={key:n,sheet:new vo({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:i};return l};function Yo(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Eo=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var a=t;do{e.insert("."+r,a,e.sheet,!0);a=a.next}while(void 0!==a)}};var So=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},xo={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Do=/[A-Z]|^ms/g,Co=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ro=function(e){return 45===e.charCodeAt(1)},Oo=function(e){return null!=e&&"boolean"!=typeof e},Po=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Ro(e)?e:e.replace(Do,"-$&").toLowerCase()})),jo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Co,(function(e,t,n){return Ao={name:t,styles:n,next:Ao},t}))}return 1===xo[e]||Ro(e)||"number"!=typeof t||0===t?t:t+"px"};function Ho(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ao={name:n.name,styles:n.styles,next:Ao},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)Ao={name:a.name,styles:a.styles,next:Ao},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Ho(e,t,n[a],!1);else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":Oo(i)&&(r+=Po(o)+":"+jo(o,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Ho(e,t,i,!1);switch(o){case"animation":case"animationName":r+=Po(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Oo(i[l])&&(r+=Po(o)+":"+jo(o,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ao,i=n(e);return Ao=o,Ho(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Ao,zo=/label:\s*([^\s;\n{]+)\s*;/g;var Fo=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";Ao=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=Ho(n,t,o,!1)):a+=o[0];for(var i=1;i<e.length;i++)a+=Ho(n,t,e[i],46===a.charCodeAt(a.length-1)),r&&(a+=o[i]);zo.lastIndex=0;for(var s,l="";null!==(s=zo.exec(a));)l+="-"+s[1];return{name:So(a)+l,styles:a,next:Ao}};var No=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fo(t)},Bo=Object(Nn.createContext)("undefined"!=typeof HTMLElement?To():null),Io=Object(Nn.createContext)({}),Wo=Bo.Provider,Uo=function(e){return Object(Nn.forwardRef)((function(t,n){return Object(Nn.createElement)(Bo.Consumer,null,(function(r){return e(t,r,n)}))}))},Vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jo=Object.prototype.hasOwnProperty,Go=function(e,t,n,r){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var o=t[Vo],i=[a],s="";"string"==typeof t.className?s=Yo(e.registered,i,t.className):null!=t.className&&(s=t.className+" ");var l=Fo(i);Eo(e,l,"string"==typeof o);s+=e.key+"-"+l.name;var u={};for(var c in t)Jo.call(t,c)&&"css"!==c&&c!==Vo&&(u[c]=t[c]);return u.ref=r,u.className=s,Object(Nn.createElement)(o,u)},qo=Uo((function(e,t,n){return"function"==typeof e.css?Object(Nn.createElement)(Io.Consumer,null,(function(r){return Go(t,e,r,n)})):Go(t,e,null,n)}));var $o=function(e,t){var n=arguments;if(null==t||!Jo.call(t,"css"))return Nn.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=qo;var o={};for(var i in t)Jo.call(t,i)&&(o[i]=t[i]);o[Vo]=e,a[1]=o;for(var s=2;s<r;s++)a[s]=n[s];return Nn.createElement.apply(null,a)},Ko=(Nn.Component,function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a});function Qo(e,t,n){var r=[],a=Yo(e,r,n);return r.length<2?n:a+t(r)}var Zo=Uo((function(e,t){return Object(Nn.createElement)(Io.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=Fo(n,t.registered);return Eo(t,a,!1),t.key+"-"+a.name},a={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return Qo(t.registered,r,Ko(n))},theme:n},o=e.children(a);return!0,o}))})),Xo=n(22),ei=n(23),ti=n.n(ei),ni=function(){};function ri(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ai(e,t,n){var r=[n];if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push(""+ri(e,a));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var oi=function(e){return Array.isArray(e)?e.filter(Boolean):"object"==typeof e&&null!==e?[e]:[]};function ii(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function si(e){return ii(e)?window.pageYOffset:e.scrollTop}function li(e,t){ii(e)?window.scrollTo(0,t):e.scrollTop=t}function ui(e,t,n,r){void 0===n&&(n=200),void 0===r&&(r=ni);var a=si(e),o=t-a,i=0;!function t(){var s,l=o*((s=(s=i+=10)/n-1)*s*s+1)+a;li(e,l),i<n?window.requestAnimationFrame(t):r(e)}()}function ci(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var di=n(48),pi=n.n(di);function mi(){return(mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function fi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function hi(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,a=document.documentElement;if("fixed"===t.position)return a;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return a}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,m=d.height,f=d.top,h=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,_=si(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),v=h-y,k=g-f,M=v+_,L=c-_-f,w=p-g+_+b,T=_+f-y;switch(a){case"auto":case"bottom":if(k>=m)return{placement:"bottom",maxHeight:t};if(L>=m&&!i)return o&&ui(l,w,160),{placement:"bottom",maxHeight:t};if(!i&&L>=r||i&&k>=r)return o&&ui(l,w,160),{placement:"bottom",maxHeight:i?k-b:L-b};if("auto"===a||i){var Y=t,E=i?v:M;return E>=r&&(Y=Math.min(E-b-s.controlHeight,t)),{placement:"top",maxHeight:Y}}if("bottom"===a)return li(l,w),{placement:"bottom",maxHeight:t};break;case"top":if(v>=m)return{placement:"top",maxHeight:t};if(M>=m&&!i)return o&&ui(l,T,160),{placement:"top",maxHeight:t};if(!i&&M>=r||i&&v>=r){var S=t;return(!i&&M>=r||i&&v>=r)&&(S=i?v-y:M-y),o&&ui(l,T,160),{placement:"top",maxHeight:S}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+a+'".')}return u}var gi=function(e){return"auto"===e?"bottom":e},_i=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,r=n.minMenuHeight,a=n.maxMenuHeight,o=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme,u=t.context.getPortalPlacement;if(e){var c="fixed"===i,d=hi({maxHeight:a,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!c,isFixedPosition:c,theme:l});u&&u(d),t.setState(d)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||gi(e);return mi({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return fi(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(Nn.Component);_i.contextTypes={getPortalPlacement:ti.a.func};var bi=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},yi=bi,vi=bi,ki=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",mi({css:a("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};ki.defaultProps={children:"No options"};var Mi=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",mi({css:a("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};Mi.defaultProps={children:"Loading..."};var Li=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==gi(t.props.menuPlacement)&&t.setState({placement:n})},t}fi(t,e);var n=t.prototype;return n.getChildContext=function(){return{getPortalPlacement:this.getPortalPlacement}},n.render=function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,a=e.menuPlacement,o=e.menuPosition,i=e.getStyles,s="fixed"===o;if(!t&&!s||!r)return null;var l=this.state.placement||gi(a),u=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),c=s?0:window.pageYOffset,d=u[l]+c,p=$o("div",{css:i("menuPortal",{offset:d,position:o,rect:u})},n);return t?Object(Xo.createPortal)(p,t):p},t}(Nn.Component);Li.childContextTypes={getPortalPlacement:ti.a.func};var wi=Array.isArray,Ti=Object.keys,Yi=Object.prototype.hasOwnProperty;function Ei(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,a,o,i=wi(t),s=wi(n);if(i&&s){if((a=t.length)!=n.length)return!1;for(r=a;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=s)return!1;var l=t instanceof Date,u=n instanceof Date;if(l!=u)return!1;if(l&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var p=Ti(t);if((a=p.length)!==Ti(n).length)return!1;for(r=a;0!=r--;)if(!Yi.call(n,p[r]))return!1;for(r=a;0!=r--;)if(!("_owner"===(o=p[r])&&t.$$typeof||e(t[o],n[o])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function Si(){return(Si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xi(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);return xi=function(){return e},e}function Di(){return(Di=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ci={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Ri=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["size"]);return $o("svg",Di({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ci},n))},Oi=function(e){return $o(Ri,Di({size:20},e),$o("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Pi=function(e){return $o(Ri,Di({size:20},e),$o("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ji=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorContainer",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?a.neutral80:a.neutral40}}},Hi=ji,Ai=ji,zi=function(){var e=No.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(xi()),Fi=function(e){var t=e.delay,n=e.offset;return $o("span",{css:No({animation:zi+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ni=function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps,o=e.isRtl;return $o("div",Di({},a,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),$o(Fi,{delay:0,offset:o}),$o(Fi,{delay:160,offset:!0}),$o(Fi,{delay:320,offset:!o}))};function Bi(){return(Bi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Ni.defaultProps={size:4};function Ii(){return(Ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Wi(){return(Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ui=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Vi(){return(Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ji=function(e){var t=e.children,n=e.innerProps;return $o("div",n,t)},Gi=Ji,qi=Ji;var $i=function(e){var t=e.children,n=e.className,r=e.components,a=e.cx,o=e.data,i=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,d=r.Container,p=r.Label,m=r.Remove;return $o(Zo,null,(function(r){var f=r.css,h=r.cx;return $o(d,{data:o,innerProps:Vi({},s,{className:h(f(i("multiValue",e)),a({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:c},$o(p,{data:o,innerProps:{className:h(f(i("multiValueLabel",e)),a({"multi-value__label":!0},n))},selectProps:c},t),$o(m,{data:o,innerProps:Vi({className:h(f(i("multiValueRemove",e)),a({"multi-value__remove":!0},n))},u),selectProps:c}))}))};function Ki(){return(Ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}$i.defaultProps={cropWithEllipsis:!0};function Qi(){return(Qi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Zi(){return(Zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Xi(){return(Xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var es={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Di({},o,{css:a("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||$o(Oi,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.className,o=e.isDisabled,i=e.isFocused,s=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return $o("div",Bi({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":u},a)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Di({},o,{css:a("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||$o(Pi,null))},DownChevron:Pi,CrossIcon:Oi,Group:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.Heading,i=e.headingProps,s=e.label,l=e.theme,u=e.selectProps;return $o("div",{css:a("group",e),className:r({group:!0},n)},$o(o,Ii({},i,{selectProps:u,theme:l,getStyles:a,cx:r}),s),$o("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.theme,o=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","theme","selectProps"]));return $o("div",Ii({css:r("groupHeading",Ii({theme:a},o)),className:n({"group-heading":!0},t)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles;return $o("div",{css:a("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps;return $o("span",Di({},a,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerRef,o=e.isHidden,i=e.isDisabled,s=e.theme,l=(e.selectProps,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return $o("div",{css:r("input",Wi({theme:s},l))},$o(pi.a,Wi({className:n({input:!0},t),inputRef:a,inputStyle:Ui(o),disabled:i},l)))},LoadingIndicator:Ni,Menu:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerRef,i=e.innerProps;return $o("div",mi({css:a("menu",e),className:r({menu:!0},n)},i,{ref:o}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isMulti,i=e.innerRef;return $o("div",{css:a("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":o},n),ref:i},t)},MenuPortal:Li,LoadingMessage:Mi,NoOptionsMessage:ki,MultiValue:$i,MultiValueContainer:Gi,MultiValueLabel:qi,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return $o("div",n,t||$o(Oi,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.isFocused,s=e.isSelected,l=e.innerRef,u=e.innerProps;return $o("div",Ki({css:a("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":s},n),ref:l},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return $o("div",Qi({css:a("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps,i=e.isDisabled,s=e.isRtl;return $o("div",Si({css:a("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.innerProps;return $o("div",Zi({css:a("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.isMulti,o=e.getStyles,i=e.hasValue;return $o("div",{css:o("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i},n)},t)}},ts=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],ns=function(e){for(var t=0;t<ts.length;t++)e=e.replace(ts[t].letters,ts[t].base);return e};function rs(){return(rs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var as=function(e){return e.replace(/^\s+|\s+$/g,"")},os=function(e){return e.label+" "+e.value};function is(){return(is=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ss={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},ls=function(e){return $o("span",is({css:ss},e))};function us(){return(us=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cs(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return $o("input",us({ref:t},n,{css:No({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var ds=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.props.innerRef(Object(Xo.findDOMNode)(this))},a.componentWillUnmount=function(){this.props.innerRef(null)},a.render=function(){return this.props.children},r}(Nn.Component),ps=["boxSizing","height","overflow","paddingRight","position"],ms={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function fs(e){e.preventDefault()}function hs(e){e.stopPropagation()}function gs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _s(){return"ontouchstart"in window||navigator.maxTouchPoints}var bs=!(!window.document||!window.document.createElement),ys=0,vs=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){var e=this;if(bs){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;if(n&&ps.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&ys<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+i||0;Object.keys(ms).forEach((function(e){var t=ms[e];o&&(o[e]=t)})),o&&(o.paddingRight=l+"px")}a&&_s()&&(a.addEventListener("touchmove",fs,this.listenerOptions),r&&(r.addEventListener("touchstart",gs,this.listenerOptions),r.addEventListener("touchmove",hs,this.listenerOptions))),ys+=1}},a.componentWillUnmount=function(){var e=this;if(bs){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;ys=Math.max(ys-1,0),n&&ys<1&&ps.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),a&&_s()&&(a.removeEventListener("touchmove",fs,this.listenerOptions),r&&(r.removeEventListener("touchstart",gs,this.listenerOptions),r.removeEventListener("touchmove",hs,this.listenerOptions)))}},a.render=function(){return null},r}(Nn.Component);vs.defaultProps={accountForScrollbars:!0};var ks={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Ms=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?$o("div",null,$o("div",{onClick:this.blurSelectInput,css:ks}),$o(ds,{innerRef:this.getScrollTarget},t),r?$o(vs,{touchScrollTarget:r}):null):t},r}(Nn.PureComponent);var Ls=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},t.handleEventDelta=function(e,n){var r=t.props,a=r.onBottomArrive,o=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,l=t.scrollTarget,u=l.scrollTop,c=l.scrollHeight,d=l.clientHeight,p=t.scrollTarget,m=n>0,f=c-d-u,h=!1;f>n&&t.isBottom&&(o&&o(e),t.isBottom=!1),m&&t.isTop&&(s&&s(e),t.isTop=!1),m&&n>f?(a&&!t.isBottom&&a(e),p.scrollTop=c,h=!0,t.isBottom=!0):!m&&-n>u&&(i&&!t.isTop&&i(e),p.scrollTop=0,h=!0,t.isTop=!0),h&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListening(this.scrollTarget)},a.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},a.startListening=function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},a.stopListening=function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},a.render=function(){return Bn.a.createElement(ds,{innerRef:this.getScrollTarget},this.props.children)},r}(Nn.Component);function ws(e){var t=e.isEnabled,n=void 0===t||t,r=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["isEnabled"]);return n?Bn.a.createElement(Ls,r):r.children}var Ts=function(e,t){void 0===t&&(t={});var n=t,r=n.isSearchable,a=n.isMulti,o=n.label,i=n.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(i?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(o||"Select")+" is focused "+(r?",type to refine list":"")+", press Down to open the menu, "+(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Ys=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return r?"option "+n+" is disabled. Select another option.":"option "+n+", selected."}},Es=function(e){return!!e.isDisabled};var Ss={clearIndicator:Ai,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,a=r.colors,o=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?a.neutral5:a.neutral0,borderColor:t?a.neutral10:n?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+a.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?a.primary:a.neutral30}}},dropdownIndicator:Hi,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,a=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:vi,menu:function(e){var t,n=e.placement,r=e.theme,a=r.borderRadius,o=r.spacing,i=r.colors;return(t={label:"menu"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n)]="100%",t.backgroundColor=i.neutral0,t.borderRadius=a,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=o.menuGutter,t.marginTop=o.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,a=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:a?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,a=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&a.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}}},noOptionsMessage:yi,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,a=e.theme,o=a.spacing,i=a.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*o.baseUnit+"px "+3*o.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{label:"singleValue",color:t?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - "+2*r.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var xs={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function Ds(){return(Ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Rs,Os={backspaceRemovesValue:!0,blurInputOnSelect:ci(),captureMenuScroll:!ci(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=rs({ignoreCase:!0,ignoreAccents:!0,stringify:os,trim:!0,matchFrom:"any"},Rs),r=n.ignoreCase,a=n.ignoreAccents,o=n.stringify,i=n.trim,s=n.matchFrom,l=i?as(t):t,u=i?as(o(e)):o(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=ns(l),u=ns(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Es,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},Ps=1,js=function(e){var t,n;function r(t){var n;(n=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=Xi({},es,{components:e}.components)},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props;(0,r.onChange)(e,Ds({},t,{name:r.name}))},n.setValue=function(e,t,r){void 0===t&&(t="set-value");var a=n.props,o=a.closeMenuOnSelect,i=a.isMulti;n.onInputChange("",{action:"set-value"}),o&&(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,a=t.isMulti,o=n.state.selectValue;if(a)if(n.isOptionSelected(e,o)){var i=n.getOptionValue(e);n.setValue(o.filter((function(e){return n.getOptionValue(e)!==i})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(o,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,r=n.getOptionValue(e),a=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(a.length?a:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var r=Ss[e](t);r.boxSizing="border-box";var a=n.props.styles[e];return a?a(r,t):r},n.getElementId=function(e){return n.instancePrefix+"-"+e},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,a=t.focusedOption;if(a&&e){var o=r.focusable.indexOf(a),i=r.render[o];return i&&i.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:Ys(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:Ts(t,Ds({},r,{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,a=t.menuIsOpen;n.focusInput(),a?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ii(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),a=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||a>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,r=t.isSearchable,a=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:a}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,a=t.backspaceRemovesValue,o=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,m=n.state,f=m.focusedOption,h=m.focusedValue,g=m.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)n.removeValue(h);else{if(!a)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!u||!d||!f||p&&n.isOptionSelected(f,g))return;n.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(n.isComposing)return;n.selectOption(f);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&o&&n.clearValue();break;case" ":if(i)return;if(!u){n.openMenu("first");break}if(!f)return;n.selectOption(f);break;case"ArrowUp":u?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":u?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!u)return;n.focusOption("pageup");break;case"PageDown":if(!u)return;n.focusOption("pagedown");break;case"Home":if(!u)return;n.focusOption("first");break;case"End":if(!u)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var r=e.inputValue,a=void 0===r?"":r,o=e.options,i=function(e,r){var o=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),s=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:s,value:l,data:e},a))){var u=o?void 0:function(){return n.onOptionHover(e)},c=o?void 0:function(){return n.selectOption(e)},d=n.getElementId("option")+"-"+r;return{innerProps:{id:d,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:o,isSelected:i,key:d,label:s,type:"option",value:l}}};return o.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var a=t.options.map((function(t,n){var a=i(t,r+"-"+n);return a&&e.focusable.push(t),a})).filter(Boolean);if(a.length){var o=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:o,data:t,options:a})}}else{var s=i(t,""+r);s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var r=t.value;n.cacheComponents=_o(n.cacheComponents,Ei).bind(Cs(Cs(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Ps);var a=oi(r);n.buildMenuOptions=_o(n.buildMenuOptions,(function(e,t){var n=e,r=n[0],a=n[1],o=t,i=o[0];return Ei(a,o[1])&&Ei(r.inputValue,i.inputValue)&&Ei(r.options,i.options)})).bind(Cs(Cs(n)));var o=t.menuIsOpen?n.buildMenuOptions(t,a):{render:[],focusable:[]};return n.state.menuOptions=o,n.state.selectValue=a,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},a.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,r=t.value,a=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==a||e.inputValue!==o){var i=oi(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},l=this.getNextFocusedValue(i),u=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:u,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},a.componentDidUpdate=function(e){var t,n,r,a,o,i=this.props,s=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=n.offsetHeight/3,a.bottom+o>r.bottom?li(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):a.top-o<r.top&&li(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)},a.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},a.onMenuOpen=function(){this.props.onMenuOpen()},a.onMenuClose=function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},a.onInputChange=function(e,t){this.props.onInputChange(e,t)},a.focusInput=function(){this.inputRef&&this.inputRef.focus()},a.blurInput=function(){this.inputRef&&this.inputRef.blur()},a.openMenu=function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,o=this.buildMenuOptions(this.props,r),i=this.props.isMulti,s="first"===e?0:o.focusable.length-1;if(!i){var l=o.focusable.indexOf(r[0]);l>-1&&(s=l)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[s]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},a.focusValue=function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,a=this.state,o=a.selectValue,i=a.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=o.length-1,u=-1;if(o.length){switch(e){case"previous":u=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(u=s+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:o[u]})}}},a.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,r=n.focusedOption,a=n.menuOptions.focusable;if(a.length){var o=0,i=a.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?o=i>0?i-1:a.length-1:"down"===e?o=(i+1)%a.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>a.length-1&&(o=a.length-1):"last"===e&&(o=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[o],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Es(a[o])}})}},a.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(xs):Ds({},xs,this.props.theme):xs},a.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,a=this.props,o=a.classNamePrefix,i=a.isMulti,s=a.isRtl,l=a.options,u=this.state.selectValue,c=this.hasValue();return{cx:ai.bind(null,o),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:c,isMulti:i,isRtl:s,options:l,selectOption:r,setValue:n,selectProps:a,theme:this.getTheme()}},a.getNextFocusedValue=function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null},a.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},a.hasValue=function(){return this.state.selectValue.length>0},a.hasOptions=function(){return!!this.state.menuOptions.render.length},a.countOptions=function(){return this.state.menuOptions.focusable.length},a.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},a.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},a.isOptionSelected=function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))},a.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},a.formatOptionLabel=function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)},a.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},a.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},a.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},a.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},a.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},a.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,a=e.focusedOption,o=this.props,i=o.options,s=o.menuIsOpen,l=o.inputValue,u=o.screenReaderStatus;return(r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value "+n(t)+" focused, "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(a&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option "+n(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedOption:a,getOptionLabel:this.getOptionLabel,options:i}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:l,screenReaderMessage:u({count:this.countOptions()})})+" "+t},a.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,o=e.tabIndex,i=this.components.Input,s=this.state.inputIsHidden,l=r||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return Bn.a.createElement(cs,Ds({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ni,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:o,value:""},u));var c=this.commonProps,d=c.cx,p=c.theme,m=c.selectProps;return Bn.a.createElement(i,Ds({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:o,theme:p,type:"text",value:a},u))},a.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,o=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,m=u.inputValue,f=u.placeholder,h=this.state,g=h.selectValue,_=h.focusedValue,b=h.isFocused;if(!this.hasValue()||!c)return m?null:Bn.a.createElement(s,Ds({},l,{key:"placeholder",isDisabled:d,isFocused:b}),f);if(p)return g.map((function(t,i){var s=t===_;return Bn.a.createElement(n,Ds({},l,{components:{Container:r,Label:a,Remove:o},isFocused:s,isDisabled:d,key:e.getOptionValue(t),index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var y=g[0];return Bn.a.createElement(i,Ds({},l,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))},a.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Bn.a.createElement(e,Ds({},t,{innerProps:i,isFocused:o}))},a.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!e||!a)return null;return Bn.a.createElement(e,Ds({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))},a.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return Bn.a.createElement(n,Ds({},r,{isDisabled:a,isFocused:o}))},a.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Bn.a.createElement(e,Ds({},t,{innerProps:a,isDisabled:n,isFocused:r}))},a.renderMenu=function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,o=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,c=this.commonProps,d=this.state,p=d.focusedOption,m=d.menuOptions,f=this.props,h=f.captureMenuScroll,g=f.inputValue,_=f.isLoading,b=f.loadingMessage,y=f.minMenuHeight,v=f.maxMenuHeight,k=f.menuIsOpen,M=f.menuPlacement,L=f.menuPosition,w=f.menuPortalTarget,T=f.menuShouldBlockScroll,Y=f.menuShouldScrollIntoView,E=f.noOptionsMessage,S=f.onMenuScrollToTop,x=f.onMenuScrollToBottom;if(!k)return null;var D,C=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,Bn.a.createElement(u,Ds({},c,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=m.render.map((function(t){if("group"===t.type){t.type;var a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["type"]),o=t.key+"-heading";return Bn.a.createElement(n,Ds({},c,a,{Heading:r,headingProps:{id:o},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e)})))}if("option"===t.type)return C(t)}));else if(_){var R=b({inputValue:g});if(null===R)return null;D=Bn.a.createElement(s,c,R)}else{var O=E({inputValue:g});if(null===O)return null;D=Bn.a.createElement(l,c,O)}var P={minMenuHeight:y,maxMenuHeight:v,menuPlacement:M,menuPosition:L,menuShouldScrollIntoView:Y},j=Bn.a.createElement(_i,Ds({},c,P),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return Bn.a.createElement(a,Ds({},c,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:_,placement:i}),Bn.a.createElement(ws,{isEnabled:h,onTopArrive:S,onBottomArrive:x},Bn.a.createElement(Ms,{isEnabled:T},Bn.a.createElement(o,Ds({},c,{innerRef:e.getMenuListRef,isLoading:_,maxHeight:s}),D))))}));return w||"fixed"===L?Bn.a.createElement(i,Ds({},c,{appendTo:w,controlElement:this.controlRef,menuPlacement:M,menuPosition:L}),j):j},a.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,o=t.name,i=this.state.selectValue;if(o&&!r){if(a){if(n){var s=i.map((function(t){return e.getOptionValue(t)})).join(n);return Bn.a.createElement("input",{name:o,type:"hidden",value:s})}var l=i.length>0?i.map((function(t,n){return Bn.a.createElement("input",{key:"i-"+n,name:o,type:"hidden",value:e.getOptionValue(t)})})):Bn.a.createElement("input",{name:o,type:"hidden"});return Bn.a.createElement("div",null,l)}var u=i[0]?this.getOptionValue(i[0]):"";return Bn.a.createElement("input",{name:o,type:"hidden",value:u})}},a.renderLiveRegion=function(){return this.state.isFocused?Bn.a.createElement(ls,{"aria-live":"polite"},Bn.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),Bn.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},a.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,o=this.props,i=o.className,s=o.id,l=o.isDisabled,u=o.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return Bn.a.createElement(r,Ds({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),Bn.a.createElement(t,Ds({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),Bn.a.createElement(a,Ds({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),Bn.a.createElement(n,Ds({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},r}(Nn.Component);function Hs(){return(Hs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}js.defaultProps=Os;var As={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};Nn.Component;var zs,Fs,Ns,Bs=(zs=js,Ns=Fs=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).select=void 0,t.state={inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue},t.onChange=function(e,n){t.callProp("onChange",e,n),t.setState({value:e})},t.onInputChange=function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})},t.onMenuOpen=function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})},t.onMenuClose=function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.focus=function(){this.select.focus()},a.blur=function(){this.select.blur()},a.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},a.callProp=function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return(t=this.props)[e].apply(t,r)}},a.render=function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return Bn.a.createElement(zs,Hs({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))},r}(Nn.Component),Fs.defaultProps=As,Ns);function Is(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ws=wp.i18n.__,Us=wp.element,Vs=Us.Component,Js=Us.Fragment,Gs=wp.blockEditor.InspectorControls,qs=wp.components,$s=qs.PanelBody,Ks=qs.QueryControls,Qs=qs.RangeControl,Zs=qs.SelectControl,Xs=qs.TextControl,el=qs.ToggleControl,tl=wp.url.addQueryArgs,nl=wp.apiFetch,rl=function(e){p()(n,e);var t=Is(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={categoriesList:[]},e}return c()(n,[{key:"componentDidMount",value:function(){var e=this;this.stillMounted=!0,this.fetchRequest=nl({path:tl("/wp/v2/categories",{per_page:-1})}).then((function(t){e.stillMounted&&e.setState({categoriesList:t})})).catch((function(){e.stillMounted&&e.setState({categoriesList:[]})})),"page"===this.props.attributes.postType&&this.props.attributes.selectedPages.length!==this.props.attributes.selectedPages.postsToShow&&this.props.setAttributes({postsToShow:this.props.attributes.selectedPages.length})}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/editor").getEditorSettings();return mo()(ho()(e.imageSizes,(function(e){var t=e.name;return{value:e.slug,label:t}})))}},{key:"pageSelect",value:function(){var e=wp.data.select("core").getEntityRecords("postType","page",{per_page:-1});return mo()(ho()(e,(function(e){return{value:e.id,label:e.title.raw}})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.latestPosts,i=n.order,s=n.orderBy,l=this.state.categoriesList,u=[{value:"post",label:Ws("Post","genesis-blocks")},{value:"page",label:Ws("Page","genesis-blocks")}],c=[{value:"div",label:Ws("div","genesis-blocks")},{value:"header",label:Ws("header","genesis-blocks")},{value:"section",label:Ws("section","genesis-blocks")},{value:"article",label:Ws("article","genesis-blocks")},{value:"main",label:Ws("main","genesis-blocks")},{value:"aside",label:Ws("aside","genesis-blocks")},{value:"footer",label:Ws("footer","genesis-blocks")}],d=[{value:"h2",label:Ws("H2","genesis-blocks")},{value:"h3",label:Ws("H3","genesis-blocks")},{value:"h4",label:Ws("H4","genesis-blocks")},{value:"h5",label:Ws("H5","genesis-blocks")},{value:"h6",label:Ws("H6","genesis-blocks")}],p=Array.isArray(o)&&o.length,m="post"===n.postType,f={value:"selectimage",label:Ws("Select image size","genesis-blocks")},h={value:"gb-block-post-grid-landscape",label:Ws("GB Grid Landscape","genesis-blocks")},g={value:"gb-block-post-grid-square",label:Ws("GB Grid Square","genesis-blocks")},_=this.imageSizeSelect();_.push(g,h),_.unshift(f);var b=this.pageSelect();return React.createElement(Gs,null,React.createElement($s,{title:Ws("Post and Page Grid Settings","genesis-blocks"),className:m?null:"genesis-blocks-hide-query"},React.createElement(M,{id:"gb_postgrid_postType"},React.createElement(Zs,{label:Ws("Content Type","genesis-blocks"),options:u,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&React.createElement(M,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control select2-page"},React.createElement("div",{className:"components-base-control__field"},React.createElement("label",{className:"components-base-control__label",htmlFor:"inspector-select-control"},Ws("Pages To Show","genesis-blocks")),React.createElement(Bs,{options:b,value:n.selectedPages,onChange:function(t){e.props.setAttributes({selectedPages:t,postsToShow:t.length})},isMulti:!0,closeMenuOnSelect:!1})))),"post"===n.postType&&React.createElement(Js,null,React.createElement(M,{id:"gb_postgrid_queryControls"},React.createElement(Ks,a()({order:i,orderBy:s},{numberOfItems:n.postsToShow,categoriesList:l,selectedCategoryId:n.categories,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onCategoryChange:function(e){return r({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return r({postsToShow:e})}}))),React.createElement(M,{id:"gb_postgrid_offset"},React.createElement(Qs,{label:Ws("Number of items to offset","genesis-blocks"),value:n.offset,onChange:function(e){return r({offset:e})},min:0,max:20}))),"grid"===n.postLayout&&React.createElement(M,{id:"gb_postgrid_columns"},React.createElement(Qs,{label:Ws("Columns","genesis-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:p?Math.min(4,o.length):4}))),React.createElement($s,{title:Ws("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(M,{id:"gb_postgrid_displaySectionTitle"},React.createElement(el,{label:Ws("Display Section Title","genesis-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&React.createElement(M,{id:"gb_postgrid_sectionTitle"},React.createElement(Xs,{label:Ws("Section Title","genesis-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),React.createElement(M,{id:"gb_postgrid_displayPostImage"},React.createElement(el,{label:Ws("Display Featured Image","genesis-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&React.createElement(M,{id:"gb_postgrid_imageSizeValue"},React.createElement(Zs,{label:Ws("Image Size","genesis-blocks"),value:function(){for(var e=0;e<_.length;e++)if(_[e].value===n.imageSize)return n.imageSize;return"full"}(),options:_,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),React.createElement(M,{id:"gb_postgrid_displayPostTitle"},React.createElement(el,{label:Ws("Display Title","genesis-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),m&&React.createElement(M,{id:"gb_postgrid_displayPostAuthor"},React.createElement(el,{label:Ws("Display Author","genesis-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),m&&React.createElement(M,{id:"gb_postgrid_displayPostDate"},React.createElement(el,{label:Ws("Display Date","genesis-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),React.createElement(M,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(el,{label:Ws("Display Excerpt","genesis-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&React.createElement(M,{id:"gb_postgrid_excerptLength"},React.createElement(Qs,{label:Ws("Excerpt Length","genesis-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),React.createElement(M,{id:"gb_postgrid_displayPostLink"},React.createElement(el,{label:Ws("Display Continue Reading Link","genesis-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&React.createElement(M,{id:"gb_postgrid_readMoreText"},React.createElement(Xs,{label:Ws("Customize Continue Reading Text","genesis-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),React.createElement($s,{title:Ws("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(M,{id:"gb_postgrid_sectionTag"},React.createElement(Zs,{label:Ws("Post Grid Section Tag","genesis-blocks"),options:c,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:Ws("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),n.sectionTitle&&React.createElement(M,{id:"gb_postgrid_sectionTitleTag"},React.createElement(Zs,{label:Ws("Section Title Heading Tag","genesis-blocks"),options:d,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:Ws("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),n.displayPostTitle&&React.createElement(M,{id:"gb_postgrid_postTitleTag"},React.createElement(Zs,{label:Ws("Post Title Heading Tag","genesis-blocks"),options:d,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:Ws("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}]),n}(Vs),al=n(32),ol=n.n(al);function il(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var sl=wp.i18n.__,ll=wp.element,ul=ll.Fragment,cl=ll.Component,dl=wp.components,pl=dl.Placeholder,ml=dl.Dashicon,fl=function(e){p()(n,e);var t=il(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},r}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.imgSize!==e.imgSize&&this.setImageUrl()}},{key:"componentDidMount",value:function(){var e=this;this.setState({setImageUrlSubscription:wp.data.subscribe((function(){e.setImageUrl()}))})}},{key:"componentWillUnmount",value:function(){this.state.setImageUrlSubscription()}},{key:"setImageUrl",value:function(){var e=this.getImageUrl();e||(e=this.getFullImageSize()),e&&this.setState({imageUrl:e,imageLoaded:!0})}},{key:"getImageUrl",value:function(){return ol()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return ol()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return React.createElement(ul,null,React.createElement("div",{className:b()("gb-block-post-grid-image")},React.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},React.createElement("img",{src:this.state.imageUrl?this.state.imageUrl:this.props.imgSizeLandscape,alt:this.props.imgAlt,className:this.props.imgClass})),!this.getImageUrl()&&this.state.imageLoaded&&"selectimage"!==this.props.imgSize&&React.createElement(ul,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(ml,{icon:"warning"})),React.createElement(pl,{className:"gb-post-grid-no-image-placeholder"},React.createElement(ml,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},sl("There is no image generated for the selected image size, so a fallback image size is being used.","genesis-blocks")),React.createElement("div",{className:"gb-post-grid-image-help"},React.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":sl("Learn more about image sizes (opens in a new tab)","genesis-blocks"),href:"https://github.com/studiopress/genesis-blocks/wiki/Post-Grid-Block#featured-image-sizes"},sl("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}]),n}(cl);function hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hl(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var bl=wp.compose.compose,yl=wp.element,vl=yl.Component,kl=yl.Fragment,Ml=wp.i18n.__,Ll=wp.htmlEntities.decodeEntities,wl=wp.data.withSelect,Tl=wp.components,Yl=Tl.Placeholder,El=Tl.Spinner,Sl=Tl.Toolbar,xl=wp.blockEditor,Dl=xl.BlockAlignmentToolbar,Cl=xl.BlockControls,Rl=function(e){p()(n,e);var t=_l(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.setAttributes,s=n.latestPosts,l=Array.isArray(s)&&s.length,u="post"===r.postType;if(!l)return React.createElement(kl,null,React.createElement(rl,gl({setAttributes:o},this.props)),React.createElement(Yl,{icon:"admin-post",label:Ml("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(s)?Ml("No posts found.","genesis-blocks"):React.createElement(El,null)));var c=s.length>r.postsToShow?s.slice(0,r.postsToShow):s,d=[{icon:"grid-view",title:Ml("Grid View","genesis-blocks"),onClick:function(){return o({postLayout:"grid"})},isActive:"grid"===r.postLayout},{icon:"list-view",title:Ml("List View","genesis-blocks"),onClick:function(){return o({postLayout:"list"})},isActive:"list"===r.postLayout}],p=r.sectionTag?r.sectionTag:"section",m=r.sectionTitleTag?r.sectionTitleTag:"h2",f=r.postTitleTag?r.postTitleTag:"h3";return React.createElement(kl,null,React.createElement(rl,gl({setAttributes:o},this.props)),React.createElement(Cl,null,React.createElement(Dl,{value:r.align,onChange:function(e){o({align:e})},controls:["center","wide","full"]}),React.createElement(Sl,{controls:d})),React.createElement(p,{className:b()(this.props.className,"gb-block-post-grid")},r.displaySectionTitle&&r.sectionTitle&&React.createElement(m,{className:"gb-post-grid-section-title"},r.sectionTitle),React.createElement("div",{className:b()((e={"is-grid":"grid"===r.postLayout,"is-list":"list"===r.postLayout},i()(e,"columns-".concat(r.columns),"grid"===r.postLayout),i()(e,"gb-post-grid-items","gb-post-grid-items"),e))},c.map((function(e,n){return React.createElement("article",{key:n,id:"post-"+e.id,className:b()("post-"+e.id,e.featured_image_src&&r.displayPostImage?"has-post-thumbnail":null)},r.displayPostImage&&e.featured_media?React.createElement(fl,a()({},t.props,{imgAlt:Ll(e.title.rendered.trim())||Ml("(Untitled)","genesis-blocks"),imgClass:"wp-image-".concat(e.featured_media.toString()),imgID:e.featured_media.toString(),imgSize:r.imageSize,imgSizeLandscape:e.featured_image_src,imgSizeSquare:e.featured_image_src_square,imgLink:e.link})):null,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},r.displayPostTitle&&React.createElement(f,{className:"gb-block-post-grid-title"},React.createElement("a",{href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},Ll(e.title.rendered.trim())||Ml("(Untitled)","genesis-blocks"))),u&&React.createElement("div",{className:"gb-block-post-grid-byline"},r.displayPostAuthor&&e.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-author"},React.createElement("a",{className:"gb-text-link",target:"_blank",rel:"noopener noreferrer",href:e.author_info.author_link},e.author_info.display_name)),r.displayPostDate&&e.date_gmt&&React.createElement("time",{dateTime:co()(e.date_gmt).utc().format(),className:"gb-block-post-grid-date"},co()(e.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},r.displayPostExcerpt&&e.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(o=e.excerpt.rendered,i=r.excerptLength,o.split(" ").splice(0,i).join(" "))}}),r.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:e.link,target:"_blank",rel:"bookmark noopener noreferrer"},r.readMoreText)))));var o,i})))))}}]),n}(vl),Ol=bl([wl((function(e,t){var n=t.attributes,r=n.order,a=n.categories,o=e("core").getEntityRecords,i=lo()({categories:a,order:r,orderby:t.attributes.orderBy,per_page:t.attributes.postsToShow,offset:t.attributes.offset,exclude:[wp.data.select("core/editor").getCurrentPostId()]},(function(e){return!io()(e)})),s=t.attributes.selectedPages&&t.attributes.selectedPages.length>0?t.attributes.selectedPages.map((function(e){return e.value})):null,l=lo()({include:s||null,orderby:s?"include":null},(function(e){return!io()(e)}));return{latestPosts:o("postType",t.attributes.postType,"page"===t.attributes.postType&&s?l:i)}}))])(Rl);n(363),n(364);var Pl=wp.i18n.__,jl=wp.blocks.registerBlockType,Hl=["center","wide","full"];function Al(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}jl("genesis-blocks/gb-post-grid",{title:Pl("Post and Page Grid","genesis-blocks"),description:Pl("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[Pl("post","genesis-blocks"),Pl("page","genesis-blocks"),Pl("grid","genesis-blocks"),Pl("atomic","genesis-blocks")],getEditWrapperProps:function(e){var t=e.align;if(-1!==Hl.indexOf(t))return{"data-align":t}},edit:Ol,gb_settings_data:{gb_postgrid_postType:{title:Pl("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:Pl("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:Pl("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:Pl("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:Pl("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:Pl("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:Pl("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:Pl("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:Pl("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:Pl("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:Pl("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:Pl("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:Pl("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:Pl("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:Pl("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:Pl("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:Pl("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:Pl("Post Title Heading Tag","genesis-blocks")}},save:function(){return null}});var zl=wp.i18n.__,Fl=wp.element.Component,Nl=wp.blockEditor,Bl=Nl.InspectorControls,Il=Nl.PanelColorSettings,Wl=Nl.MediaUpload,Ul=wp.components,Vl=Ul.Button,Jl=Ul.Icon,Gl=Ul.PanelBody,ql=Ul.RangeControl,$l=function(e){p()(n,e);var t=Al(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.containerPaddingTop,r=t.containerPaddingRight,a=t.containerPaddingBottom,o=t.containerPaddingLeft,i=t.containerMarginTop,s=t.containerMarginBottom,l=t.containerMaxWidth,u=t.containerBackgroundColor,c=t.containerDimRatio,d=t.containerImgURL,p=t.containerImgID,m=this.props.setAttributes,f=function(){m({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Bl,{key:"inspector"},React.createElement(M,{id:"gb_container_containerOptions"},React.createElement(Gl,{title:zl("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(ql,{label:zl("Padding Top (%)","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Bottom (%)","genesis-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Left (%)","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Padding Right (%)","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Margin Top (%)","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),React.createElement(ql,{label:zl("Margin Bottom (%)","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),React.createElement(ql,{label:zl("Inside Container Max Width (px)","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({containerMaxWidth:t})},min:500,max:1600,step:1}))),React.createElement(M,{id:"gb_container_backgroundOptions"},React.createElement(Gl,{title:zl("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,zl("Select a background image:","genesis-blocks")),React.createElement(Wl,{onSelect:function(e){m({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Vl,{className:"gb-container-inspector-media",label:zl("Edit image","genesis-blocks"),onClick:t},React.createElement(Jl,{icon:"format-image"}),zl("Select Image","genesis-blocks")),d&&!!d.length&&React.createElement(Vl,{className:"gb-container-inspector-media",label:zl("Remove Image","genesis-blocks"),onClick:f},React.createElement(Jl,{icon:"dismiss"}),zl("Remove","genesis-blocks")))}}),d&&!!d.length&&React.createElement(ql,{label:zl("Image Opacity","genesis-blocks"),value:c,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),React.createElement(Il,{title:zl("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,label:zl("Background Color","genesis-blocks"),onChange:function(e){return m({containerBackgroundColor:e})}}]}))))}}]),n}(Fl);function Kl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Ql=function(e){p()(n,e);var t=Kl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,u=t.containerMarginTop,c=t.containerMarginBottom,d=t.containerWidth,p=t.containerMaxWidth,m=t.containerImgURL,f=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:u?"".concat(u,"%"):void 0,marginBottom:c?"".concat(c,"%"):void 0},_=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:_||void 0},React.createElement("div",{className:"gb-container-inside"},m&&!!m.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:m,alt:f})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:p?"".concat(p,"px"):void 0}},this.props.children)))}}]),n}(wp.element.Component);function Zl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xl=function(e){p()(n,e);var t=Zl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.containerBackgroundColor,n=e.containerAlignment,r=e.containerPaddingTop,a=e.containerPaddingRight,o=e.containerPaddingBottom,s=e.containerPaddingLeft,l=e.containerMarginTop,u=e.containerMarginBottom,c=e.containerWidth,d=(e.containerMaxWidth,b()([this.props.className,"gb-block-container"],i()({},"align"+c,c)));return React.createElement("div",{style:{backgroundColor:t,textAlign:n,paddingLeft:"".concat(s,"%"),paddingRight:"".concat(a,"%"),paddingBottom:"".concat(o,"%"),paddingTop:"".concat(r,"%"),marginTop:"".concat(l,"%"),marginBottom:"".concat(u,"%")},className:d||void 0},this.props.children)}}]),n}(wp.element.Component);function eu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var tu=function(e){p()(n,e);var t=eu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,u=t.containerMarginTop,c=t.containerMarginBottom,d=t.containerWidth,p=t.containerMaxWidth,m=t.containerImgURL,f=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:u?"".concat(u,"%"):void 0,marginBottom:c?"".concat(c,"%"):void 0},_=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:_||void 0},React.createElement("div",{className:"gb-container-inside"},m&&!!m.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:m,alt:f})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(p,"px")}},this.props.children)))}}]),n}(wp.element.Component);var nu=wp.blockEditor.InnerBlocks;var ru=[{attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){return React.createElement(tu,e,React.createElement(nu.Content,null))}},{attributes:{containerPaddingTop:{type:"number",default:0},containerPaddingRight:{type:"number",default:0},containerPaddingBottom:{type:"number",default:0},containerPaddingLeft:{type:"number",default:0},containerMarginTop:{type:"number",default:0},containerMarginBottom:{type:"number",default:0},containerWidth:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string",default:"#fff"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){var t,n=e.attributes,r=n.containerMaxWidth,a=n.containerImgURL,o=n.containerImgAlt,i=n.containerDimRatio;return React.createElement(Xl,e,React.createElement("div",{className:"gb-container-inside"},a&&!!a.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(t=i,0===t||50===t?null:"has-background-dim-"+10*Math.round(t/10)),{"has-background-dim":0!==i}),src:a,alt:o})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(r,"px")}},React.createElement(nu.Content,null))))}}];n(365),n(366);function au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var su=wp.i18n.__,lu=wp.element.Component,uu=wp.blocks.registerBlockType,cu=wp.blockEditor.InnerBlocks,du=function(e){p()(n,e);var t=iu(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.setAttributes;return[React.createElement($l,a()({key:"gb-container-inspector-"+this.props.clientId},ou({setAttributes:e},this.props))),React.createElement(Ql,a()({key:"gb-container-"+this.props.clientId},this.props),React.createElement(cu,null))]}}]),n}(lu);function pu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}uu("genesis-blocks/gb-container",{title:su("Container","genesis-blocks"),description:su("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[su("container","genesis-blocks"),su("section","genesis-blocks"),su("genesis","genesis-blocks")],supports:{align:["center","wide","full"]},attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number"},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},gb_settings_data:{gb_container_containerOptions:{title:su("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:su("Background Options","genesis-blocks")}},edit:du,save:function(e){return React.createElement(Ql,e,React.createElement(cu.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:ru});var mu=wp.i18n.__,fu=wp.element.Component,hu=wp.blockEditor.InspectorControls,gu=wp.components,_u=gu.PanelBody,bu=gu.RangeControl,yu=function(e){p()(n,e);var t=pu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return React.createElement(hu,{key:"inspector"},React.createElement(_u,null,React.createElement(M,{id:"gb_pricing_columns"},React.createElement(bu,{label:mu("Pricing Columns","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),React.createElement(M,{id:"gb_pricing_columnsGap"},React.createElement(bu,{label:mu("Pricing Columns Gap","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}]),n}(fu);function vu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ku=function(e){p()(n,e);var t=vu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.columns,n=e.align,r=b()([this.props.className,"gb-pricing-columns-"+t],i()({},"align"+n,n));return React.createElement("div",{className:r||void 0},this.props.children)}}]),n}(wp.element.Component),Mu=n(33),Lu=n.n(Mu),wu=n(34),Tu=n.n(wu);function Yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yu(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var xu=wp.i18n.__,Du=wp.element.Component,Cu=wp.blocks.registerBlockType,Ru=wp.blockEditor,Ou=Ru.BlockControls,Pu=Ru.BlockAlignmentToolbar,ju=Ru.InnerBlocks,Hu=wp.data.dispatch,Au=["genesis-blocks/gb-pricing-table"],zu=Lu()((function(e){return Tu()(e,(function(){return["genesis-blocks/gb-pricing-table"]}))})),Fu=function(e){p()(n,e);var t=Su(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&Hu("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.columns,r=t.columnsGap,o=t.align,i=e.setAttributes;return[React.createElement(Ou,{key:"controls"},React.createElement(Pu,{value:o,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),React.createElement(yu,a()({key:"gb-pricing-table-inspector-"+this.props.clientId},Eu({setAttributes:i},this.props))),React.createElement(ku,a()({key:"gb-pricing-table-"+this.props.clientId},this.props),React.createElement("div",{className:b()("gb-pricing-table-wrap-admin","gb-block-pricing-table-gap-"+r)},React.createElement(ju,{template:zu(n),templateLock:"all",allowedBlocks:Au})))]}}]),n}(Du);function Nu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Cu("genesis-blocks/gb-pricing",{title:xu("Pricing","genesis-blocks"),description:xu("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[xu("pricing table","genesis-blocks"),xu("shop","genesis-blocks"),xu("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:xu("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:xu("Pricing Columns Gap","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:Fu,save:function(e){var t=e.attributes.columnsGap,n=b()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(ku,e,React.createElement("div",{className:n||void 0},React.createElement(ju.Content,null)))}});var Bu=wp.i18n.__,Iu=wp.element.Component,Wu=wp.blockEditor,Uu=Wu.InspectorControls,Vu=Wu.PanelColorSettings,Ju=wp.components,Gu=Ju.PanelBody,qu=Ju.RangeControl,$u=function(e){p()(n,e);var t=Nu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderWidth,a=n.borderColor,o=n.borderRadius,i=n.backgroundColor,s=n.padding,l=t.setAttributes;return React.createElement(Uu,{key:"inspector"},React.createElement(Gu,null,React.createElement(M,{id:"gb_pricing_inner_padding"},React.createElement(qu,{label:Bu("Pricing Column Padding","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),React.createElement(M,{id:"gb_pricing_inner_borderWidth"},React.createElement(qu,{label:Bu("Pricing Column Border","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),React.createElement(M,{id:"gb_pricing_inner_borderRadius"},React.createElement(qu,{label:Bu("Pricing Column Border Radius","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({borderRadius:t})},min:0,max:20,step:1}))),0<r&&React.createElement(M,{id:"gb_pricing_inner_borderColor"},React.createElement(Vu,{title:Bu("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({borderColor:e})},label:Bu("Border Color","genesis-blocks")}]})),React.createElement(M,{id:"gb_pricing_inner_colorSettings"},React.createElement(Vu,{title:Bu("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return l({backgroundColor:e})},label:Bu("Background Color","genesis-blocks")}]})))}}]),n}(Iu);n(367),n(368);function Ku(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ku(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xu=wp.i18n.__,ec=wp.element.Component,tc=wp.blocks.registerBlockType,nc=wp.blockEditor,rc=nc.InnerBlocks,ac=nc.AlignmentToolbar,oc=nc.BlockControls,ic=wp.element.Fragment,sc=["genesis-blocks/gb-pricing-table-description","genesis-blocks/gb-pricing-table-price","genesis-blocks/gb-pricing-table-subtitle","genesis-blocks/gb-pricing-table-title","genesis-blocks/gb-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"],lc=function(e){p()(n,e);var t=Zu(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.borderWidth,r=t.borderColor,o=t.borderRadius,i=t.backgroundColor,s=t.padding,l=t.alignment,u=e.setAttributes,c={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:o||null,backgroundColor:i||null,padding:s?s+"%":null};return[React.createElement(oc,{key:"controls"},React.createElement(ac,{value:l,onChange:function(e){u({alignment:e})}})),React.createElement($u,a()({key:"gb-pricing-table-inner-inspector-"+this.props.clientId},Qu({setAttributes:u},this.props))),React.createElement(ic,{key:"gb-pricing-table-inner-fragment-"+this.props.clientId},React.createElement("div",{className:b()(l?"gb-block-pricing-table-"+l:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:c},React.createElement(rc,{template:[["genesis-blocks/gb-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-features",{features:"<li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li>",multilineTag:"li",ordered:!1,customFontSize:20,paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["genesis-blocks/gb-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:sc,templateInsertUpdatesSelection:!1}))))]}}]),n}(ec);tc("genesis-blocks/gb-pricing-table",{title:Xu("Pricing Column","genesis-blocks"),description:Xu("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[Xu("pricing","genesis-blocks"),Xu("shop","genesis-blocks"),Xu("buy","genesis-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},gb_settings_data:{gb_pricing_inner_padding:{title:Xu("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:Xu("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:Xu("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:Xu("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:Xu("Pricing Column Background Color","genesis-blocks")}},edit:lc,save:function(e){var t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,o=t.backgroundColor,i=t.alignment,s=t.padding,l={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:o||null,padding:s?s+"%":null};return React.createElement("div",{className:b()(i?"gb-block-pricing-table-"+i:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:l},React.createElement(rc.Content,null)))}});var uc=wp.i18n.__,cc=wp.element.Fragment,dc=wp.components.RangeControl;function pc(e){var t=e.padding,n=e.paddingTitle,r=e.paddingHelp,a=e.paddingMin,o=e.paddingMax,i=e.paddingEnable,s=e.onChangePadding,l=void 0===s?function(){}:s,u=e.paddingTop,c=e.paddingTopMin,d=e.paddingTopMax,p=e.paddingEnableTop,m=e.onChangePaddingTop,f=void 0===m?function(){}:m,h=e.paddingRight,g=e.paddingRightMin,_=e.paddingRightMax,b=e.paddingEnableRight,y=e.onChangePaddingRight,v=void 0===y?function(){}:y,k=e.paddingBottom,M=e.paddingBottomMin,L=e.paddingBottomMax,w=e.paddingEnableBottom,T=e.onChangePaddingBottom,Y=void 0===T?function(){}:T,E=e.paddingLeft,S=e.paddingLeftMin,x=e.paddingLeftMax,D=e.paddingEnableLeft,C=e.onChangePaddingLeft,R=void 0===C?function(){}:C,O=e.paddingVertical,P=e.paddingEnableVertical,j=e.paddingVerticalMin,H=e.paddingVerticalMax,A=e.onChangePaddingVertical,z=void 0===A?function(){}:A,F=e.paddingHorizontal,N=e.paddingEnableHorizontal,B=e.paddingHorizontalMin,I=e.paddingHorizontalMax,W=e.onChangePaddingHorizontal,U=void 0===W?function(){}:W;return React.createElement(cc,null,i&&React.createElement(dc,{label:n||uc("Padding","genesis-blocks"),help:r||null,value:t,min:a,max:o,onChange:l}),p&&React.createElement(dc,{label:uc("Padding Top","genesis-blocks"),value:u,min:c,max:d,onChange:f}),b&&React.createElement(dc,{label:uc("Padding Right","genesis-blocks"),value:h,min:g,max:_,onChange:v}),w&&React.createElement(dc,{label:uc("Padding Bottom","genesis-blocks"),value:k,min:M,max:L,onChange:Y}),D&&React.createElement(dc,{label:uc("Padding Left","genesis-blocks"),value:E,min:S,max:x,onChange:R}),P&&React.createElement(dc,{label:uc("Padding Vertical","genesis-blocks"),value:O,min:j,max:H,onChange:z}),N&&React.createElement(dc,{label:uc("Padding Horizontal","genesis-blocks"),value:F,min:B,max:I,onChange:U}))}function mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var fc=wp.i18n.__,hc=wp.element.Component,gc=wp.compose.compose,_c=wp.blockEditor,bc=_c.InspectorControls,yc=_c.FontSizePicker,vc=_c.withFontSizes,kc=_c.withColors,Mc=_c.ContrastChecker,Lc=_c.PanelColorSettings,wc=wp.components,Tc=wc.withFallbackStyles,Yc=wc.PanelBody,Ec=wc.ToggleControl,Sc=wc.TextControl,xc=(wc.RangeControl,Tc((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}}))),Dc=function(e){p()(n,e);var t=mc(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.showTerm,o=n.showCurrency,i=n.term,s=n.currency,l=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.setAttributes),m=t.fallbackFontSize,f=t.fontSize,h=t.setFontSize,g=t.backgroundColor,_=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,v=t.fallbackBackgroundColor,k=t.fallbackTextColor;return React.createElement(bc,{key:"inspector"},React.createElement(Yc,{title:fc("Text Settings","genesis-blocks")},React.createElement(yc,{fallbackFontSize:m,value:f.size,onChange:h}),React.createElement(Ec,{label:fc("Show currency symbol","genesis-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&React.createElement(Sc,{label:fc("Currency Symbol","genesis-blocks"),type:"text",value:s,onChange:function(t){return e.props.setAttributes({currency:t})}}),React.createElement(Ec,{label:fc("Show pricing duration","genesis-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&React.createElement(Sc,{label:fc("Pricing Duration","genesis-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({term:t})}})),React.createElement(Yc,{title:fc("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return p({paddingTop:e})},paddingEnableRight:!0,paddingRight:u,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return p({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:c,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return p({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:d,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return p({paddingLeft:e})}})),React.createElement(Lc,{title:fc("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:g.color,onChange:b,label:fc("Background Color","genesis-blocks")},{value:_.color,onChange:y,label:fc("Text Color","genesis-blocks")}]},React.createElement(Mc,a()({textColor:_.color,backgroundColor:g.color,fallbackTextColor:k,fallbackBackgroundColor:v},{fontSize:f.size}))))}}]),n}(hc),Cc=gc([xc,vc("fontSize"),kc("backgroundColor",{textColor:"color"})])(Dc);function Rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Oc=wp.i18n.__,Pc=(wp.blocks.registerBlockType,wp.compose.compose),jc=wp.element,Hc=jc.Component,Ac=jc.Fragment,zc=wp.blockEditor,Fc=zc.RichText,Nc=zc.withFontSizes,Bc=zc.withColors,Ic=function(e){p()(n,e);var t=Rc(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.price,a=n.currency,o=n.term,s=n.showTerm,l=n.showCurrency,u=n.paddingTop,c=n.paddingRight,d=n.paddingBottom,p=n.paddingLeft,m=(t.isSelected,t.className,t.setAttributes),f=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,g=t.textColor,_=b()((e={"gb-pricing-table-price-wrap":!0,"has-text-color":g.color,"has-background":h.color},i()(e,h.class,h.class),i()(e,g.class,g.class),i()(e,"gb-pricing-has-currency",l),e)),y=b()(i()({"gb-pricing-table-price":!0},f.class,f.class)),v={backgroundColor:h.color,color:g.color,paddingTop:u?u+"px":void 0,paddingRight:c?c+"px":void 0,paddingBottom:d?d+"px":void 0,paddingLeft:p?p+"px":void 0},k={fontSize:f.size?f.size+"px":void 0},M=Math.floor(f.size/2.5),L={fontSize:f.size?M+"px":void 0},w=Math.floor(f.size/2.5),T={fontSize:f.size?w+"px":void 0};return[React.createElement(Ac,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(Cc,this.props),React.createElement("div",{className:_||void 0,style:v},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},l&&React.createElement(Fc,{tagName:"span",itemProp:"priceCurrency",placeholder:Oc("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return m({currency:e})},className:"gb-pricing-table-currency",style:L}),React.createElement(Fc,{tagName:"div",itemProp:"price",placeholder:Oc("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return m({price:e})},style:k,className:y||void 0}),s&&React.createElement(Fc,{tagName:"span",value:o,placeholder:Oc("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return m({term:e})},className:"gb-pricing-table-term",style:T}))))]}}]),n}(Hc),Wc=Pc([Nc("fontSize"),Bc("backgroundColor",{textColor:"color"})])(Ic),Uc=wp.i18n.__,Vc=wp.blockEditor,Jc=Vc.RichText,Gc=Vc.getFontSizeClass,qc=Vc.getColorClassName,$c=[{attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,m=n.showTerm,f=n.showCurrency,h=n.paddingTop,g=n.paddingRight,_=n.paddingBottom,y=n.paddingLeft,v=Gc(o),k=qc("color",u),M=qc("background-color",l),L=b()((t={"has-background":l||c,"gb-pricing-table-price-wrap":!0},i()(t,k,k),i()(t,M,M),i()(t,"gb-pricing-has-currency",f&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},v,v)),T={backgroundColor:M?void 0:c,color:k?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:_?_+"px":void 0,paddingLeft:y?y+"px":void 0},Y={fontSize:v?void 0:s},E=v?void 0:s,S=Math.floor(E/2.5),x={fontSize:E?S+"px":void 0},D=Math.floor(E/2.5),C={fontSize:E?D+"px":void 0};return React.createElement("div",{className:L||void 0,style:T},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&f&&React.createElement(Jc.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:Uc("$","genesis-blocks"),value:a,className:"gb-pricing-table-currency",style:x}),React.createElement(Jc.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:Y}),p&&m&&React.createElement(Jc.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:C})))}}],Kc=wp.i18n.__,Qc=wp.blocks.registerBlockType,Zc=wp.element,Xc=(Zc.Component,Zc.Fragment,wp.blockEditor),ed=Xc.RichText,td=Xc.getFontSizeClass,nd=(Xc.FontSizePicker,Xc.withFontSizes,Xc.getColorClassName);function rd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}Qc("genesis-blocks/gb-pricing-table-price",{title:Kc("Product Price","genesis-blocks"),description:Kc("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Kc("pricing table","genesis-blocks"),Kc("price","genesis-blocks"),Kc("shop","genesis-blocks")],attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Wc,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,u=n.textColor,c=n.customBackgroundColor,d=n.customTextColor,p=n.term,m=n.showTerm,f=n.showCurrency,h=n.paddingTop,g=n.paddingRight,_=n.paddingBottom,y=n.paddingLeft,v=td(o),k=nd("color",u),M=nd("background-color",l),L=b()((t={"has-background":l||c,"gb-pricing-table-price-wrap":!0},i()(t,k,k),i()(t,M,M),i()(t,"gb-pricing-has-currency",f&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},v,v)),T={backgroundColor:M?void 0:c,color:k?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:_?_+"px":void 0,paddingLeft:y?y+"px":void 0},Y={fontSize:v?void 0:s},E=v?void 0:s,S=Math.floor(E/2.5),x={fontSize:E?S+"px":void 0},D=Math.floor(E/2.5),C={fontSize:E?D+"px":void 0};return React.createElement("div",{className:L||void 0,style:T},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&f&&React.createElement(ed.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"gb-pricing-table-currency",style:x}),React.createElement(ed.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:Y}),p&&m&&React.createElement(ed.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:C})))},deprecated:$c});var ad=wp.i18n.__,od=wp.element.Component,id=wp.compose.compose,sd=wp.blockEditor,ld=sd.InspectorControls,ud=sd.FontSizePicker,cd=sd.withFontSizes,dd=sd.withColors,pd=sd.ContrastChecker,md=sd.PanelColorSettings,fd=sd.ColorPalette,hd=wp.components,gd=hd.withFallbackStyles,_d=hd.PanelBody,bd=hd.PanelRow,yd=hd.SelectControl,vd=hd.BaseControl,kd=hd.RangeControl,Md=gd((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),Ld=function(e){p()(n,e);var t=rd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderStyle,o=n.borderColor,i=n.borderWidth,s=n.paddingTop,l=n.paddingRight,u=n.paddingBottom,c=n.paddingLeft,d=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,m=t.fontSize,f=t.setFontSize,h=t.backgroundColor,g=t.textColor,_=t.setBackgroundColor,b=t.setTextColor,y=t.fallbackBackgroundColor,v=t.fallbackTextColor,k=[{value:"gb-list-border-none",label:ad("None")},{value:"gb-list-border-solid",label:ad("Solid")},{value:"gb-list-border-dotted",label:ad("Dotted")},{value:"gb-list-border-dashed",label:ad("Dashed")}];return React.createElement(ld,{key:"inspector"},React.createElement(_d,{title:ad("Text Settings","genesis-blocks")},React.createElement(ud,{fallbackFontSize:p,value:m.size,onChange:f}),React.createElement(yd,{label:ad("List Border Style","genesis-blocks"),value:r,options:k.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({borderStyle:t})}}),"gb-list-border-none"!==r&&React.createElement(kd,{label:ad("List Border Width","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:1,max:5,step:1}),"gb-list-border-none"!==r&&React.createElement(bd,null,React.createElement(vd,{label:ad("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(fd,{initialOpen:!1,value:o,onChange:function(e){return d({borderColor:e})}})))),React.createElement(_d,{title:ad("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:s,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:l,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:u,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:c,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(md,{title:ad("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:_,label:ad("Background Color","genesis-blocks")},{value:g.color,onChange:b,label:ad("Text Color","genesis-blocks")}]},React.createElement(pd,a()({textColor:g.color,backgroundColor:h.color,fallbackTextColor:v,fallbackBackgroundColor:y},{fontSize:m.size}))))}}]),n}(od),wd=id([Md,cd("fontSize"),dd("backgroundColor",{textColor:"color"})])(Ld);function Td(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Yd=wp.i18n.__,Ed=(wp.blocks.registerBlockType,wp.compose.compose),Sd=wp.element,xd=Sd.Component,Dd=Sd.Fragment,Cd=wp.blockEditor,Rd=Cd.RichText,Od=Cd.withFontSizes,Pd=Cd.withColors,jd=function(e){p()(n,e);var t=Td(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.features,a=n.borderStyle,o=n.borderColor,s=n.borderWidth,l=n.paddingTop,u=n.paddingRight,c=n.paddingBottom,d=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),m=(t.fallbackFontSize,t.fontSize),f=t.backgroundColor,h=t.textColor,g=b()((e={"gb-pricing-table-features":!0},i()(e,m.class,m.class),i()(e,"has-text-color",h.color),i()(e,"has-background",f.color),i()(e,f.class,f.class),i()(e,h.class,h.class),i()(e,a,a),i()(e,"gb-list-border-width-"+s,s),e)),_={fontSize:m.size?m.size+"px":void 0,backgroundColor:f.color,color:h.color,borderColor:o||void 0,paddingTop:l?l+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:d?d+"px":void 0};return[React.createElement(Dd,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(wd,this.props),React.createElement(Rd,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:Yd("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({features:e})},style:_,className:g||void 0}))]}}]),n}(xd),Hd=Ed([Od("fontSize"),Pd("backgroundColor",{textColor:"color"})])(jd),Ad=wp.i18n.__,zd=wp.blocks.registerBlockType,Fd=(wp.element.Component,wp.blockEditor),Nd=Fd.RichText,Bd=Fd.getFontSizeClass,Id=(Fd.FontSizePicker,Fd.withFontSizes,Fd.getColorClassName);function Wd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}zd("genesis-blocks/gb-pricing-table-features",{title:Ad("Product Features","genesis-blocks"),description:Ad("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ad("pricing table","genesis-blocks"),Ad("features","genesis-blocks"),Ad("shop","genesis-blocks")],attributes:{features:{type:"string",source:"html",selector:"ol,ul",multiline:"li"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},borderStyle:{type:"string",default:"gb-list-border-none"},borderColor:{type:"string"},borderWidth:{type:"number",default:1},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Hd,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.borderStyle,p=n.borderColor,m=n.borderWidth,f=n.paddingTop,h=n.paddingRight,g=n.paddingBottom,_=n.paddingLeft,y=Bd(a),v=Id("color",l),k=Id("background-color",s),M=b()((t={"has-background":s||u,"gb-pricing-table-features":!0},i()(t,y,y),i()(t,v,v),i()(t,k,k),i()(t,d,d),i()(t,"gb-list-border-width-"+m,m),t)),L={fontSize:y?void 0:o,backgroundColor:k?void 0:u,color:v?void 0:c,borderColor:p||void 0,paddingTop:f?f+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:_?_+"px":void 0};return React.createElement(Nd.Content,{tagName:"ul",itemProp:"description",value:r,className:M||void 0,style:L})}});var Ud=wp.i18n.__,Vd=wp.element.Component,Jd=wp.compose.compose,Gd=wp.blockEditor,qd=Gd.InspectorControls,$d=Gd.FontSizePicker,Kd=Gd.withFontSizes,Qd=Gd.withColors,Zd=Gd.ContrastChecker,Xd=Gd.PanelColorSettings,ep=(Gd.RangeControl,wp.components),tp=ep.withFallbackStyles,np=ep.PanelBody,rp=tp((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),ap=function(e){p()(n,e);var t=Wd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,s=(e.isSelected,e.setAttributes),l=e.fallbackFontSize,u=e.fontSize,c=e.setFontSize,d=e.backgroundColor,p=e.textColor,m=e.setBackgroundColor,f=e.setTextColor,h=e.fallbackBackgroundColor,g=e.fallbackTextColor;return React.createElement(qd,{key:"inspector"},React.createElement(np,{title:Ud("Text Settings","genesis-blocks")},React.createElement($d,{fallbackFontSize:l,value:u.size,onChange:c})),React.createElement(np,{title:Ud("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return s({paddingLeft:e})}})),React.createElement(Xd,{title:Ud("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:m,label:Ud("Background Color","genesis-blocks")},{value:p.color,onChange:f,label:Ud("Text Color","genesis-blocks")}]},React.createElement(Zd,a()({textColor:p.color,backgroundColor:d.color,fallbackTextColor:g,fallbackBackgroundColor:h},{fontSize:u.size}))))}}]),n}(Vd),op=Jd([rp,Kd("fontSize"),Qd("backgroundColor",{textColor:"color"})])(ap);function ip(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var sp=wp.i18n.__,lp=(wp.blocks.registerBlockType,wp.compose.compose),up=wp.element,cp=up.Component,dp=up.Fragment,pp=wp.blockEditor,mp=pp.RichText,fp=pp.withFontSizes,hp=pp.withColors,gp=function(e){p()(n,e);var t=ip(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.title,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,m=b()((e={"gb-pricing-table-title":!0},i()(e,c.class,c.class),i()(e,"has-text-color",p.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,p.class,p.class),e)),f={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(dp,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(op,this.props),React.createElement(mp,{tagName:"div",itemProp:"name",placeholder:sp("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({title:e})},style:f,className:m||void 0}))]}}]),n}(cp),_p=lp([fp("fontSize"),hp("backgroundColor",{textColor:"color"})])(gp),bp=wp.i18n.__,yp=wp.blocks.registerBlockType,vp=(wp.element.Component,wp.blockEditor),kp=vp.RichText,Mp=vp.getFontSizeClass,Lp=(vp.FontSizePicker,vp.withFontSizes,vp.getColorClassName);function Tp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}yp("genesis-blocks/gb-pricing-table-title",{title:bp("Product Title","genesis-blocks"),description:bp("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[bp("pricing table","genesis-blocks"),bp("title","genesis-blocks"),bp("shop","genesis-blocks")],attributes:{title:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:_p,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,m=n.paddingBottom,f=n.paddingLeft,h=Mp(a),g=Lp("color",l),_=Lp("background-color",s),y={fontSize:h?void 0:o,backgroundColor:_?void 0:u,color:g?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:f?f+"px":void 0},v=b()((t={"has-background":s||u,"gb-pricing-table-title":!0},i()(t,h,h),i()(t,g,g),i()(t,_,_),t));return React.createElement(kp.Content,{tagName:"div",itemProp:"name",value:r,style:y,className:v||void 0})}});var Yp=wp.i18n.__,Ep=(wp.blocks.registerBlockType,wp.compose.compose),Sp=wp.element,xp=Sp.Component,Dp=Sp.Fragment,Cp=wp.blockEditor,Rp=Cp.RichText,Op=Cp.withFontSizes,Pp=Cp.withColors,jp=function(e){p()(n,e);var t=Tp(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.subtitle,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,u=(t.isSelected,t.className,t.setAttributes),c=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,p=t.textColor,m=b()((e={"gb-pricing-table-subtitle":!0},i()(e,c.class,c.class),i()(e,"has-text-color",p.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,p.class,p.class),e)),f={fontSize:c.size?c.size+"px":void 0,backgroundColor:d.color,color:p.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(Dp,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(op,this.props),React.createElement(Rp,{tagName:"div",placeholder:Yp("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return u({subtitle:e})},style:f,className:m||void 0}))]}}]),n}(xp),Hp=Ep([Op("fontSize"),Pp("backgroundColor",{textColor:"color"})])(jp),Ap=wp.i18n.__,zp=wp.blocks.registerBlockType,Fp=(wp.element.Component,wp.blockEditor),Np=Fp.RichText,Bp=Fp.getFontSizeClass,Ip=(Fp.FontSizePicker,Fp.withFontSizes,Fp.getColorClassName);function Wp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}zp("genesis-blocks/gb-pricing-table-subtitle",{title:Ap("Product Subtitle","genesis-blocks"),description:Ap("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ap("pricing table","genesis-blocks"),Ap("subtitle","genesis-blocks"),Ap("shop","genesis-blocks")],attributes:{subtitle:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Hp,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,u=n.customBackgroundColor,c=n.customTextColor,d=n.paddingTop,p=n.paddingRight,m=n.paddingBottom,f=n.paddingLeft,h=Bp(a),g=Ip("color",l),_=Ip("background-color",s),y=b()((t={"has-background":s||u,"gb-pricing-table-subtitle":!0},i()(t,h,h),i()(t,g,g),i()(t,_,_),t)),v={fontSize:h?void 0:o,backgroundColor:_?void 0:u,color:g?void 0:c,paddingTop:d?d+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:f?f+"px":void 0};return React.createElement(Np.Content,{tagName:"div",value:r,className:y||void 0,style:v})}});var Up=wp.i18n.__,Vp=wp.element.Component,Jp=wp.compose.compose,Gp=wp.blockEditor,qp=Gp.InspectorControls,$p=(Gp.FontSizePicker,Gp.withFontSizes),Kp=Gp.withColors,Qp=(Gp.ContrastChecker,Gp.PanelColorSettings),Zp=wp.components,Xp=Zp.withFallbackStyles,em=Zp.PanelBody,tm=(Zp.ToggleControl,Zp.TextControl,Zp.RangeControl,Xp((function(e,t){var n=t.attributes.backgroundColor,r=e.querySelector('[contenteditable="true"]'),a=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!a?void 0:a.backgroundColor}}))),nm=function(e){p()(n,e);var t=Wp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=(t.buttonText,t.buttonUrl,t.buttonAlignment,t.buttonBackgroundColor),s=t.buttonTextColor,l=t.buttonSize,u=t.buttonShape,c=t.buttonTarget,d=(e.isSelected,e.setAttributes),p=e.backgroundColor,m=e.setBackgroundColor;e.fallbackBackgroundColor;return React.createElement(qp,{key:"inspector"},React.createElement(em,{title:Up("Button Settings","genesis-blocks")},React.createElement(en,{buttonTarget:c,onChangeButtonTarget:function(e){return d({buttonTarget:!c})},buttonSize:l,onChangeButtonSize:function(e){return d({buttonSize:e})},buttonShape:u,onChangeButtonShape:function(e){return d({buttonShape:e})},buttonBackgroundColor:i,onChangeButtonColor:function(e){return d({buttonBackgroundColor:e})},buttonTextColor:s,onChangeButtonTextColor:function(e){return d({buttonTextColor:e})}})),React.createElement(em,{title:Up("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(pc,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:a,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:o,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(Qp,{title:Up("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:p.color,onChange:m,label:Up("Background Color","genesis-blocks")}]}))}}]),n}(Vp),rm=Jp([tm,$p("fontSize"),Kp("backgroundColor")])(nm);function am(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var om=wp.i18n.__,im=(wp.blocks.registerBlockType,wp.compose.compose),sm=wp.element,lm=sm.Component,um=sm.Fragment,cm=wp.blockEditor,dm=cm.RichText,pm=cm.withFontSizes,mm=cm.withColors,fm=(cm.InnerBlocks,cm.URLInput),hm=wp.components,gm=hm.Button,_m=hm.Dashicon,bm=hm.Icon,ym=function(e){p()(n,e);var t=am(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.subtitle,t.paddingTop),r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=t.buttonText,s=t.buttonUrl,l=t.buttonAlignment,u=t.buttonBackgroundColor,c=t.buttonTextColor,d=t.buttonSize,p=t.buttonShape,m=(t.buttonTarget,e.isSelected),f=(e.className,e.setAttributes),h=e.backgroundColor,g=b()({"gb-pricing-table-button":!0}),_={backgroundColor:h.color,paddingTop:n?n+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:a?a+"px":void 0,paddingLeft:o?o+"px":void 0};return[React.createElement(um,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(rm,this.props),React.createElement("div",{className:g||void 0,style:_},React.createElement(ln,this.props,React.createElement(dm,{tagName:"span",placeholder:om("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:[],className:b()("gb-button",p,d),style:{color:c,backgroundColor:u},onChange:function(e){return f({buttonText:e})}})),m&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(l),onSubmit:function(e){return e.preventDefault()},style:{textAlign:l}},React.createElement(_m,{icon:"admin-links"}),React.createElement(fm,{className:"button-url",value:s,onChange:function(e){return f({buttonUrl:e})}}),React.createElement(gm,{label:om("Apply","genesis-blocks"),type:"submit"},React.createElement(bm,{icon:"editor-break"})))))]}}]),n}(lm),vm=im([pm("fontSize"),mm("backgroundColor",{textColor:"color"})])(ym),km=wp.i18n.__,Mm=wp.blocks.registerBlockType,Lm=(wp.element.Component,wp.blockEditor),wm=Lm.RichText,Tm=(Lm.getFontSizeClass,Lm.FontSizePicker,Lm.withFontSizes,Lm.getColorClassName);Mm("genesis-blocks/gb-pricing-table-button",{title:km("Product Button","genesis-blocks"),description:km("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[km("pricing table","genesis-blocks"),km("subtitle","genesis-blocks"),km("shop","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:vm,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,a=t.paddingTop,o=t.paddingRight,s=t.paddingBottom,l=t.paddingLeft,u=t.buttonText,c=t.buttonUrl,d=(t.buttonAlignment,t.buttonBackgroundColor),p=t.buttonTextColor,m=t.buttonSize,f=t.buttonShape,h=t.buttonTarget,g=Tm("background-color",n),_=b()(i()({"has-background":n||r,"gb-pricing-table-button":!0},g,g)),y={backgroundColor:g?void 0:r,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return React.createElement("div",{className:_||void 0,style:y},React.createElement(ln,e,u&&React.createElement("a",{href:c,target:h?"_blank":null,rel:h?"noopener noreferrer":null,className:b()("gb-button",f,m),style:{color:p,backgroundColor:d}},React.createElement(wm.Content,{value:u}))))}});var Ym=wp.i18n.__,Em=wp.element.Fragment,Sm=wp.components.RangeControl;function xm(e){var t=e.marginTop,n=e.marginTopLabel,r=e.marginTopMin,a=e.marginTopMax,o=e.marginEnableTop,i=e.onChangeMarginTop,s=void 0===i?function(){}:i,l=e.marginRight,u=e.marginRightLabel,c=e.marginRightMin,d=e.marginRightMax,p=e.marginEnableRight,m=e.onChangeMarginRight,f=void 0===m?function(){}:m,h=e.marginBottom,g=e.marginBottomLabel,_=e.marginBottomMin,b=e.marginBottomMax,y=e.marginEnableBottom,v=e.onChangeMarginBottom,k=void 0===v?function(){}:v,M=e.marginLeft,L=e.marginLeftLabel,w=e.marginLeftMin,T=e.marginLeftMax,Y=e.marginEnableLeft,E=e.onChangeMarginLeft,S=void 0===E?function(){}:E,x=e.marginVertical,D=e.marginVerticalLabel,C=e.marginEnableVertical,R=e.marginVerticalMin,O=e.marginVerticalMax,P=e.onChangeMarginVertical,j=void 0===P?function(){}:P,H=e.marginHorizontal,A=e.marginHorizontalLabel,z=e.marginEnableHorizontal,F=e.marginHorizontalMin,N=e.marginHorizontalMax,B=e.onChangeMarginHorizontal,I=void 0===B?function(){}:B;return React.createElement(Em,null,o&&React.createElement(Sm,{label:n||Ym("Margin Top","genesis-blocks"),value:t,min:r,max:a,onChange:s}),p&&React.createElement(Sm,{label:u||Ym("Margin Right","genesis-blocks"),value:l,min:c,max:d,onChange:f}),y&&React.createElement(Sm,{label:g||Ym("Margin Bottom","genesis-blocks"),value:h,min:_,max:b,onChange:k}),Y&&React.createElement(Sm,{label:L||Ym("Margin Left","genesis-blocks"),value:M,min:w,max:T,onChange:S}),C&&React.createElement(Sm,{label:D||Ym("Margin Vertical","genesis-blocks"),value:x,min:R,max:O,onChange:j}),z&&React.createElement(Sm,{label:A||Ym("Margin Horizontal","genesis-blocks"),value:H,min:F,max:N,onChange:I}))}function Dm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Cm=wp.i18n.__,Rm=wp.element.Component,Om=wp.compose.compose,Pm=wp.blockEditor,jm=Pm.InspectorControls,Hm=Pm.withColors,Am=Pm.ContrastChecker,zm=Pm.PanelColorSettings,Fm=wp.components,Nm=Fm.PanelBody,Bm=Fm.SelectControl,Im=Fm.TextControl,Wm=Fm.FormToggle,Um=(0,Fm.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=n.buttonTextColor,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:r||!l?void 0:l.backgroundColor,fallbackTextColor:a||!l?void 0:l.color,fallbackButtonBackgroundColor:o||!l?void 0:l.buttonBackgroundColor,fallbackButtonTextColor:i||!l?void 0:l.buttonTextColor}})),Vm=function(e){p()(n,e);var t=Dm(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"doubleOptInChange",value:function(e){this.props.doubleOptIn&&this.props.doubleOptIn(e.target.checked)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.backgroundColor,a=e.setBackgroundColor,o=e.fallbackBackgroundColor,i=e.textColor,s=e.fallbackTextColor,l=e.setTextColor,u=e.buttonBackgroundColor,c=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,p=e.fallbackButtonTextColor,m=e.setButtonBackgroundColor,f=e.setButtonTextColor,h={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:Cm("Select a list","genesis-blocks"),value:""}]}};return genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((function(e){return h.mailchimp.lists.push({label:e.name,value:e.id})})),React.createElement(jm,null,React.createElement(Nm,{title:Cm("Newsletter","genesis-blocks"),initialOpen:!t.mailingList},React.createElement(M,{id:"gb_newsletter_mailingList"},React.createElement(Bm,{label:Cm("Mailing List","genesis-blocks"),help:Cm("The list people will be subscribed to.","genesis-blocks"),options:h.mailchimp.lists,value:t.mailingList,onChange:function(e){return n({mailingList:e})}})),React.createElement(M,{id:"gb_newsletter_successMessage"},React.createElement(Im,{type:"string",label:Cm("Success Message","genesis-blocks"),help:Cm("The message shown when people successfully subscribe.","genesis-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),React.createElement(M,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(Wm,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"gb-newsletter-double-opt-in-toggle",checked:t.doubleOptIn,onChange:function(e){return n({doubleOptIn:e.target.checked})}}),React.createElement("label",{className:"gb-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},Cm("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},Cm("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(Nm,{title:Cm("General","genesis-blocks"),initialOpen:!!t.mailingList},React.createElement(M,{id:"gb_newsletter_containerPadding"},React.createElement(pc,{paddingEnable:!0,paddingTitle:Cm("Block Padding","genesis-blocks"),paddingHelp:Cm("Adjust the padding applied to the inside of the block.","genesis-blocks"),padding:t.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:function(e){return n({containerPadding:e})}})),React.createElement(M,{id:"gb_newsletter_containerMargin"},React.createElement(xm,{marginEnableTop:!0,marginTopLabel:Cm("Block Margin Top","genesis-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:Cm("Block Margin Bottom","genesis-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),React.createElement(en,{enableButtonTarget:!1,buttonSize:t.buttonSize,onChangeButtonSize:function(e){return n({buttonSize:e})},buttonShape:t.buttonShape,onChangeButtonShape:function(e){return n({buttonShape:e})},enableButtonBackgroundColor:!1,enableButtonTextColor:!1})),React.createElement(M,{id:"gb_newsletter_colorOptions"},React.createElement(zm,{title:Cm("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:a,label:Cm("Block Background Color","genesis-blocks")},{value:i.color,onChange:l,label:Cm("Block Text Color","genesis-blocks")},{value:u.color,onChange:m,label:Cm("Button Background Color","genesis-blocks")},{value:d.color,onChange:f,label:Cm("Button Text Color","genesis-blocks")}]},React.createElement(Am,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:s,fallbackBackgroundColor:o}),React.createElement(Am,{textColor:d.color,backgroundColor:u.color,fallbackButtonTextColor:p,fallbackButtonBackgroundColor:c}),React.createElement(Am,{textColor:u.color,backgroundColor:r.color,fallbackButtonBackgroundColor:c,fallbackBackgroundColor:o}))))}}]),n}(Rm),Jm=Om([Um,Hm("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Vm);function Gm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var qm=wp.element.Component,$m=(wp.blockEditor.getColorClassName,function(e){p()(n,e);var t=Gm(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n,r=this.props,a=r.attributes,o=r.backgroundColor,s=r.textColor;return t=a.customBackgroundColor?"gb-has-custom-background-color":a.backgroundColor?"has-"+a.backgroundColor+"-background-color":null,n=a.customTextColor?"gb-has-custom-text-color":a.textColor?"has-"+a.textColor+"-color":null,React.createElement("div",{style:{backgroundColor:o.color,padding:a.containerPadding?a.containerPadding:void 0,marginTop:a.containerMarginTop?a.containerMarginTop:void 0,marginBottom:a.containerMarginBottom?a.containerMarginBottom:void 0,color:s.color},className:b()([this.props.className],(e={"gb-block-newsletter":!0,"gb-form-styles":!0,"has-background":a.backgroundColor||a.customBackgroundColor},i()(e,t,t),i()(e,n,n),e))},this.props.children)}}]),n}(qm));function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Xm=wp.i18n.__,ef=wp.compose,tf=ef.compose,nf=ef.withInstanceId,rf=wp.blockEditor,af=(rf.getColorClassName,rf.RichText),of=rf.withColors,sf=wp.element,lf=sf.Fragment,uf=sf.Component,cf=wp.components,df=cf.TextControl,pf=(0,cf.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=e.querySelector('[contenteditable="true"]'),s=i?getComputedStyle(i):null;return{fallbackBackgroundColor:r||!s?void 0:s.backgroundColor,fallbackTextColor:a||!s?void 0:s.color,fallbackButtonBackgroundColor:o||!s?void 0:s.buttonBackgroundColor}})),mf=function(e){p()(n,e);var t=Zm(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return c()(n,[{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.attributes,i=r.isSelected,s=r.setAttributes,l=r.buttonBackgroundColor,u=r.buttonTextColor,c=genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;return e=o.customButtonBackgroundColor?"gb-has-custom-background-color":o.buttonBackgroundColor?"has-"+o.buttonBackgroundColor+"-background-color":null,t=o.customButtonTextColor?"gb-has-custom-text-color":o.buttonTextColor?"has-"+o.buttonTextColor+"-color":null,[React.createElement(Jm,a()({key:"gb-newsletter-inspector-"+this.props.clientId},Qm({setAttributes:s},this.props))),React.createElement($m,a()({key:"gb-newsletter-container-"+this.props.clientId},this.props),!c&&React.createElement(lf,null,React.createElement("div",{className:"gb-newsletter-notice"},Xm("You must define your newsletter provider API keys to use this block.","genesis-blocks"),React.createElement("p",null,React.createElement("a",{href:genesis_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},Xm("Configure your settings","genesis-blocks"))))),c&&React.createElement(lf,null,React.createElement(af,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:o.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),React.createElement(df,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:b()("gb-block-button")},React.createElement(ln,this.props,React.createElement(af,{tagName:"span",placeholder:Xm("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o.buttonText,allowedFormats:[],className:b()("gb-button",o.buttonClass,o.buttonShape,o.buttonSize,e,t,{"has-background":o.buttonBackgroundColor||o.customButtonBackgroundColor,"has-text-color":o.buttonTextColor||o.customButtonTextColor}),style:{backgroundColor:l.color,color:u.color},onChange:function(e){return n.props.setAttributes({buttonText:e})}})),i&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o.buttonAlignment),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o.buttonAlignment}}))))]}}]),n}(uf),ff=tf([pf,of("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(nf(mf)),hf=(n(369),n(370),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-newsletter",{title:hf("Email newsletter","genesis-blocks"),description:hf("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[hf("Mailchimp","genesis-blocks"),hf("Subscribe","genesis-blocks"),hf("Newsletter","genesis-blocks")],edit:ff,gb_settings_data:{gb_newsletter_mailingList:{title:hf("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:hf("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:hf("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:hf("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:hf("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:hf("Color Options","genesis-blocks")}},save:function(){return null}});var gf=n(35),_f=n.n(gf);var bf=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"gb-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"gb-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"gb-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"gb-background-"+e.backgroundRepeat:null,e.hasParallax?"gb-has-parallax":null];var t},yf=function(e){return{backgroundImage:e.backgroundImgURL?"url(".concat(e.backgroundImgURL,")"):void 0,backgroundPosition:e.focalPoint?"".concat(100*e.focalPoint.x,"% ").concat(100*e.focalPoint.y,"%"):void 0}};function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mf=function(e){p()(n,e);var t=kf(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,t=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null;var r,a,o=b()([this.props.className,"gb-layout-columns-"+n.columns,n.layout].concat(_f()(bf(n)),[e,t,n.columnMaxWidth&&n.centerColumns?"gb-columns-center":null]),i()({},"align"+n.align,n.align));r=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},a=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null},yf(n));return React.createElement("div",{className:o||void 0,style:Object.assign(r,a,s)},this.props.children)}}]),n}(wp.element.Component),Lf={};Lf.oneEqual=React.createElement("svg",{className:"dashicon",height:"26",viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),Lf.twoEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),Lf.twoLeftWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),Lf.twoRightWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),Lf.threeEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),Lf.threeWideCenter=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Lf.threeWideLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Lf.threeWideRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),Lf.fourEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),Lf.fourLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Lf.fourRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),Lf.fiveEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Lf.sixEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),Lf.blockIcon=React.createElement("svg",{viewBox:"0 0 60 34",height:"34",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));var wf=Lf,Tf=wp.i18n.__,Yf={1:[{name:Tf("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:wf.oneEqual}],2:[{name:Tf("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:wf.twoEqual},{name:Tf("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:wf.twoLeftWide},{name:Tf("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:wf.twoRightWide}],3:[{name:Tf("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:wf.threeEqual},{name:Tf("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:wf.threeWideCenter},{name:Tf("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:wf.threeWideLeft},{name:Tf("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:wf.threeWideRight}],4:[{name:Tf("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:wf.fourEqual},{name:Tf("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:wf.fourLeft},{name:Tf("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:wf.fourRight}],5:[{name:Tf("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:wf.fiveEqual}],6:[{name:Tf("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:wf.sixEqual}]};function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var xf=wp.i18n.__,Df=wp.element,Cf=Df.Fragment,Rf=Df.Component,Of=wp.components,Pf=Of.PanelBody,jf=Of.RangeControl,Hf=Of.Button,Af=Of.ButtonGroup,zf=Of.FocalPointPicker,Ff=Of.Icon,Nf=Of.ToggleControl,Bf=Of.SelectControl,If=wp.blockEditor,Wf=If.MediaUpload,Uf=If.MediaUploadCheck,Vf=function(e){p()(n,e);var t=Sf(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,o=[{value:"no-repeat",label:xf("No Repeat","genesis-blocks")},{value:"repeat",label:xf("Repeat","genesis-blocks")},{value:"repeat-x",label:xf("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:xf("Repeat Vertically","genesis-blocks")}],s=[{value:"auto",label:xf("Auto","genesis-blocks")},{value:"cover",label:xf("Cover","genesis-blocks")},{value:"contain",label:xf("Contain","genesis-blocks")}];return"cover"===r.backgroundSize&&(e=xf("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","genesis-blocks")),"contain"===r.backgroundSize&&(e=xf("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===r.backgroundSize&&(e=xf("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(Cf,null,React.createElement(Pf,{title:xf("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(Uf,null,React.createElement(Wf,{onSelect:function(e){a({backgroundImgURL:e.url})},type:"image",value:r.backgroundImgURL,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Af,{className:"gb-background-button-group"},React.createElement(Hf,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:xf("Edit image","genesis-blocks"),onClick:t},React.createElement(Ff,{icon:"format-image"}),xf("Select Image","genesis-blocks")),r.backgroundImgURL&&React.createElement(Hf,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:xf("Remove Image","genesis-blocks"),onClick:function(){return a({backgroundImgURL:null})}},React.createElement(Ff,{icon:"dismiss"}),xf("Remove","genesis-blocks"))))}})),r.backgroundImgURL&&React.createElement(Cf,null,React.createElement(zf,{label:xf("Focal Point","genesis-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return a({focalPoint:e})}}),React.createElement(jf,{label:xf("Image Opacity","genesis-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),React.createElement(Nf,{label:xf("Fixed Background","genesis-blocks"),checked:r.hasParallax,onChange:function(){a(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasParallax:!r.hasParallax},r.hasParallax?{}:{focalPoint:void 0}))}}),React.createElement(Bf,{className:"gb-inspector-help-text",label:xf("Image Display","genesis-blocks"),value:r.backgroundSize,help:e,options:s,onChange:function(e){return t.props.setAttributes({backgroundSize:e})}}),"cover"!==r.backgroundSize&&React.createElement(Bf,{label:xf("Image Repeat","genesis-blocks"),value:r.backgroundRepeat,options:o,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}]),n}(Rf);function Jf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Gf=wp.i18n.__,qf=wp.element,$f=qf.Component,Kf=qf.Fragment,Qf=wp.blockEditor,Zf=Qf.InspectorControls,Xf=Qf.PanelColorSettings,eh=Qf.ContrastChecker,th=wp.components,nh=th.PanelBody,rh=th.RangeControl,ah=th.ButtonGroup,oh=th.Button,ih=th.Tooltip,sh=th.ToggleControl,lh=th.SelectControl,uh=function(e){p()(n,e);var t=Jf(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,a=t.backgroundColor,o=t.setBackgroundColor,i=t.textColor,s=t.setTextColor,l=1;n.columns&&(l=parseInt(n.columns.toString().split("-")));var u=[{value:"px",label:Gf("Pixel (px)","genesis-blocks")},{value:"%",label:Gf("Percent (%)","genesis-blocks")},{value:"em",label:Gf("Em (em)","genesis-blocks")}];return React.createElement(Zf,{key:"inspector"},n.layout&&React.createElement(nh,{title:Gf("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(M,{id:"gb_column_columns"},React.createElement(rh,{label:Gf("Column Count","genesis-blocks"),help:Gf("Note: Changing the column count after you've added content to the column can cause loss of content.","genesis-blocks"),value:n.columns,onChange:function(t){return e.props.setAttributes({columns:t,layout:"gb-"+t+"-col-equal"})},min:1,max:6,step:1})),React.createElement("hr",null),(2===n.columns||3===n.columns||4===n.columns)&&React.createElement(Kf,null,React.createElement(M,{id:"gb_column_columnLayouts"},React.createElement("p",null,Gf("Column Layout","genesis-blocks")),React.createElement(ah,{"aria-label":Gf("Column Layout","genesis-blocks")},ho()(Yf[l],(function(t){var n=t.name,a=t.key,o=t.icon;t.col;return React.createElement(ih,{text:n,key:a},React.createElement(oh,{key:a,className:"gb-column-selector-button",isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o))}))),React.createElement("p",null,React.createElement("i",null,Gf("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(M,{id:"gb_column_columnsGap"},React.createElement(rh,{label:Gf("Column Gap","genesis-blocks"),help:Gf("Adjust the spacing between columns.","genesis-blocks"),value:n.columnsGap,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:10,step:1})),React.createElement("hr",null),React.createElement(M,{id:"gb_column_columnMaxWidth"},React.createElement(rh,{label:Gf("Column Inner Max Width (px)"),help:Gf("Adjust the width of the content inside the container wrapper.","genesis-blocks"),value:n.columnMaxWidth,onChange:function(t){return e.props.setAttributes({columnMaxWidth:t})},min:0,max:2e3,step:1})),0<n.columnMaxWidth&&React.createElement(M,{id:"gb_column_centerColumns"},React.createElement(sh,{label:Gf("Center Columns In Container","genesis-blocks"),help:Gf("Center the columns in the container when max-width is used.","genesis-blocks"),checked:n.centerColumns,onChange:function(){return e.props.setAttributes({centerColumns:!n.centerColumns})}})),React.createElement("hr",null),React.createElement(M,{id:"gb_column_responsiveToggle"},React.createElement(sh,{label:Gf("Responsive Columns","genesis-blocks"),help:Gf("Columns will be adjusted to fit on tablets and mobile devices.","genesis-blocks"),checked:n.responsiveToggle,onChange:function(){return e.props.setAttributes({responsiveToggle:!n.responsiveToggle})}}))),React.createElement(M,{id:"gb_column_marginPadding"},React.createElement(nh,{title:Gf("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(lh,{label:Gf("Margin Unit","genesis-blocks"),help:Gf("Choose between pixel, percent, or em units.","genesis-blocks"),options:u,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(sh,{label:Gf("Sync Margin","genesis-blocks"),help:Gf("Top and bottom margins will have the same value.","genesis-blocks"),checked:n.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!n.marginSync})}}),n.marginSync?React.createElement(xm,{marginEnableVertical:!0,marginVerticalLabel:Gf("Margin Top/Bottom","genesis-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):React.createElement(xm,{marginEnableTop:!0,marginTop:n.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return r({marginTop:e})},marginEnableBottom:!0,marginBottom:n.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return r({marginBottom:e})}}),React.createElement("hr",null),React.createElement(lh,{label:Gf("Padding Unit","genesis-blocks"),help:Gf("Choose between pixel, percent, or em units.","genesis-blocks"),options:u,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(sh,{label:Gf("Sync Padding","genesis-blocks"),help:Gf("Padding on all sides will have the same value.","genesis-blocks"),checked:n.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!n.paddingSync})}}),n.paddingSync?React.createElement(pc,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):React.createElement(pc,{paddingEnableTop:!0,paddingTop:n.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return r({paddingTop:e})},paddingEnableRight:!0,paddingRight:n.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return r({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:n.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return r({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:n.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return r({paddingLeft:e})}}))),React.createElement(M,{id:"gb_column_colorSettings"},React.createElement(Xf,{title:Gf("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a.color,onChange:o,label:Gf("Background Color","genesis-blocks")},{value:i.color,onChange:s,label:Gf("Text Color","genesis-blocks")}]},React.createElement(eh,{textColor:i.color,backgroundColor:a.color}))),React.createElement(M,{id:"gb_column_backgroundImagePanel"},React.createElement(Vf,this.props)))}}]),n}($f);function ch(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var dh=wp.i18n.__,ph=wp.element,mh=ph.Component,fh=ph.Fragment,hh=wp.compose.compose,gh=wp.data.dispatch,_h=wp.blockEditor,bh=_h.BlockControls,yh=_h.BlockAlignmentToolbar,vh=_h.InnerBlocks,kh=_h.withColors,Mh=wp.components,Lh=Mh.Placeholder,wh=Mh.ButtonGroup,Th=Mh.Tooltip,Yh=Mh.Button,Eh=["genesis-blocks/gb-column"],Sh=Lu()((function(e){return Tu()(e,(function(){return["genesis-blocks/gb-column"]}))})),xh=function(e){p()(n,e);var t=ch(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={selectLayout:!0},r}return c()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&gh("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=1;n.columns&&(o=parseInt(n.columns.toString().split("-")));var i=[{name:dh("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:wf.oneEqual},{name:dh("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:wf.twoEqual},{name:dh("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:wf.threeEqual},{name:dh("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:wf.fourEqual},{name:dh("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:wf.fiveEqual},{name:dh("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:wf.sixEqual}];return!n.layout&&this.state.selectLayout?[React.createElement(Lh,{key:"placeholder",icon:"editor-table",label:n.columns?dh("Column Layout","genesis-blocks"):dh("Column Number","genesis-blocks"),instructions:n.columns?dh("Select a layout for this column.","genesis-blocks"):dh("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},n.columns?React.createElement(fh,null,React.createElement(wh,{"aria-label":dh("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},ho()(Yf[o],(function(t){var n=t.name,a=t.key,o=t.icon;return React.createElement(Th,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(Yh,{key:a,className:b()("gb-column-selector-button",a),isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o)))}))),React.createElement(Yh,{className:"gb-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},dh("Return to Column Selection","genesis-blocks"))):React.createElement(wh,{"aria-label":dh("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},ho()(i,(function(t){var n=t.name,a=t.key,o=t.icon,i=t.columns;return React.createElement(Th,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(Yh,{className:b()("gb-column-selector-button","gb-select-"+a),isSmall:!0,onClick:function(){r({columns:i,layout:1===i||5===i||6===i?a:null}),1===i&&e.setState({selectLayout:!1})}},o)))}))))]:[React.createElement(bh,{key:"controls"},React.createElement(yh,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),React.createElement(uh,a()({},this.props,{key:"inspector"})),React.createElement(Mf,a()({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),React.createElement("div",{className:b()("gb-layout-column-wrap-admin","gb-block-layout-column-gap-"+n.columnsGap,n.responsiveToggle?"gb-is-responsive-column":null),style:{maxWidth:n.columnMaxWidth?n.columnMaxWidth:null}},React.createElement(vh,{template:Sh(n.columns),templateLock:"all",allowedBlocks:Eh})))]}}]),n}(mh),Dh=hh([kh("backgroundColor",{textColor:"color"})])(xh);function Ch(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Rh=wp.element.Component,Oh=wp.blockEditor.InnerBlocks,Ph=function(e){p()(n,e);var t=Ch(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes,t=b()(["gb-layout-column-wrap","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null]);return React.createElement(Mf,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(Oh.Content,null)))}}]),n}(Rh),jh={backgroundImgURL:{type:"string"},backgroundDimRatio:{type:"number",default:100},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundSize:{type:"string",default:"cover"},hasParallax:{type:"boolean",default:!1},focalPoint:{type:"object"}};function Hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hh(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zh=wp.i18n.__;function Fh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-columns",{title:zh("Advanced Columns","genesis-blocks"),description:zh("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[zh("column","genesis-blocks"),zh("grid","genesis-blocks"),zh("row","genesis-blocks")],attributes:Ah(Ah({},jh),{},{columns:{type:"number"},layout:{type:"string"},columnsGap:{type:"number",default:2},align:{type:"string"},responsiveToggle:{type:"boolean",default:!0},marginSync:{type:"boolean",default:!1},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},marginUnit:{type:"string",default:"px"},paddingSync:{type:"boolean",default:!1},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingUnit:{type:"string",default:"px"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},columnMaxWidth:{type:"number"},centerColumns:{type:"boolean",default:!0}}),gb_settings_data:{gb_column_columns:{title:zh("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:zh("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:zh("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:zh("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:zh("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:zh("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:zh("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:zh("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:zh("Background Settings","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:function(e){return React.createElement(Dh,e)},save:function(e){return React.createElement(Ph,e)}});var Nh=wp.i18n.__,Bh=wp.element.Component,Ih=wp.compose.compose,Wh=wp.blockEditor,Uh=Wh.InspectorControls,Vh=Wh.PanelColorSettings,Jh=Wh.withColors,Gh=Wh.ContrastChecker,qh=wp.components,$h=qh.PanelBody,Kh=qh.ToggleControl,Qh=qh.SelectControl,Zh=function(e){p()(n,e);var t=Fh(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.backgroundColor,r=t.setBackgroundColor,a=t.textColor,o=t.setTextColor,i=t.attributes,s=t.setAttributes,l=[{value:"px",label:Nh("Pixel (px)","genesis-blocks")},{value:"%",label:Nh("Percent (%)","genesis-blocks")},{value:"em",label:Nh("Em (em)","genesis-blocks")}];return React.createElement(Uh,{key:"inspector"},React.createElement(M,{id:"gb_column_inner_marginPadding"},React.createElement($h,{title:Nh("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Qh,{label:Nh("Margin Unit","genesis-blocks"),help:Nh("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Kh,{label:Nh("Sync Margin","genesis-blocks"),help:Nh("Top and bottom margins will have the same value.","genesis-blocks"),checked:i.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!i.marginSync})}}),i.marginSync?React.createElement(xm,{marginEnableVertical:!0,marginVerticalLabel:Nh("Margin Top/Bottom","genesis-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return s({margin:e})}}):React.createElement(xm,{marginEnableTop:!0,marginTop:i.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return s({marginTop:e})},marginEnableBottom:!0,marginBottom:i.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return s({marginBottom:e})}}),React.createElement("hr",null),React.createElement(Qh,{label:Nh("Padding Unit","genesis-blocks"),help:Nh("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Kh,{label:Nh("Sync Padding","genesis-blocks"),help:Nh("Padding on all sides will have the same value.","genesis-blocks"),checked:i.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!i.paddingSync})}}),i.paddingSync?React.createElement(pc,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return s({padding:e})}}):React.createElement(pc,{paddingEnableTop:!0,paddingTop:i.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:i.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:i.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return s({paddingLeft:e})}}))),React.createElement(M,{id:"gb_column_inner_colorSettings"},React.createElement(Vh,{title:Nh("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:Nh("Background Color","genesis-blocks")},{value:a.color,onChange:o,label:Nh("Text Color","genesis-blocks")}]},React.createElement(Gh,{textColor:a.color,backgroundColor:n.color}))),React.createElement(M,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Vf,this.props)))}}]),n}(Bh),Xh=Ih([Jh("backgroundColor",{textColor:"color"})])(Zh);function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ng=function(e){p()(n,e);var t=tg(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eg(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null},yf(n));return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()(this.props.className,"gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b.a.apply(void 0,["gb-block-layout-column-inner",r,a].concat(_f()(bf(n)))),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function rg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var ag=wp.i18n.__,og=wp.compose.compose,ig=wp.element.Component,sg=wp.components.Toolbar,lg=wp.blockEditor,ug=lg.AlignmentToolbar,cg=lg.BlockControls,dg=lg.InnerBlocks,pg=lg.withColors,mg=function(e){p()(n,e);var t=rg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:ag("Vertical Align Top","genesis-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:ag("Vertical Align Middle","genesis-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:ag("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[React.createElement(cg,{key:"controls"},React.createElement(ug,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),React.createElement(sg,{controls:r})),React.createElement(Xh,a()({},this.props,{key:"inspector"})),React.createElement(ng,a()({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(dg,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}]),n}(ig),fg=og([pg("backgroundColor",{textColor:"color"})])(mg);function hg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var gg=wp.element.Component,_g=wp.blockEditor.InnerBlocks,bg=function(e){p()(n,e);var t=hg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(ng,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(_g.Content,null))}}]),n}(gg);function yg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var vg=function(e){p()(n,e);var t=yg(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,o={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null};return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()("gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b()("gb-block-layout-column-inner",r,a),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function kg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Mg=wp.element.Component,Lg=wp.blockEditor.InnerBlocks,wg=function(e){p()(n,e);var t=kg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(vg,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Lg.Content,null))}}]),n}(Mg),Tg=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},save:function(e){return React.createElement(wg,e)}}];n(371),n(372);function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sg=wp.i18n.__;(0,wp.blocks.registerBlockType)("genesis-blocks/gb-column",{title:Sg("Column","genesis-blocks"),description:Sg("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[Sg("column","genesis-blocks"),Sg("layout","genesis-blocks"),Sg("row","genesis-blocks")],attributes:Eg(Eg({},jh),{},{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}}),gb_settings_data:{gb_column_inner_marginPadding:{title:Sg("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:Sg("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:Sg("Background Image","genesis-blocks")}},edit:function(e){return React.createElement(fg,e)},save:function(e){return React.createElement(bg,e)},deprecated:Tg});var xg=wp.compose.createHigherOrderComponent((function(e){return function(t){return"genesis-blocks/gb-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?React.createElement(e,a()({},t,{className:"gb-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):React.createElement(e,t)}}),"withClientIdClassName");wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",xg);var Dg=n(18),Cg=n.n(Dg);function Rg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Og=wp.i18n.__,Pg=wp.element,jg=Pg.Component,Hg=Pg.Fragment,Ag=wp.components,zg=Ag.Button,Fg=Ag.Dashicon,Ng=Ag.Tooltip,Bg=function(e){p()(n,e);var t=Rg(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this;return React.createElement(Hg,null,React.createElement("div",{key:"gb-layout-design-"+this.props.itemKey,className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(zg,{key:this.props.itemKey,className:"gb-layout-insert-button",isSmall:!0,onClick:function(){e.props.import(e.props.content,e.props.clientId)}},React.createElement("img",{src:this.props.image,alt:this.props.name})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},this.props.name,React.createElement(Ng,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?Og("Remove from Favorites","genesis-blocks"):Og("Add to Favorites","genesis-blocks")},React.createElement(zg,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},React.createElement(Fg,{icon:"heart",className:b()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}]),n}(jg);function Ig(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Wg=wp.i18n.__,Ug=wp.url.addQueryArgs,Vg=wp.element,Jg=Vg.Component,Gg=Vg.Fragment,qg=function(e){p()(n,e);var t=Ig(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return React.createElement(Gg,null,React.createElement("div",{className:"gb-layout-reusable"},React.createElement("div",null,React.createElement("a",{role:"button",key:this.props.itemKey,className:"gb-layout-insert-button",onClick:function(){e.props.import(e.props.content)}},this.props.name)),React.createElement("div",{className:"gb-layout-reusable-actions"},React.createElement("span",null,React.createElement("a",{href:Ug("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},Wg("Edit","genesis-blocks"))))))}}]),n}(Jg),$g=wp.blocks.rawHandler;function Kg(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,$g({HTML:e,mode:"BLOCKS"}))}var Qg=wp.element.useState;var Zg=wp.i18n.__,Xg=wp.components.Button;function e_(e){return React.createElement(React.Fragment,null,React.createElement("div",{className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(Xg,{className:"gb-layout-insert-button gb-layout-collection-button",isSmall:!0,onClick:function(){e.collectionsView.setCurrentView("collection"),e.collectionsView.setCurrentCollection(e.collectionSlug)}},React.createElement("div",{className:"gb-layout-collection-cover"},React.createElement("div",{className:"gb-layout-collection-label"},e.context.collections[e.collectionSlug].label)),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},Zg("Browse","genesis-blocks"))))))))}var t_=wp.i18n.__,n_=wp.components.ButtonGroup;function r_(e){var t,n,r,o,i,s,l,u=(n=Qg((t={view:"collections",collection:null}).view),r=Cg()(n,2),o=r[0],i=r[1],s=Qg(t.collection),l=Cg()(s,2),{currentView:o,setCurrentView:i,currentCollection:l[0],setCurrentCollection:l[1]});function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"layouts",n=[];for(var r in e.context[t]){var a=e.context[t][r];a.hasOwnProperty("collection")&&u.currentCollection===a.collection.slug&&n.push(React.createElement(Bg,{key:a.key,itemKey:a.key,name:a.name,image:a.image,import:Kg,content:a.content,context:e.context,clientId:e.clientId}))}return 0===n.length?"":React.createElement(React.Fragment,null,React.createElement("h3",{className:"gb-collection-type-title"},"layouts"===t?t_("Page Layouts","genesis-blocks"):"sections"===t?t_("Page Sections","genesis-blocks"):void 0),React.createElement(n_,{className:"gb-layout-choices","aria-label":t_("Layout Options in this Collection","genesis-blocks")},n))}return React.createElement("div",{className:"gb-collections"},React.createElement("div",{className:"gb-collections-header"},React.createElement("div",{className:"gb-collections-header-left"},"collection"!==u.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:function(){u.setCurrentView("collections")}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),t_("View All Collections ","genesis-blocks"))),"collections"===u.currentView?React.createElement("h2",{className:"gb-collection-title"},t_("Collections ","genesis-blocks")):"collection"===u.currentView?React.createElement("h2",{className:"gb-collection-title"},t_("Browsing ","genesis-blocks")+e.context.collections[u.currentCollection].label):void 0),React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://developer.wpengine.com/genesis-blocks/layouts-block/#collections",tabIndex:"0",className:"gb-collections-link"},React.createElement("span",{className:"dashicons dashicons-info"}),t_("Learn about Collections","genesis-blocks"))),React.createElement("div",{className:"gb-collections-body"},function(t){if("collections"!==u.currentView)return"";var n=[];for(var r in t)n.push(React.createElement(e_,a()({key:r,collectionSlug:r,collectionsView:u},e)));return React.createElement(n_,{className:"gb-layout-choices","aria-label":t_("Collections Available","genesis-blocks")},n)}(e.context.collections),"collection"!==u.currentView?"":React.createElement(React.Fragment,null,c("sections"),c("layouts"))))}function a_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var o_=wp.compose.compose,i_=wp.blocks.rawHandler,s_=wp.data,l_=s_.withSelect,u_=s_.withDispatch,c_=wp.element,d_=c_.Component,p_=c_.Fragment,m_=function(e){p()(n,e);var t=a_(n);function n(){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"layoutTabContent",value:function(){return"gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(qg,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(r_,this.props):React.createElement(Bg,this.props)}},{key:"render",value:function(){return React.createElement(p_,null,this.layoutTabContent())}}]),n}(d_),f_=o_(l_((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,a=e("core/editor").canUserUseUnfilteredHTML;return{block:r(n),canUserUseUnfilteredHTML:a()}})),u_((function(e,t){var n=t.block,r=t.canUserUseUnfilteredHTML;return{import:function(t){return e("core/block-editor").replaceBlocks(n.clientId,i_({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:r}))}}})))(m_),h_=n(16),g_=n.n(h_),__=n(36),b_=n.n(__),y_=n(47),v_=n.n(y_);function k_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var M_=wp.apiFetch,L_=Object(Nn.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),w_=function(e){p()(r,e);var t,n=k_(r);function r(){var e;l()(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),i()(v_()(e),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),e}return c()(r,[{key:"getFavoriteKeys",value:function(){return M_({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"getFavorites",value:function(){var e=this;return M_({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((function(t){var n=[];return Object.values(e.state.all).forEach((function(e){t.includes(e.key)&&n.push(e)})),n})).catch((function(e){return console.error(e)}))}},{key:"addFavorite",value:function(e){return M_({path:"/genesisblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"removeFavorite",value:function(e){return M_({path:"/genesisblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"componentDidMount",value:(t=b_()(g_.a.mark((function e(){var t,n=this;return g_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getFavoriteKeys();case 2:t=e.sent,wp.apiFetch({method:"GET",path:"/genesisblocks/v1/layouts/all?filter=allowed"}).then(function(){var e=b_()(g_.a.mark((function e(r){var a,o,i,s,l;return g_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],o=[],i=[],s=[],l=[],Object.values(r).forEach((function(e){"layout"===e.type&&a.push(e),"section"===e.type&&o.push(e),"wp_block"===e.type&&i.push(e),e.hasOwnProperty("collection")&&(l.hasOwnProperty(e.collection.slug)||(l[e.collection.slug]=[],e.collection.image=e.image,l[e.collection.slug]=e.collection)),t.includes(e.key)&&s.push(e)})),n.setState({all:r,layouts:a,sections:o,favorites:s,favoriteKeys:t,reusableBlocks:i,collections:l});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e,t=this;return this.state.all?Bn.a.createElement(L_.Provider,{value:{favorites:this.state.favorites,favoriteKeys:this.state.favoriteKeys,layouts:this.state.layouts,sections:this.state.sections,all:this.state.all,reusableBlocks:this.state.reusableBlocks,collections:this.state.collections,toggleFavorite:(e=b_()(g_.a.mark((function e(n){var r,a;return g_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFavoriteKeys();case 2:if(!(r=e.sent).includes(n)){e.next=9;break}return e.next=6,t.removeFavorite(n);case 6:r=e.sent,e.next=12;break;case 9:return e.next=11,t.addFavorite(n);case 11:r=e.sent;case 12:return e.next=14,t.getFavorites();case 14:return a=e.sent,t.setState({favorites:a,favoriteKeys:r}),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}},this.props.children):null}}]),r}(Nn.Component);function T_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var Y_=wp.i18n.__,E_=wp.url.addQueryArgs,S_=wp.element,x_=S_.Component,D_=S_.Fragment,C_=wp.components,R_=C_.ButtonGroup,O_=C_.TextControl,P_=C_.SelectControl,j_=function(e){p()(n,e);var t=T_(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return c()(n,[{key:"getLayoutArray",value:function(){var e=[];switch(this.props.currentTab){case"gb-layout-tab-layouts":e=this.props.context.layouts;break;case"gb-layout-tab-sections":e=this.props.context.sections;break;case"gb-layout-tab-favorites":e=this.props.context.favorites;break;case"gb-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks;break;case"gb-layout-tab-collections":e=this.props.context.collections}return e}},{key:"render",value:function(){var e=this,t=this.getLayoutArray(),n=["all"];if("gb-layout-tab-collections"!==this.props.currentTab)for(var r=0;r<t.length;r++)for(var o=0;o<t[r].category.length;o++)n.includes(t[r].category[o])||n.push(t[r].category[o]);var i=n.map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}})),s=this.props.data;return"gb-layout-tab-collections"===this.props.currentTab?React.createElement(r_,a()({key:this.props.data.key},this.props)):React.createElement(D_,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(D_,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(P_,{key:"layout-library-select-categories-"+this.props.clientId,label:Y_("Layout Categories","genesis-blocks"),value:this.state.category,options:i,onChange:function(t){return e.setState({category:t})}}),React.createElement(O_,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:Y_("Search Layouts","genesis-blocks"),onChange:function(t){return e.setState({search:t})}}))):React.createElement(D_,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,Y_("Reusable Blocks","genesis-blocks")),React.createElement("div",{className:"gb-layout-modal-header-reusable-actions"},React.createElement("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:E_("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},Y_("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(L_.Consumer,null,(function(t){return React.createElement(R_,{key:"layout-library-context-button-group-"+e.props.clientId,className:b()("gb-layout-choices","current-tab-"+e.props.currentTab,"full"===e.state.activeView?"gb-layout-view-full":null),"aria-label":Y_("Layout Options","genesis-blocks")},ho()(s,(function(n){var r=n.name,a=n.key,o=n.image,i=n.content,s=n.category,l=n.keywords;if(("all"===e.state.category||s.includes(e.state.category))&&(!e.state.search||l&&l.some((function(t){return t.toLowerCase().includes(e.state.search.toLowerCase())}))))return React.createElement(f_,{key:"layout-library-item-"+a,name:r,itemKey:a,image:o,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}]),n}(x_),H_=wp.i18n.__,A_=wp.element,z_=A_.Fragment,F_=A_.useState,N_=wp.components,B_=N_.Button,I_=N_.Dashicon,W_=N_.Modal,U_=N_.TabPanel,V_=wp.data.useDispatch;var J_=function(e){var t=F_("gb-layout-tab-sections"),n=Cg()(t,2),r=n[0],a=n[1],o=F_(!0),i=Cg()(o,2),s=i[0],l=i[1],u=V_("core/block-editor").removeBlock,c=[];return e.context.sections.length>0&&c.push({name:"gb-layout-tab-sections",title:H_("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),e.context.layouts.length>0&&c.push({name:"gb-layout-tab-layouts",title:H_("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),Object.keys(e.context.collections).length>0&&c.push({name:"gb-layout-tab-collections",title:H_("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),c.push({name:"gb-layout-tab-favorites",title:H_("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),e.context.reusableBlocks.length&&c.push({name:"gb-layout-tab-reusable-blocks",title:H_("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(z_,{key:"layout-modal-fragment-"+e.clientId},React.createElement(B_,{key:"layout-modal-library-button-"+e.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:function(){l(!0)}},H_("Layout Library","genesis-blocks")),s?React.createElement(W_,{key:"layout-modal-modal-component-"+e.clientId,className:"gb-layout-modal",title:H_("Layout Selector","genesis-blocks"),onRequestClose:function(){l(!1),a(null),u(e.clientId)}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement(I_,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},H_("Add Custom Layouts","genesis-blocks")),React.createElement("span",null,"·"),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/",target:"_blank",rel:"noopener noreferrer"},H_("Reusable Blocks","genesis-blocks")),React.createElement("a",{href:"https://www.research.net/r/XFQYFPP",target:"_blank",rel:"noopener noreferrer",className:"gb-pro-feedback"},React.createElement(I_,{icon:"admin-comments"})," ",H_("Send Feedback","genesis-blocks"))),React.createElement(U_,{key:"layout-modal-tabpanel-"+e.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:function(e){return a(e)},tabs:c},(function(t){var n=H_("Default tab content","genesis-blocks");if(t.name){if("gb-layout-tab-sections"===t.name)return[React.createElement(j_,{key:"layout-library-sections-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.sections,context:e.context})];if("gb-layout-tab-layouts"===t.name)return[React.createElement(j_,{key:"layout-library-layouts-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.layouts,context:e.context})];if("gb-layout-tab-collections"===t.name)return[React.createElement(j_,{key:"layout-library-collections-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.collections,context:e.context})];if("gb-layout-tab-favorites"===t.name)return[React.createElement(j_,{key:"layout-library-favorites-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.favorites,context:e.context})];if("gb-layout-tab-reusable-blocks"===t.name)return[React.createElement(j_,{key:"layout-library-reusable-blocks-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.reusableBlocks,context:e.context})]}return React.createElement("div",null,n)}))):null)};function G_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var q_=wp.i18n.__,$_=wp.components.Placeholder,K_=wp.element,Q_=K_.Component,Z_=K_.Fragment,X_=wp.blockEditor,eb=X_.BlockControls,tb=X_.BlockAlignmentToolbar,nb=function(e){p()(n,e);var t=G_(n);function n(e){return l()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[React.createElement(Z_,{key:this.props.clientId},React.createElement(eb,{key:"controls"},React.createElement(tb,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),React.createElement($_,{key:"placeholder",label:q_("Layout Selector","genesis-blocks"),instructions:q_("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(L_.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return React.createElement(J_,{clientId:r,context:e})}))))]}}]),n}(Q_),rb=(n(373),n(374),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-layouts",{title:rb("Layouts","genesis-blocks"),description:rb("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[rb("layout","genesis-blocks"),rb("column","genesis-blocks"),rb("section","genesis-blocks")],edit:function(e){return React.createElement(w_,null,React.createElement(nb,e))},save:function(){return null}});var ab=!1;function ob(){var e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}wp.data.subscribe((function(){!function(){if(ab)return;var e=document.querySelector(".edit-post-header__toolbar");if(!e)return;var t=document.createElement("div"),n='<div class="gb-toolbar-insert-layout">';n+='<button id="gbLayoutInsertButton" class="components-button components-icon-button" aria-label="'.concat(rb("Insert Layout","genesis-blocks"),'"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ').concat(rb("Layouts","genesis-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t),document.getElementById("gbLayoutInsertButton").addEventListener("click",ob),ab=!0}()}));n(375),n(376)},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]);
dist/blocks.style.build.css CHANGED
@@ -7,10 +7,10 @@
7
  .gb-block-accordion{margin-bottom:1.2em}.gb-block-accordion .gb-accordion-title{background:#f2f2f2;padding:10px 15px}.gb-block-accordion .gb-accordion-title p{display:inline}.gb-block-accordion .gb-accordion-text{padding:10px 15px}.gb-block-accordion .editor-rich-text .editor-rich-text__inline-toolbar{display:block;left:40%}.gb-block-accordion+.gb-block-accordion{margin-top:-0.6em}@media only screen and (min-width: 600px){.gb-font-size-14 .gb-accordion-title{font-size:14px}.gb-font-size-15 .gb-accordion-title{font-size:15px}.gb-font-size-16 .gb-accordion-title{font-size:16px}.gb-font-size-17 .gb-accordion-title{font-size:17px}.gb-font-size-18 .gb-accordion-title{font-size:18px}.gb-font-size-19 .gb-accordion-title{font-size:19px}.gb-font-size-20 .gb-accordion-title{font-size:20px}.gb-font-size-21 .gb-accordion-title{font-size:21px}.gb-font-size-22 .gb-accordion-title{font-size:22px}.gb-font-size-23 .gb-accordion-title{font-size:23px}.gb-font-size-24 .gb-accordion-title{font-size:24px}}
8
  .gb-block-cta{margin:0 0 1.2em 0;position:relative;background:#f2f2f2;color:#293038;padding:5% 3%;border-radius:5px}.gb-block-cta .components-autocomplete{display:inline-block;width:auto;margin:0 auto;position:relative}.gb-block-cta *{z-index:10;position:relative}.gb-block-cta.alignfull{border-radius:0;padding:8% 3%}@media only screen and (max-width: 768px){.gb-block-cta{padding:8% 6%}}@media only screen and (min-width: 768px){.gb-block-cta.alignfull .gb-cta-content,.gb-block-cta.alignfull .gb-cta-button{max-width:60%;margin:0 auto}}@media only screen and (min-width: 768px){.gb-block-cta.alignwide .gb-cta-content,.gb-block-cta.alignwide .gb-cta-button{max-width:80%;margin:0 auto}}.gb-block-cta .gb-cta-image-wrap{position:absolute;top:0;right:0;left:0;height:100%;z-index:1}.gb-block-cta .gb-cta-image{object-fit:cover;height:100%;width:100%;transition:0.3s ease}.gb-block-cta .gb-cta-title{display:inline-block;width:100%;margin-bottom:0.3em;line-height:1.2}.gb-block-cta .gb-cta-text{line-height:1.4}.gb-block-cta .gb-cta-text p{color:inherit}.gb-block-cta .gb-cta-text a{color:inherit;box-shadow:0 -1px 0 inset;text-decoration:none}.gb-block-cta .gb-cta-text a:hover{color:inherit;box-shadow:0 -2px 0 inset}.gb-block-cta .gb-cta-button .blocks-rich-text{display:inline-flex}.gb-block-cta .gb-button{text-align:center;font-size:18px;line-height:1 !important;background-color:#32373c;border:none;border-radius:50px;box-shadow:none;color:#fff;cursor:pointer;padding:0.6em 1em;text-decoration:none;word-break:break-word;transition:0.3s ease;display:inline-block}.gb-block-cta .gb-button:hover{box-shadow:inset 0 0 200px rgba(255,255,255,0.15)}.gb-block-cta .gb-cta-title:empty,.gb-block-cta .gb-cta-text:empty,.gb-block-cta .gb-cta-button:empty,.gb-block-cta .gb-button:empty{display:none}.gb-block-cta .gb-button-shape-square{border-radius:0}.gb-block-cta .gb-button-shape-rounded{border-radius:5px}.gb-block-cta .gb-button-shape-circular{border-radius:100px}.gb-block-cta .gb-button-size-small{font-size:14px}.gb-block-cta .gb-button-size-medium{font-size:20px}.gb-block-cta .gb-button-size-large{font-size:26px;padding:0.8em 1.2em}.gb-block-cta .gb-button-size-extralarge{font-size:32px;padding:0.8em 1.2em}.gb-block-cta .gb-font-size-24.gb-cta-title{font-size:24px}.gb-block-cta .gb-font-size-26.gb-cta-title{font-size:26px}.gb-block-cta .gb-font-size-28.gb-cta-title{font-size:28px}.gb-block-cta .gb-font-size-30.gb-cta-title{font-size:30px}.gb-block-cta .gb-font-size-32.gb-cta-title{font-size:32px}.gb-block-cta .gb-font-size-34.gb-cta-title{font-size:34px}.gb-block-cta .gb-font-size-36.gb-cta-title{font-size:36px}.gb-block-cta .gb-font-size-38.gb-cta-title{font-size:38px}.gb-block-cta .gb-font-size-40.gb-cta-title{font-size:40px}.gb-block-cta .gb-font-size-42.gb-cta-title{font-size:42px}.gb-block-cta .gb-font-size-44.gb-cta-title{font-size:44px}.gb-block-cta .gb-font-size-46.gb-cta-title{font-size:46px}.gb-block-cta .gb-font-size-48.gb-cta-title{font-size:48px}.gb-block-cta .gb-font-size-50.gb-cta-title{font-size:50px}.gb-block-cta .gb-font-size-52.gb-cta-title{font-size:52px}.gb-block-cta .gb-font-size-54.gb-cta-title{font-size:54px}.gb-block-cta .gb-font-size-56.gb-cta-title{font-size:56px}.gb-block-cta .gb-font-size-58.gb-cta-title{font-size:58px}.gb-block-cta .gb-font-size-60.gb-cta-title{font-size:60px}.gb-block-cta .blocks-button__inline-link{margin-top:15px}.gb-block-cta .gb-cta-image:not(.has-background-dim){opacity:0}.gb-block-cta .has-background-dim{opacity:0.5}.gb-block-cta .has-background-dim-10{opacity:0.1}.gb-block-cta .has-background-dim-20{opacity:0.2}.gb-block-cta .has-background-dim-30{opacity:0.3}.gb-block-cta .has-background-dim-40{opacity:0.4}.gb-block-cta .has-background-dim-50{opacity:0.5}.gb-block-cta .has-background-dim-60{opacity:0.6}.gb-block-cta .has-background-dim-70{opacity:0.7}.gb-block-cta .has-background-dim-80{opacity:0.8}.gb-block-cta .has-background-dim-90{opacity:0.9}.gb-block-cta .has-background-dim-100{opacity:1}.gb-button-right{transform:translateX(-100%);left:100%;position:relative}.gb-button-center{margin:0 auto}.gb-cta-inspector-media.components-button{vertical-align:top;border:1px solid #e2e4e7;background-color:#fff;display:inline-flex;border-radius:3px;margin-bottom:15px}.gb-cta-inspector-media.components-button:hover{box-shadow:none !important;border:solid 1px #555d66}.gb-cta-inspector-media.components-button:first-child{margin-right:8px}.gb-cta-inspector-media.components-button svg{margin-right:5px}
9
  .gb-block-sharing{margin:0 0 1.2em 0;position:relative}.gb-block-sharing .blocks-rich-text{display:inline-flex}.gb-block-sharing .gb-share-list{margin:0;padding:0}.gb-block-sharing .gb-share-list li{list-style:none;display:inline-block;margin:0 5px 5px 0}.gb-block-sharing .gb-share-list a{background:#272c30;color:#fff;padding:10px 15px;text-align:center;display:block;line-height:1;font-size:16px;transition:0.3s ease}.gb-block-sharing .gb-share-list a:hover{box-shadow:inset 0 0 200px rgba(255,255,255,0.15)}.gb-block-sharing.gb-share-icon-text i{margin-right:5px}.gb-block-sharing.gb-share-icon-only a{padding:10px 11px;min-width:37px}.gb-block-sharing.gb-share-icon-only .gb-social-text{border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}.gb-block-sharing.gb-share-text-only i{display:none}.gb-block-sharing.gb-share-shape-square a{border-radius:0}.gb-block-sharing.gb-share-shape-rounded a{border-radius:5px}.gb-block-sharing.gb-share-shape-circular a{border-radius:100px}.gb-block-sharing.gb-share-size-small a{font-size:13px}.gb-block-sharing.gb-share-size-small.gb-share-icon-only a{padding:7px 6px;min-width:28px}.gb-block-sharing.gb-share-size-medium a{font-size:16px}.gb-block-sharing.gb-share-size-large a{font-size:20px}.gb-block-sharing.gb-share-size-large.gb-share-icon-only a{font-size:26px;min-width:48px}.gb-block-sharing.gb-share-size-large.gb-share-icon-text i{margin-right:10px}.gb-block-sharing.gb-share-color-social a{color:#fff}.gb-block-sharing.gb-share-color-social .gb-share-twitter{background:#1ca1f3}.gb-block-sharing.gb-share-color-social .gb-share-facebook{background:#3b5999}.gb-block-sharing.gb-share-color-social .gb-share-google{background:#dc4b45}.gb-block-sharing.gb-share-color-social .gb-share-pinterest{background:#bd091c}.gb-block-sharing.gb-share-color-social .gb-share-linkedin{background:#0077b5}.gb-block-sharing.gb-share-color-social .gb-share-reddit{background:#ff4500}.gb-button-right{transform:translateX(-100%);left:100%;position:relative}.gb-button-center{margin:0 auto}
10
- .gb-block-container{margin:0;position:relative;padding:0}.gb-block-container.alignfull .block-editor-block-list__block{max-width:100%}@media only screen and (min-width: 768px){.gb-block-container.alignfull .gb-container-inside,.gb-block-container.alignfull .gb-container-inside{max-width:100%;margin:0 auto}}@media only screen and (min-width: 768px){.gb-block-container.alignwide .gb-container-inside,.gb-block-container.alignwide .gb-container-inside{max-width:80%;margin:0 auto}}.gb-block-container .gb-container-image-wrap{position:absolute;top:0;right:0;left:0;height:100%;z-index:0}.gb-block-container .gb-container-image{object-fit:cover;height:100%;width:100%;transition:0.3s ease}.gb-block-container .gb-container-content{margin:0 auto;position:relative}.gb-block-container .gb-container-image:not(.has-background-dim){opacity:0}.gb-block-container .has-background-dim{opacity:0.5}.gb-block-container .has-background-dim-10{opacity:0.1}.gb-block-container .has-background-dim-20{opacity:0.2}.gb-block-container .has-background-dim-30{opacity:0.3}.gb-block-container .has-background-dim-40{opacity:0.4}.gb-block-container .has-background-dim-50{opacity:0.5}.gb-block-container .has-background-dim-60{opacity:0.6}.gb-block-container .has-background-dim-70{opacity:0.7}.gb-block-container .has-background-dim-80{opacity:0.8}.gb-block-container .has-background-dim-90{opacity:0.9}.gb-block-container .has-background-dim-100{opacity:1}
11
  .gb-block-post-grid{margin:0 0 1.2em 0;position:relative}.gb-block-post-grid .is-grid,.gb-block-post-grid .gb-is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-gap:0 2em}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid,.gb-block-post-grid .gb-is-grid{display:block}}.gb-block-post-grid .is-grid article,.gb-block-post-grid .gb-is-grid article{margin-bottom:2.5em;min-width:0}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid article,.gb-block-post-grid .gb-is-grid article{padding-left:10px;padding-right:10px;display:inline-block;vertical-align:top}}.gb-block-post-grid .is-grid.columns-1,.gb-block-post-grid .gb-is-grid.gb-columns-1{-ms-grid-columns:1fr;grid-template-columns:1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-1 article,.gb-block-post-grid .gb-is-grid.gb-columns-1 article{width:100%}}.gb-block-post-grid .is-grid.columns-2,.gb-block-post-grid .gb-is-grid.gb-columns-2{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-2 article,.gb-block-post-grid .gb-is-grid.gb-columns-2 article{width:48%}}.gb-block-post-grid .is-grid.columns-3,.gb-block-post-grid .gb-is-grid.gb-columns-3{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-3 article,.gb-block-post-grid .gb-is-grid.gb-columns-3 article{width:32%}}.gb-block-post-grid .is-grid.columns-4,.gb-block-post-grid .gb-is-grid.gb-columns-4{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-4 article,.gb-block-post-grid .gb-is-grid.gb-columns-4 article{width:24%}}@media only screen and (max-width: 600px){.gb-block-post-grid div[class*="columns"].is-grid,.gb-block-post-grid div[class*="columns"].gb-is-grid{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-block-post-grid .gb-post-grid-section-title{text-align:left}.gb-block-post-grid .gb-block-post-grid-image{margin-bottom:1.2em}.gb-block-post-grid .gb-block-post-grid-image img{display:block;width:100%}.gb-block-post-grid .gb-block-post-grid-text{text-align:left}.gb-block-post-grid a{text-decoration:none}.gb-block-post-grid header .gb-block-post-grid-title{margin-top:0;margin-bottom:15px;font-size:28px;line-height:1.2}.gb-block-post-grid header .gb-block-post-grid-title a{color:#293038;text-decoration:none}.gb-block-post-grid header .gb-block-post-grid-title a:hover{text-decoration:underline;color:inherit}.gb-block-post-grid .gb-block-post-grid-byline{font-size:14px;color:#626e81;margin-bottom:15px}.gb-block-post-grid .gb-block-post-grid-author,.gb-block-post-grid .gb-block-post-grid-date{display:inline-block}.gb-block-post-grid .gb-block-post-grid-author:not(:last-child)::after,.gb-block-post-grid .gb-block-post-grid-date:not(:last-child)::after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.gb-block-post-grid .gb-block-post-grid-author a{color:inherit;text-decoration:none}.gb-block-post-grid .gb-block-post-grid-author a:hover{color:inherit;text-decoration:underline}.gb-block-post-grid .gb-block-post-grid-text p{margin:0 0 15px 0;font-size:inherit}.gb-block-post-grid .gb-block-post-grid-text p:last-of-type{margin-bottom:0}.gb-block-post-grid .gb-block-post-grid-more-link{display:inline-block;box-shadow:none;transition:0.3s ease;font-weight:bold;color:#293038;text-decoration:none}.gb-block-post-grid .gb-block-post-grid-more-link:hover{text-decoration:underline}.gb-block-post-grid .gb-block-post-grid-excerpt div+p{margin-top:15px}.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{display:-ms-grid;display:grid;-ms-grid-columns:30% 1fr;grid-template-columns:30% 1fr;grid-template-rows:1fr;grid-gap:0 2em}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{display:block}}.gb-block-post-grid .is-list article::before,.gb-block-post-grid .gb-is-list article::before{display:none}.gb-block-post-grid .is-list article:not(:last-child),.gb-block-post-grid .gb-is-list article:not(:last-child){margin-bottom:5%;padding-bottom:5%}@media only screen and (min-width: 600px){.gb-block-post-grid .is-list article:not(:last-child),.gb-block-post-grid .gb-is-list article:not(:last-child){border-bottom:solid 1px #eee}}@media only screen and (max-width: 600px){.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-block-post-grid .is-list article:not(.has-post-thumbnail),.gb-block-post-grid .is-list article.hide-featured-image,.gb-block-post-grid .gb-is-list article:not(.has-post-thumbnail),.gb-block-post-grid .gb-is-list article.hide-featured-image{-ms-grid-columns:1fr;grid-template-columns:1fr}.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{margin-bottom:0}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{width:30%;display:inline-block;vertical-align:top}}@media only screen and (max-width: 600px){.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{margin-bottom:5%}}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .gb-block-post-grid-text{width:65%;padding-left:5%;display:inline-block;vertical-align:top}.gb-block-post-grid .is-list .post:not(.has-post-thumbnail) .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .post:not(.has-post-thumbnail) .gb-block-post-grid-text{width:100%;padding-left:0}}@media only screen and (min-width: 600px){.gb-block-post-grid .is-list .gb-block-post-grid-title,.gb-block-post-grid .gb-is-list .gb-block-post-grid-title{font-size:34px}}.gb-block-post-grid .is-list .no-thumb .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .no-thumb .gb-block-post-grid-text{grid-column:span 2}.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px;word-wrap:normal !important}
 
12
  .wp-block-genesis-blocks-gb-pricing{margin-bottom:1.5em}.gb-pricing-table-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-template-areas:"col1";grid-gap:0 2em}[data-type="genesis-blocks/gb-pricing-table"],.wp-block-genesis-blocks-gb-pricing-table{display:inline-block;vertical-align:top}@media only screen and (max-width: 600px){[data-type="genesis-blocks/gb-pricing-table"],.wp-block-genesis-blocks-gb-pricing-table{margin-bottom:1.5em}}.gb-block-pricing-table-inside{display:inline-block;width:100%;border-color:#272c30}.gb-block-pricing-table-gap-0{grid-gap:0 0}.gb-block-pricing-table-gap-1{grid-gap:0 1em}.gb-block-pricing-table-gap-2{grid-gap:0 2em}.gb-block-pricing-table-gap-3{grid-gap:0 3em}.gb-block-pricing-table-gap-4{grid-gap:0 4em}.gb-block-pricing-table-gap-5{grid-gap:0 5em}.gb-pricing-columns-2 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}@media only screen and (max-width: 600px){.gb-pricing-columns-2 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.gb-pricing-columns-3 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}@media only screen and (max-width: 600px){.gb-pricing-columns-3 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}@media only screen and (max-width: 800px){.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}.gb-pricing-columns-4 .gb-pricing-table-wrap .wp-block-genesis-blocks-gb-pricing-table{margin-bottom:1.5em}}@media only screen and (max-width: 600px){.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.gb-pricing-table-price{line-height:1}.gb-pricing-table-currency{vertical-align:top;margin-top:0.4em;margin-right:3px;display:inline-block;line-height:1}.wp-block-genesis-blocks-gb-pricing-table{vertical-align:top}.wp-block-genesis-blocks-gb-pricing-table .gb-pricing-table-features,.block-library-list .wp-block-genesis-blocks-gb-pricing-table ul{margin:0;padding:0;border:none}.gb-block-pricing-table:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-pricing-table:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-block-pricing-table:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-block-pricing-table:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.editor-styles-wrapper [data-type="genesis-blocks/gb-pricing-table-features"] ul{list-style-type:none;display:block;white-space:initial;margin-left:0;margin-right:0}.gb-list-border-solid li{border-bottom-style:solid}.gb-list-border-dashed li{border-bottom-style:dashed}.gb-list-border-dotted li{border-bottom-style:dotted}ul.gb-pricing-table-features li{list-style:none;margin:0;padding:4px 0;border-color:inherit}ul.gb-pricing-table-features li:last-child{border-bottom:none}.gb-list-border-width-1 li{border-width:1px}.gb-list-border-width-2 li{border-width:2px}.gb-list-border-width-3 li{border-width:3px}.gb-list-border-width-4 li{border-width:4px}.gb-list-border-width-5 li{border-width:5px}.gb-pricing-table-price,.gb-pricing-table-term{display:inline}span.gb-pricing-table-term{margin-left:5px}.gb-pricing-table-wrap .gb-block-pricing-table-inside>*:last-child{margin-bottom:0}.wp-block-genesis-blocks-gb-pricing .alignwide,.wp-block-genesis-blocks-gb-pricing .alignfull{width:100%;margin-left:auto}.gb-block-pricing-table-center{text-align:center}.gb-block-pricing-table-center .gb-block-button{text-align:center !important}.gb-block-pricing-table-center .blocks-button__inline-link{margin:0 auto;text-align:center}.gb-block-pricing-table-left{text-align:left}.gb-block-pricing-table-right{text-align:right}.gb-pricing-table-button .gb-block-button{margin-bottom:0}
13
  .gb-block-newsletter .gb-newsletter-title{margin-top:0;line-height:1.3}.gb-block-newsletter .gb-block-button{margin-bottom:0}.gb-block-newsletter-label{font-size:16px}.gb-form-styles label{margin-bottom:8px;width:100%;display:block}.gb-form-styles input:not(.gb-newsletter-submit){width:100%;height:auto;min-height:45px;margin-bottom:15px}
14
- .gb-layout-column-button .gb-block-button{margin-bottom:0}.gb-layout-selector-group{margin-top:10px}.gb-layout-selector{display:inline-block;margin:0 5px}.gb-layout-selector button.gb-layout-selector-button{padding:15px;height:auto;border-radius:5px;background:#fff}.gb-layout-selector button.gb-layout-selector-button:hover{background:#fff}.gb-layout-selector button.components-button.is-button:last-child{border-radius:5px}.gb-toolbar-insert-layout-button{margin-right:3px}.gb-layout-team-1 .gb-profile-column{flex:100%}.gb-layout-team-1 .gb-social-links{padding-top:25px}.gb-layout-hero-cover .wp-block-cover__inner-container{max-width:800px}.gb-layout-hero-cover h2,.gb-layout-hero-cover h3,.gb-layout-hero-cover h4{max-width:100%}.gb-white-text,.editor-styles-wrapper [data-type="core/heading"] .gb-white-text{color:#fff}.gb-layout-landing-2 .gb-block-profile{padding:0;text-align:center}.gb-layout-landing-2 .gb-block-profile .gb-profile-avatar-wrap,.gb-layout-landing-2 .gb-block-profile .gb-profile-column{flex:0 0 100%}.gb-layout-landing-2 .round .gb-profile-image-wrap{max-width:220px;margin:0 auto}.gb-layout-landing-2 .gb-block-cta .gb-cta-content{max-width:700px;margin:0 auto}.gb-layout-landing-2 .gb-block-cta .gb-button{font-weight:normal}.gb-layout-landing-3 .gb-layout-landing-3-cover h2,.gb-layout-landing-3 .gb-layout-landing-3-cover h3,.gb-layout-landing-3 .gb-layout-landing-3-cover h4,.gb-layout-landing-3 .gb-layout-landing-3-cover h5,.gb-layout-landing-3 .gb-layout-landing-3-cover h6{margin-left:auto;margin-right:auto}@media only screen and (min-width: 600px){.gb-layout-landing-3 .gb-layout-landing-3-cover h2,.gb-layout-landing-3 .gb-layout-landing-3-cover h3,.gb-layout-landing-3 .gb-layout-landing-3-cover h4,.gb-layout-landing-3 .gb-layout-landing-3-cover h5,.gb-layout-landing-3 .gb-layout-landing-3-cover h6{font-size:42px}}@media only screen and (min-width: 600px){.gb-layout-landing-3 .gb-block-post-grid header .gb-block-post-grid-title{font-size:24px}}.gpb-slate-section-contact-box .gb-block-layout-column-inner{height:100%}div[class*="gb-section-"].alignfull,div[class*="gb-layout-"].alignfull{margin-top:auto;margin-bottom:auto}
15
  .wp-block-genesis-blocks-gb-layout{margin-bottom:1.5em}.wp-block-genesis-blocks-gb-columns{position:relative}.gb-layout-column-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-gap:0 2em;position:relative;z-index:1}[data-type="genesis-blocks/gb-column"],.gb-block-layout-column{display:block;vertical-align:top;min-width:0}.gb-block-layout-column.gb-is-vertically-aligned-top{align-self:flex-start}.gb-block-layout-column.gb-is-vertically-aligned-center{align-self:center}.gb-block-layout-column.gb-is-vertically-aligned-bottom{align-self:flex-end}.gb-block-layout-column-inner,.gb-layout-column-wrap>.gb-block-layout-column-inner,.gb-has-background-dim>*{position:relative;z-index:1}.wp-block-genesis-blocks-gb-layout.alignfull{padding:0 2em}@media only screen and (max-width: 600px){.wp-block-genesis-blocks-gb-layout.alignfull{padding:0 15px}}.gb-block-layout-column{display:block;width:100%}.gb-columns-center .gb-layout-column-wrap{margin:0 auto}.gb-block-layout-column-gap-0{grid-gap:0 0}.gb-block-layout-column-gap-1{grid-gap:0 1em}.gb-block-layout-column-gap-2{grid-gap:0 2em}.gb-block-layout-column-gap-3{grid-gap:0 3em}.gb-block-layout-column-gap-4{grid-gap:0 4em}.gb-block-layout-column-gap-5{grid-gap:0 5em}.gb-block-layout-column-gap-6{grid-gap:0 6em}.gb-block-layout-column-gap-7{grid-gap:0 7em}.gb-block-layout-column-gap-8{grid-gap:0 8em}.gb-block-layout-column-gap-9{grid-gap:0 9em}.gb-block-layout-column-gap-10{grid-gap:0 10em}.gb-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-layout-column:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-block-layout-column:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-block-layout-column:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.gb-block-layout-column:nth-child(5){-ms-grid-row:1;-ms-grid-column:5;grid-area:col5}.gb-block-layout-column:nth-child(6){-ms-grid-row:1;-ms-grid-column:6;grid-area:col6}.gb-layout-columns-1>.gb-layout-column-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1"}.gb-layout-columns-2>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}@media only screen and (max-width: 600px){.gb-layout-columns-2>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.gb-2-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr;grid-template-columns:2fr 1fr}.gb-2-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 2fr;grid-template-columns:1fr 2fr}.gb-layout-columns-3>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}@media only screen and (max-width: 600px){.gb-layout-columns-3>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.gb-3-col-widecenter>.gb-layout-column-wrap{-ms-grid-columns:1fr 2fr 1fr;grid-template-columns:1fr 2fr 1fr}@media only screen and (max-width: 600px){.gb-3-col-widecenter>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-3-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr}@media only screen and (max-width: 600px){.gb-3-col-wideleft>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-3-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 2fr;grid-template-columns:1fr 1fr 2fr}@media only screen and (max-width: 600px){.gb-3-col-wideright>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-layout-columns-4>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}@media only screen and (max-width: 800px){.gb-layout-columns-4>.gb-layout-column-wrap.gb-is-responsive-column{grid-template-rows:auto;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}}@media only screen and (max-width: 600px){.gb-layout-columns-4>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.gb-4-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr 1fr}.gb-4-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 2fr;grid-template-columns:1fr 1fr 1fr 2fr}.gb-layout-columns-5>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5"}@media only screen and (max-width: 800px){.gb-layout-columns-5>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5"}}.gb-layout-columns-6>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5 col6"}@media only screen and (max-width: 800px){.gb-layout-columns-6>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4" "col5 col6"}}@media only screen and (max-width: 600px){.gb-layout-columns-6>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5" "col6"}}.gb-layout-columns-4,.gb-layout-columns-5,.gb-layout-columns-6{overflow-x:auto}.gb-column-selector-group{margin-top:10px;display:flex;width:100%;text-align:center;justify-content:center}@media only screen and (max-width: 1175px){.gb-column-selector-group{flex-wrap:wrap}}.gb-column-selector{margin:0 5px}@media only screen and (max-width: 1175px){.gb-column-selector{margin-top:10px}}.gb-column-selector button.gb-column-selector-button{padding:15px;height:auto;border-radius:5px !important;background:#fff;margin:0}.gb-column-selector button.gb-column-selector-button:hover{background:#fff;margin:0}.gb-column-selector button.components-button.is-button:last-child{border-radius:5px}
 
16
  .gpb-overflow-hidden{overflow:hidden}.gpb-grid-mobile-space .gb-is-responsive-column{grid-row-gap:1em}.gpb-rounded-grid .gb-block-layout-column-inner{border-radius:10px}.gpb-rounded-sm,.gpb-rounded-sm .gb-accordion-title,.gpb-rounded-sm img{border-radius:5px}.gpb-rounded-md,.gpb-rounded-md .gb-accordion-title,.gpb-rounded-md img{border-radius:10px}.gpb-rounded-lg,.gpb-rounded-lg .gb-accordion-title,.gpb-rounded-lg img{border-radius:20px}.gpb-rounded-xl,.gpb-rounded-xl .gb-accordion-title,.gpb-rounded-xl img{border-radius:30px}.gpb-rounded-full,.gpb-rounded-full .gb-accordion-title,.gpb-rounded-full img{border-radius:500px}@media only screen and (max-width: 600px){.gpb-mobile-align-reset{float:none;text-align:left;margin-left:0 !important;margin-right:0}}@media only screen and (max-width: 600px){.gpb-grid-mobile-reorder .gb-is-responsive-column .gb-block-layout-column:nth-of-type(1){grid-area:col2}.gpb-grid-mobile-reorder .gb-is-responsive-column .gb-block-layout-column:nth-of-type(2){grid-area:col1}}.gpb-mb-1{margin-bottom:1rem}@media only screen and (min-width: 600px){div[class*="wp-block-genesis"].gb-font-size-14.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-14.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-14.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-14.gb-block-cta p{font-size:14px}div[class*="wp-block-genesis"].gb-font-size-15.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-15.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-15.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-15.gb-block-cta p{font-size:15px}div[class*="wp-block-genesis"].gb-font-size-16.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-16.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-16.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-16.gb-block-cta p{font-size:16px}div[class*="wp-block-genesis"].gb-font-size-17.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-17.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-17.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-17.gb-block-cta p{font-size:17px}div[class*="wp-block-genesis"].gb-font-size-18.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-18.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-18.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-18.gb-block-cta p{font-size:18px}div[class*="wp-block-genesis"].gb-font-size-19.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-19.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-19.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-19.gb-block-cta p{font-size:19px}div[class*="wp-block-genesis"].gb-font-size-20.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-20.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-20.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-20.gb-block-cta p{font-size:20px}div[class*="wp-block-genesis"].gb-font-size-21.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-21.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-21.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-21.gb-block-cta p{font-size:21px}div[class*="wp-block-genesis"].gb-font-size-22.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-22.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-22.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-22.gb-block-cta p{font-size:22px}div[class*="wp-block-genesis"].gb-font-size-23.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-23.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-23.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-23.gb-block-cta p{font-size:23px}div[class*="wp-block-genesis"].gb-font-size-24.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-24.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-24.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-24.gb-block-cta p{font-size:24px}}*[class*="gpb-fluid"],.entry-content *[class*="gpb-fluid"]{margin:0 0 1rem 0;line-height:1.2;font-weight:normal}.gpb-fluid-1{font-size:20px}@media (min-width: 600px){.gpb-fluid-1{font-size:calc(11.50943px + 100vw * .01415)}}@media (min-width: 1024px){.gpb-fluid-1{font-size:26px}}.gpb-fluid-2{font-size:22px}@media (min-width: 600px){.gpb-fluid-2{font-size:calc(10.67925px + 100vw * .01887)}}@media (min-width: 1024px){.gpb-fluid-2{font-size:30px}}.gpb-fluid-3{font-size:24px}@media (min-width: 600px){.gpb-fluid-3{font-size:calc(4.18868px + 100vw * .03302)}}@media (min-width: 1024px){.gpb-fluid-3{font-size:38px}}.gpb-fluid-4{font-size:28px}@media (min-width: 600px){.gpb-fluid-4{font-size:calc(5.35849px + 100vw * .03774)}}@media (min-width: 1024px){.gpb-fluid-4{font-size:44px}}.gpb-fluid-5{font-size:32px}@media (min-width: 600px){.gpb-fluid-5{font-size:calc(3.69811px + 100vw * .04717)}}@media (min-width: 1024px){.gpb-fluid-5{font-size:52px}}.gpb-fluid-6{font-size:36px}@media (min-width: 600px){.gpb-fluid-6{font-size:calc(2.03774px + 100vw * .0566)}}@media (min-width: 1024px){.gpb-fluid-6{font-size:60px}}.gb-align-center{text-align:center}.gb-align-left{text-align:left}.gb-align-right{text-align:right}.center{text-align:center}.left{text-align:left}.right{text-align:right}@media only screen and (min-width: 600px){.wp-block-columns .layout-column-1,.wp-block-columns .layout-column-2{margin-right:5%}}.wp-block-image{margin-bottom:1.2em}.gb-text-link{color:inherit;text-decoration:none}.gb-text-link:hover{color:inherit;text-decoration:underline}.gb-has-parallax{background-attachment:fixed;background-size:cover;background-position:50%}.gb-has-background-dim::before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-color:inherit;opacity:0;z-index:1}.gb-has-background-dim.has-theme-primary-background-color::before,.gb-has-background-dim.gb-has-custom-background-color::before{background-color:inherit}.gb-has-background-dim-0::before{opacity:1}.gb-has-background-dim-10::before{opacity:0.9}.gb-has-background-dim-20::before{opacity:0.8}.gb-has-background-dim-30::before{opacity:0.7}.gb-has-background-dim-40::before{opacity:0.6}.gb-has-background-dim-50::before{opacity:0.5}.gb-has-background-dim-60::before{opacity:0.4}.gb-has-background-dim-70::before{opacity:0.3}.gb-has-background-dim-80::before{opacity:0.2}.gb-has-background-dim-90::before{opacity:0.1}.gb-has-background-dim-100::before{opacity:0}div.gb-background-auto{background-size:auto;background-position:center center}div.gb-background-cover{background-size:cover}div.gb-background-contain{background-size:contain;background-position:center center}div.gb-background-no-repeat{background-repeat:no-repeat}div.gb-background-repeat{background-repeat:repeat}div.gb-background-repeat-x{background-repeat:repeat-x}div.gb-background-repeat-y{background-repeat:repeat-y;background-position:center center}ol.gpb-number-list,.editor-styles-wrapper ol.gpb-number-list{list-style:none;counter-reset:gpb-list-counter;padding:0;margin-left:0}ol.gpb-number-list li,.editor-styles-wrapper ol.gpb-number-list li{list-style-type:none;counter-increment:gpb-list-counter;position:relative;padding-left:65px;margin-bottom:1.2em}ol.gpb-number-list li::before{content:counter(gpb-list-counter) "";color:#fff;background:#333;position:absolute;left:0;top:10px;text-align:center;border-radius:100px;height:42px;width:42px;line-height:41px}
7
  .gb-block-accordion{margin-bottom:1.2em}.gb-block-accordion .gb-accordion-title{background:#f2f2f2;padding:10px 15px}.gb-block-accordion .gb-accordion-title p{display:inline}.gb-block-accordion .gb-accordion-text{padding:10px 15px}.gb-block-accordion .editor-rich-text .editor-rich-text__inline-toolbar{display:block;left:40%}.gb-block-accordion+.gb-block-accordion{margin-top:-0.6em}@media only screen and (min-width: 600px){.gb-font-size-14 .gb-accordion-title{font-size:14px}.gb-font-size-15 .gb-accordion-title{font-size:15px}.gb-font-size-16 .gb-accordion-title{font-size:16px}.gb-font-size-17 .gb-accordion-title{font-size:17px}.gb-font-size-18 .gb-accordion-title{font-size:18px}.gb-font-size-19 .gb-accordion-title{font-size:19px}.gb-font-size-20 .gb-accordion-title{font-size:20px}.gb-font-size-21 .gb-accordion-title{font-size:21px}.gb-font-size-22 .gb-accordion-title{font-size:22px}.gb-font-size-23 .gb-accordion-title{font-size:23px}.gb-font-size-24 .gb-accordion-title{font-size:24px}}
8
  .gb-block-cta{margin:0 0 1.2em 0;position:relative;background:#f2f2f2;color:#293038;padding:5% 3%;border-radius:5px}.gb-block-cta .components-autocomplete{display:inline-block;width:auto;margin:0 auto;position:relative}.gb-block-cta *{z-index:10;position:relative}.gb-block-cta.alignfull{border-radius:0;padding:8% 3%}@media only screen and (max-width: 768px){.gb-block-cta{padding:8% 6%}}@media only screen and (min-width: 768px){.gb-block-cta.alignfull .gb-cta-content,.gb-block-cta.alignfull .gb-cta-button{max-width:60%;margin:0 auto}}@media only screen and (min-width: 768px){.gb-block-cta.alignwide .gb-cta-content,.gb-block-cta.alignwide .gb-cta-button{max-width:80%;margin:0 auto}}.gb-block-cta .gb-cta-image-wrap{position:absolute;top:0;right:0;left:0;height:100%;z-index:1}.gb-block-cta .gb-cta-image{object-fit:cover;height:100%;width:100%;transition:0.3s ease}.gb-block-cta .gb-cta-title{display:inline-block;width:100%;margin-bottom:0.3em;line-height:1.2}.gb-block-cta .gb-cta-text{line-height:1.4}.gb-block-cta .gb-cta-text p{color:inherit}.gb-block-cta .gb-cta-text a{color:inherit;box-shadow:0 -1px 0 inset;text-decoration:none}.gb-block-cta .gb-cta-text a:hover{color:inherit;box-shadow:0 -2px 0 inset}.gb-block-cta .gb-cta-button .blocks-rich-text{display:inline-flex}.gb-block-cta .gb-button{text-align:center;font-size:18px;line-height:1 !important;background-color:#32373c;border:none;border-radius:50px;box-shadow:none;color:#fff;cursor:pointer;padding:0.6em 1em;text-decoration:none;word-break:break-word;transition:0.3s ease;display:inline-block}.gb-block-cta .gb-button:hover{box-shadow:inset 0 0 200px rgba(255,255,255,0.15)}.gb-block-cta .gb-cta-title:empty,.gb-block-cta .gb-cta-text:empty,.gb-block-cta .gb-cta-button:empty,.gb-block-cta .gb-button:empty{display:none}.gb-block-cta .gb-button-shape-square{border-radius:0}.gb-block-cta .gb-button-shape-rounded{border-radius:5px}.gb-block-cta .gb-button-shape-circular{border-radius:100px}.gb-block-cta .gb-button-size-small{font-size:14px}.gb-block-cta .gb-button-size-medium{font-size:20px}.gb-block-cta .gb-button-size-large{font-size:26px;padding:0.8em 1.2em}.gb-block-cta .gb-button-size-extralarge{font-size:32px;padding:0.8em 1.2em}.gb-block-cta .gb-font-size-24.gb-cta-title{font-size:24px}.gb-block-cta .gb-font-size-26.gb-cta-title{font-size:26px}.gb-block-cta .gb-font-size-28.gb-cta-title{font-size:28px}.gb-block-cta .gb-font-size-30.gb-cta-title{font-size:30px}.gb-block-cta .gb-font-size-32.gb-cta-title{font-size:32px}.gb-block-cta .gb-font-size-34.gb-cta-title{font-size:34px}.gb-block-cta .gb-font-size-36.gb-cta-title{font-size:36px}.gb-block-cta .gb-font-size-38.gb-cta-title{font-size:38px}.gb-block-cta .gb-font-size-40.gb-cta-title{font-size:40px}.gb-block-cta .gb-font-size-42.gb-cta-title{font-size:42px}.gb-block-cta .gb-font-size-44.gb-cta-title{font-size:44px}.gb-block-cta .gb-font-size-46.gb-cta-title{font-size:46px}.gb-block-cta .gb-font-size-48.gb-cta-title{font-size:48px}.gb-block-cta .gb-font-size-50.gb-cta-title{font-size:50px}.gb-block-cta .gb-font-size-52.gb-cta-title{font-size:52px}.gb-block-cta .gb-font-size-54.gb-cta-title{font-size:54px}.gb-block-cta .gb-font-size-56.gb-cta-title{font-size:56px}.gb-block-cta .gb-font-size-58.gb-cta-title{font-size:58px}.gb-block-cta .gb-font-size-60.gb-cta-title{font-size:60px}.gb-block-cta .blocks-button__inline-link{margin-top:15px}.gb-block-cta .gb-cta-image:not(.has-background-dim){opacity:0}.gb-block-cta .has-background-dim{opacity:0.5}.gb-block-cta .has-background-dim-10{opacity:0.1}.gb-block-cta .has-background-dim-20{opacity:0.2}.gb-block-cta .has-background-dim-30{opacity:0.3}.gb-block-cta .has-background-dim-40{opacity:0.4}.gb-block-cta .has-background-dim-50{opacity:0.5}.gb-block-cta .has-background-dim-60{opacity:0.6}.gb-block-cta .has-background-dim-70{opacity:0.7}.gb-block-cta .has-background-dim-80{opacity:0.8}.gb-block-cta .has-background-dim-90{opacity:0.9}.gb-block-cta .has-background-dim-100{opacity:1}.gb-button-right{transform:translateX(-100%);left:100%;position:relative}.gb-button-center{margin:0 auto}.gb-cta-inspector-media.components-button{vertical-align:top;border:1px solid #e2e4e7;background-color:#fff;display:inline-flex;border-radius:3px;margin-bottom:15px}.gb-cta-inspector-media.components-button:hover{box-shadow:none !important;border:solid 1px #555d66}.gb-cta-inspector-media.components-button:first-child{margin-right:8px}.gb-cta-inspector-media.components-button svg{margin-right:5px}
9
  .gb-block-sharing{margin:0 0 1.2em 0;position:relative}.gb-block-sharing .blocks-rich-text{display:inline-flex}.gb-block-sharing .gb-share-list{margin:0;padding:0}.gb-block-sharing .gb-share-list li{list-style:none;display:inline-block;margin:0 5px 5px 0}.gb-block-sharing .gb-share-list a{background:#272c30;color:#fff;padding:10px 15px;text-align:center;display:block;line-height:1;font-size:16px;transition:0.3s ease}.gb-block-sharing .gb-share-list a:hover{box-shadow:inset 0 0 200px rgba(255,255,255,0.15)}.gb-block-sharing.gb-share-icon-text i{margin-right:5px}.gb-block-sharing.gb-share-icon-only a{padding:10px 11px;min-width:37px}.gb-block-sharing.gb-share-icon-only .gb-social-text{border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}.gb-block-sharing.gb-share-text-only i{display:none}.gb-block-sharing.gb-share-shape-square a{border-radius:0}.gb-block-sharing.gb-share-shape-rounded a{border-radius:5px}.gb-block-sharing.gb-share-shape-circular a{border-radius:100px}.gb-block-sharing.gb-share-size-small a{font-size:13px}.gb-block-sharing.gb-share-size-small.gb-share-icon-only a{padding:7px 6px;min-width:28px}.gb-block-sharing.gb-share-size-medium a{font-size:16px}.gb-block-sharing.gb-share-size-large a{font-size:20px}.gb-block-sharing.gb-share-size-large.gb-share-icon-only a{font-size:26px;min-width:48px}.gb-block-sharing.gb-share-size-large.gb-share-icon-text i{margin-right:10px}.gb-block-sharing.gb-share-color-social a{color:#fff}.gb-block-sharing.gb-share-color-social .gb-share-twitter{background:#1ca1f3}.gb-block-sharing.gb-share-color-social .gb-share-facebook{background:#3b5999}.gb-block-sharing.gb-share-color-social .gb-share-google{background:#dc4b45}.gb-block-sharing.gb-share-color-social .gb-share-pinterest{background:#bd091c}.gb-block-sharing.gb-share-color-social .gb-share-linkedin{background:#0077b5}.gb-block-sharing.gb-share-color-social .gb-share-reddit{background:#ff4500}.gb-button-right{transform:translateX(-100%);left:100%;position:relative}.gb-button-center{margin:0 auto}
 
10
  .gb-block-post-grid{margin:0 0 1.2em 0;position:relative}.gb-block-post-grid .is-grid,.gb-block-post-grid .gb-is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-gap:0 2em}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid,.gb-block-post-grid .gb-is-grid{display:block}}.gb-block-post-grid .is-grid article,.gb-block-post-grid .gb-is-grid article{margin-bottom:2.5em;min-width:0}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid article,.gb-block-post-grid .gb-is-grid article{padding-left:10px;padding-right:10px;display:inline-block;vertical-align:top}}.gb-block-post-grid .is-grid.columns-1,.gb-block-post-grid .gb-is-grid.gb-columns-1{-ms-grid-columns:1fr;grid-template-columns:1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-1 article,.gb-block-post-grid .gb-is-grid.gb-columns-1 article{width:100%}}.gb-block-post-grid .is-grid.columns-2,.gb-block-post-grid .gb-is-grid.gb-columns-2{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-2 article,.gb-block-post-grid .gb-is-grid.gb-columns-2 article{width:48%}}.gb-block-post-grid .is-grid.columns-3,.gb-block-post-grid .gb-is-grid.gb-columns-3{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-3 article,.gb-block-post-grid .gb-is-grid.gb-columns-3 article{width:32%}}.gb-block-post-grid .is-grid.columns-4,.gb-block-post-grid .gb-is-grid.gb-columns-4{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-grid.columns-4 article,.gb-block-post-grid .gb-is-grid.gb-columns-4 article{width:24%}}@media only screen and (max-width: 600px){.gb-block-post-grid div[class*="columns"].is-grid,.gb-block-post-grid div[class*="columns"].gb-is-grid{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-block-post-grid .gb-post-grid-section-title{text-align:left}.gb-block-post-grid .gb-block-post-grid-image{margin-bottom:1.2em}.gb-block-post-grid .gb-block-post-grid-image img{display:block;width:100%}.gb-block-post-grid .gb-block-post-grid-text{text-align:left}.gb-block-post-grid a{text-decoration:none}.gb-block-post-grid header .gb-block-post-grid-title{margin-top:0;margin-bottom:15px;font-size:28px;line-height:1.2}.gb-block-post-grid header .gb-block-post-grid-title a{color:#293038;text-decoration:none}.gb-block-post-grid header .gb-block-post-grid-title a:hover{text-decoration:underline;color:inherit}.gb-block-post-grid .gb-block-post-grid-byline{font-size:14px;color:#626e81;margin-bottom:15px}.gb-block-post-grid .gb-block-post-grid-author,.gb-block-post-grid .gb-block-post-grid-date{display:inline-block}.gb-block-post-grid .gb-block-post-grid-author:not(:last-child)::after,.gb-block-post-grid .gb-block-post-grid-date:not(:last-child)::after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.gb-block-post-grid .gb-block-post-grid-author a{color:inherit;text-decoration:none}.gb-block-post-grid .gb-block-post-grid-author a:hover{color:inherit;text-decoration:underline}.gb-block-post-grid .gb-block-post-grid-text p{margin:0 0 15px 0;font-size:inherit}.gb-block-post-grid .gb-block-post-grid-text p:last-of-type{margin-bottom:0}.gb-block-post-grid .gb-block-post-grid-more-link{display:inline-block;box-shadow:none;transition:0.3s ease;font-weight:bold;color:#293038;text-decoration:none}.gb-block-post-grid .gb-block-post-grid-more-link:hover{text-decoration:underline}.gb-block-post-grid .gb-block-post-grid-excerpt div+p{margin-top:15px}.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{display:-ms-grid;display:grid;-ms-grid-columns:30% 1fr;grid-template-columns:30% 1fr;grid-template-rows:1fr;grid-gap:0 2em}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{display:block}}.gb-block-post-grid .is-list article::before,.gb-block-post-grid .gb-is-list article::before{display:none}.gb-block-post-grid .is-list article:not(:last-child),.gb-block-post-grid .gb-is-list article:not(:last-child){margin-bottom:5%;padding-bottom:5%}@media only screen and (min-width: 600px){.gb-block-post-grid .is-list article:not(:last-child),.gb-block-post-grid .gb-is-list article:not(:last-child){border-bottom:solid 1px #eee}}@media only screen and (max-width: 600px){.gb-block-post-grid .is-list article,.gb-block-post-grid .gb-is-list article{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-block-post-grid .is-list article:not(.has-post-thumbnail),.gb-block-post-grid .is-list article.hide-featured-image,.gb-block-post-grid .gb-is-list article:not(.has-post-thumbnail),.gb-block-post-grid .gb-is-list article.hide-featured-image{-ms-grid-columns:1fr;grid-template-columns:1fr}.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{margin-bottom:0}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{width:30%;display:inline-block;vertical-align:top}}@media only screen and (max-width: 600px){.gb-block-post-grid .is-list .gb-block-post-grid-image,.gb-block-post-grid .gb-is-list .gb-block-post-grid-image{margin-bottom:5%}}@media all and (-ms-high-contrast: none){.gb-block-post-grid .is-list .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .gb-block-post-grid-text{width:65%;padding-left:5%;display:inline-block;vertical-align:top}.gb-block-post-grid .is-list .post:not(.has-post-thumbnail) .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .post:not(.has-post-thumbnail) .gb-block-post-grid-text{width:100%;padding-left:0}}@media only screen and (min-width: 600px){.gb-block-post-grid .is-list .gb-block-post-grid-title,.gb-block-post-grid .gb-is-list .gb-block-post-grid-title{font-size:34px}}.gb-block-post-grid .is-list .no-thumb .gb-block-post-grid-text,.gb-block-post-grid .gb-is-list .no-thumb .gb-block-post-grid-text{grid-column:span 2}.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px;word-wrap:normal !important}
11
+ .gb-block-container{margin:0;position:relative;padding:0}.gb-block-container.alignfull .block-editor-block-list__block{max-width:100%}@media only screen and (min-width: 768px){.gb-block-container.alignfull .gb-container-inside,.gb-block-container.alignfull .gb-container-inside{max-width:100%;margin:0 auto}}@media only screen and (min-width: 768px){.gb-block-container.alignwide .gb-container-inside,.gb-block-container.alignwide .gb-container-inside{max-width:80%;margin:0 auto}}.gb-block-container .gb-container-image-wrap{position:absolute;top:0;right:0;left:0;height:100%;z-index:0}.gb-block-container .gb-container-image{object-fit:cover;height:100%;width:100%;transition:0.3s ease}.gb-block-container .gb-container-content{margin:0 auto;position:relative}.gb-block-container .gb-container-image:not(.has-background-dim){opacity:0}.gb-block-container .has-background-dim{opacity:0.5}.gb-block-container .has-background-dim-10{opacity:0.1}.gb-block-container .has-background-dim-20{opacity:0.2}.gb-block-container .has-background-dim-30{opacity:0.3}.gb-block-container .has-background-dim-40{opacity:0.4}.gb-block-container .has-background-dim-50{opacity:0.5}.gb-block-container .has-background-dim-60{opacity:0.6}.gb-block-container .has-background-dim-70{opacity:0.7}.gb-block-container .has-background-dim-80{opacity:0.8}.gb-block-container .has-background-dim-90{opacity:0.9}.gb-block-container .has-background-dim-100{opacity:1}
12
  .wp-block-genesis-blocks-gb-pricing{margin-bottom:1.5em}.gb-pricing-table-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-template-areas:"col1";grid-gap:0 2em}[data-type="genesis-blocks/gb-pricing-table"],.wp-block-genesis-blocks-gb-pricing-table{display:inline-block;vertical-align:top}@media only screen and (max-width: 600px){[data-type="genesis-blocks/gb-pricing-table"],.wp-block-genesis-blocks-gb-pricing-table{margin-bottom:1.5em}}.gb-block-pricing-table-inside{display:inline-block;width:100%;border-color:#272c30}.gb-block-pricing-table-gap-0{grid-gap:0 0}.gb-block-pricing-table-gap-1{grid-gap:0 1em}.gb-block-pricing-table-gap-2{grid-gap:0 2em}.gb-block-pricing-table-gap-3{grid-gap:0 3em}.gb-block-pricing-table-gap-4{grid-gap:0 4em}.gb-block-pricing-table-gap-5{grid-gap:0 5em}.gb-pricing-columns-2 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}@media only screen and (max-width: 600px){.gb-pricing-columns-2 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.gb-pricing-columns-3 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}@media only screen and (max-width: 600px){.gb-pricing-columns-3 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}@media only screen and (max-width: 800px){.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}.gb-pricing-columns-4 .gb-pricing-table-wrap .wp-block-genesis-blocks-gb-pricing-table{margin-bottom:1.5em}}@media only screen and (max-width: 600px){.gb-pricing-columns-4 .gb-pricing-table-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.gb-pricing-table-price{line-height:1}.gb-pricing-table-currency{vertical-align:top;margin-top:0.4em;margin-right:3px;display:inline-block;line-height:1}.wp-block-genesis-blocks-gb-pricing-table{vertical-align:top}.wp-block-genesis-blocks-gb-pricing-table .gb-pricing-table-features,.block-library-list .wp-block-genesis-blocks-gb-pricing-table ul{margin:0;padding:0;border:none}.gb-block-pricing-table:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-pricing-table:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-block-pricing-table:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-block-pricing-table:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.editor-styles-wrapper [data-type="genesis-blocks/gb-pricing-table-features"] ul{list-style-type:none;display:block;white-space:initial;margin-left:0;margin-right:0}.gb-list-border-solid li{border-bottom-style:solid}.gb-list-border-dashed li{border-bottom-style:dashed}.gb-list-border-dotted li{border-bottom-style:dotted}ul.gb-pricing-table-features li{list-style:none;margin:0;padding:4px 0;border-color:inherit}ul.gb-pricing-table-features li:last-child{border-bottom:none}.gb-list-border-width-1 li{border-width:1px}.gb-list-border-width-2 li{border-width:2px}.gb-list-border-width-3 li{border-width:3px}.gb-list-border-width-4 li{border-width:4px}.gb-list-border-width-5 li{border-width:5px}.gb-pricing-table-price,.gb-pricing-table-term{display:inline}span.gb-pricing-table-term{margin-left:5px}.gb-pricing-table-wrap .gb-block-pricing-table-inside>*:last-child{margin-bottom:0}.wp-block-genesis-blocks-gb-pricing .alignwide,.wp-block-genesis-blocks-gb-pricing .alignfull{width:100%;margin-left:auto}.gb-block-pricing-table-center{text-align:center}.gb-block-pricing-table-center .gb-block-button{text-align:center !important}.gb-block-pricing-table-center .blocks-button__inline-link{margin:0 auto;text-align:center}.gb-block-pricing-table-left{text-align:left}.gb-block-pricing-table-right{text-align:right}.gb-pricing-table-button .gb-block-button{margin-bottom:0}
13
  .gb-block-newsletter .gb-newsletter-title{margin-top:0;line-height:1.3}.gb-block-newsletter .gb-block-button{margin-bottom:0}.gb-block-newsletter-label{font-size:16px}.gb-form-styles label{margin-bottom:8px;width:100%;display:block}.gb-form-styles input:not(.gb-newsletter-submit){width:100%;height:auto;min-height:45px;margin-bottom:15px}
 
14
  .wp-block-genesis-blocks-gb-layout{margin-bottom:1.5em}.wp-block-genesis-blocks-gb-columns{position:relative}.gb-layout-column-wrap{display:-ms-grid;display:grid;grid-template-rows:1fr;grid-gap:0 2em;position:relative;z-index:1}[data-type="genesis-blocks/gb-column"],.gb-block-layout-column{display:block;vertical-align:top;min-width:0}.gb-block-layout-column.gb-is-vertically-aligned-top{align-self:flex-start}.gb-block-layout-column.gb-is-vertically-aligned-center{align-self:center}.gb-block-layout-column.gb-is-vertically-aligned-bottom{align-self:flex-end}.gb-block-layout-column-inner,.gb-layout-column-wrap>.gb-block-layout-column-inner,.gb-has-background-dim>*{position:relative;z-index:1}.wp-block-genesis-blocks-gb-layout.alignfull{padding:0 2em}@media only screen and (max-width: 600px){.wp-block-genesis-blocks-gb-layout.alignfull{padding:0 15px}}.gb-block-layout-column{display:block;width:100%}.gb-columns-center .gb-layout-column-wrap{margin:0 auto}.gb-block-layout-column-gap-0{grid-gap:0 0}.gb-block-layout-column-gap-1{grid-gap:0 1em}.gb-block-layout-column-gap-2{grid-gap:0 2em}.gb-block-layout-column-gap-3{grid-gap:0 3em}.gb-block-layout-column-gap-4{grid-gap:0 4em}.gb-block-layout-column-gap-5{grid-gap:0 5em}.gb-block-layout-column-gap-6{grid-gap:0 6em}.gb-block-layout-column-gap-7{grid-gap:0 7em}.gb-block-layout-column-gap-8{grid-gap:0 8em}.gb-block-layout-column-gap-9{grid-gap:0 9em}.gb-block-layout-column-gap-10{grid-gap:0 10em}.gb-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-layout-column:nth-child(1){-ms-grid-row:1;-ms-grid-column:1;grid-area:col1}.gb-block-layout-column:nth-child(2){-ms-grid-row:1;-ms-grid-column:2;grid-area:col2}.gb-block-layout-column:nth-child(3){-ms-grid-row:1;-ms-grid-column:3;grid-area:col3}.gb-block-layout-column:nth-child(4){-ms-grid-row:1;-ms-grid-column:4;grid-area:col4}.gb-block-layout-column:nth-child(5){-ms-grid-row:1;-ms-grid-column:5;grid-area:col5}.gb-block-layout-column:nth-child(6){-ms-grid-row:1;-ms-grid-column:6;grid-area:col6}.gb-layout-columns-1>.gb-layout-column-wrap{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1"}.gb-layout-columns-2>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2"}@media only screen and (max-width: 600px){.gb-layout-columns-2>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2"}}.gb-2-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr;grid-template-columns:2fr 1fr}.gb-2-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 2fr;grid-template-columns:1fr 2fr}.gb-layout-columns-3>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"col1 col2 col3"}@media only screen and (max-width: 600px){.gb-layout-columns-3>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3"}}.gb-3-col-widecenter>.gb-layout-column-wrap{-ms-grid-columns:1fr 2fr 1fr;grid-template-columns:1fr 2fr 1fr}@media only screen and (max-width: 600px){.gb-3-col-widecenter>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-3-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr}@media only screen and (max-width: 600px){.gb-3-col-wideleft>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-3-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 2fr;grid-template-columns:1fr 1fr 2fr}@media only screen and (max-width: 600px){.gb-3-col-wideright>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr}}.gb-layout-columns-4>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4"}@media only screen and (max-width: 800px){.gb-layout-columns-4>.gb-layout-column-wrap.gb-is-responsive-column{grid-template-rows:auto;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4"}}@media only screen and (max-width: 600px){.gb-layout-columns-4>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4"}}.gb-4-col-wideleft>.gb-layout-column-wrap{-ms-grid-columns:2fr 1fr 1fr 1fr;grid-template-columns:2fr 1fr 1fr 1fr}.gb-4-col-wideright>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 2fr;grid-template-columns:1fr 1fr 1fr 2fr}.gb-layout-columns-5>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5"}@media only screen and (max-width: 800px){.gb-layout-columns-5>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5"}}.gb-layout-columns-6>.gb-layout-column-wrap{-ms-grid-columns:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-areas:"col1 col2 col3 col4 col5 col6"}@media only screen and (max-width: 800px){.gb-layout-columns-6>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-template-areas:"col1 col2" "col3 col4" "col5 col6"}}@media only screen and (max-width: 600px){.gb-layout-columns-6>.gb-layout-column-wrap.gb-is-responsive-column{-ms-grid-columns:1fr;grid-template-columns:1fr;grid-template-areas:"col1" "col2" "col3" "col4" "col5" "col6"}}.gb-layout-columns-4,.gb-layout-columns-5,.gb-layout-columns-6{overflow-x:auto}.gb-column-selector-group{margin-top:10px;display:flex;width:100%;text-align:center;justify-content:center}@media only screen and (max-width: 1175px){.gb-column-selector-group{flex-wrap:wrap}}.gb-column-selector{margin:0 5px}@media only screen and (max-width: 1175px){.gb-column-selector{margin-top:10px}}.gb-column-selector button.gb-column-selector-button{padding:15px;height:auto;border-radius:5px !important;background:#fff;margin:0}.gb-column-selector button.gb-column-selector-button:hover{background:#fff;margin:0}.gb-column-selector button.components-button.is-button:last-child{border-radius:5px}
15
+ .gb-layout-column-button .gb-block-button{margin-bottom:0}.gb-layout-selector-group{margin-top:10px}.gb-layout-selector{display:inline-block;margin:0 5px}.gb-layout-selector button.gb-layout-selector-button{padding:15px;height:auto;border-radius:5px;background:#fff}.gb-layout-selector button.gb-layout-selector-button:hover{background:#fff}.gb-layout-selector button.components-button.is-button:last-child{border-radius:5px}.gb-toolbar-insert-layout-button{margin-right:3px}.gb-layout-team-1 .gb-profile-column{flex:100%}.gb-layout-team-1 .gb-social-links{padding-top:25px}.gb-layout-hero-cover .wp-block-cover__inner-container{max-width:800px}.gb-layout-hero-cover h2,.gb-layout-hero-cover h3,.gb-layout-hero-cover h4{max-width:100%}.gb-white-text,.editor-styles-wrapper [data-type="core/heading"] .gb-white-text{color:#fff}.gb-layout-landing-2 .gb-block-profile{padding:0;text-align:center}.gb-layout-landing-2 .gb-block-profile .gb-profile-avatar-wrap,.gb-layout-landing-2 .gb-block-profile .gb-profile-column{flex:0 0 100%}.gb-layout-landing-2 .round .gb-profile-image-wrap{max-width:220px;margin:0 auto}.gb-layout-landing-2 .gb-block-cta .gb-cta-content{max-width:700px;margin:0 auto}.gb-layout-landing-2 .gb-block-cta .gb-button{font-weight:normal}.gb-layout-landing-3 .gb-layout-landing-3-cover h2,.gb-layout-landing-3 .gb-layout-landing-3-cover h3,.gb-layout-landing-3 .gb-layout-landing-3-cover h4,.gb-layout-landing-3 .gb-layout-landing-3-cover h5,.gb-layout-landing-3 .gb-layout-landing-3-cover h6{margin-left:auto;margin-right:auto}@media only screen and (min-width: 600px){.gb-layout-landing-3 .gb-layout-landing-3-cover h2,.gb-layout-landing-3 .gb-layout-landing-3-cover h3,.gb-layout-landing-3 .gb-layout-landing-3-cover h4,.gb-layout-landing-3 .gb-layout-landing-3-cover h5,.gb-layout-landing-3 .gb-layout-landing-3-cover h6{font-size:42px}}@media only screen and (min-width: 600px){.gb-layout-landing-3 .gb-block-post-grid header .gb-block-post-grid-title{font-size:24px}}.gpb-slate-section-contact-box .gb-block-layout-column-inner{height:100%}div[class*="gb-section-"].alignfull,div[class*="gb-layout-"].alignfull{margin-top:auto;margin-bottom:auto}
16
  .gpb-overflow-hidden{overflow:hidden}.gpb-grid-mobile-space .gb-is-responsive-column{grid-row-gap:1em}.gpb-rounded-grid .gb-block-layout-column-inner{border-radius:10px}.gpb-rounded-sm,.gpb-rounded-sm .gb-accordion-title,.gpb-rounded-sm img{border-radius:5px}.gpb-rounded-md,.gpb-rounded-md .gb-accordion-title,.gpb-rounded-md img{border-radius:10px}.gpb-rounded-lg,.gpb-rounded-lg .gb-accordion-title,.gpb-rounded-lg img{border-radius:20px}.gpb-rounded-xl,.gpb-rounded-xl .gb-accordion-title,.gpb-rounded-xl img{border-radius:30px}.gpb-rounded-full,.gpb-rounded-full .gb-accordion-title,.gpb-rounded-full img{border-radius:500px}@media only screen and (max-width: 600px){.gpb-mobile-align-reset{float:none;text-align:left;margin-left:0 !important;margin-right:0}}@media only screen and (max-width: 600px){.gpb-grid-mobile-reorder .gb-is-responsive-column .gb-block-layout-column:nth-of-type(1){grid-area:col2}.gpb-grid-mobile-reorder .gb-is-responsive-column .gb-block-layout-column:nth-of-type(2){grid-area:col1}}.gpb-mb-1{margin-bottom:1rem}@media only screen and (min-width: 600px){div[class*="wp-block-genesis"].gb-font-size-14.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-14.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-14.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-14.gb-block-cta p{font-size:14px}div[class*="wp-block-genesis"].gb-font-size-15.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-15.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-15.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-15.gb-block-cta p{font-size:15px}div[class*="wp-block-genesis"].gb-font-size-16.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-16.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-16.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-16.gb-block-cta p{font-size:16px}div[class*="wp-block-genesis"].gb-font-size-17.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-17.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-17.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-17.gb-block-cta p{font-size:17px}div[class*="wp-block-genesis"].gb-font-size-18.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-18.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-18.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-18.gb-block-cta p{font-size:18px}div[class*="wp-block-genesis"].gb-font-size-19.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-19.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-19.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-19.gb-block-cta p{font-size:19px}div[class*="wp-block-genesis"].gb-font-size-20.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-20.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-20.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-20.gb-block-cta p{font-size:20px}div[class*="wp-block-genesis"].gb-font-size-21.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-21.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-21.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-21.gb-block-cta p{font-size:21px}div[class*="wp-block-genesis"].gb-font-size-22.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-22.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-22.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-22.gb-block-cta p{font-size:22px}div[class*="wp-block-genesis"].gb-font-size-23.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-23.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-23.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-23.gb-block-cta p{font-size:23px}div[class*="wp-block-genesis"].gb-font-size-24.gb-block-testimonial p,div[class*="wp-block-genesis"].gb-font-size-24.gb-block-notice p,div[class*="wp-block-genesis"].gb-font-size-24.gb-block-profile p,div[class*="wp-block-genesis"].gb-font-size-24.gb-block-cta p{font-size:24px}}*[class*="gpb-fluid"],.entry-content *[class*="gpb-fluid"]{margin:0 0 1rem 0;line-height:1.2;font-weight:normal}.gpb-fluid-1{font-size:20px}@media (min-width: 600px){.gpb-fluid-1{font-size:calc(11.50943px + 100vw * .01415)}}@media (min-width: 1024px){.gpb-fluid-1{font-size:26px}}.gpb-fluid-2{font-size:22px}@media (min-width: 600px){.gpb-fluid-2{font-size:calc(10.67925px + 100vw * .01887)}}@media (min-width: 1024px){.gpb-fluid-2{font-size:30px}}.gpb-fluid-3{font-size:24px}@media (min-width: 600px){.gpb-fluid-3{font-size:calc(4.18868px + 100vw * .03302)}}@media (min-width: 1024px){.gpb-fluid-3{font-size:38px}}.gpb-fluid-4{font-size:28px}@media (min-width: 600px){.gpb-fluid-4{font-size:calc(5.35849px + 100vw * .03774)}}@media (min-width: 1024px){.gpb-fluid-4{font-size:44px}}.gpb-fluid-5{font-size:32px}@media (min-width: 600px){.gpb-fluid-5{font-size:calc(3.69811px + 100vw * .04717)}}@media (min-width: 1024px){.gpb-fluid-5{font-size:52px}}.gpb-fluid-6{font-size:36px}@media (min-width: 600px){.gpb-fluid-6{font-size:calc(2.03774px + 100vw * .0566)}}@media (min-width: 1024px){.gpb-fluid-6{font-size:60px}}.gb-align-center{text-align:center}.gb-align-left{text-align:left}.gb-align-right{text-align:right}.center{text-align:center}.left{text-align:left}.right{text-align:right}@media only screen and (min-width: 600px){.wp-block-columns .layout-column-1,.wp-block-columns .layout-column-2{margin-right:5%}}.wp-block-image{margin-bottom:1.2em}.gb-text-link{color:inherit;text-decoration:none}.gb-text-link:hover{color:inherit;text-decoration:underline}.gb-has-parallax{background-attachment:fixed;background-size:cover;background-position:50%}.gb-has-background-dim::before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-color:inherit;opacity:0;z-index:1}.gb-has-background-dim.has-theme-primary-background-color::before,.gb-has-background-dim.gb-has-custom-background-color::before{background-color:inherit}.gb-has-background-dim-0::before{opacity:1}.gb-has-background-dim-10::before{opacity:0.9}.gb-has-background-dim-20::before{opacity:0.8}.gb-has-background-dim-30::before{opacity:0.7}.gb-has-background-dim-40::before{opacity:0.6}.gb-has-background-dim-50::before{opacity:0.5}.gb-has-background-dim-60::before{opacity:0.4}.gb-has-background-dim-70::before{opacity:0.3}.gb-has-background-dim-80::before{opacity:0.2}.gb-has-background-dim-90::before{opacity:0.1}.gb-has-background-dim-100::before{opacity:0}div.gb-background-auto{background-size:auto;background-position:center center}div.gb-background-cover{background-size:cover}div.gb-background-contain{background-size:contain;background-position:center center}div.gb-background-no-repeat{background-repeat:no-repeat}div.gb-background-repeat{background-repeat:repeat}div.gb-background-repeat-x{background-repeat:repeat-x}div.gb-background-repeat-y{background-repeat:repeat-y;background-position:center center}ol.gpb-number-list,.editor-styles-wrapper ol.gpb-number-list{list-style:none;counter-reset:gpb-list-counter;padding:0;margin-left:0}ol.gpb-number-list li,.editor-styles-wrapper ol.gpb-number-list li{list-style-type:none;counter-increment:gpb-list-counter;position:relative;padding-left:65px;margin-bottom:1.2em}ol.gpb-number-list li::before{content:counter(gpb-list-counter) "";color:#fff;background:#333;position:absolute;left:0;top:10px;text-align:center;border-radius:100px;height:42px;width:42px;line-height:41px}
genesis-blocks.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: A beautiful collection of handy blocks to help you get started with the new WordPress editor.
6
  * Author: StudioPress
7
  * Author URI: https://www.studiopress.com/
8
- * Version: 1.2.0
9
  * License: GPL2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  *
5
  * Description: A beautiful collection of handy blocks to help you get started with the new WordPress editor.
6
  * Author: StudioPress
7
  * Author URI: https://www.studiopress.com/
8
+ * Version: 1.2.1
9
  * License: GPL2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  *
includes/layout/class-component-registry.php CHANGED
@@ -178,7 +178,7 @@ final class Component_Registry {
178
  /* translators: The requested components unique key. */
179
  throw new Exception( sprintf( esc_html__( 'The %s layout is not registered.', 'genesis-blocks' ), $key ) );
180
  }
181
- return self::$layouts[ $key ];
182
 
183
  case 'section':
184
  if ( empty( self::$sections[ $key ] ) ) {
@@ -199,7 +199,11 @@ final class Component_Registry {
199
  * @return array
200
  */
201
  public static function layouts() {
202
- return self::$layouts;
 
 
 
 
203
  }
204
 
205
  /**
@@ -210,4 +214,30 @@ final class Component_Registry {
210
  public static function sections() {
211
  return self::$sections;
212
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  }
178
  /* translators: The requested components unique key. */
179
  throw new Exception( sprintf( esc_html__( 'The %s layout is not registered.', 'genesis-blocks' ), $key ) );
180
  }
181
+ return self::render_sections_in_layout( self::$layouts[ $key ] );
182
 
183
  case 'section':
184
  if ( empty( self::$sections[ $key ] ) ) {
199
  * @return array
200
  */
201
  public static function layouts() {
202
+ $layouts = [];
203
+ foreach ( self::$layouts as $layout ) {
204
+ $layouts[] = self::render_sections_in_layout( $layout );
205
+ }
206
+ return $layouts;
207
  }
208
 
209
  /**
214
  public static function sections() {
215
  return self::$sections;
216
  }
217
+
218
+ /**
219
+ * Render sections inside of layouts when requested
220
+ *
221
+ * @param array $layout A single layout structure.
222
+ *
223
+ * @return array
224
+ */
225
+ private static function render_sections_in_layout( $layout ) {
226
+ if ( ! is_array( $layout['content'] ) ) {
227
+ return $layout;
228
+ }
229
+
230
+ $sections = '';
231
+ foreach ( $layout['content'] as $key ) {
232
+ if ( gettype( $key ) !== 'string' ) {
233
+ return;
234
+ }
235
+
236
+ $section = self::get( 'section', $key );
237
+ $sections .= $section['content'];
238
+ }
239
+
240
+ $layout['content'] = $sections;
241
+ return $layout;
242
+ }
243
  }
languages/genesis-blocks.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Genesis Blocks plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Genesis Blocks 1.2.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: 2020-11-04T16:47:34+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: genesis-blocks\n"
@@ -21,7 +21,7 @@ msgstr ""
21
  #: lib/Settings/views/admin/genesis-pro.php:21
22
  #: lib/Settings/views/admin/genesis-pro.php:25
23
  #: lib/Settings/views/admin/getting-started.php:17
24
- #: lib/Settings/views/admin/getting-started.php:31
25
  msgid "Genesis Blocks"
26
  msgstr ""
27
 
@@ -299,7 +299,7 @@ msgstr ""
299
  #: includes/patterns/gb_slate_section_hero_title.php:24
300
  #: includes/patterns/gb_slate_section_hero_with_buttons.php:18
301
  #: includes/patterns/gb_slate_section_hero_with_buttons.php:24
302
- #: src/blocks/block-post-grid/components/inspector.js:106
303
  msgid "header"
304
  msgstr ""
305
 
@@ -844,7 +844,7 @@ msgid "Getting Started with Genesis Blocks"
844
  msgstr ""
845
 
846
  #: lib/Settings/AdminPage.php:119
847
- #: lib/Settings/views/admin/getting-started.php:26
848
  msgid "Getting Started"
849
  msgstr ""
850
 
@@ -857,6 +857,11 @@ msgstr ""
857
  msgid "Genesis Pro"
858
  msgstr ""
859
 
 
 
 
 
 
860
  #: lib/Settings/views/admin/genesis-pro.php:22
861
  msgid "Advanced tools for building better WordPress websites faster."
862
  msgstr ""
@@ -941,51 +946,57 @@ msgstr ""
941
  msgid "Learn more"
942
  msgstr ""
943
 
944
- #: lib/Settings/views/admin/getting-started.php:27
945
  msgid "Welcome to the future of site building with WordPress and Genesis Blocks."
946
  msgstr ""
947
 
948
- #: lib/Settings/views/admin/getting-started.php:28
949
  msgid "The Genesis Blocks collection is now ready to use in your posts and pages. Simply search for \"genesis\" in the block inserter to display the Genesis Blocks collection. Check out the boxes below for help docs, tips and tricks, and additional resources."
950
  msgstr ""
951
 
952
- #: lib/Settings/views/admin/getting-started.php:37
953
- #: lib/Settings/views/admin/getting-started.php:38
954
  msgid "Help and Documentation"
955
  msgstr ""
956
 
957
- #: lib/Settings/views/admin/getting-started.php:39
958
  msgid "The Genesis Blocks wiki has helpful documentation, tips and tricks, code snippets, and more to help you get started."
959
  msgstr ""
960
 
961
- #: lib/Settings/views/admin/getting-started.php:40
962
  msgid "Browse the Docs"
963
  msgstr ""
964
 
965
- #: lib/Settings/views/admin/getting-started.php:43
966
  msgid "Genesis Themes"
967
  msgstr ""
968
 
969
- #: lib/Settings/views/admin/getting-started.php:44
970
  msgid "Browse Genesis Themes"
971
  msgstr ""
972
 
973
- #: lib/Settings/views/admin/getting-started.php:45
974
  msgid "The Genesis theme collection has beautiful block-powered themes that help you quickly get started with the new block editor."
975
  msgstr ""
976
 
977
- #: lib/Settings/views/admin/getting-started.php:46
978
  msgid "Browse Themes"
979
  msgstr ""
980
 
981
- #: lib/Settings/views/admin/getting-started.php:49
982
- #: lib/Settings/views/admin/getting-started.php:50
983
- #: lib/Settings/views/admin/getting-started.php:52
984
- msgid "Provide Feedback"
 
 
 
 
 
 
985
  msgstr ""
986
 
987
- #: lib/Settings/views/admin/getting-started.php:51
988
- msgid "We are always looking for quality feedback to continue improving Genesis Blocks and making it better with every release."
989
  msgstr ""
990
 
991
  #. translators: %s This PHP class name. Will print Genesis\Blocks\Newsletter\Mailchimp
@@ -1084,7 +1095,7 @@ msgstr ""
1084
  msgid "Your Mailchimp API key is required for the Newsletter block to communicate with your Mailchimp account."
1085
  msgstr ""
1086
 
1087
- #: src/blocks/block-post-grid/index.php:128
1088
  msgid "Untitled"
1089
  msgstr ""
1090
 
@@ -1939,7 +1950,7 @@ msgstr ""
1939
 
1940
  #: src/blocks/block-container/index.js:107
1941
  #: src/blocks/block-layout/index.js:33
1942
- #: src/blocks/block-post-grid/components/inspector.js:107
1943
  msgid "section"
1944
  msgstr ""
1945
 
@@ -2055,7 +2066,7 @@ msgid "drop cap"
2055
  msgstr ""
2056
 
2057
  #: src/blocks/block-layout/components/edit.js:39
2058
- #: src/blocks/block-layout/components/layout/layout-modal.js:89
2059
  msgid "Layout Selector"
2060
  msgstr ""
2061
 
@@ -2111,42 +2122,42 @@ msgstr ""
2111
  msgid "Edit"
2112
  msgstr ""
2113
 
2114
- #: src/blocks/block-layout/components/layout/layout-modal.js:32
2115
  msgid "Sections"
2116
  msgstr ""
2117
 
2118
- #: src/blocks/block-layout/components/layout/layout-modal.js:40
2119
  #: src/blocks/block-layout/index.js:23
2120
- #: src/blocks/block-layout/index.js:69
2121
  msgid "Layouts"
2122
  msgstr ""
2123
 
2124
- #: src/blocks/block-layout/components/layout/layout-modal.js:48
2125
  msgid "Collections"
2126
  msgstr ""
2127
 
2128
- #: src/blocks/block-layout/components/layout/layout-modal.js:55
2129
  msgid "Favorites"
2130
  msgstr ""
2131
 
2132
- #: src/blocks/block-layout/components/layout/layout-modal.js:62
2133
- #: src/blocks/block-layout/components/layout/layout-modal.js:120
2134
  msgid "Reusable Blocks"
2135
  msgstr ""
2136
 
2137
- #: src/blocks/block-layout/components/layout/layout-modal.js:80
2138
  msgid "Layout Library"
2139
  msgstr ""
2140
 
2141
- #: src/blocks/block-layout/components/layout/layout-modal.js:107
2142
  msgid "Add Custom Layouts"
2143
  msgstr ""
2144
 
2145
- #: src/blocks/block-layout/components/layout/layout-modal.js:131
2146
  msgid "Send Feedback"
2147
  msgstr ""
2148
 
2149
- #: src/blocks/block-layout/components/layout/layout-modal.js:149
2150
  msgid "Default tab content"
2151
  msgstr ""
2152
 
@@ -2154,7 +2165,7 @@ msgstr ""
2154
  msgid "Add a pre-defined section or layout to posts and pages."
2155
  msgstr ""
2156
 
2157
- #: src/blocks/block-layout/index.js:66
2158
  msgid "Insert Layout"
2159
  msgstr ""
2160
 
@@ -2339,170 +2350,170 @@ msgstr ""
2339
  msgid "Learn more "
2340
  msgstr ""
2341
 
2342
- #: src/blocks/block-post-grid/components/inspector.js:99
2343
  msgid "Post"
2344
  msgstr ""
2345
 
2346
- #: src/blocks/block-post-grid/components/inspector.js:100
2347
  msgid "Page"
2348
  msgstr ""
2349
 
2350
- #: src/blocks/block-post-grid/components/inspector.js:105
2351
  msgid "div"
2352
  msgstr ""
2353
 
2354
- #: src/blocks/block-post-grid/components/inspector.js:108
2355
  msgid "article"
2356
  msgstr ""
2357
 
2358
- #: src/blocks/block-post-grid/components/inspector.js:109
2359
  msgid "main"
2360
  msgstr ""
2361
 
2362
- #: src/blocks/block-post-grid/components/inspector.js:110
2363
  msgid "aside"
2364
  msgstr ""
2365
 
2366
- #: src/blocks/block-post-grid/components/inspector.js:111
2367
  msgid "footer"
2368
  msgstr ""
2369
 
2370
- #: src/blocks/block-post-grid/components/inspector.js:116
2371
  msgid "H2"
2372
  msgstr ""
2373
 
2374
- #: src/blocks/block-post-grid/components/inspector.js:117
2375
  msgid "H3"
2376
  msgstr ""
2377
 
2378
- #: src/blocks/block-post-grid/components/inspector.js:118
2379
  msgid "H4"
2380
  msgstr ""
2381
 
2382
- #: src/blocks/block-post-grid/components/inspector.js:119
2383
  msgid "H5"
2384
  msgstr ""
2385
 
2386
- #: src/blocks/block-post-grid/components/inspector.js:120
2387
  msgid "H6"
2388
  msgstr ""
2389
 
2390
- #: src/blocks/block-post-grid/components/inspector.js:132
2391
  msgid "Select image size"
2392
  msgstr ""
2393
 
2394
- #: src/blocks/block-post-grid/components/inspector.js:138
2395
  msgid "GB Grid Landscape"
2396
  msgstr ""
2397
 
2398
- #: src/blocks/block-post-grid/components/inspector.js:144
2399
  msgid "GB Grid Square"
2400
  msgstr ""
2401
 
2402
- #: src/blocks/block-post-grid/components/inspector.js:169
2403
  msgid "Post and Page Grid Settings"
2404
  msgstr ""
2405
 
2406
- #: src/blocks/block-post-grid/components/inspector.js:177
2407
  #: src/blocks/block-post-grid/index.js:48
2408
  msgid "Content Type"
2409
  msgstr ""
2410
 
2411
- #: src/blocks/block-post-grid/components/inspector.js:189
2412
  msgid "Pages To Show"
2413
  msgstr ""
2414
 
2415
- #: src/blocks/block-post-grid/components/inspector.js:221
2416
  msgid "Number of items to offset"
2417
  msgstr ""
2418
 
2419
- #: src/blocks/block-post-grid/components/inspector.js:233
2420
  #: src/blocks/block-post-grid/index.js:57
2421
  msgid "Columns"
2422
  msgstr ""
2423
 
2424
- #: src/blocks/block-post-grid/components/inspector.js:252
2425
  msgid "Post and Page Grid Content"
2426
  msgstr ""
2427
 
2428
- #: src/blocks/block-post-grid/components/inspector.js:260
2429
  #: src/blocks/block-post-grid/index.js:60
2430
  msgid "Display Section Title"
2431
  msgstr ""
2432
 
2433
- #: src/blocks/block-post-grid/components/inspector.js:275
2434
  #: src/blocks/block-post-grid/index.js:63
2435
  msgid "Section Title"
2436
  msgstr ""
2437
 
2438
- #: src/blocks/block-post-grid/components/inspector.js:288
2439
  #: src/blocks/block-post-grid/index.js:66
2440
  msgid "Display Featured Image"
2441
  msgstr ""
2442
 
2443
- #: src/blocks/block-post-grid/components/inspector.js:303
2444
  #: src/blocks/block-post-grid/index.js:69
2445
  msgid "Image Size"
2446
  msgstr ""
2447
 
2448
- #: src/blocks/block-post-grid/components/inspector.js:316
2449
  msgid "Display Title"
2450
  msgstr ""
2451
 
2452
- #: src/blocks/block-post-grid/components/inspector.js:328
2453
  msgid "Display Author"
2454
  msgstr ""
2455
 
2456
- #: src/blocks/block-post-grid/components/inspector.js:344
2457
  msgid "Display Date"
2458
  msgstr ""
2459
 
2460
- #: src/blocks/block-post-grid/components/inspector.js:356
2461
  msgid "Display Excerpt"
2462
  msgstr ""
2463
 
2464
- #: src/blocks/block-post-grid/components/inspector.js:368
2465
  #: src/blocks/block-post-grid/index.js:84
2466
  msgid "Excerpt Length"
2467
  msgstr ""
2468
 
2469
- #: src/blocks/block-post-grid/components/inspector.js:383
2470
  #: src/blocks/block-post-grid/index.js:87
2471
  msgid "Display Continue Reading Link"
2472
  msgstr ""
2473
 
2474
- #: src/blocks/block-post-grid/components/inspector.js:398
2475
  msgid "Customize Continue Reading Text"
2476
  msgstr ""
2477
 
2478
- #: src/blocks/block-post-grid/components/inspector.js:414
2479
  msgid "Post and Page Grid Markup"
2480
  msgstr ""
2481
 
2482
- #: src/blocks/block-post-grid/components/inspector.js:420
2483
  #: src/blocks/block-post-grid/index.js:93
2484
  msgid "Post Grid Section Tag"
2485
  msgstr ""
2486
 
2487
- #: src/blocks/block-post-grid/components/inspector.js:431
2488
  msgid "Change the post grid section tag to match your content hierarchy."
2489
  msgstr ""
2490
 
2491
- #: src/blocks/block-post-grid/components/inspector.js:440
2492
  #: src/blocks/block-post-grid/index.js:96
2493
  msgid "Section Title Heading Tag"
2494
  msgstr ""
2495
 
2496
- #: src/blocks/block-post-grid/components/inspector.js:451
2497
  msgid "Change the post/page section title tag to match your content hierarchy."
2498
  msgstr ""
2499
 
2500
- #: src/blocks/block-post-grid/components/inspector.js:461
2501
  #: src/blocks/block-post-grid/index.js:99
2502
  msgid "Post Title Heading Tag"
2503
  msgstr ""
2504
 
2505
- #: src/blocks/block-post-grid/components/inspector.js:472
2506
  msgid "Change the post/page title tag to match your content hierarchy."
2507
  msgstr ""
2508
 
2
  # This file is distributed under the same license as the Genesis Blocks plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Genesis Blocks 1.2.1\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: 2020-12-03T20:20:51+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: genesis-blocks\n"
21
  #: lib/Settings/views/admin/genesis-pro.php:21
22
  #: lib/Settings/views/admin/genesis-pro.php:25
23
  #: lib/Settings/views/admin/getting-started.php:17
24
+ #: lib/Settings/views/admin/getting-started.php:35
25
  msgid "Genesis Blocks"
26
  msgstr ""
27
 
299
  #: includes/patterns/gb_slate_section_hero_title.php:24
300
  #: includes/patterns/gb_slate_section_hero_with_buttons.php:18
301
  #: includes/patterns/gb_slate_section_hero_with_buttons.php:24
302
+ #: src/blocks/block-post-grid/components/inspector.js:113
303
  msgid "header"
304
  msgstr ""
305
 
844
  msgstr ""
845
 
846
  #: lib/Settings/AdminPage.php:119
847
+ #: lib/Settings/views/admin/getting-started.php:30
848
  msgid "Getting Started"
849
  msgstr ""
850
 
857
  msgid "Genesis Pro"
858
  msgstr ""
859
 
860
+ #: lib/Settings/views/admin/app.php:23
861
+ #: lib/Settings/views/admin/getting-started.php:21
862
+ msgid "Leave a review!"
863
+ msgstr ""
864
+
865
  #: lib/Settings/views/admin/genesis-pro.php:22
866
  msgid "Advanced tools for building better WordPress websites faster."
867
  msgstr ""
946
  msgid "Learn more"
947
  msgstr ""
948
 
949
+ #: lib/Settings/views/admin/getting-started.php:31
950
  msgid "Welcome to the future of site building with WordPress and Genesis Blocks."
951
  msgstr ""
952
 
953
+ #: lib/Settings/views/admin/getting-started.php:32
954
  msgid "The Genesis Blocks collection is now ready to use in your posts and pages. Simply search for \"genesis\" in the block inserter to display the Genesis Blocks collection. Check out the boxes below for help docs, tips and tricks, and additional resources."
955
  msgstr ""
956
 
957
+ #: lib/Settings/views/admin/getting-started.php:41
958
+ #: lib/Settings/views/admin/getting-started.php:42
959
  msgid "Help and Documentation"
960
  msgstr ""
961
 
962
+ #: lib/Settings/views/admin/getting-started.php:43
963
  msgid "The Genesis Blocks wiki has helpful documentation, tips and tricks, code snippets, and more to help you get started."
964
  msgstr ""
965
 
966
+ #: lib/Settings/views/admin/getting-started.php:44
967
  msgid "Browse the Docs"
968
  msgstr ""
969
 
970
+ #: lib/Settings/views/admin/getting-started.php:47
971
  msgid "Genesis Themes"
972
  msgstr ""
973
 
974
+ #: lib/Settings/views/admin/getting-started.php:48
975
  msgid "Browse Genesis Themes"
976
  msgstr ""
977
 
978
+ #: lib/Settings/views/admin/getting-started.php:49
979
  msgid "The Genesis theme collection has beautiful block-powered themes that help you quickly get started with the new block editor."
980
  msgstr ""
981
 
982
+ #: lib/Settings/views/admin/getting-started.php:50
983
  msgid "Browse Themes"
984
  msgstr ""
985
 
986
+ #: lib/Settings/views/admin/getting-started.php:53
987
+ msgid "Leave a review"
988
+ msgstr ""
989
+
990
+ #: lib/Settings/views/admin/getting-started.php:54
991
+ msgid "Enjoying Genesis Blocks?"
992
+ msgstr ""
993
+
994
+ #: lib/Settings/views/admin/getting-started.php:55
995
+ msgid "Leave a review on WordPress.org and help the rest of the community discover the potential of the block editor."
996
  msgstr ""
997
 
998
+ #: lib/Settings/views/admin/getting-started.php:56
999
+ msgid "Leave a Review"
1000
  msgstr ""
1001
 
1002
  #. translators: %s This PHP class name. Will print Genesis\Blocks\Newsletter\Mailchimp
1095
  msgid "Your Mailchimp API key is required for the Newsletter block to communicate with your Mailchimp account."
1096
  msgstr ""
1097
 
1098
+ #: src/blocks/block-post-grid/index.php:132
1099
  msgid "Untitled"
1100
  msgstr ""
1101
 
1950
 
1951
  #: src/blocks/block-container/index.js:107
1952
  #: src/blocks/block-layout/index.js:33
1953
+ #: src/blocks/block-post-grid/components/inspector.js:114
1954
  msgid "section"
1955
  msgstr ""
1956
 
2066
  msgstr ""
2067
 
2068
  #: src/blocks/block-layout/components/edit.js:39
2069
+ #: src/blocks/block-layout/components/layout/layout-modal.js:80
2070
  msgid "Layout Selector"
2071
  msgstr ""
2072
 
2122
  msgid "Edit"
2123
  msgstr ""
2124
 
2125
+ #: src/blocks/block-layout/components/layout/layout-modal.js:25
2126
  msgid "Sections"
2127
  msgstr ""
2128
 
2129
+ #: src/blocks/block-layout/components/layout/layout-modal.js:33
2130
  #: src/blocks/block-layout/index.js:23
2131
+ #: src/blocks/block-layout/index.js:75
2132
  msgid "Layouts"
2133
  msgstr ""
2134
 
2135
+ #: src/blocks/block-layout/components/layout/layout-modal.js:41
2136
  msgid "Collections"
2137
  msgstr ""
2138
 
2139
+ #: src/blocks/block-layout/components/layout/layout-modal.js:48
2140
  msgid "Favorites"
2141
  msgstr ""
2142
 
2143
+ #: src/blocks/block-layout/components/layout/layout-modal.js:55
2144
+ #: src/blocks/block-layout/components/layout/layout-modal.js:110
2145
  msgid "Reusable Blocks"
2146
  msgstr ""
2147
 
2148
+ #: src/blocks/block-layout/components/layout/layout-modal.js:71
2149
  msgid "Layout Library"
2150
  msgstr ""
2151
 
2152
+ #: src/blocks/block-layout/components/layout/layout-modal.js:97
2153
  msgid "Add Custom Layouts"
2154
  msgstr ""
2155
 
2156
+ #: src/blocks/block-layout/components/layout/layout-modal.js:121
2157
  msgid "Send Feedback"
2158
  msgstr ""
2159
 
2160
+ #: src/blocks/block-layout/components/layout/layout-modal.js:137
2161
  msgid "Default tab content"
2162
  msgstr ""
2163
 
2165
  msgid "Add a pre-defined section or layout to posts and pages."
2166
  msgstr ""
2167
 
2168
+ #: src/blocks/block-layout/index.js:72
2169
  msgid "Insert Layout"
2170
  msgstr ""
2171
 
2350
  msgid "Learn more "
2351
  msgstr ""
2352
 
2353
+ #: src/blocks/block-post-grid/components/inspector.js:106
2354
  msgid "Post"
2355
  msgstr ""
2356
 
2357
+ #: src/blocks/block-post-grid/components/inspector.js:107
2358
  msgid "Page"
2359
  msgstr ""
2360
 
2361
+ #: src/blocks/block-post-grid/components/inspector.js:112
2362
  msgid "div"
2363
  msgstr ""
2364
 
2365
+ #: src/blocks/block-post-grid/components/inspector.js:115
2366
  msgid "article"
2367
  msgstr ""
2368
 
2369
+ #: src/blocks/block-post-grid/components/inspector.js:116
2370
  msgid "main"
2371
  msgstr ""
2372
 
2373
+ #: src/blocks/block-post-grid/components/inspector.js:117
2374
  msgid "aside"
2375
  msgstr ""
2376
 
2377
+ #: src/blocks/block-post-grid/components/inspector.js:118
2378
  msgid "footer"
2379
  msgstr ""
2380
 
2381
+ #: src/blocks/block-post-grid/components/inspector.js:123
2382
  msgid "H2"
2383
  msgstr ""
2384
 
2385
+ #: src/blocks/block-post-grid/components/inspector.js:124
2386
  msgid "H3"
2387
  msgstr ""
2388
 
2389
+ #: src/blocks/block-post-grid/components/inspector.js:125
2390
  msgid "H4"
2391
  msgstr ""
2392
 
2393
+ #: src/blocks/block-post-grid/components/inspector.js:126
2394
  msgid "H5"
2395
  msgstr ""
2396
 
2397
+ #: src/blocks/block-post-grid/components/inspector.js:127
2398
  msgid "H6"
2399
  msgstr ""
2400
 
2401
+ #: src/blocks/block-post-grid/components/inspector.js:139
2402
  msgid "Select image size"
2403
  msgstr ""
2404
 
2405
+ #: src/blocks/block-post-grid/components/inspector.js:145
2406
  msgid "GB Grid Landscape"
2407
  msgstr ""
2408
 
2409
+ #: src/blocks/block-post-grid/components/inspector.js:151
2410
  msgid "GB Grid Square"
2411
  msgstr ""
2412
 
2413
+ #: src/blocks/block-post-grid/components/inspector.js:176
2414
  msgid "Post and Page Grid Settings"
2415
  msgstr ""
2416
 
2417
+ #: src/blocks/block-post-grid/components/inspector.js:184
2418
  #: src/blocks/block-post-grid/index.js:48
2419
  msgid "Content Type"
2420
  msgstr ""
2421
 
2422
+ #: src/blocks/block-post-grid/components/inspector.js:196
2423
  msgid "Pages To Show"
2424
  msgstr ""
2425
 
2426
+ #: src/blocks/block-post-grid/components/inspector.js:229
2427
  msgid "Number of items to offset"
2428
  msgstr ""
2429
 
2430
+ #: src/blocks/block-post-grid/components/inspector.js:241
2431
  #: src/blocks/block-post-grid/index.js:57
2432
  msgid "Columns"
2433
  msgstr ""
2434
 
2435
+ #: src/blocks/block-post-grid/components/inspector.js:260
2436
  msgid "Post and Page Grid Content"
2437
  msgstr ""
2438
 
2439
+ #: src/blocks/block-post-grid/components/inspector.js:268
2440
  #: src/blocks/block-post-grid/index.js:60
2441
  msgid "Display Section Title"
2442
  msgstr ""
2443
 
2444
+ #: src/blocks/block-post-grid/components/inspector.js:283
2445
  #: src/blocks/block-post-grid/index.js:63
2446
  msgid "Section Title"
2447
  msgstr ""
2448
 
2449
+ #: src/blocks/block-post-grid/components/inspector.js:296
2450
  #: src/blocks/block-post-grid/index.js:66
2451
  msgid "Display Featured Image"
2452
  msgstr ""
2453
 
2454
+ #: src/blocks/block-post-grid/components/inspector.js:311
2455
  #: src/blocks/block-post-grid/index.js:69
2456
  msgid "Image Size"
2457
  msgstr ""
2458
 
2459
+ #: src/blocks/block-post-grid/components/inspector.js:324
2460
  msgid "Display Title"
2461
  msgstr ""
2462
 
2463
+ #: src/blocks/block-post-grid/components/inspector.js:336
2464
  msgid "Display Author"
2465
  msgstr ""
2466
 
2467
+ #: src/blocks/block-post-grid/components/inspector.js:352
2468
  msgid "Display Date"
2469
  msgstr ""
2470
 
2471
+ #: src/blocks/block-post-grid/components/inspector.js:364
2472
  msgid "Display Excerpt"
2473
  msgstr ""
2474
 
2475
+ #: src/blocks/block-post-grid/components/inspector.js:376
2476
  #: src/blocks/block-post-grid/index.js:84
2477
  msgid "Excerpt Length"
2478
  msgstr ""
2479
 
2480
+ #: src/blocks/block-post-grid/components/inspector.js:391
2481
  #: src/blocks/block-post-grid/index.js:87
2482
  msgid "Display Continue Reading Link"
2483
  msgstr ""
2484
 
2485
+ #: src/blocks/block-post-grid/components/inspector.js:406
2486
  msgid "Customize Continue Reading Text"
2487
  msgstr ""
2488
 
2489
+ #: src/blocks/block-post-grid/components/inspector.js:422
2490
  msgid "Post and Page Grid Markup"
2491
  msgstr ""
2492
 
2493
+ #: src/blocks/block-post-grid/components/inspector.js:428
2494
  #: src/blocks/block-post-grid/index.js:93
2495
  msgid "Post Grid Section Tag"
2496
  msgstr ""
2497
 
2498
+ #: src/blocks/block-post-grid/components/inspector.js:439
2499
  msgid "Change the post grid section tag to match your content hierarchy."
2500
  msgstr ""
2501
 
2502
+ #: src/blocks/block-post-grid/components/inspector.js:448
2503
  #: src/blocks/block-post-grid/index.js:96
2504
  msgid "Section Title Heading Tag"
2505
  msgstr ""
2506
 
2507
+ #: src/blocks/block-post-grid/components/inspector.js:459
2508
  msgid "Change the post/page section title tag to match your content hierarchy."
2509
  msgstr ""
2510
 
2511
+ #: src/blocks/block-post-grid/components/inspector.js:469
2512
  #: src/blocks/block-post-grid/index.js:99
2513
  msgid "Post Title Heading Tag"
2514
  msgstr ""
2515
 
2516
+ #: src/blocks/block-post-grid/components/inspector.js:480
2517
  msgid "Change the post/page title tag to match your content hierarchy."
2518
  msgstr ""
2519
 
lib/Settings/assets/css/admin.css CHANGED
@@ -64,6 +64,10 @@
64
  margin-right: 15px;
65
  }
66
 
 
 
 
 
67
  /* Buttons & Links
68
  ---------------------------------------------------------------------------- */
69
 
@@ -146,6 +150,20 @@
146
  box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.12);
147
  }
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  /* Secondary Buttons
150
  --------------------------------------------- */
151
 
@@ -483,6 +501,10 @@
483
  margin-bottom: 30px;
484
  }
485
 
 
 
 
 
486
  }
487
 
488
  @media only screen and (max-width: 782px) {
@@ -510,4 +532,12 @@
510
  color: #23282d;
511
  }
512
 
 
 
 
 
 
 
 
 
513
  }
64
  margin-right: 15px;
65
  }
66
 
67
+ .grow {
68
+ flex-grow: 1;
69
+ }
70
+
71
  /* Buttons & Links
72
  ---------------------------------------------------------------------------- */
73
 
150
  box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.12);
151
  }
152
 
153
+ .components-button.review-button {
154
+ background: #fff;
155
+ color: #000;
156
+ }
157
+
158
+ .components-button.review-button:hover {
159
+ background: #fff;
160
+ color: #06c;
161
+ }
162
+
163
+ .review-button span {
164
+ margin-right: 5px;
165
+ }
166
+
167
  /* Secondary Buttons
168
  --------------------------------------------- */
169
 
501
  margin-bottom: 30px;
502
  }
503
 
504
+ .hide-mobile {
505
+ display: none;
506
+ }
507
+
508
  }
509
 
510
  @media only screen and (max-width: 782px) {
532
  color: #23282d;
533
  }
534
 
535
+ .grow {
536
+ flex-grow: 0;
537
+ }
538
+
539
+ .hide-mobile {
540
+ display: none;
541
+ }
542
+
543
  }
lib/Settings/assets/images/review.svg ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 25.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" focusable="false" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
4
+ x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#0066CC;}
7
+ </style>
8
+ <path class="st0" d="M448,0H64C28.7,0,0,28.7,0,64v288c0,35.3,28.7,64,64,64h96v84c0,7.1,5.8,12,12,12c2.4,0,4.9-0.7,7.1-2.4
9
+ L304,416h144c35.3,0,64-28.7,64-64V64C512,28.7,483.3,0,448,0z M464,352c0,8.8-7.2,16-16,16H288l-12.8,9.6L208,428v-60H64
10
+ c-8.8,0-16-7.2-16-16V64c0-8.8,7.2-16,16-16h384c8.8,0,16,7.2,16,16V352z M336,184h-56v-56c0-8.8-7.2-16-16-16h-16
11
+ c-8.8,0-16,7.2-16,16v56h-56c-8.8,0-16,7.2-16,16v16c0,8.8,7.2,16,16,16h56v56c0,8.8,7.2,16,16,16h16c8.8,0,16-7.2,16-16v-56h56
12
+ c8.8,0,16-7.2,16-16v-16C352,191.2,344.8,184,336,184z"/>
13
+ </svg>
lib/Settings/views/admin/app.php CHANGED
@@ -17,7 +17,11 @@
17
  <div class="intro-wrap">
18
  <div class="intro">
19
  <img src="<?php echo esc_url( $this->context['url'] . 'lib/Settings/assets/images/genesis-planet-icon.svg' ); ?>" alt="<?php esc_html_e( 'Genesis Blocks', 'genesis-blocks' ); ?>" />
20
- <h1><?php echo esc_html( $this->page_title ); ?></h1>
 
 
 
 
21
  </div>
22
  </div>
23
  <div id="root"></div>
17
  <div class="intro-wrap">
18
  <div class="intro">
19
  <img src="<?php echo esc_url( $this->context['url'] . 'lib/Settings/assets/images/genesis-planet-icon.svg' ); ?>" alt="<?php esc_html_e( 'Genesis Blocks', 'genesis-blocks' ); ?>" />
20
+ <h1 class="grow"><?php echo esc_html( $this->page_title ); ?></h1>
21
+ <a class="components-button review-button hide-mobile" href="//wordpress.org/support/plugin/genesis-blocks/reviews/" target="_blank" rel="noopener noreferrer">
22
+ <span>&#9733;</span>
23
+ <?php esc_html_e( 'Leave a review!', 'genesis-blocks' ); ?>
24
+ </a>
25
  </div>
26
  </div>
27
  <div id="root"></div>
lib/Settings/views/admin/getting-started.php CHANGED
@@ -15,7 +15,11 @@
15
  <div class="intro-wrap">
16
  <div class="intro">
17
  <img src="<?php echo esc_url( $this->context['url'] . 'lib/Settings/assets/images/genesis-planet-icon.svg' ); ?>" alt="<?php esc_html_e( 'Genesis Blocks', 'genesis-blocks' ); ?>" />
18
- <h1><?php echo esc_html_e( 'Getting Started with Genesis Blocks', 'genesis-blocks' ); ?></h1>
 
 
 
 
19
  </div>
20
  </div>
21
 
@@ -46,10 +50,10 @@
46
  <a href="https://studiopress.com/themes" class="components-button is-primary"><?php echo esc_html_e( 'Browse Themes', 'genesis-blocks' ); ?></a>
47
  </div>
48
  <div class="genesis-gs-resource">
49
- <img src="<?php echo esc_url( $this->context['url'] . 'lib/Settings/assets/images/feedback.svg' ); ?>" alt="<?php esc_html_e( 'Provide Feedback', 'genesis-blocks' ); ?>" />
50
- <h3><?php echo esc_html_e( 'Provide Feedback', 'genesis-blocks' ); ?></h3>
51
- <p><?php echo esc_html_e( 'We are always looking for quality feedback to continue improving Genesis Blocks and making it better with every release.', 'genesis-blocks' ); ?></p>
52
- <a href="https://www.surveymonkey.com/r/CXHFZFG" class="components-button is-primary"><?php echo esc_html_e( 'Provide Feedback', 'genesis-blocks' ); ?></a>
53
  </div>
54
  </div>
55
  </div>
15
  <div class="intro-wrap">
16
  <div class="intro">
17
  <img src="<?php echo esc_url( $this->context['url'] . 'lib/Settings/assets/images/genesis-planet-icon.svg' ); ?>" alt="<?php esc_html_e( 'Genesis Blocks', 'genesis-blocks' ); ?>" />
18
+ <h1 class="grow"><?php echo esc_html_e( 'Getting Started with Genesis Blocks', 'genesis-blocks' ); ?></h1>
19
+ <a class="components-button review-button hide-mobile" href="//wordpress.org/support/plugin/genesis-blocks/reviews/" target="_blank" rel="noopener noreferrer">
20
+ <span>&#9733;</span>
21
+ <?php esc_html_e( 'Leave a review!', 'genesis-blocks' ); ?>
22
+ </a>
23
  </div>
24
  </div>
25
 
50
  <a href="https://studiopress.com/themes" class="components-button is-primary"><?php echo esc_html_e( 'Browse Themes', 'genesis-blocks' ); ?></a>
51
  </div>
52
  <div class="genesis-gs-resource">
53
+ <img src="<?php echo esc_url( $this->context['url'] . 'lib/Settings/assets/images/review.svg' ); ?>" alt="<?php esc_html_e( 'Leave a review', 'genesis-blocks' ); ?>" />
54
+ <h3><?php echo esc_html_e( 'Enjoying Genesis Blocks?', 'genesis-blocks' ); ?></h3>
55
+ <p><?php echo esc_html_e( 'Leave a review on WordPress.org and help the rest of the community discover the potential of the block editor.', 'genesis-blocks' ); ?></p>
56
+ <a href="http://wordpress.org/support/plugin/genesis-blocks/reviews/" class="components-button is-primary"><?php echo esc_html_e( 'Leave a Review', 'genesis-blocks' ); ?></a>
57
  </div>
58
  </div>
59
  </div>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: atomicblocks, arrayhq, johnstonphilip, marksabbath, mindctrl, drea
3
  Donate link: https://studiopress.com
4
  Tags: Blocks, editor, gutenberg, gutenberg blocks, page builder, block enabled, page building, block, WP Engine
5
  Requires at least: 5.3
6
- Tested up to: 5.5
7
- Stable tag: 1.2.0
8
  Requires PHP: 7.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -97,6 +97,12 @@ Yes, you will need to have WordPress 5.3 or later installed to take advantage of
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
 
100
  = 1.2.0 =
101
  * New: Introducing Collections, a curated suite of pattern designs to quickly build out beautiful pages and full websites.
102
  * Added support for migrating Genesis Blocks Pro users.
3
  Donate link: https://studiopress.com
4
  Tags: Blocks, editor, gutenberg, gutenberg blocks, page builder, block enabled, page building, block, WP Engine
5
  Requires at least: 5.3
6
+ Tested up to: 5.6
7
+ Stable tag: 1.2.1
8
  Requires PHP: 7.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
97
 
98
  == Changelog ==
99
 
100
+ = 1.2.1 =
101
+ * Fixed: The layouts block is no longer left over in the editor if the modal is closed by the user.
102
+ * Fixed: The layouts button in the Block Editor header toolbar uses a more reliable javascript event to ensure it is always visible.
103
+ * Fixed: The Post and Page Grid block now shows all pages selected, instead of cutting it off at the number of posts set to show.
104
+ * New: Added a "Leave a review" button to the settings page.
105
+
106
  = 1.2.0 =
107
  * New: Introducing Collections, a curated suite of pattern designs to quickly build out beautiful pages and full websites.
108
  * Added support for migrating Genesis Blocks Pro users.
src/blocks/block-layout/components/layout/layout-modal.js CHANGED
@@ -8,264 +8,251 @@ import LayoutLibrary from './layout-library';
8
  * WordPress dependencies.
9
  */
10
  const { __ } = wp.i18n;
11
- const { Component, Fragment } = wp.element;
12
  const { Button, Dashicon, Modal, TabPanel } = wp.components;
 
13
 
14
- class LayoutModal extends Component {
15
- constructor() {
16
- super( ...arguments );
 
17
 
18
- this.state = {
19
- currentTab: 'gb-layout-tab-sections',
20
- };
 
 
 
 
 
21
  }
22
-
23
- componentDidMount() {
24
- this.setState( { modalOpen: true } );
 
 
 
 
25
  }
26
- render() {
27
- const tabs = [];
28
-
29
- if ( this.props.context.sections.length > 0 ) {
30
- tabs.push( {
31
- name: 'gb-layout-tab-sections',
32
- title: __( 'Sections', 'genesis-blocks' ),
33
- className: 'gb-layout-tab-sections',
34
- } );
35
- }
36
-
37
- if ( this.props.context.layouts.length > 0 ) {
38
- tabs.push( {
39
- name: 'gb-layout-tab-layouts',
40
- title: __( 'Layouts', 'genesis-blocks' ),
41
- className: 'gb-layout-tab-layouts',
42
- } );
43
- }
44
 
45
- if ( Object.keys( this.props.context.collections ).length > 0 ) {
46
- tabs.push( {
47
- name: 'gb-layout-tab-collections',
48
- title: __( 'Collections', 'genesis-blocks' ),
49
- className: 'gb-layout-tab-collections',
50
- } );
51
- }
52
-
53
  tabs.push( {
54
- name: 'gb-layout-tab-favorites',
55
- title: __( 'Favorites', 'genesis-blocks' ),
56
- className: 'gb-layout-tab-favorites',
57
  } );
 
 
 
 
 
 
 
58
 
59
- if ( this.props.context.reusableBlocks.length ) {
60
- tabs.push( {
61
- name: 'gb-layout-tab-reusable-blocks',
62
- title: __( 'Reusable Blocks', 'genesis-blocks' ),
63
- className: 'gb-layout-tab-reusable-blocks',
64
- } );
65
- }
66
 
67
- return (
68
- <Fragment key={ 'layout-modal-fragment-' + this.props.clientId }>
69
- { /* Launch the layout modal window */ }
70
- <Button
71
- key={ 'layout-modal-library-button-' + this.props.clientId }
72
- isPrimary
73
- className="gb-layout-modal-button"
74
- onClick={ () =>
75
- this.setState( {
76
- modalOpen: true,
77
- } )
 
 
 
 
 
 
 
78
  }
 
 
 
 
 
 
 
79
  >
80
- { __( 'Layout Library', 'genesis-blocks' ) }
81
- </Button>
82
- { this.state.modalOpen ? (
83
- <Modal
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  key={
85
- 'layout-modal-modal-component-' +
86
- this.props.clientId
87
  }
88
- className="gb-layout-modal"
89
- title={ __( 'Layout Selector', 'genesis-blocks' ) }
90
- onRequestClose={ () =>
91
- this.setState( {
92
- modalOpen: false,
93
- currentTab: null,
94
- } )
95
  }
 
96
  >
97
- { genesis_blocks_globals.pro_activated && (
98
- <div className="gb-layout-modal-footer">
99
- <Dashicon icon={ 'editor-help' } />
100
- <a
101
- href={
102
- 'https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/'
103
- }
104
- target="_blank"
105
- rel="noopener noreferrer"
106
- >
107
- { __(
108
- 'Add Custom Layouts',
109
- 'genesis-blocks'
110
- ) }
111
- </a>
112
- <span>&middot;</span>
113
- <a
114
- href={
115
- 'https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/'
116
- }
117
- target="_blank"
118
- rel="noopener noreferrer"
119
- >
120
- { __( 'Reusable Blocks', 'genesis-blocks' ) }
121
- </a>
122
- <a
123
- href={
124
- 'https://www.research.net/r/XFQYFPP'
125
- }
126
- target="_blank"
127
- rel="noopener noreferrer"
128
- className="gb-pro-feedback"
129
- >
130
- <Dashicon icon={ 'admin-comments' } />{ ' ' }
131
- { __( 'Send Feedback', 'genesis-blocks' ) }
132
- </a>
133
- </div>
134
- ) }
135
- <TabPanel
136
- key={
137
- 'layout-modal-tabpanel-' + this.props.clientId
138
- }
139
- className="gb-layout-modal-panel"
140
- activeClass="gb-layout-modal-active-tab"
141
- onSelect={ ( tabName ) =>
142
- this.setState( {
143
- currentTab: tabName,
144
- } )
145
- }
146
- tabs={ tabs }
147
- >
148
- { ( tab ) => {
149
- const tabContent = __(
150
- 'Default tab content',
151
- 'genesis-blocks'
152
- );
153
 
154
- if ( tab.name ) {
155
- if (
156
- 'gb-layout-tab-sections' === tab.name
157
- ) {
158
- return [
159
- <LayoutLibrary
160
- key={
161
- 'layout-library-sections-' +
162
- this.props.clientId
163
- }
164
- clientId={ this.props.clientId }
165
- currentTab={
166
- this.state.currentTab
167
- }
168
- data={
169
- this.props.context.sections
170
- }
171
- context={ this.props.context }
172
- />,
173
- ];
174
- }
175
 
176
- if (
177
- 'gb-layout-tab-layouts' === tab.name
178
- ) {
179
- return [
180
- <LayoutLibrary
181
- key={
182
- 'layout-library-layouts-' +
183
- this.props.clientId
184
- }
185
- clientId={ this.props.clientId }
186
- currentTab={
187
- this.state.currentTab
188
- }
189
- data={
190
- this.props.context.layouts
191
- }
192
- context={ this.props.context }
193
- />,
194
- ];
195
- }
196
 
197
- if (
198
- 'gb-layout-tab-collections' === tab.name
199
- ) {
200
- return [
201
- <LayoutLibrary
202
- key={
203
- 'layout-library-collections-' +
204
- this.props.clientId
205
- }
206
- clientId={ this.props.clientId }
207
- currentTab={
208
- this.state.currentTab
209
- }
210
- data={
211
- this.props.context.collections
212
- }
213
- context={ this.props.context }
214
- />,
215
- ];
216
- }
217
 
218
- if (
219
- 'gb-layout-tab-favorites' === tab.name
220
- ) {
221
- return [
222
- <LayoutLibrary
223
- key={
224
- 'layout-library-favorites-' +
225
- this.props.clientId
226
- }
227
- clientId={ this.props.clientId }
228
- currentTab={
229
- this.state.currentTab
230
- }
231
- data={
232
- this.props.context.favorites
233
- }
234
- context={ this.props.context }
235
- />,
236
- ];
237
- }
238
 
239
- if (
240
- 'gb-layout-tab-reusable-blocks' ===
241
- tab.name
242
- ) {
243
- return [
244
- <LayoutLibrary
245
- key={
246
- 'layout-library-reusable-blocks-' +
247
- this.props.clientId
248
- }
249
- clientId={ this.props.clientId }
250
- currentTab={
251
- this.state.currentTab
252
- }
253
- data={
254
- this.props.context
255
- .reusableBlocks
256
- }
257
- context={ this.props.context }
258
- />,
259
- ];
260
- }
261
  }
262
- return <div>{ tabContent }</div>;
263
- } }
264
- </TabPanel>
265
- </Modal>
266
- ) : null }
267
- </Fragment>
268
- );
269
- }
270
  }
271
  export default LayoutModal;
8
  * WordPress dependencies.
9
  */
10
  const { __ } = wp.i18n;
11
+ const { Fragment, useState } = wp.element;
12
  const { Button, Dashicon, Modal, TabPanel } = wp.components;
13
+ const { useDispatch } = wp.data;
14
 
15
+ function LayoutModal(props) {
16
+ const [currentTab, setCurrentTab] = useState( 'gb-layout-tab-sections' );
17
+ const [modalOpen, setModalOpen] = useState( true );
18
+ const { removeBlock } = useDispatch( 'core/block-editor' );
19
 
20
+ const tabs = [];
21
+
22
+ if ( props.context.sections.length > 0 ) {
23
+ tabs.push( {
24
+ name: 'gb-layout-tab-sections',
25
+ title: __( 'Sections', 'genesis-blocks' ),
26
+ className: 'gb-layout-tab-sections',
27
+ } );
28
  }
29
+
30
+ if ( props.context.layouts.length > 0 ) {
31
+ tabs.push( {
32
+ name: 'gb-layout-tab-layouts',
33
+ title: __( 'Layouts', 'genesis-blocks' ),
34
+ className: 'gb-layout-tab-layouts',
35
+ } );
36
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
+ if ( Object.keys( props.context.collections ).length > 0 ) {
 
 
 
 
 
 
 
39
  tabs.push( {
40
+ name: 'gb-layout-tab-collections',
41
+ title: __( 'Collections', 'genesis-blocks' ),
42
+ className: 'gb-layout-tab-collections',
43
  } );
44
+ }
45
+
46
+ tabs.push( {
47
+ name: 'gb-layout-tab-favorites',
48
+ title: __( 'Favorites', 'genesis-blocks' ),
49
+ className: 'gb-layout-tab-favorites',
50
+ } );
51
 
52
+ if ( props.context.reusableBlocks.length ) {
53
+ tabs.push( {
54
+ name: 'gb-layout-tab-reusable-blocks',
55
+ title: __( 'Reusable Blocks', 'genesis-blocks' ),
56
+ className: 'gb-layout-tab-reusable-blocks',
57
+ } );
58
+ }
59
 
60
+ return (
61
+ <Fragment key={ 'layout-modal-fragment-' + props.clientId }>
62
+ { /* Launch the layout modal window */ }
63
+ <Button
64
+ key={ 'layout-modal-library-button-' + props.clientId }
65
+ isPrimary
66
+ className="gb-layout-modal-button"
67
+ onClick={ () => {
68
+ setModalOpen( true )
69
+ } }
70
+ >
71
+ { __( 'Layout Library', 'genesis-blocks' ) }
72
+ </Button>
73
+ { modalOpen ? (
74
+ <Modal
75
+ key={
76
+ 'layout-modal-modal-component-' +
77
+ props.clientId
78
  }
79
+ className="gb-layout-modal"
80
+ title={ __( 'Layout Selector', 'genesis-blocks' ) }
81
+ onRequestClose={ () => {
82
+ setModalOpen( false );
83
+ setCurrentTab( null );
84
+ removeBlock( props.clientId );
85
+ } }
86
  >
87
+ { genesis_blocks_globals.pro_activated && (
88
+ <div className="gb-layout-modal-footer">
89
+ <Dashicon icon={ 'editor-help' } />
90
+ <a
91
+ href={
92
+ 'https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/'
93
+ }
94
+ target="_blank"
95
+ rel="noopener noreferrer"
96
+ >
97
+ { __(
98
+ 'Add Custom Layouts',
99
+ 'genesis-blocks'
100
+ ) }
101
+ </a>
102
+ <span>&middot;</span>
103
+ <a
104
+ href={
105
+ 'https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/'
106
+ }
107
+ target="_blank"
108
+ rel="noopener noreferrer"
109
+ >
110
+ { __( 'Reusable Blocks', 'genesis-blocks' ) }
111
+ </a>
112
+ <a
113
+ href={
114
+ 'https://www.research.net/r/XFQYFPP'
115
+ }
116
+ target="_blank"
117
+ rel="noopener noreferrer"
118
+ className="gb-pro-feedback"
119
+ >
120
+ <Dashicon icon={ 'admin-comments' } />{ ' ' }
121
+ { __( 'Send Feedback', 'genesis-blocks' ) }
122
+ </a>
123
+ </div>
124
+ ) }
125
+ <TabPanel
126
  key={
127
+ 'layout-modal-tabpanel-' + props.clientId
 
128
  }
129
+ className="gb-layout-modal-panel"
130
+ activeClass="gb-layout-modal-active-tab"
131
+ onSelect={ ( tabName ) =>
132
+ setCurrentTab( tabName )
 
 
 
133
  }
134
+ tabs={ tabs }
135
  >
136
+ { ( tab ) => {
137
+ const tabContent = __(
138
+ 'Default tab content',
139
+ 'genesis-blocks'
140
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
 
142
+ if ( tab.name ) {
143
+ if (
144
+ 'gb-layout-tab-sections' === tab.name
145
+ ) {
146
+ return [
147
+ <LayoutLibrary
148
+ key={
149
+ 'layout-library-sections-' +
150
+ props.clientId
151
+ }
152
+ clientId={ props.clientId }
153
+ currentTab={
154
+ currentTab
155
+ }
156
+ data={
157
+ props.context.sections
158
+ }
159
+ context={ props.context }
160
+ />,
161
+ ];
162
+ }
163
 
164
+ if (
165
+ 'gb-layout-tab-layouts' === tab.name
166
+ ) {
167
+ return [
168
+ <LayoutLibrary
169
+ key={
170
+ 'layout-library-layouts-' +
171
+ props.clientId
172
+ }
173
+ clientId={ props.clientId }
174
+ currentTab={
175
+ currentTab
176
+ }
177
+ data={
178
+ props.context.layouts
179
+ }
180
+ context={ props.context }
181
+ />,
182
+ ];
183
+ }
184
 
185
+ if (
186
+ 'gb-layout-tab-collections' === tab.name
187
+ ) {
188
+ return [
189
+ <LayoutLibrary
190
+ key={
191
+ 'layout-library-collections-' +
192
+ props.clientId
193
+ }
194
+ clientId={ props.clientId }
195
+ currentTab={
196
+ currentTab
197
+ }
198
+ data={
199
+ props.context.collections
200
+ }
201
+ context={ props.context }
202
+ />,
203
+ ];
204
+ }
205
 
206
+ if (
207
+ 'gb-layout-tab-favorites' === tab.name
208
+ ) {
209
+ return [
210
+ <LayoutLibrary
211
+ key={
212
+ 'layout-library-favorites-' +
213
+ props.clientId
214
+ }
215
+ clientId={ props.clientId }
216
+ currentTab={
217
+ currentTab
218
+ }
219
+ data={
220
+ props.context.favorites
221
+ }
222
+ context={ props.context }
223
+ />,
224
+ ];
225
+ }
226
 
227
+ if (
228
+ 'gb-layout-tab-reusable-blocks' ===
229
+ tab.name
230
+ ) {
231
+ return [
232
+ <LayoutLibrary
233
+ key={
234
+ 'layout-library-reusable-blocks-' +
235
+ props.clientId
236
+ }
237
+ clientId={ props.clientId }
238
+ currentTab={
239
+ currentTab
240
+ }
241
+ data={
242
+ props.context
243
+ .reusableBlocks
244
+ }
245
+ context={ props.context }
246
+ />,
247
+ ];
 
248
  }
249
+ }
250
+ return <div>{ tabContent }</div>;
251
+ } }
252
+ </TabPanel>
253
+ </Modal>
254
+ ) : null }
255
+ </Fragment>
256
+ )
257
  }
258
  export default LayoutModal;
src/blocks/block-layout/index.js CHANGED
@@ -51,13 +51,19 @@ registerBlockType( 'genesis-blocks/gb-layouts', {
51
  /**
52
  * Add a Layout button to the toolbar.
53
  */
54
- document.addEventListener( 'DOMContentLoaded', appendImportButton );
 
 
 
55
 
56
  /**
57
  * Build the layout inserter button.
58
  */
59
  function appendImportButton() {
60
- const toolbar = document.querySelector( '.edit-post-header-toolbar' );
 
 
 
61
  if ( ! toolbar ) {
62
  return;
63
  }
@@ -76,6 +82,8 @@ function appendImportButton() {
76
  document
77
  .getElementById( 'gbLayoutInsertButton' )
78
  .addEventListener( 'click', gbInsertLayout );
 
 
79
  }
80
 
81
  /**
51
  /**
52
  * Add a Layout button to the toolbar.
53
  */
54
+ let genesisBlocksLayoutButtonAdded = false;
55
+ wp.data.subscribe( () => {
56
+ appendImportButton();
57
+ });
58
 
59
  /**
60
  * Build the layout inserter button.
61
  */
62
  function appendImportButton() {
63
+ if ( genesisBlocksLayoutButtonAdded ) {
64
+ return;
65
+ }
66
+ const toolbar = document.querySelector( '.edit-post-header__toolbar' );
67
  if ( ! toolbar ) {
68
  return;
69
  }
82
  document
83
  .getElementById( 'gbLayoutInsertButton' )
84
  .addEventListener( 'click', gbInsertLayout );
85
+
86
+ genesisBlocksLayoutButtonAdded = true;
87
  }
88
 
89
  /**
src/blocks/block-post-grid/components/inspector.js CHANGED
@@ -54,6 +54,13 @@ export default class Inspector extends Component {
54
  this.setState( { categoriesList: [] } );
55
  }
56
  } );
 
 
 
 
 
 
 
57
  }
58
 
59
  componentWillUnmount() {
@@ -190,11 +197,12 @@ export default class Inspector extends Component {
190
  <Select
191
  options={ pageOptions }
192
  value={ attributes.selectedPages }
193
- onChange={ ( value ) =>
194
  this.props.setAttributes( {
195
  selectedPages: value,
196
- } )
197
- }
 
198
  isMulti={ true }
199
  closeMenuOnSelect={ false }
200
  />
54
  this.setState( { categoriesList: [] } );
55
  }
56
  } );
57
+
58
+ // If we are showing pages, and the posts_per_page value is different than the number of pages chosen, set it to match.
59
+ if ( this.props.attributes.postType === 'page' && this.props.attributes.selectedPages.length !== this.props.attributes.selectedPages.postsToShow ) {
60
+ this.props.setAttributes( {
61
+ postsToShow: this.props.attributes.selectedPages.length
62
+ } );
63
+ }
64
  }
65
 
66
  componentWillUnmount() {
197
  <Select
198
  options={ pageOptions }
199
  value={ attributes.selectedPages }
200
+ onChange={ ( value ) => {
201
  this.props.setAttributes( {
202
  selectedPages: value,
203
+ postsToShow: value.length
204
+ } );
205
+ }}
206
  isMulti={ true }
207
  closeMenuOnSelect={ false }
208
  />
src/blocks/block-post-grid/index.php CHANGED
@@ -36,6 +36,10 @@ function genesis_blocks_render_block_core_latest_posts( $attributes ) {
36
  'post__in' => $page_selection,
37
  'post_type' => 'page',
38
  );
 
 
 
 
39
  } else {
40
  /* Post query args */
41
  $args = array(
36
  'post__in' => $page_selection,
37
  'post_type' => 'page',
38
  );
39
+
40
+ if ( ! empty( $page_selection ) ) {
41
+ $args['posts_per_page'] = count( $page_selection );
42
+ }
43
  } else {
44
  /* Post query args */
45
  $args = array(
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit00d4b871e65d75248cd37b2c274ce389::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit0a3a3e3a3ae14e5fade03169ab76802c::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit00d4b871e65d75248cd37b2c274ce389
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit00d4b871e65d75248cd37b2c274ce389
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit00d4b871e65d75248cd37b2c274ce389', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit00d4b871e65d75248cd37b2c274ce389', '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\ComposerStaticInit00d4b871e65d75248cd37b2c274ce389::getInitializer($loader));
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 ComposerAutoloaderInit0a3a3e3a3ae14e5fade03169ab76802c
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit0a3a3e3a3ae14e5fade03169ab76802c', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit0a3a3e3a3ae14e5fade03169ab76802c', '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\ComposerStaticInit0a3a3e3a3ae14e5fade03169ab76802c::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 ComposerStaticInit00d4b871e65d75248cd37b2c274ce389
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'G' =>
@@ -47,9 +47,9 @@ class ComposerStaticInit00d4b871e65d75248cd37b2c274ce389
47
  public static function getInitializer(ClassLoader $loader)
48
  {
49
  return \Closure::bind(function () use ($loader) {
50
- $loader->prefixLengthsPsr4 = ComposerStaticInit00d4b871e65d75248cd37b2c274ce389::$prefixLengthsPsr4;
51
- $loader->prefixDirsPsr4 = ComposerStaticInit00d4b871e65d75248cd37b2c274ce389::$prefixDirsPsr4;
52
- $loader->classMap = ComposerStaticInit00d4b871e65d75248cd37b2c274ce389::$classMap;
53
 
54
  }, null, ClassLoader::class);
55
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit0a3a3e3a3ae14e5fade03169ab76802c
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 = ComposerStaticInit0a3a3e3a3ae14e5fade03169ab76802c::$prefixLengthsPsr4;
51
+ $loader->prefixDirsPsr4 = ComposerStaticInit0a3a3e3a3ae14e5fade03169ab76802c::$prefixDirsPsr4;
52
+ $loader->classMap = ComposerStaticInit0a3a3e3a3ae14e5fade03169ab76802c::$classMap;
53
 
54
  }, null, ClassLoader::class);
55
  }