Version Description
- Added: New Getting Started pages to assist with onboarding.
- Added: Optional analytics tracking for responsive styles and layout modal.
- Changed: Collections Tab is now the first tab in the layout modal for Sections and Layouts.
Download this release
Release Info
Developer | studiopress |
Plugin | Genesis Blocks |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.4.0
- .eslintrc +2 -1
- .stylelintrc +2 -1
- dist/blocks.build.js +1 -1
- genesis-blocks.php +1 -1
- includes/load-scripts.php +20 -0
- languages/genesis-blocks.pot +511 -138
- lib/Analytics/AdminPage.php +128 -0
- lib/Analytics/AssetManager.php +102 -0
- lib/Analytics/Module.php +56 -0
- lib/Analytics/js/gaClient.js +143 -0
- lib/Migration/Admin.php +20 -9
- lib/Migration/assets/css/admin.css +166 -269
- lib/Migration/js/build/migration.asset.php +1 -1
- lib/Migration/js/build/migration.js +1 -1
- lib/Migration/js/src/components/app.js +1 -1
- lib/Migration/js/src/components/button-next.js +2 -2
- lib/Migration/js/src/components/button-previous.js +1 -1
- lib/Migration/js/src/components/intro.js +4 -11
- lib/Migration/js/src/components/steps/migrate-blocks.js +4 -4
- lib/Migration/js/src/components/substep-list.js +1 -1
- lib/Settings/AdminPage.php +60 -55
- lib/Settings/Tests/AdminPageTest.php +67 -5
- lib/Settings/assets/css/admin.css +1621 -357
- lib/Settings/assets/images/blocks.svg +1 -0
- lib/Settings/assets/images/content.svg +1 -0
- lib/Settings/assets/images/controls.svg +1 -0
- lib/Settings/assets/images/cta.svg +1 -0
- lib/Settings/assets/images/design.svg +1 -0
- lib/Settings/assets/images/desktop.svg +1 -0
- lib/Settings/assets/images/gb-layout-button.jpg +0 -0
- lib/Settings/assets/images/genesis-planet-icon-dark.svg +1 -0
- lib/Settings/assets/images/layout.svg +1 -0
- lib/Settings/assets/images/permissions.svg +1 -0
- lib/Settings/assets/images/reusable.svg +1 -0
- lib/Settings/assets/images/step-1.svg +1 -0
- lib/Settings/assets/images/step-2.svg +1 -0
- lib/Settings/assets/images/step-3.svg +1 -0
- lib/Settings/assets/images/step-4.svg +1 -0
- lib/Settings/assets/images/support.svg +1 -0
- lib/Settings/js/build/app.asset.php +1 -1
- lib/Settings/js/build/app.js +11 -11
- lib/Settings/js/src/components/fields/checkbox.js +1 -0
- lib/Settings/js/src/components/fields/radio.js +1 -0
- lib/Settings/js/src/components/fields/select.js +2 -0
- lib/Settings/js/src/components/fields/text.js +1 -0
- lib/Settings/js/src/components/fields/textarea.js +1 -0
- lib/Settings/js/src/components/save-button.js +5 -0
- lib/Settings/js/src/components/settings.js +38 -16
- lib/Settings/views/admin/app.php +12 -10
- lib/Settings/views/admin/getting-started.php +103 -43
- lib/Settings/views/admin/tabs/genesis-101.php +275 -0
- lib/Settings/views/admin/tabs/genesis-collections.php +117 -0
- lib/Settings/views/admin/tabs/genesis-pro.php +67 -0
- readme.txt +7 -2
- src/blocks/block-layout/components/layout/collections/data/useCollectionsVisualState.js +0 -3
- src/blocks/block-layout/components/layout/collections/views/CollectionCard.js +5 -1
- src/blocks/block-layout/components/layout/collections/views/Collections.js +23 -6
- src/blocks/block-layout/components/layout/layout-library-item-card.js +4 -0
- src/blocks/block-layout/components/layout/layout-library.js +15 -4
- src/blocks/block-layout/components/layout/layout-modal.js +17 -12
- src/blocks/block-layout/components/layouts-provider.js +4 -0
- src/blocks/block-layout/index.js +1 -0
- src/blocks/block-newsletter/index.php +13 -0
- src/blocks/responsive-settings/components/with-responsive-settings.js +12 -0
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +3 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +7 -4
.eslintrc
CHANGED
@@ -16,6 +16,7 @@
|
|
16 |
"jsx-a11y/interactive-supports-focus": "off",
|
17 |
"no-unused-expressions": "off",
|
18 |
"no-var": "off",
|
19 |
-
"no-duplicate-imports": "off"
|
|
|
20 |
}
|
21 |
}
|
16 |
"jsx-a11y/interactive-supports-focus": "off",
|
17 |
"no-unused-expressions": "off",
|
18 |
"no-var": "off",
|
19 |
+
"no-duplicate-imports": "off",
|
20 |
+
"jsdoc/check-tag-names": "off"
|
21 |
}
|
22 |
}
|
.stylelintrc
CHANGED
@@ -7,6 +7,7 @@
|
|
7 |
"font-weight-notation": null,
|
8 |
"declaration-property-unit-whitelist": null,
|
9 |
"scss/selector-no-redundant-nesting-selector": null,
|
10 |
-
"function-url-quotes": null
|
|
|
11 |
}
|
12 |
}
|
7 |
"font-weight-notation": null,
|
8 |
"declaration-property-unit-whitelist": null,
|
9 |
"scss/selector-no-redundant-nesting-selector": null,
|
10 |
+
"function-url-quotes": null,
|
11 |
+
"selector-type-no-unknown": [true, { "ignoreTypes": ["/^checked/"] }]
|
12 |
}
|
13 |
}
|
dist/blocks.build.js
CHANGED
@@ -289,4 +289,4 @@ e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeo
|
|
289 |
object-assign
|
290 |
(c) Sindre Sorhus
|
291 |
@license MIT
|
292 |
-
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=i(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-in":77,"./en-in.js":77,"./en-nz":78,"./en-nz.js":78,"./en-sg":79,"./en-sg.js":79,"./eo":80,"./eo.js":80,"./es":81,"./es-do":82,"./es-do.js":82,"./es-us":83,"./es-us.js":83,"./es.js":81,"./et":84,"./et.js":84,"./eu":85,"./eu.js":85,"./fa":86,"./fa.js":86,"./fi":87,"./fi.js":87,"./fil":88,"./fil.js":88,"./fo":89,"./fo.js":89,"./fr":90,"./fr-ca":91,"./fr-ca.js":91,"./fr-ch":92,"./fr-ch.js":92,"./fr.js":90,"./fy":93,"./fy.js":93,"./ga":94,"./ga.js":94,"./gd":95,"./gd.js":95,"./gl":96,"./gl.js":96,"./gom-deva":97,"./gom-deva.js":97,"./gom-latn":98,"./gom-latn.js":98,"./gu":99,"./gu.js":99,"./he":100,"./he.js":100,"./hi":101,"./hi.js":101,"./hr":102,"./hr.js":102,"./hu":103,"./hu.js":103,"./hy-am":104,"./hy-am.js":104,"./id":105,"./id.js":105,"./is":106,"./is.js":106,"./it":107,"./it-ch":108,"./it-ch.js":108,"./it.js":107,"./ja":109,"./ja.js":109,"./jv":110,"./jv.js":110,"./ka":111,"./ka.js":111,"./kk":112,"./kk.js":112,"./km":113,"./km.js":113,"./kn":114,"./kn.js":114,"./ko":115,"./ko.js":115,"./ku":116,"./ku.js":116,"./ky":117,"./ky.js":117,"./lb":118,"./lb.js":118,"./lo":119,"./lo.js":119,"./lt":120,"./lt.js":120,"./lv":121,"./lv.js":121,"./me":122,"./me.js":122,"./mi":123,"./mi.js":123,"./mk":124,"./mk.js":124,"./ml":125,"./ml.js":125,"./mn":126,"./mn.js":126,"./mr":127,"./mr.js":127,"./ms":128,"./ms-my":129,"./ms-my.js":129,"./ms.js":128,"./mt":130,"./mt.js":130,"./my":131,"./my.js":131,"./nb":132,"./nb.js":132,"./ne":133,"./ne.js":133,"./nl":134,"./nl-be":135,"./nl-be.js":135,"./nl.js":134,"./nn":136,"./nn.js":136,"./oc-lnc":137,"./oc-lnc.js":137,"./pa-in":138,"./pa-in.js":138,"./pl":139,"./pl.js":139,"./pt":140,"./pt-br":141,"./pt-br.js":141,"./pt.js":140,"./ro":142,"./ro.js":142,"./ru":143,"./ru.js":143,"./sd":144,"./sd.js":144,"./se":145,"./se.js":145,"./si":146,"./si.js":146,"./sk":147,"./sk.js":147,"./sl":148,"./sl.js":148,"./sq":149,"./sq.js":149,"./sr":150,"./sr-cyrl":151,"./sr-cyrl.js":151,"./sr.js":150,"./ss":152,"./ss.js":152,"./sv":153,"./sv.js":153,"./sw":154,"./sw.js":154,"./ta":155,"./ta.js":155,"./te":156,"./te.js":156,"./tet":157,"./tet.js":157,"./tg":158,"./tg.js":158,"./th":159,"./th.js":159,"./tl-ph":160,"./tl-ph.js":160,"./tlh":161,"./tlh.js":161,"./tr":162,"./tr.js":162,"./tzl":163,"./tzl.js":163,"./tzm":164,"./tzm-latn":165,"./tzm-latn.js":165,"./tzm.js":164,"./ug-cn":166,"./ug-cn.js":166,"./uk":167,"./uk.js":167,"./ur":168,"./ur.js":168,"./uz":169,"./uz-latn":170,"./uz-latn.js":170,"./uz.js":169,"./vi":171,"./vi.js":171,"./x-pseudo":172,"./x-pseudo.js":172,"./yo":173,"./yo.js":173,"./zh-cn":174,"./zh-cn.js":174,"./zh-hk":175,"./zh-hk.js":175,"./zh-mo":176,"./zh-mo.js":176,"./zh-tw":177,"./zh-tw.js":177};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=206},function(e,t,n){var r=n(208),a=n(272),o=n(195),i=n(13),s=n(281);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?a(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(209),a=n(271),o=n(192);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(179),a=n(184);e.exports=function(e,t,n,o){var i=n.length,s=i,l=!o;if(null==e)return!s;for(e=Object(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],d=e[u],m=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(o)var _=o(d,m,u,e,t,p);if(!(void 0===_?a(m,d,3,o,p):_))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(22),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(22);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(22);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(22);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},function(e,t,n){var r=n(21);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(21),a=n(36),o=n(37);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(181),a=n(224),o=n(24),i=n(183),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(r(e)?m:s).test(i(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(23),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,a=n(225),o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(12)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(228),a=n(21),o=n(36);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}},function(e,t,n){var r=n(229),a=n(230),o=n(231),i=n(232),s=n(233);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(25);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(25),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(25),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},function(e,t,n){var r=n(25);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(26);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(26);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(26);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(26);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},function(e,t,n){var r=n(179),a=n(185),o=n(245),i=n(249),s=n(266),l=n(13),c=n(188),u=n(190),d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,_,h){var g=l(e),f=l(t),b=g?"[object Array]":s(e),y=f?"[object Array]":s(t),k=(b="[object Arguments]"==b?d:b)==d,M=(y="[object Arguments]"==y?d:y)==d,v=b==y;if(v&&c(e)){if(!c(t))return!1;g=!0,k=!1}if(v&&!k)return h||(h=new r),g||u(e)?a(e,t,n,p,_,h):o(e,t,b,n,p,_,h);if(!(1&n)){var L=k&&m.call(e,"__wrapped__"),w=M&&m.call(t,"__wrapped__");if(L||w){var Y=L?e.value():e,T=w?t.value():t;return h||(h=new r),_(Y,T,n,p,h)}}return!!v&&(h||(h=new r),i(e,t,n,p,_,h))}},function(e,t,n){var r=n(37),a=n(241),o=n(242);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=a,i.prototype.has=o,e.exports=i},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(23),a=n(246),o=n(180),i=n(185),s=n(247),l=n(248),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,m){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var _=1&r;if(p||(p=l),e.size!=t.size&&!_)return!1;var h=m.get(e);if(h)return h==t;r|=2,m.set(e,t);var g=i(p(e),p(t),r,c,d,m);return m.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,n){var r=n(12).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(250),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,i,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var m=c[d];if(!(l?m in t:a.call(t,m)))return!1}var p=s.get(e),_=s.get(t);if(p&&_)return p==t&&_==e;var h=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var f=e[m=c[d]],b=t[m];if(o)var y=l?o(b,f,m,t,e,s):o(f,b,m,e,t,s);if(!(void 0===y?f===b||i(f,b,n,o,s):y)){h=!1;break}g||(g="constructor"==m)}if(h&&!g){var k=e.constructor,M=t.constructor;k==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof M&&M instanceof M||(h=!1)}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(251),a=n(253),o=n(38);e.exports=function(e){return r(e,o,a)}},function(e,t,n){var r=n(252),a=n(13);e.exports=function(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},function(e,t,n){var r=n(254),a=n(255),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return o.call(e,t)})))}:a;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(186),a=n(187),o=n(13),i=n(188),s=n(189),l=n(190),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&a(e),d=!n&&!u&&i(e),m=!n&&!u&&!d&&l(e),p=n||u||d||m,_=p?r(e.length,String):[],h=_.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||m&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||_.push(g);return _}},function(e,t,n){var r=n(19),a=n(20);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(19),a=n(39),o=n(20),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(182),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(35)(e))},function(e,t,n){var r=n(263),a=n(264),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(265)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(267),a=n(36),o=n(268),i=n(269),s=n(270),l=n(19),c=n(183),u=c(r),d=c(a),m=c(o),p=c(i),_=c(s),h=l;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||a&&"[object Map]"!=h(new a)||o&&"[object Promise]"!=h(o.resolve())||i&&"[object Set]"!=h(new i)||s&&"[object WeakMap]"!=h(new s))&&(h=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case m:return"[object Promise]";case p:return"[object Set]";case _:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,n){var r=n(17)(n(12),"DataView");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Promise");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Set");e.exports=r},function(e,t,n){var r=n(17)(n(12),"WeakMap");e.exports=r},function(e,t,n){var r=n(191),a=n(38);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var o=t[n],i=e[o];t[n]=[o,i,r(i)]}return t}},function(e,t,n){var r=n(184),a=n(29),o=n(278),i=n(41),s=n(191),l=n(192),c=n(28);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(n){var i=a(n,e);return void 0===i&&i===t?o(n,e):r(t,i,3)}}},function(e,t,n){var r=n(274),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)})),t}));e.exports=i},function(e,t,n){var r=n(275);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(37);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},function(e,t,n){var r=n(277);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(23),a=n(178),o=n(13),i=n(27),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(279),a=n(280);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(194),a=n(187),o=n(13),i=n(189),s=n(39),l=n(28);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var m=l(t[c]);if(!(d=null!=e&&n(e,m)))break;e=e[m]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(m,u)&&(o(e)||a(e))}},function(e,t,n){var r=n(282),a=n(283),o=n(41),i=n(28);e.exports=function(e){return o(e)?r(i(e)):a(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(193);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(285),a=n(40);e.exports=function(e,t){var n=-1,o=a(e)?Array(e.length):[];return r(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}},function(e,t,n){var r=n(286),a=n(289)(r);e.exports=a},function(e,t,n){var r=n(287),a=n(38);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t,n){var r=n(288)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,o=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++a];if(!1===n(o[l],l,o))break}return t}}},function(e,t,n){var r=n(40);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var o=n.length,i=t?o:-1,s=Object(n);(t?i--:++i<o)&&!1!==a(s[i],i,s););return n}}},function(e,t,n){var r=n(195);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(292);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(293);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(294),a=n(24),o=n(27),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(295),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(45);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var a=t&&t.prototype instanceof u?t:u,o=Object.create(a.prototype),i=new v(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return w()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=y(i,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,i),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c={};function u(){}function d(){}function m(){}var p={};p[a]=function(){return this};var _=Object.getPrototypeOf,h=_&&_(_(L([])));h&&h!==t&&n.call(h,a)&&(p=h);var g=m.prototype=u.prototype=Object.create(p);function f(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var r;this._invoke=function(a,o){function i(){return new t((function(r,i){!function r(a,o,i,s){var c=l(e[a],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:w}}function w(){return{value:void 0,done:!0}}return d.prototype=g.constructor=m,m.constructor=d,m[i]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},f(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new b(s(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},f(g),g[i]="Generator",g[a]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=L,v.prototype={constructor:v,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;M(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.r(t);var r=n(9),a=n.n(r),o=n(7),i=n.n(o),s=n(1),l=n.n(s),c=n(2),u=n.n(c),d=n(3),m=n.n(d),p=n(4),_=n.n(p),h=n(0),g=n.n(h),f=n(5),b=n.n(f);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var k=wp.element.Component,M=wp.hooks.applyFilters,v=function(e){m()(n,e);var t=y(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){if(void 0===this.props.children)return null;var e=!1;if(void 0!==this.props.children.props&&void 0!==this.props.children.props.name||(e=!0),e&&(void 0===this.props.children._owner||void 0===this.props.children._owner.memoizedProps||void 0===this.props.children._owner.memoizedProps.name))return this.props.children;var t=e?this.props.children._owner.memoizedProps.name:this.props.children.props.name;return M("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}]),n}(k);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var w=wp.i18n.__,Y=wp.element.Component,T=wp.blockEditor,D=T.InspectorControls,R=T.PanelColorSettings,S=wp.components,x=S.PanelBody,E=S.RangeControl,C=S.SelectControl,j=function(e){m()(n,e);var t=L(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:"left-aligned",label:w("Left Aligned","genesis-blocks")},{value:"right-aligned",label:w("Right Aligned","genesis-blocks")}],n=this.props,r=n.attributes,a=r.testimonialBackgroundColor,o=r.testimonialTextColor,i=r.testimonialFontSize,s=r.testimonialCiteAlign,l=n.setAttributes;return React.createElement(D,{key:"inspector"},React.createElement(x,null,React.createElement(v,{id:"gb_testimonial_testimonialFontSize"},React.createElement(E,{label:w("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({testimonialFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(C,{label:w("Cite Alignment","genesis-blocks"),description:w("Left or right align the cite name and title.","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({testimonialCiteAlign:t})}}))),React.createElement(v,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(R,{title:w("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({testimonialBackgroundColor:e})},label:w("Background Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_testimonial_testimonialTextColor"},React.createElement(R,{title:w("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({testimonialTextColor:e})},label:w("Text Color","genesis-blocks")}]})))}}]),n}(Y);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var H=function(e){m()(n,e);var t=P(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialImgURL,n=e.testimonialBackgroundColor,r=e.testimonialTextColor,a=e.testimonialFontSize,o=e.testimonialCiteAlign;return React.createElement("div",{style:{backgroundColor:n||"#f2f2f2",color:r||"#32373c"},className:b()(this.props.className,o,{"gb-has-avatar":t},"gb-font-size-"+a,"gb-block-testimonial")},this.props.children)}}]),n}(wp.element.Component),O={};O.upload=React.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));var z=O;function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var F=wp.i18n.__,W=wp.element,I=W.Component,U=W.Fragment,V=wp.blockEditor,J=V.RichText,G=V.AlignmentToolbar,q=V.BlockControls,$=V.MediaUpload,K=wp.components,Z=K.Button,Q=K.Dashicon,X=["image"],ee=function(e){m()(n,e);var t=N(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.testimonialName,o=n.testimonialTitle,i=n.testimonialContent,s=n.testimonialAlignment,l=n.testimonialImgURL,c=n.testimonialImgID,u=n.testimonialImgAlt,d=n.testimonialTextColor,m=t.setAttributes,p=function(){m({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(q,{key:"controls"},React.createElement(G,{value:s,onChange:function(e){return m({testimonialAlignment:e})}})),React.createElement(j,a()({key:"gb-testimonial-inspector-"+this.props.clientId},B({setAttributes:m},this.props))),React.createElement(H,a()({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(J,{tagName:"div",multiline:"p",placeholder:F("Add testimonial text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-testimonial-text"),style:{textAlign:s},onChange:function(e){return m({testimonialContent:e})}}),React.createElement("div",{className:"gb-testimonial-info"},React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement($,{buttonProps:{className:"change-image"},onSelect:function(e){return m({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt})},allowed:X,type:"image",value:c,render:function(e){var t=e.open;return React.createElement(U,null,React.createElement(Z,{className:c?"gb-change-image":"gb-add-image",onClick:t},c?React.createElement("img",{className:"gb-testimonial-avatar",src:l,alt:u||null}):z.upload),c&&React.createElement(Z,{className:"gb-remove-image",onClick:p},React.createElement(Q,{icon:"dismiss"})))}}))),React.createElement(J,{tagName:"h2",placeholder:F("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-testimonial-name",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialName:t})}}),React.createElement(J,{tagName:"small",placeholder:F("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,className:"gb-testimonial-title",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialTitle:t})}})))]}}]),n}(I);function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ne=wp.element.Component,re=wp.blockEditor.RichText,ae=function(e){m()(n,e);var t=te(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialName,n=e.testimonialTitle,r=e.testimonialContent,a=e.testimonialAlignment,o=e.testimonialImgURL,i=e.testimonialImgAlt,s=e.testimonialTextColor;return React.createElement(H,this.props,React.createElement(re.Content,{tagName:"div",className:"gb-testimonial-text",style:{textAlign:a},value:r}),React.createElement("div",{className:"gb-testimonial-info"},o&&React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement("img",{className:"gb-testimonial-avatar",src:o,alt:i||null}))),t&&React.createElement(re.Content,{tagName:"h2",className:"gb-testimonial-name",style:{color:s||"#32373c"},value:t}),n&&React.createElement(re.Content,{tagName:"small",className:"gb-testimonial-title",style:{color:s||"#32373c"},value:n})))}}]),n}(ne),oe=(n(328),n(330),wp.i18n.__);function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-testimonial",{title:oe("Testimonial","genesis-blocks"),description:oe("Add a user testimonial with a name and title.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[oe("testimonial","genesis-blocks"),oe("quote","genesis-blocks"),oe("atomic","genesis-blocks")],attributes:{testimonialName:{type:"array",selector:".gb-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".gb-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".gb-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},gb_settings_data:{gb_testimonial_testimonialFontSize:{title:oe("Font Size","genesis-blocks")},gb_testimonial_testimonialCiteAlign:{title:oe("Cite Alignment","genesis-blocks")},gb_testimonial_testimonialBackgroundColor:{title:oe("Background Color","genesis-blocks")},gb_testimonial_testimonialTextColor:{title:oe("Text Color","genesis-blocks")}},edit:function(e){return React.createElement(ee,e)},save:function(e){return React.createElement(ae,e)}});var se=wp.i18n.__,le=wp.element.Component,ce=wp.blockEditor,ue=ce.InspectorControls,de=ce.PanelColorSettings,me=wp.components,pe=me.PanelBody,_e=me.RangeControl,he=me.SelectControl,ge=me.TextControl,fe=function(e){m()(n,e);var t=ie(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.profileFontSize,r=t.profileBackgroundColor,a=t.profileTextColor,o=t.profileLinkColor,i=t.twitter,s=t.facebook,l=t.instagram,c=t.pinterest,u=t.google,d=t.youtube,m=t.github,p=t.linkedin,_=t.wordpress,h=t.email,g=t.website,f=t.profileAvatarShape,b=this.props.setAttributes,y=[{value:"square",label:se("Square","genesis-blocks")},{value:"round",label:se("Round","genesis-blocks")}];return React.createElement(ue,{key:"inspector"},React.createElement(pe,null,React.createElement(v,{id:"gb_author_profile_profileFontSize"},React.createElement(_e,{label:se("Font Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_author_profile_profileAvatarShape"},React.createElement(he,{label:se("Avatar Shape","genesis-blocks"),description:se("Choose between a round or square avatar shape.","genesis-blocks"),options:y,value:f,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),React.createElement(v,{id:"gb_author_profile_profileBackgroundColor"},React.createElement(de,{title:se("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return b({profileBackgroundColor:e})},label:se("Background Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_author_profile_profileTextColor"},React.createElement(de,{title:se("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return b({profileTextColor:e})},label:se("Text Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_author_profile_profileLinkColor"},React.createElement(de,{title:se("Social Link Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return b({profileLinkColor:e})},label:se("Social Link Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_author_profile_socialLinks"},React.createElement(pe,{title:se("Social Links","genesis-blocks"),initialOpen:!1},React.createElement("p",null,se("Add links to your social media site and they will appear in the bottom of the profile box.","genesis-blocks")),React.createElement(ge,{label:se("Twitter URL","genesis-blocks"),type:"url",value:i,onChange:function(t){return e.props.setAttributes({twitter:t})}}),React.createElement(ge,{label:se("Facebook URL","genesis-blocks"),type:"url",value:s,onChange:function(t){return e.props.setAttributes({facebook:t})}}),React.createElement(ge,{label:se("Instagram URL","genesis-blocks"),type:"url",value:l,onChange:function(t){return e.props.setAttributes({instagram:t})}}),React.createElement(ge,{label:se("Pinterest URL","genesis-blocks"),type:"url",value:c,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),React.createElement(ge,{label:se("Google URL","genesis-blocks"),type:"url",value:u,onChange:function(t){return e.props.setAttributes({google:t})}}),React.createElement(ge,{label:se("YouTube URL","genesis-blocks"),type:"url",value:d,onChange:function(t){return e.props.setAttributes({youtube:t})}}),React.createElement(ge,{label:se("Github URL","genesis-blocks"),type:"url",value:m,onChange:function(t){return e.props.setAttributes({github:t})}}),React.createElement(ge,{label:se("LinkedIn URL","genesis-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),React.createElement(ge,{label:se("WordPress Profile URL","genesis-blocks"),type:"url",value:_,onChange:function(t){return e.props.setAttributes({wordpress:t})}}),React.createElement(ge,{label:se("Email URL","genesis-blocks"),help:se('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"genesis-blocks"),type:"url",value:h,onChange:function(t){return e.props.setAttributes({email:t})}}),React.createElement(ge,{label:se("Website URL","genesis-blocks"),type:"url",value:g,onChange:function(t){return e.props.setAttributes({website:t})}}))))}}]),n}(le);function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ye=function(e){m()(n,e);var t=be(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,o=e.profileTextColor,i=e.profileAvatarShape;return React.createElement("div",{style:{backgroundColor:a,color:o},className:b()(this.props.className,t,i,{"gb-has-avatar":n},"gb-font-size-"+r,"gb-block-profile","gb-profile-columns")},this.props.children)}}]),n}(wp.element.Component);function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Me=wp.i18n.__,ve=function(e){m()(n,e);var t=ke(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Website","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-website-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-website-"+this.props.clientId},Me("Visit Website (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Twitter","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},Me("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Facebook","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},Me("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Instagram","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-instagram-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-instagram-"+this.props.clientId},Me("Visit Instagram account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Pinterest","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},Me("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Google","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-google-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-google-"+this.props.clientId},Me("Visit Google account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("YouTube","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-youtube-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-youtube-"+this.props.clientId},Me("Visit YouTube account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("LinkedIn","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},Me("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Github","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-github-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-github-"+this.props.clientId},Me("Visit GitHub account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("WordPress","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-wordpress-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-wordpress-"+this.props.clientId},Me("Visit WordPress account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M21.469 6.825c.84 1.537 1.318 3.3 1.318 5.175 0 3.979-2.156 7.456-5.363 9.325l3.295-9.527c.615-1.54.82-2.771.82-3.864 0-.405-.026-.78-.07-1.11m-7.981.105c.647-.03 1.232-.105 1.232-.105.582-.075.514-.93-.067-.899 0 0-1.755.135-2.88.135-1.064 0-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885 0 0 .54.061 1.125.09l1.68 4.605-2.37 7.08L5.354 6.9c.649-.03 1.234-.1 1.234-.1.585-.075.516-.93-.065-.896 0 0-1.746.138-2.874.138-.2 0-.438-.008-.69-.015C4.911 3.15 8.235 1.215 12 1.215c2.809 0 5.365 1.072 7.286 2.833-.046-.003-.091-.009-.141-.009-1.06 0-1.812.923-1.812 1.914 0 .89.513 1.643 1.06 2.531.411.72.89 1.643.89 2.977 0 .915-.354 1.994-.821 3.479l-1.075 3.585-3.9-11.61.001.014zM12 22.784c-1.059 0-2.081-.153-3.048-.437l3.237-9.406 3.315 9.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211 12c0-1.564.336-3.05.935-4.39L7.29 21.709C3.694 19.96 1.212 16.271 1.211 12M12 0C5.385 0 0 5.385 0 12s5.385 12 12 12 12-5.385 12-12S18.615 0 12 0"})))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Email","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},Me("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})))))}}]),n}(wp.element.Component);function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var we=function(e){m()(n,e);var t=Le(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}]),n}(wp.element.Component);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Re=wp.i18n.__,Se=wp.element,xe=Se.Component,Ee=Se.Fragment,Ce=wp.blockEditor,je=Ce.RichText,Pe=Ce.AlignmentToolbar,He=Ce.BlockControls,Oe=Ce.MediaUpload,ze=wp.components,Ae=ze.Button,Be=ze.Dashicon,Ne=["image"],Fe=function(e){m()(n,e);var t=De(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.attributes.clientId&&e.props.attributes.clientId===e.props.clientId||e.props.setAttributes({clientId:e.props.clientId}),e}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.profileName,r=t.profileTitle,o=t.profileContent,i=t.profileAlignment,s=t.profileImgURL,l=t.profileImgID,c=t.profileImgAlt,u=t.profileTextColor,d=e.setAttributes;return[React.createElement(He,{key:"controls"},React.createElement(Pe,{value:i,onChange:function(e){return d({profileAlignment:e})}})),React.createElement(fe,a()({key:"gb-author-profile-inspector-"+this.props.clientId},Te({setAttributes:d},this.props))),React.createElement(ye,a()({key:"gb-author-profile-"+this.props.clientId},this.props),React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement(Oe,{buttonProps:{className:"change-image"},onSelect:function(e){return d({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt})},allowed:Ne,type:"image",value:l,render:function(e){var t=e.open;return React.createElement(Ee,null,React.createElement(Ae,{onClick:t},l?React.createElement("img",{className:b()("gb-profile-avatar","gb-change-image","wp-image-"+l),src:s,alt:c}):z.upload),l&&React.createElement(Ae,{className:"gb-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(Be,{icon:"dismiss"})))}}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},React.createElement(je,{tagName:"h2",placeholder:Re("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"gb-profile-name",style:{color:u},onChange:function(e){return d({profileName:e})}}),React.createElement(je,{tagName:"p",placeholder:Re("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-profile-title",style:{color:u},onChange:function(e){return d({profileTitle:e})}}),React.createElement(je,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Re("Add profile text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:function(e){return d({profileContent:e})}}),React.createElement(ve,this.props)))]}}]),n}(xe);function We(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ie=wp.element.Component,Ue=wp.blockEditor.RichText,Ve=function(e){m()(n,e);var t=We(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileImgAlt,i=e.profileImgID,s=e.profileTextColor;return React.createElement(ye,this.props,a&&i&&React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:b()("gb-profile-avatar","wp-image-"+i),src:a,alt:o}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(Ue.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(Ue.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(Ue.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(ve,this.props)))}}]),n}(Ie);n(331),n(332);function Je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ge=function(e){m()(n,e);var t=Je(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,o=e.profileTextColor,i=e.profileAvatarShape;return React.createElement("div",{style:{backgroundColor:a,color:o},className:b()(this.props.className,t,i,{"gb-has-avatar":n},"gb-font-size-"+r,"gb-block-profile","gb-profile-columns")},this.props.children)}}]),n}(wp.element.Component);function qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var $e=wp.i18n.__,Ke=function(e){m()(n,e);var t=qe(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},$e("Website","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},$e("Twitter","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},$e("Facebook","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},$e("Instagram","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},$e("Pinterest","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},$e("Google","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},$e("YouTube","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},$e("LinkedIn","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},$e("Github","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},$e("WordPress","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},$e("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}]),n}(wp.element.Component);function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Qe=function(e){m()(n,e);var t=Ze(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}]),n}(wp.element.Component);function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var et=wp.element.Component,tt=wp.blockEditor.RichText,nt={attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},save:function(e){m()(n,e);var t=Xe(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileImgAlt,i=e.profileImgID,s=e.profileTextColor;return React.createElement(Ge,this.props,a&&React.createElement(Qe,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:b()("gb-profile-avatar","wp-image-"+i),src:a,alt:o}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(tt.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(tt.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(tt.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Ke,this.props)))}}]),n}(et)};function rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var at=wp.element.Component,ot=wp.blockEditor.RichText,it=[nt,{attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},website:{type:"url"}},save:function(e){m()(n,e);var t=rt(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("div",{className:"gb-profile-image-square"},React.createElement("img",{className:"gb-profile-avatar",src:a,alt:"avatar"}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(ot.Content,{tagName:"h2",className:"gb-profile-name",style:{color:o},value:t}),n&&React.createElement(ot.Content,{tagName:"p",className:"gb-profile-title",style:{color:o},value:n}),r&&React.createElement(ot.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(ve,this.props)))}}]),n}(at)}],st=wp.i18n.__;function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-profile-box",{title:st("Profile Box","genesis-blocks"),description:st("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[st("author","genesis-blocks"),st("profile","genesis-blocks"),st("atomic","genesis-blocks"),st("genesis","genesis-blocks")],attributes:{clientId:{type:"string",default:""},profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},gb_settings_data:{gb_author_profile_profileFontSize:{title:st("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:st("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:st("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:st("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:st("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:st("Social Links","genesis-blocks")}},edit:function(e){return React.createElement(Fe,a()({},e,{clientId:e.clientId}))},save:function(e){return React.createElement(Ve,a()({},e,{clientId:e.attributes.clientId}))},deprecated:it});var ct=wp.i18n.__,ut=wp.element.Component,dt=wp.blockEditor,mt=dt.PanelColorSettings,pt=dt.InspectorControls,_t=wp.components,ht=_t.PanelBody,gt=_t.RangeControl,ft=_t.SelectControl,bt=function(e){m()(n,e);var t=lt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:null,label:ct("Always Show","genesis-blocks")},{value:"gb-dismissable",label:ct("Dismissible","genesis-blocks")}],n=this.props.attributes,r=n.noticeBackgroundColor,a=n.noticeTextColor,o=n.noticeTitleColor,i=n.noticeFontSize,s=n.noticeDismiss,l=this.props.setAttributes;return React.createElement(pt,{key:"inspector"},React.createElement(ht,null,React.createElement(v,{id:"gb_notice_noticeFontSize"},React.createElement(gt,{label:ct("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_notice_noticeDismiss"},React.createElement(ft,{label:ct("Notice Display","genesis-blocks"),description:ct("Do you want the message to always show or dismissible?","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({noticeDismiss:t})}}))),React.createElement(v,{id:"gb_notice_colorSettings"},React.createElement(mt,{title:ct("Notice Color","genesis-blocks"),colorValue:r,initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return l({noticeBackgroundColor:e})},colors:[{color:"#00d1b2",name:"teal"},{color:"#3373dc",name:"royal blue"},{color:"#209cef",name:"sky blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"},{color:"#392F43",name:"black"}],label:ct("Notice Color","genesis-blocks")}]}),React.createElement(mt,{title:ct("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({noticeTitleColor:e})},label:ct("Title Color","genesis-blocks")}]}),React.createElement(mt,{title:ct("Text Color","genesis-blocks"),colorValue:a,initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({noticeTextColor:e})},label:ct("Text Color","genesis-blocks")}]})))}}]),n}(ut),yt=n(196),kt=n.n(yt);function Mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var vt=function(e){m()(n,e);var t=Mt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.noticeTitle,r=t.noticeAlignment,a=t.noticeBackgroundColor,o=t.noticeTextColor,i=t.noticeFontSize,s=t.noticeDismiss,l=(e=s+n,kt()(e).substr(0,6));return React.createElement("div",{style:{color:o,textAlign:r,backgroundColor:a},className:b()(this.props.className,s,"gb-font-size-"+i,"gb-block-notice"),"data-id":l},this.props.children)}}]),n}(wp.element.Component);function Lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var wt=function(e){m()(n,e);var t=Lt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes.noticeTitleColor;return React.createElement("div",{className:"gb-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}]),n}(wp.element.Component),Yt={};Yt.upload=React.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),Yt.dismiss=React.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},React.createElement("path",{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zM15 13l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));var Tt=Yt;n(333),n(334);function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var xt=wp.i18n.__,Et=wp.element.Component,Ct=wp.blocks.registerBlockType,jt=wp.blockEditor,Pt=jt.RichText,Ht=jt.AlignmentToolbar,Ot=jt.BlockControls,zt=function(e){m()(n,e);var t=St(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.noticeTitle,r=t.noticeContent,o=t.noticeAlignment,i=t.noticeBackgroundColor,s=t.noticeTitleColor,l=t.noticeDismiss,c=e.setAttributes;return[React.createElement(Ot,{key:"controls"},React.createElement(Ht,{value:o,onChange:function(e){return c({noticeAlignment:e})}})),React.createElement(bt,a()({key:"gb-notice-inspector-"+this.props.clientId},Rt({setAttributes:c},this.props))),React.createElement(vt,a()({key:"gb-notice-noticebox-"+this.props.clientId},this.props),l&&"gb-dismissable"===l&&React.createElement(wt,this.props,Tt.dismiss),React.createElement(Pt,{tagName:"p",placeholder:xt("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:b()("gb-notice-title"),style:{color:s},onChange:function(e){return c({noticeTitle:e})}}),React.createElement(Pt,{tagName:"div",multiline:"p",placeholder:xt("Add notice text…","genesis-blocks"),value:r,className:b()("gb-notice-text"),style:{borderColor:i},onChange:function(e){return c({noticeContent:e})}}))]}}]),n}(Et);function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}Ct("genesis-blocks/gb-notice",{title:xt("Notice","genesis-blocks"),description:xt("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[xt("notice","genesis-blocks"),xt("message","genesis-blocks"),xt("atomic","genesis-blocks")],attributes:{noticeTitle:{type:"string",selector:".gb-notice-title"},noticeContent:{type:"array",selector:".gb-notice-text",source:"children"},noticeAlignment:{type:"string"},noticeBackgroundColor:{type:"string",default:"#00d1b2"},noticeTextColor:{type:"string",default:"#32373c"},noticeTitleColor:{type:"string",default:"#fff"},noticeFontSize:{type:"number",default:18},noticeDismiss:{type:"string",default:""}},gb_settings_data:{gb_notice_noticeFontSize:{title:xt("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:xt("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:xt("Notice Color","genesis-blocks")}},edit:zt,save:function(e){var t=e.attributes,n=t.noticeTitle,r=t.noticeContent,a=t.noticeBackgroundColor,o=t.noticeTitleColor,i=t.noticeDismiss;return React.createElement(vt,e,i&&"gb-dismissable"===i&&React.createElement(wt,e,Tt.dismiss),n&&React.createElement("div",{className:"gb-notice-title",style:{color:o}},React.createElement(Pt.Content,{tagName:"p",value:n})),r&&React.createElement(Pt.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:a},value:r}))}});var Bt=wp.i18n.__,Nt=wp.element.Component,Ft=wp.blockEditor.InspectorControls,Wt=wp.components,It=Wt.RangeControl,Ut=Wt.SelectControl,Vt=Wt.PanelBody,Jt=function(e){m()(n,e);var t=At(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapFontSize,r=t.dropCapStyle,a=[{value:"gb-drop-cap-letter",label:Bt("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:Bt("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:Bt("Border","genesis-blocks")}];return React.createElement(Ft,{key:"inspector"},React.createElement(Vt,null,React.createElement(v,{id:"gb_dropcap_dropCapFontSize"},React.createElement(It,{label:Bt("Drop Cap Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),React.createElement(v,{id:"gb_dropcap_dropCapStyle"},React.createElement(Ut,{label:Bt("Drop Cap Style","genesis-blocks"),description:Bt("Choose the style of the drop cap in your paragraph","genesis-blocks"),options:a,value:r,onChange:function(t){return e.props.setAttributes({dropCapStyle:t})}}))))}}]),n}(Nt);function Gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var qt=function(e){m()(n,e);var t=Gt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.dropCapAlignment,n=e.dropCapTextColor,r=e.dropCapFontSize,a=e.dropCapStyle;return React.createElement("div",{style:{color:n,textAlign:t},className:b()(this.props.className,a,"gb-font-size-"+r,"gb-block-drop-cap")},this.props.children)}}]),n}(wp.element.Component);n(335),n(336);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Kt=wp.i18n.__,Zt=wp.element.Component,Qt=wp.blocks.registerBlockType,Xt=wp.blockEditor,en=Xt.RichText,tn=Xt.AlignmentToolbar,nn=Xt.BlockControls,rn=function(e){m()(n,e);var t=$t(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,o=t.dropCapFontSize;return[React.createElement(nn,{key:"controls"},React.createElement(tn,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),React.createElement(Jt,a()({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(qt,a()({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(en,{tagName:"div",multiline:"p",placeholder:Kt("Add paragraph text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-drop-cap-text","gb-font-size-"+o),onChange:function(t){return e.props.setAttributes({dropCapContent:t})}}))]}}]),n}(Zt);Qt("genesis-blocks/gb-drop-cap",{title:Kt("Drop Cap","genesis-blocks"),description:Kt("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[Kt("drop cap","genesis-blocks"),Kt("quote","genesis-blocks"),Kt("genesis","genesis-blocks")],attributes:{dropCapContent:{type:"array",selector:".gb-drop-cap-text",source:"children"},dropCapAlignment:{type:"string"},dropCapBackgroundColor:{type:"string",default:"#f2f2f2"},dropCapTextColor:{type:"string",default:"#32373c"},dropCapFontSize:{type:"number",default:3},dropCapStyle:{type:"string",default:"drop-cap-letter"}},gb_settings_data:{gb_dropcap_dropCapFontSize:{title:Kt("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:Kt("Drop Cap Style","genesis-blocks")}},edit:rn,save:function(e){var t=e.attributes.dropCapContent;return React.createElement(qt,e,t&&React.createElement(en.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});var an=wp.i18n.__,on=wp.element.Fragment,sn=wp.components,ln=sn.SelectControl,cn=sn.ToggleControl,un=wp.blockEditor.PanelColorSettings;function dn(e){var t=e.enableButtonBackgroundColor,n=e.buttonBackgroundColor,r=e.onChangeButtonColor,a=void 0===r?function(){}:r,o=e.enableButtonTextColor,i=e.buttonTextColor,s=e.onChangeButtonTextColor,l=void 0===s?function(){}:s,c=e.enableButtonSize,u=e.buttonSize,d=e.onChangeButtonSize,m=void 0===d?function(){}:d,p=e.enableButtonShape,_=e.buttonShape,h=e.onChangeButtonShape,g=void 0===h?function(){}:h,f=e.enableButtonTarget,b=e.buttonTarget,y=e.onChangeButtonTarget,k=void 0===y?function(){}:y,M=[{value:"gb-button-size-small",label:an("Small","genesis-blocks")},{value:"gb-button-size-medium",label:an("Medium","genesis-blocks")},{value:"gb-button-size-large",label:an("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:an("Extra Large","genesis-blocks")}],L=[{value:"gb-button-shape-square",label:an("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:an("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:an("Circular","genesis-blocks")}];return React.createElement(on,null,React.createElement(v,{id:"gb_button_buttonOptions"},!1!==f&&React.createElement(cn,{label:an("Open link in new window","genesis-blocks"),checked:b,onChange:k}),!1!==c&&React.createElement(ln,{selected:u,label:an("Button Size","genesis-blocks"),value:u,options:M.map((function(e){return{value:e.value,label:e.label}})),onChange:m}),!1!==p&&React.createElement(ln,{label:an("Button Shape","genesis-blocks"),value:_,options:L.map((function(e){return{value:e.value,label:e.label}})),onChange:g}),!1!==t&&React.createElement(un,{title:an("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:a,label:an("Button Color","genesis-blocks")}]}),!1!==o&&React.createElement(un,{title:an("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:l,label:an("Button Text Color","genesis-blocks")}]})))}function mn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}wp.i18n.__;var pn=wp.element.Component,_n=wp.blockEditor.InspectorControls,hn=wp.components.PanelBody,gn=function(e){m()(n,e);var t=mn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonBackgroundColor,n=e.buttonTextColor,r=e.buttonSize,a=e.buttonShape,o=e.buttonTarget,i=this.props.setAttributes;return React.createElement(_n,{key:"inspector"},React.createElement(hn,null,React.createElement(dn,{buttonTarget:o,onChangeButtonTarget:function(e){return i({buttonTarget:!o})},buttonSize:r,onChangeButtonSize:function(e){return i({buttonSize:e})},buttonShape:a,onChangeButtonShape:function(e){return i({buttonShape:e})},buttonBackgroundColor:t,onChangeButtonColor:function(e){return i({buttonBackgroundColor:e})},buttonTextColor:n,onChangeButtonTextColor:function(e){return i({buttonTextColor:e})}})))}}]),n}(pn);function fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var bn=function(e){m()(n,e);var t=fn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:b()(this.props.className,"gb-block-button")},this.props.children)}}]),n}(wp.element.Component);n(337),n(338);function yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var kn=wp.i18n.__,Mn=wp.element.Component,vn=wp.blocks.registerBlockType,Ln=wp.blockEditor,wn=Ln.RichText,Yn=Ln.AlignmentToolbar,Tn=Ln.BlockControls,Dn=Ln.URLInput,Rn=wp.components,Sn=Rn.Button,xn=Rn.Dashicon,En=Rn.Icon,Cn=function(e){m()(n,e);var t=yn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,c=t.buttonShape,u=e.isSelected,d=e.setAttributes;return[React.createElement(Tn,{key:"controls"},React.createElement(Yn,{value:o,onChange:function(e){d({buttonAlignment:e})}})),React.createElement(gn,a()({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(bn,a()({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(wn,{tagName:"span",placeholder:kn("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:b()("gb-button",c,l),style:{color:s||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),u&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(xn,{icon:"admin-links"}),React.createElement(Dn,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),React.createElement(Sn,{label:kn("Apply","genesis-blocks"),type:"submit"},React.createElement(En,{icon:"editor-break"})))]}}]),n}(Mn);function jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}vn("genesis-blocks/gb-button",{title:kn("Button","genesis-blocks"),description:kn("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[kn("button","genesis-blocks"),kn("link","genesis-blocks"),kn("genesis","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},gb_settings_data:{gb_button_buttonOptions:{title:kn("Button Options","genesis-blocks")}},edit:Cn,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget;return React.createElement(bn,e,n&&React.createElement("a",{href:r,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o||"#ffffff",backgroundColor:a||"#3373dc"}},React.createElement(wn.Content,{value:n})))}});var Pn=wp.i18n.__,Hn=wp.element,On=Hn.Component,zn=Hn.Fragment,An=wp.blockEditor,Bn=An.InspectorControls,Nn=An.PanelColorSettings,Fn=wp.components,Wn=Fn.PanelBody,In=Fn.RangeControl,Un=Fn.ToggleControl,Vn=Fn.SelectControl,Jn=function(e){m()(n,e);var t=jn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.spacerHeight,a=n.spacerDivider,o=n.spacerDividerStyle,i=n.spacerDividerColor,s=n.spacerDividerHeight,l=t.setAttributes,c=[{value:"gb-divider-solid",label:Pn("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:Pn("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:Pn("Dotted","genesis-blocks")}];return React.createElement(Bn,{key:"inspector"},React.createElement(Wn,null,React.createElement(v,{id:"gb_spacer_spacerHeight"},React.createElement(In,{label:Pn("Spacer Height","genesis-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),React.createElement(v,{id:"gb_spacer_spacerDivider"},React.createElement(Un,{label:Pn("Add Divider","genesis-blocks"),checked:a,onChange:function(){return e.props.setAttributes({spacerDivider:!a})}}))),a?React.createElement(zn,null,React.createElement(Wn,null,React.createElement(v,{id:"gb_spacer_spacerDividerStyle"},React.createElement(Vn,{label:Pn("Divider Style","genesis-blocks"),value:o,options:c.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),React.createElement(v,{id:"gb_spacer_spacerDividerHeight"},React.createElement(In,{label:Pn("Divider Height","genesis-blocks"),value:s||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),React.createElement(v,{id:"gb_spacer_dividerColor"},React.createElement(Nn,{title:Pn("Divider Color","genesis-blocks"),initialOpen:!1,colorSettings:[{colors:[{color:"#ddd",name:"white"},{color:"#333",name:"black"},{color:"#3373dc",name:"royal blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"}],value:i,onChange:function(e){return l({spacerDividerColor:e})},label:Pn("Divider Color","genesis-blocks")}]}))):null)}}]),n}(On);function Gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var qn,$n=function(e){m()(n,e);var t=Gn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.spacerDivider,n=e.spacerDividerStyle,r=e.spacerDividerColor,a=e.spacerDividerHeight;return React.createElement("div",{style:{color:r},className:b()(this.props.className,"gb-block-spacer",n,{"gb-spacer-divider":t},"gb-divider-size-"+a)},this.props.children)}}]),n}(wp.element.Component),Kn=n(10),Zn=n.n(Kn),Qn=(qn=function(e,t){return(qn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}qn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xn=function(){return(Xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},er={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},tr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return Qn(t,e),t.prototype.render=function(){return Kn.createElement("div",{className:this.props.className||"",style:Xn(Xn({position:"absolute",userSelect:"none"},er[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(Kn.PureComponent),nr=n(15),rr=n.n(nr),ar=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(){return(or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},ir={width:"auto",height:"auto"},sr=rr()((function(e,t,n){return Math.max(Math.min(e,n),t)})),lr=rr()((function(e,t){return Math.round(e/t)*t})),cr=rr()((function(e,t){return new RegExp(e,"i").test(t)})),ur=rr()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n}),0),a=Math.abs(t[r]-e);return 0===n||a<n?t[r]:e})),dr=rr()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),mr=rr()((function(e){return"auto"===(e=e.toString())||dr(e,"px")||dr(e,"%")||dr(e,"vh")||dr(e,"vw")||dr(e,"vmax")||dr(e,"vmin")?e:e+"px"})),pr=function(e,t,n,r){if(e&&"string"==typeof e){if(dr(e,"%"))return t*(Number(e.replace("%",""))/100);if(dr(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(dr(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},_r=rr()((function(e,t,n,r,a,o,i){return r=pr(r,e.width,t,n),a=pr(a,e.height,t,n),o=pr(o,e.width,t,n),i=pr(i,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===a?void 0:Number(a),minWidth:void 0===o?void 0:Number(o),minHeight:void 0===i?void 0:Number(i)}})),hr=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],gr=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return ar(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||ir},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){var e=this.parentNode;if(e)for(var t=0,n=[].slice.call(e.children);t<n.length;t++){var r=n[t];if(r.classList.contains("__resizable_base__"))return r}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=a}return{width:e,height:t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&dr(e.propsSize[t].toString(),"%")){if(dr(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return mr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?mr(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?mr(t.height):n("height")}},enumerable:!0,configurable:!0}),t.prototype.getParentSize=function(){if(!this.base||!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=!1,t=this.parentNode.style.flexWrap,n=this.base.style.minWidth;"wrap"!==t&&(e=!0,this.parentNode.style.flexWrap="wrap"),this.base.style.position="relative",this.base.style.minWidth="100%";var r={width:this.base.offsetWidth,height:this.base.offsetHeight};return this.base.style.position="absolute",e&&(this.parentNode.style.flexWrap=t),this.base.style.minWidth=n,r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0});var t=this.parentNode;if(t&&!this.base){var n=this.window.document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.transform="scale(0, 0)",n.style.left="0",n.style.flex="0",n.classList?n.classList.add("__resizable_base__"):n.className+="__resizable_base__",t.appendChild(n)}}},t.prototype.componentWillUnmount=function(){if(this.window){this.unbindEvents();var e=this.parentNode;if(!this.base||!e)return;if(!e||!this.base)return;e.removeChild(this.base)}},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),a=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}}else if("window"===this.props.bounds){if(this.window){r=this.window.innerWidth-this.resizableLeft,a=this.window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<a?t:a}}else if(this.props.bounds){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),a=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,a=this.state,o=a.direction,i=a.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=i.width,m=i.height,p=c||0,_=u||0;return cr("right",o)&&(d=i.width+(e-i.x)*r/n,l&&(m=(d-_)/this.ratio+p)),cr("left",o)&&(d=i.width-(e-i.x)*r/n,l&&(m=(d-_)/this.ratio+p)),cr("bottom",o)&&(m=i.height+(t-i.y)*r/n,l&&(d=(m-p)*this.ratio+_)),cr("top",o)&&(m=i.height-(t-i.y)*r/n,l&&(d=(m-p)*this.ratio+_)),{newWidth:d,newHeight:m}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var a=this.props,o=a.lockAspectRatio,i=a.lockAspectRatioExtraHeight,s=a.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,m=i||0,p=s||0;if(o){var _=(u-m)*this.ratio+p,h=(d-m)*this.ratio+p,g=(l-p)/this.ratio+m,f=(c-p)/this.ratio+m,b=Math.max(l,_),y=Math.min(c,h),k=Math.max(u,g),M=Math.min(d,f);e=sr(e,b,y),t=sr(t,k,M)}else e=sr(e,l,c),t=sr(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,o=r.top;this.resizableLeft=a,this.resizableTop=o}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,a=0;if(e.nativeEvent instanceof this.window.MouseEvent){if(r=e.nativeEvent.clientX,a=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof this.window.TouchEvent&&(r=e.nativeEvent.touches[0].clientX,a=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var i=this.parentNode;if(i){var s=this.window.getComputedStyle(i).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:or(or({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){var t=this.props,n=t.maxWidth,r=t.maxHeight,a=t.minWidth,o=t.minHeight,i=e instanceof this.window.MouseEvent?e.clientX:e.touches[0].clientX,s=e instanceof this.window.MouseEvent?e.clientY:e.touches[0].clientY,l=this.state,c=l.direction,u=l.original,d=l.width,m=l.height,p=this.getParentSize(),_=_r(p,this.window.innerWidth,this.window.innerHeight,n,r,a,o);n=_.maxWidth,r=_.maxHeight,a=_.minWidth,o=_.minHeight;var h=this.calculateNewSizeFromDirection(i,s),g=h.newHeight,f=h.newWidth,b=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(f,g,{width:b.maxWidth,height:b.maxHeight},{width:a,height:o});if(f=y.newWidth,g=y.newHeight,this.props.grid){var k=lr(f,this.props.grid[0]),M=lr(g,this.props.grid[1]),v=this.props.snapGap||0;f=0===v||Math.abs(k-f)<=v?k:f,g=0===v||Math.abs(M-g)<=v?M:g}this.props.snap&&this.props.snap.x&&(f=ur(f,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=ur(g,this.props.snap.y,this.props.snapGap));var L={width:f-u.width,height:g-u.height};if(d&&"string"==typeof d)if(dr(d,"%"))f=f/p.width*100+"%";else if(dr(d,"vw")){f=f/this.window.innerWidth*100+"vw"}else if(dr(d,"vh")){f=f/this.window.innerHeight*100+"vh"}if(m&&"string"==typeof m)if(dr(m,"%"))g=g/p.height*100+"%";else if(dr(m,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(dr(m,"vh")){g=g/this.window.innerHeight*100+"vh"}var w={width:this.createSizeForCssProperty(f,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?w.flexBasis=w.width:"column"===this.flexDir&&(w.flexBasis=w.height),this.setState(w),this.props.onResize&&this.props.onResize(e,c,this.resizable,L)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,a=t.original;if(n&&this.resizable){var o={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:or(or({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,a=t.handleClasses,o=t.handleWrapperStyle,i=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?Kn.createElement(tr,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:a&&a[t]},s&&s[t]?s[t]:null):null}));return Kn.createElement("span",{className:i,style:o},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==hr.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=or(or(or({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as;return Kn.createElement(r,or({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&Kn.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(Kn.PureComponent);n(339),n(340);function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var br=wp.i18n.__,yr=wp.element.Component,kr=wp.blocks.registerBlockType,Mr=function(e){m()(n,e);var t=fr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacerHeight,r=t.spacerDividerColor,o=e.className,i=e.setAttributes,s=e.toggleSelection;return[React.createElement(Jn,a()({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement($n,a()({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(gr,{className:b()(o,"gb-spacer-handle"),style:{color:r},size:{width:"100%",height:n},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"gb-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:function(){s(!1)},onResizeStop:function(e,t,r,a){i({spacerHeight:parseInt(n+a.height,10)}),s(!0)}}))]}}]),n}(yr);function vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}kr("genesis-blocks/gb-spacer",{title:br("Spacer","genesis-blocks"),description:br("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[br("spacer","genesis-blocks"),br("divider","genesis-blocks"),br("atomic","genesis-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"gb-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},gb_settings_data:{gb_spacer_spacerHeight:{title:br("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:br("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:br("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:br("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:br("Divider Color","genesis-blocks")}},edit:Mr,save:function(e){var t=e.attributes.spacerHeight;return React.createElement($n,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var Lr=wp.i18n.__,wr=wp.element.Component,Yr=wp.blockEditor.InspectorControls,Tr=wp.components,Dr=Tr.PanelBody,Rr=Tr.RangeControl,Sr=Tr.ToggleControl,xr=function(e){m()(n,e);var t=vr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this;return React.createElement(Yr,{key:"inspector"},React.createElement(Dr,null,React.createElement(v,{id:"gb_accordion_accordionFontSize"},React.createElement(Rr,{label:Lr("Title Font Size","genesis-blocks"),value:this.props.attributes.accordionFontSize,onChange:function(t){return e.props.setAttributes({accordionFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_accordion_accordionOpen"},React.createElement(Sr,{label:Lr("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}]),n}(wr);function Er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Cr=function(e){m()(n,e);var t=Er(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.accordionAlignment?"gb-align-"+this.props.attributes.accordionAlignment:void 0,"gb-block-accordion",this.props.attributes.accordionFontSize?"gb-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}]),n}(wp.element.Component);function jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Pr=wp.i18n.__,Hr=wp.element.Component,Or=wp.blockEditor,zr=Or.RichText,Ar=Or.AlignmentToolbar,Br=Or.BlockControls,Nr=Or.InnerBlocks,Fr=function(e){m()(n,e);var t=jr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this;return[React.createElement(Br,{key:"controls"},React.createElement(Ar,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),React.createElement(xr,a()({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(Cr,a()({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(zr,{tagName:"p",placeholder:Pr("Accordion Title","genesis-blocks"),value:this.props.attributes.accordionTitle,className:"gb-accordion-title",onChange:function(t){return e.props.setAttributes({accordionTitle:t})}}),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Nr,null)))]}}]),n}(Hr);function Wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ir=wp.element.Component,Ur=wp.blockEditor,Vr=Ur.RichText,Jr=Ur.InnerBlocks,Gr=function(e){m()(n,e);var t=Wr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement(Cr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Vr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Jr.Content,null))))}}]),n}(Ir);function qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var $r=function(e){m()(n,e);var t=qr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.accordionAlignment,n=e.accordionFontSize;return React.createElement("div",{style:{},className:b()(this.props.className,t,"gb-block-accordion","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function Kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Zr=wp.element.Component,Qr=wp.blockEditor,Xr=Qr.RichText,ea=Qr.InnerBlocks,ta=function(e){m()(n,e);var t=Kr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement($r,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Xr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(ea.Content,null))))}}]),n}(Zr),na=[{attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:function(e){return React.createElement(ta,e)}}],ra=(n(341),n(342),wp.i18n.__),aa=(wp.element.Component,{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}});function oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-accordion",{title:ra("Accordion","genesis-blocks"),description:ra("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[ra("accordion","genesis-blocks"),ra("list","genesis-blocks"),ra("genesis","genesis-blocks")],attributes:aa,gb_settings_data:{gb_accordion_accordionFontSize:{title:ra("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:ra("Open by default","genesis-blocks")}},edit:function(e){return React.createElement(Fr,e)},save:function(e){return React.createElement(Gr,e)},deprecated:na});var ia=wp.i18n.__,sa=wp.element.Component,la=wp.blockEditor,ca=la.InspectorControls,ua=la.PanelColorSettings,da=la.MediaUpload,ma=wp.components,pa=ma.Button,_a=ma.Icon,ha=ma.PanelBody,ga=ma.RangeControl,fa=ma.SelectControl,ba=ma.ToggleControl,ya=function(e){m()(n,e);var t=oa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.buttonBackgroundColor,r=t.buttonTextColor,a=t.buttonSize,o=t.buttonShape,i=t.buttonTarget,s=t.titleFontSize,l=t.ctaTextFontSize,c=t.ctaBackgroundColor,u=t.ctaTextColor,d=t.dimRatio,m=t.imgURL,p=t.imgID,_=this.props.setAttributes,h=[{value:"gb-button-size-small",label:ia("Small")},{value:"gb-button-size-medium",label:ia("Medium")},{value:"gb-button-size-large",label:ia("Large")},{value:"gb-button-size-extralarge",label:ia("Extra Large")}],g=[{value:"gb-button-shape-square",label:ia("Square")},{value:"gb-button-shape-rounded",label:ia("Rounded Square")},{value:"gb-button-shape-circular",label:ia("Circular")}],f=function(){_({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(ca,{key:"inspector"},React.createElement(v,{id:"gb_cta_textOptions"},React.createElement(ha,{title:ia("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(ga,{label:ia("Title Font Size","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),React.createElement(ga,{label:ia("Text Font Size","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),React.createElement(ua,{title:ia("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return _({ctaTextColor:e})},label:ia("Text Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_cta_backgroundOptions"},React.createElement(ha,{title:ia("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,ia("Select a background image:","genesis-blocks")),React.createElement(da,{onSelect:function(e){_({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(pa,{className:"gb-cta-inspector-media",label:ia("Edit image","genesis-blocks"),onClick:t},React.createElement(_a,{icon:"format-image"}),ia("Select Image","genesis-blocks")),m&&!!m.length&&React.createElement(pa,{className:"gb-cta-inspector-media",label:ia("Remove Image","genesis-blocks"),onClick:f},React.createElement(_a,{icon:"dismiss"}),ia("Remove","genesis-blocks")))}}),m&&!!m.length&&React.createElement(ga,{label:ia("Image Opacity","genesis-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),React.createElement(ua,{title:ia("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return _({ctaBackgroundColor:e})},label:ia("Overlay Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_cta_buttonOptions"},React.createElement(ha,{title:ia("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(ba,{label:ia("Open link in new window","genesis-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),React.createElement(fa,{label:ia("Button Size","genesis-blocks"),value:a,options:h.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonSize:t})}}),React.createElement(fa,{label:ia("Button Shape","genesis-blocks"),value:o,options:g.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonShape:t})}}),React.createElement(ua,{title:ia("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return _({buttonBackgroundColor:e})},label:ia("Button Color","genesis-blocks")}]}),React.createElement(ua,{title:ia("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return _({buttonTextColor:e})},label:ia("Button Text Color","genesis-blocks")}]}))))}}]),n}(sa);function ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ma=function(e){m()(n,e);var t=ka(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var La=function(e){m()(n,e);var t=va(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ya=function(e){m()(n,e);var t=wa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=(e.ctaWidth,e.ctaBackgroundColor),a=(e.ctaTextColor,b()([this.props.className,"gb-block-cta"],i()({},"gb-font-size-"+n,n))),o={backgroundColor:r||void 0,textAlign:t||void 0};return React.createElement("div",{style:o,className:a||void 0},this.props.children)}}]),n}(wp.element.Component);function Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Da=function(e){m()(n,e);var t=Ta(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=e.ctaWidth,a=e.ctaBackgroundColor;e.ctaTextColor;return React.createElement("div",{style:{backgroundColor:a,textAlign:t},className:b()(this.props.className,"align".concat(r),"gb-block-cta","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Sa=wp.blockEditor.RichText,xa=[{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.titleFontSize,p=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(La,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+m),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:p},value:u})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Sa.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.ctaTextFontSize,p=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(Ya,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+m),style:{color:p},value:u})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Sa.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string",default:"#f2f2f2"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.ctaTextFontSize,p=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(Da,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+m),style:{color:p},value:u})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Sa.Content,{value:n}))))},migrate:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function Ea(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(343),n(344);function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ha=wp.i18n.__,Oa=wp.element.Component,za=wp.blocks.registerBlockType,Aa=wp.blockEditor,Ba=Aa.AlignmentToolbar,Na=Aa.URLInput,Fa=Aa.BlockControls,Wa=Aa.BlockAlignmentToolbar,Ia=Aa.RichText,Ua=wp.components,Va=Ua.Button,Ja=Ua.Dashicon,Ga=Ua.Icon,qa=function(e){m()(n,e);var t=Pa(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,c=t.buttonShape,u=t.ctaTitle,d=t.ctaText,m=t.titleFontSize,p=t.ctaTextFontSize,_=t.ctaWidth,h=t.ctaTextColor,g=t.imgURL,f=t.imgAlt,y=t.dimRatio,k=e.isSelected,M=e.setAttributes;return[React.createElement(Fa,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(Wa,{value:_,onChange:function(e){return M({ctaWidth:e})},controls:["center","wide","full"]}),React.createElement(Ba,{value:o,onChange:function(e){M({buttonAlignment:e})}})),React.createElement(ya,a()({key:"gb-cta-inspector-"+this.props.clientId},ja({setAttributes:M},this.props))),React.createElement(Ma,a()({key:"gb-cta-"+this.props.clientId},this.props),g&&!!g.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",$a(y),{"has-background-dim":0!==y}),src:g,alt:f})),React.createElement("div",{className:"gb-cta-content"},React.createElement(Ia,{tagName:"h2",placeholder:Ha("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:u,className:b()("gb-cta-title","gb-font-size-"+m),style:{color:h},onChange:function(e){return M({ctaTitle:e})}}),React.createElement(Ia,{tagName:"div",multiline:"p",placeholder:Ha("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:d,className:b()("gb-cta-text","gb-font-size-"+p),style:{color:h},onChange:function(e){return M({ctaText:e})}})),React.createElement("div",{className:"gb-cta-button"},React.createElement(Ia,{tagName:"span",placeholder:Ha("Button text…","genesis-blocks"),value:n,allowedFormats:[],className:b()("gb-button",c,l),style:{color:s,backgroundColor:i},onChange:function(e){return M({buttonText:e})}}),k&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(Ja,{icon:"admin-links"}),React.createElement(Na,{className:"button-url",value:r,onChange:function(e){return M({buttonUrl:e})}}),React.createElement(Va,{label:Ha("Apply","genesis-blocks"),type:"submit"},React.createElement(Ga,{icon:"editor-break"})))))]}}]),n}(Oa);function $a(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}za("genesis-blocks/gb-cta",{title:Ha("Call To Action","genesis-blocks"),description:Ha("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[Ha("call to action","genesis-blocks"),Ha("cta","genesis-blocks"),Ha("atomic","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},gb_settings_data:{gb_cta_textOptions:{title:Ha("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:Ha("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:Ha("Button Options","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:qa,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.titleFontSize,p=t.ctaTextColor,_=t.imgURL,h=t.imgAlt,g=t.dimRatio;return React.createElement(Ma,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",$a(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Ia.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+m),style:{color:p},value:c}),u&&React.createElement(Ia.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:p},value:u})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:"noopener noreferrer",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Ia.Content,{value:n}))))},deprecated:xa});var Za=wp.i18n.__,Qa=wp.element.Component,Xa=wp.blockEditor.InspectorControls,eo=wp.components,to=eo.PanelBody,no=eo.SelectControl,ro=eo.ToggleControl,ao=function(e){m()(n,e);var t=Ka(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:"gb-share-icon-text",label:Za("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:Za("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:Za("Text Only","genesis-blocks")}],n=[{value:"gb-share-shape-square",label:Za("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:Za("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:Za("Circular","genesis-blocks")}],r=[{value:"gb-share-size-small",label:Za("Small","genesis-blocks")},{value:"gb-share-size-medium",label:Za("Medium","genesis-blocks")},{value:"gb-share-size-large",label:Za("Large","genesis-blocks")}],a=[{value:"gb-share-color-standard",label:Za("Standard","genesis-blocks")},{value:"gb-share-color-social",label:Za("Social Colors","genesis-blocks")}];return React.createElement(Xa,{key:"inspector"},React.createElement(v,{id:"gb_sharing_links"},React.createElement(to,null,React.createElement("p",null,Za("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(ro,{label:Za("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),React.createElement(ro,{label:Za("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),React.createElement(ro,{label:Za("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),React.createElement(ro,{label:Za("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),React.createElement(ro,{label:Za("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),React.createElement(ro,{label:Za("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),React.createElement(to,{title:Za("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(v,{id:"gb_sharing_shareButtonStyle"},React.createElement(no,{label:Za("Button Style","genesis-blocks"),value:this.props.attributes.shareButtonStyle,options:t.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonStyle:t})}})),React.createElement(v,{id:"gb_sharing_shareButtonShape"},React.createElement(no,{label:Za("Button Shape","genesis-blocks"),value:this.props.attributes.shareButtonShape,options:n.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonShape:t})}})),React.createElement(v,{id:"gb_sharing_shareButtonSize"},React.createElement(no,{label:Za("Button Size","genesis-blocks"),value:this.props.attributes.shareButtonSize,options:r.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonSize:t})}})),React.createElement(v,{id:"gb_sharing_shareButtonColor"},React.createElement(no,{label:Za("Button Color","genesis-blocks"),value:this.props.attributes.shareButtonColor,options:a.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonColor:t})}}))))}}]),n}(Qa);function oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var io=function(e){m()(n,e);var t=oo(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"gb-align-"+this.props.attributes.shareAlignment:void 0,"gb-block-sharing")},this.props.children)}}]),n}(wp.element.Component);function so(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var lo=wp.i18n.__,co=wp.element.Component,uo=wp.blockEditor,mo=uo.AlignmentToolbar,po=uo.BlockControls,_o=function(e){m()(n,e);var t=so(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.attributes.clientId&&e.props.attributes.clientId===e.props.clientId||e.props.setAttributes({clientId:e.props.clientId}),e}return u()(n,[{key:"render",value:function(){var e=this;return[React.createElement(po,{key:"controls"},React.createElement(mo,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),React.createElement(ao,a()({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(io,a()({key:"gb-share-links-"+this.props.clientId},this.props),React.createElement("ul",{className:"gb-share-list"},this.props.attributes.twitter&&React.createElement("li",null,React.createElement("a",{className:"gb-share-twitter"},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},lo("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},lo("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},lo("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},lo("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("svg",{"aria-labelledby":"gb-link-reddit-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-reddit-"+this.props.clientId},lo("Share on Reddit","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},lo("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})),React.createElement("span",{className:"gb-social-text"},lo("Share via Email","genesis-blocks"))))))]}}]),n}(co),ho=(n(345),n(346),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-sharing",{title:ho("Sharing","genesis-blocks"),description:ho("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[ho("sharing","genesis-blocks"),ho("social","genesis-blocks"),ho("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:ho("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:ho("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:ho("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:ho("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:ho("Button Color","genesis-blocks")}},edit:function(e){return React.createElement(_o,a()({},e,{clientId:e.clientId}))},save:function(){return null}});var go=n(14),fo=n.n(go),bo=n(6),yo=n.n(bo),ko=n(33),Mo=n.n(ko),vo=n(11),Lo=n.n(vo);function wo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Yo=wp.i18n.__,To=wp.element,Do=To.Component,Ro=(To.Fragment,wp.blockEditor.InspectorControls),So=wp.components,xo=So.PanelBody,Eo=So.QueryControls,Co=So.RangeControl,jo=So.SelectControl,Po=So.TextControl,Ho=So.ToggleControl,Oo=So.FormTokenField,zo=So.Spinner,Ao=wp.url.addQueryArgs,Bo=wp.apiFetch,No=[],Fo=function(e){m()(n,e);var t=wo(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={categoriesList:!1,categoriesTitleToIdRelationships:!1,categoriesIdToTitleRelationships:!1,pagesList:!1,pagesTitleToIdRelationships:!1,pagesIdToTitleRelationships:!1,waitingForApiResponse:!1},e}return u()(n,[{key:"componentDidMount",value:function(){this.stillMounted=!0}},{key:"componentDidUpdate",value:function(){if(this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.categories&&!this.state.categoriesList&&"post"===this.props.attributes.postType&&this.getCategoriesFromServer(!!this.props.attributes.categories&&this.props.attributes.categories,!0),this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.selectedPages.length>0&&!this.state.pagesList&&"page"===this.props.attributes.postType){var e=[];for(var t in this.props.attributes.selectedPages)e.push(this.props.attributes.selectedPages[t].value);this.getPagesFromServer(e||!1,!0)}}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"getCategoriesFromServer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r){if(t.setState({waitingForApiResponse:!0,categoriesList:!1}),!e||0===e.length)return n||t.setState({waitingForApiResponse:!1}),void r();var a={per_page:99,search:e};n&&(a={per_page:99,include:e}),t.fetchRequest=Bo({path:Ao("/wp/v2/categories",a)}).then((function(e){var n=t.state.categoriesTitleToIdRelationships?t.state.categoriesTitleToIdRelationships:{},a=t.state.categoriesIdToTitleRelationships?t.state.categoriesIdToTitleRelationships:{};for(var o in e)n[e[o].name+" ("+e[o].slug+")"]=e[o].id,a[e[o].id]=e[o].name+" ("+e[o].slug+")";t.setState({categoriesList:e,categoriesTitleToIdRelationships:n,categoriesIdToTitleRelationships:a,waitingForApiResponse:!1}),r()})).catch((function(){console.log("category request failure: ".concat(error.message)),t.stillMounted&&(t.setState({categoriesList:[],waitingForApiResponse:!1}),r())}))}))}},{key:"getPagesFromServer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r){if(t.setState({waitingForApiResponse:!0,pagesList:!1}),!e||0===e.length)return n||t.setState({waitingForApiResponse:!1}),void r();var a={per_page:-1,search:e};n&&(a={per_page:-1,include:e}),t.fetchRequest=Bo({path:Ao("/wp/v2/pages",a)}).then((function(e){var n=t.state.pagesTitleToIdRelationships?t.state.pagesTitleToIdRelationships:{},a=t.state.pagesIdToTitleRelationships?t.state.pagesIdToTitleRelationships:{};for(var o in e)n[e[o].title.rendered+" ("+e[o].slug+")"]=e[o].id,a[e[o].id]=e[o].title.rendered+" ("+e[o].slug+")";t.setState({pagesList:e,pagesTitleToIdRelationships:n,pagesIdToTitleRelationships:a,waitingForApiResponse:!1}),r()})).catch((function(){t.stillMounted&&(t.setState({pagesList:[],waitingForApiResponse:!1}),r())}))}))}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/block-editor").getSettings();return Mo()(Lo()(e.imageSizes,(function(e){var t=e.name;return{value:e.slug,label:t}})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.latestPosts,i=n.order,s=n.orderBy,l=this.state,c=l.categoriesList,u=l.categoriesTitleToIdRelationships,d=l.categoriesIdToTitleRelationships,m=l.pagesList,p=l.pagesTitleToIdRelationships,_=l.pagesIdToTitleRelationships,h=[{value:"post",label:Yo("Post","genesis-blocks")},{value:"page",label:Yo("Page","genesis-blocks")}],g=[{value:"div",label:Yo("div","genesis-blocks")},{value:"header",label:Yo("header","genesis-blocks")},{value:"section",label:Yo("section","genesis-blocks")},{value:"article",label:Yo("article","genesis-blocks")},{value:"main",label:Yo("main","genesis-blocks")},{value:"aside",label:Yo("aside","genesis-blocks")},{value:"footer",label:Yo("footer","genesis-blocks")}],f=[{value:"h2",label:Yo("H2","genesis-blocks")},{value:"h3",label:Yo("H3","genesis-blocks")},{value:"h4",label:Yo("H4","genesis-blocks")},{value:"h5",label:Yo("H5","genesis-blocks")},{value:"h6",label:Yo("H6","genesis-blocks")}],b=Array.isArray(o)&&o.length,y="post"===n.postType,k={value:"selectimage",label:Yo("Select image size","genesis-blocks")},M={value:"gb-block-post-grid-landscape",label:Yo("GB Grid Landscape","genesis-blocks")},L={value:"gb-block-post-grid-square",label:Yo("GB Grid Square","genesis-blocks")},w=this.imageSizeSelect();w.push(L,M),w.unshift(k);return React.createElement(Ro,null,React.createElement(xo,{title:Yo("Post and Page Grid Settings","genesis-blocks"),className:y?null:"genesis-blocks-hide-query"},React.createElement(v,{id:"gb_postgrid_postType"},React.createElement(jo,{label:Yo("Content Type","genesis-blocks"),options:h,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&React.createElement(v,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(Oo,{suggestions:Mo()(Lo()(m,(function(e){var t=e.title,n=e.slug;return t.rendered+" ("+n+")"}))),label:React.createElement(React.Fragment,null,Yo("Enter page names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(zo,null)):null),placeholder:Yo("Start typing page name…","genesis-blocks"),value:function(){if(!e.props.attributes.selectedPages)return[];var t=[];for(var n in e.props.attributes.selectedPages){var r=e.props.attributes.selectedPages[n].value;_[r]&&t.push(_[e.props.attributes.selectedPages[n].value])}return t}(),onInputChange:function(t){var n="getPagesFromServer";No[n]&&(clearTimeout(No[n]),No[n]=null),No[n]=setTimeout((function(){clearTimeout(No[n]),e.getPagesFromServer(t)}),500)},onChange:function(e){var t=[];for(var n in e)t.push({value:p[e[n]]});t||(t=void 0),r({selectedPages:t})}})))),"post"===n.postType&&React.createElement(v,{id:"gb_postgrid_categories"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(Oo,{suggestions:Mo()(Lo()(c,(function(e){return e.name+" ("+e.slug+")"}))),label:React.createElement(React.Fragment,null,Yo("Enter category names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(zo,null)):null),placeholder:Yo("Start typing category name…","genesis-blocks"),value:function(){if(!e.props.attributes.categories)return[];var t=e.props.attributes.categories.split(","),n=[];for(var r in t)d[t[r]]&&n.push(d[t[r]]);return n}(),onInputChange:function(t){var n="getCategoriesFromServer";No[n]&&(clearTimeout(No[n]),No[n]=null),No[n]=setTimeout((function(){clearTimeout(No[n]),e.getCategoriesFromServer(t)}),500)},onChange:function(e){var t="";for(var n in e)u[e[n]]&&(t=t+u[e[n]]+",");(t=t.replace(/,\s*$/,""))||(t=void 0),r({categories:void 0!==t?t:""})}})))),"post"===n.postType&&React.createElement(React.Fragment,null,React.createElement(v,{id:"gb_postgrid_queryControls"},React.createElement(Eo,a()({order:i,orderBy:s},{numberOfItems:n.postsToShow,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})}}))),React.createElement(v,{id:"gb_postgrid_offset"},React.createElement(Co,{label:Yo("Number of items to offset","genesis-blocks"),value:n.offset,onChange:function(e){return r({offset:e})},min:0,max:20}))),"grid"===n.postLayout&&React.createElement(v,{id:"gb_postgrid_columns"},React.createElement(Co,{label:Yo("Columns","genesis-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:b?Math.min(4,o.length):4}))),React.createElement(xo,{title:Yo("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(v,{id:"gb_postgrid_displaySectionTitle"},React.createElement(Ho,{label:Yo("Display Section Title","genesis-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&React.createElement(v,{id:"gb_postgrid_sectionTitle"},React.createElement(Po,{label:Yo("Section Title","genesis-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),React.createElement(v,{id:"gb_postgrid_displayPostImage"},React.createElement(Ho,{label:Yo("Display Featured Image","genesis-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&React.createElement(v,{id:"gb_postgrid_imageSizeValue"},React.createElement(jo,{label:Yo("Image Size","genesis-blocks"),value:function(){for(var e=0;e<w.length;e++)if(w[e].value===n.imageSize)return n.imageSize;return"full"}(),options:w,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),React.createElement(v,{id:"gb_postgrid_displayPostTitle"},React.createElement(Ho,{label:Yo("Display Title","genesis-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),y&&React.createElement(v,{id:"gb_postgrid_displayPostAuthor"},React.createElement(Ho,{label:Yo("Display Author","genesis-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),y&&React.createElement(v,{id:"gb_postgrid_displayPostDate"},React.createElement(Ho,{label:Yo("Display Date","genesis-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),React.createElement(v,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(Ho,{label:Yo("Display Excerpt","genesis-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&React.createElement(v,{id:"gb_postgrid_excerptLength"},React.createElement(Co,{label:Yo("Excerpt Length","genesis-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),React.createElement(v,{id:"gb_postgrid_displayPostLink"},React.createElement(Ho,{label:Yo("Display Continue Reading Link","genesis-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&React.createElement(v,{id:"gb_postgrid_readMoreText"},React.createElement(Po,{label:Yo("Customize Continue Reading Text","genesis-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),React.createElement(xo,{title:Yo("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(v,{id:"gb_postgrid_sectionTag"},React.createElement(jo,{label:Yo("Post Grid Section Tag","genesis-blocks"),options:g,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:Yo("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),n.sectionTitle&&React.createElement(v,{id:"gb_postgrid_sectionTitleTag"},React.createElement(jo,{label:Yo("Section Title Heading Tag","genesis-blocks"),options:f,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:Yo("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),n.displayPostTitle&&React.createElement(v,{id:"gb_postgrid_postTitleTag"},React.createElement(jo,{label:Yo("Post Title Heading Tag","genesis-blocks"),options:f,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:Yo("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}]),n}(Do),Wo=n(29),Io=n.n(Wo);function Uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Vo=wp.i18n.__,Jo=wp.element,Go=Jo.Fragment,qo=Jo.Component,$o=wp.components,Ko=$o.Placeholder,Zo=$o.Dashicon,Qo=function(e){m()(n,e);var t=Uo(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},r}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.imgSize!==e.imgSize&&this.setImageUrl()}},{key:"componentDidMount",value:function(){var e=this;this.setState({setImageUrlSubscription:wp.data.subscribe((function(){e.setImageUrl()}))})}},{key:"componentWillUnmount",value:function(){this.state.setImageUrlSubscription()}},{key:"setImageUrl",value:function(){var e=this.getImageUrl();e||(e=this.getFullImageSize()),e&&this.setState({imageUrl:e,imageLoaded:!0})}},{key:"getImageUrl",value:function(){return Io()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return Io()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return React.createElement(Go,null,React.createElement("div",{className:b()("gb-block-post-grid-image")},React.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},React.createElement("img",{src:this.state.imageUrl?this.state.imageUrl:this.props.imgSizeLandscape,alt:this.props.imgAlt,className:this.props.imgClass})),!this.getImageUrl()&&this.state.imageLoaded&&"selectimage"!==this.props.imgSize&&React.createElement(Go,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(Zo,{icon:"warning"})),React.createElement(Ko,{className:"gb-post-grid-no-image-placeholder"},React.createElement(Zo,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},Vo("There is no image generated for the selected image size, so a fallback image size is being used.","genesis-blocks")),React.createElement("div",{className:"gb-post-grid-image-help"},React.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":Vo("Learn more about image sizes (opens in a new tab)","genesis-blocks"),href:"https://github.com/studiopress/genesis-blocks/wiki/Post-Grid-Block#featured-image-sizes"},Vo("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}]),n}(qo);function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ti=wp.element,ni=ti.useState,ri=ti.useEffect,ai=wp.i18n.__,oi=wp.htmlEntities.decodeEntities,ii=wp.components,si=ii.Placeholder,li=ii.Spinner,ci=ii.ToolbarGroup,ui=wp.blockEditor,di=ui.BlockAlignmentToolbar,mi=ui.BlockControls,pi=wp.apiFetch,_i=wp.url.addQueryArgs,hi=[];n(347),n(348);var gi=wp.i18n.__;function fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-post-grid",{title:gi("Post and Page Grid","genesis-blocks"),description:gi("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[gi("post","genesis-blocks"),gi("page","genesis-blocks"),gi("grid","genesis-blocks"),gi("atomic","genesis-blocks")],edit:function(e){var t,n=ni(),r=fo()(n,2),o=r[0],s=r[1],l=ni(e),c=fo()(l,2),u=c[0],d=c[1],m=e.attributes,p=e.setAttributes;if(e.attributes.postType!==u.postType||e.attributes.selectedPages!==u.selectedPages||e.attributes.categories!==u.categories||e.attributes.order!==u.order||e.attributes.orderby!==u.orderby||e.attributes.offset!==u.offset||e.attributes.postsToShow!==u.postsToShow){var _="handleUpdateAttributes";hi[_]&&(clearTimeout(hi[_]),hi[_]=null),hi[_]=setTimeout((function(){clearTimeout(hi[_]),d(e.attributes)}),500)}ri((function(){s(null)}),[u]),ri((function(){o||("post"===e.attributes.postType&&new Promise((function(t){var n={order:e.attributes.order,orderby:e.attributes.orderBy,per_page:e.attributes.postsToShow,offset:e.attributes.offset};if(wp.data.select("core/editor")){var r=wp.data.select("core/editor").getCurrentPostId();r&&(n.exclude=[r])}e.attributes.categories&&(n.categories=e.attributes.categories),pi({path:_i("/wp/v2/posts",n)}).then((function(e){s(e),t()})).catch((function(e){console.log(e)}))})),"page"===e.attributes.postType&&new Promise((function(t){var n=e.attributes.selectedPages&&e.attributes.selectedPages.length>0?e.attributes.selectedPages.map((function(e){return e.value})):null,r={per_page:6},a=wp.data.select("core/editor").getCurrentPostId();a&&(r.exclude=[a]),n&&(delete r.per_page,r.include=n,r.orderby="include"),pi({path:_i("/wp/v2/pages",r)}).then((function(e){s(e),t()})).catch((function(e){console.log(e)}))})))}),[o]);var h=Array.isArray(o)&&o.length,g="post"===m.postType;if(!h)return React.createElement(React.Fragment,null,React.createElement(Fo,ei({setAttributes:p},e)),React.createElement(si,{icon:"admin-post",label:ai("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(o)?ai("No posts found.","genesis-blocks"):React.createElement(li,null)));var f=[{icon:"grid-view",title:ai("Grid View","genesis-blocks"),onClick:function(){return p({postLayout:"grid"})},isActive:"grid"===m.postLayout},{icon:"list-view",title:ai("List View","genesis-blocks"),onClick:function(){return p({postLayout:"list"})},isActive:"list"===m.postLayout}],y=m.sectionTag?m.sectionTag:"section",k=m.sectionTitleTag?m.sectionTitleTag:"h2",M=m.postTitleTag?m.postTitleTag:"h3";return React.createElement(React.Fragment,null,React.createElement(Fo,ei({setAttributes:p},e)),React.createElement(mi,null,React.createElement(di,{value:m.align,onChange:function(e){p({align:e})},controls:["center","wide","full"]}),React.createElement(ci,{controls:f})),React.createElement(y,{className:b()(e.className,"gb-block-post-grid")},m.displaySectionTitle&&m.sectionTitle&&React.createElement(k,{className:"gb-post-grid-section-title"},m.sectionTitle),React.createElement("div",{className:b()((t={"is-grid":"grid"===m.postLayout,"is-list":"list"===m.postLayout},i()(t,"columns-".concat(m.columns),"grid"===m.postLayout),i()(t,"gb-post-grid-items","gb-post-grid-items"),t))},o.map((function(t,n){return React.createElement("article",{key:n,id:"post-"+t.id,className:b()("post-"+t.id,t.featured_image_src&&m.displayPostImage?"has-post-thumbnail":null)},m.displayPostImage&&t.featured_media?React.createElement(Qo,a()({},e,{imgAlt:oi(t.title.rendered.trim())||ai("(Untitled)","genesis-blocks"),imgClass:"wp-image-".concat(t.featured_media.toString()),imgID:t.featured_media.toString(),imgSize:m.imageSize,imgSizeLandscape:t.featured_image_src,imgSizeSquare:t.featured_image_src_square,imgLink:t.link})):null,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},m.displayPostTitle&&React.createElement(M,{className:"gb-block-post-grid-title"},React.createElement("a",{href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},oi(t.title.rendered.trim())||ai("(Untitled)","genesis-blocks"))),g&&t.author_info&&t.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-byline"},m.displayPostAuthor&&t.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-author"},React.createElement("a",{className:"gb-text-link",target:"_blank",rel:"noopener noreferrer",href:t.author_info.author_link},t.author_info.display_name)),m.displayPostDate&&t.date_gmt&&React.createElement("time",{dateTime:yo()(t.date_gmt).utc().format(),className:"gb-block-post-grid-date"},yo()(t.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},m.displayPostExcerpt&&t.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(r=t.excerpt.rendered,o=m.excerptLength,r.split(" ").splice(0,o).join(" "))}}),m.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},m.readMoreText)))));var r,o})))))},gb_settings_data:{gb_postgrid_postType:{title:gi("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:gi("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:gi("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:gi("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:gi("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:gi("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:gi("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:gi("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:gi("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:gi("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:gi("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:gi("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:gi("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:gi("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:gi("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:gi("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:gi("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:gi("Post Title Heading Tag","genesis-blocks")}},save:function(){return null}});var bi=wp.i18n.__,yi=wp.element.Component,ki=wp.blockEditor,Mi=ki.InspectorControls,vi=ki.PanelColorSettings,Li=ki.MediaUpload,wi=wp.components,Yi=wi.Button,Ti=wi.Icon,Di=wi.PanelBody,Ri=wi.RangeControl,Si=function(e){m()(n,e);var t=fi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.containerPaddingTop,r=t.containerPaddingRight,a=t.containerPaddingBottom,o=t.containerPaddingLeft,i=t.containerMarginTop,s=t.containerMarginBottom,l=t.containerMaxWidth,c=t.containerBackgroundColor,u=t.containerDimRatio,d=t.containerImgURL,m=t.containerImgID,p=this.props.setAttributes,_=function(){p({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Mi,{key:"inspector"},React.createElement(v,{id:"gb_container_containerOptions"},React.createElement(Di,{title:bi("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(Ri,{label:bi("Padding Top (%)","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Bottom (%)","genesis-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Left (%)","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Right (%)","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Margin Top (%)","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),React.createElement(Ri,{label:bi("Margin Bottom (%)","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Inside Container Max Width (px)","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({containerMaxWidth:t})},min:500,max:1600,step:1}))),React.createElement(v,{id:"gb_container_backgroundOptions"},React.createElement(Di,{title:bi("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,bi("Select a background image:","genesis-blocks")),React.createElement(Li,{onSelect:function(e){p({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:m,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Yi,{className:"gb-container-inspector-media",label:bi("Edit image","genesis-blocks"),onClick:t},React.createElement(Ti,{icon:"format-image"}),bi("Select Image","genesis-blocks")),d&&!!d.length&&React.createElement(Yi,{className:"gb-container-inspector-media",label:bi("Remove Image","genesis-blocks"),onClick:_},React.createElement(Ti,{icon:"dismiss"}),bi("Remove","genesis-blocks")))}}),d&&!!d.length&&React.createElement(Ri,{label:bi("Image Opacity","genesis-blocks"),value:u,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),React.createElement(vi,{title:bi("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,label:bi("Background Color","genesis-blocks"),onChange:function(e){return p({containerBackgroundColor:e})}}]}))))}}]),n}(yi);function xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ei=function(e){m()(n,e);var t=xi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,c=t.containerMarginTop,u=t.containerMarginBottom,d=t.containerWidth,m=t.containerMaxWidth,p=t.containerImgURL,_=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:c?"".concat(c,"%"):void 0,marginBottom:u?"".concat(u,"%"):void 0},f=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:f||void 0},React.createElement("div",{className:"gb-container-inside"},p&&!!p.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:p,alt:_})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:m?"".concat(m,"px"):void 0}},this.props.children)))}}]),n}(wp.element.Component);function Ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ji=function(e){m()(n,e);var t=Ci(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.containerBackgroundColor,n=e.containerAlignment,r=e.containerPaddingTop,a=e.containerPaddingRight,o=e.containerPaddingBottom,s=e.containerPaddingLeft,l=e.containerMarginTop,c=e.containerMarginBottom,u=e.containerWidth,d=(e.containerMaxWidth,b()([this.props.className,"gb-block-container"],i()({},"align"+u,u)));return React.createElement("div",{style:{backgroundColor:t,textAlign:n,paddingLeft:"".concat(s,"%"),paddingRight:"".concat(a,"%"),paddingBottom:"".concat(o,"%"),paddingTop:"".concat(r,"%"),marginTop:"".concat(l,"%"),marginBottom:"".concat(c,"%")},className:d||void 0},this.props.children)}}]),n}(wp.element.Component);function Pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Hi=function(e){m()(n,e);var t=Pi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,c=t.containerMarginTop,u=t.containerMarginBottom,d=t.containerWidth,m=t.containerMaxWidth,p=t.containerImgURL,_=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:c?"".concat(c,"%"):void 0,marginBottom:u?"".concat(u,"%"):void 0},f=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:f||void 0},React.createElement("div",{className:"gb-container-inside"},p&&!!p.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:p,alt:_})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(m,"px")}},this.props.children)))}}]),n}(wp.element.Component);var Oi=wp.blockEditor.InnerBlocks;var zi=[{attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){return React.createElement(Hi,e,React.createElement(Oi.Content,null))}},{attributes:{containerPaddingTop:{type:"number",default:0},containerPaddingRight:{type:"number",default:0},containerPaddingBottom:{type:"number",default:0},containerPaddingLeft:{type:"number",default:0},containerMarginTop:{type:"number",default:0},containerMarginBottom:{type:"number",default:0},containerWidth:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string",default:"#fff"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){var t,n=e.attributes,r=n.containerMaxWidth,a=n.containerImgURL,o=n.containerImgAlt,i=n.containerDimRatio;return React.createElement(ji,e,React.createElement("div",{className:"gb-container-inside"},a&&!!a.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(t=i,0===t||50===t?null:"has-background-dim-"+10*Math.round(t/10)),{"has-background-dim":0!==i}),src:a,alt:o})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(r,"px")}},React.createElement(Oi.Content,null))))}}];n(349),n(350);function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Fi=wp.i18n.__,Wi=wp.element.Component,Ii=wp.blocks.registerBlockType,Ui=wp.blockEditor.InnerBlocks,Vi=function(e){m()(n,e);var t=Ni(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.setAttributes;return[React.createElement(Si,a()({key:"gb-container-inspector-"+this.props.clientId},Bi({setAttributes:e},this.props))),React.createElement(Ei,a()({key:"gb-container-"+this.props.clientId},this.props),React.createElement(Ui,null))]}}]),n}(Wi);function Ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}Ii("genesis-blocks/gb-container",{title:Fi("Container","genesis-blocks"),description:Fi("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[Fi("container","genesis-blocks"),Fi("section","genesis-blocks"),Fi("genesis","genesis-blocks")],supports:{align:["center","wide","full"]},attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number"},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},gb_settings_data:{gb_container_containerOptions:{title:Fi("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:Fi("Background Options","genesis-blocks")}},edit:Vi,save:function(e){return React.createElement(Ei,e,React.createElement(Ui.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:zi});var Gi=wp.i18n.__,qi=wp.element.Component,$i=wp.blockEditor.InspectorControls,Ki=wp.components,Zi=Ki.PanelBody,Qi=Ki.RangeControl,Xi=function(e){m()(n,e);var t=Ji(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return React.createElement($i,{key:"inspector"},React.createElement(Zi,null,React.createElement(v,{id:"gb_pricing_columns"},React.createElement(Qi,{label:Gi("Pricing Columns","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),React.createElement(v,{id:"gb_pricing_columnsGap"},React.createElement(Qi,{label:Gi("Pricing Columns Gap","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}]),n}(qi);function es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ts=function(e){m()(n,e);var t=es(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.columns,n=e.align,r=b()([this.props.className,"gb-pricing-columns-"+t],i()({},"align"+n,n));return React.createElement("div",{className:r||void 0},this.props.children)}}]),n}(wp.element.Component),ns=n(30),rs=n.n(ns),as=n(31),os=n.n(as);function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var cs=wp.i18n.__,us=wp.element.Component,ds=wp.blocks.registerBlockType,ms=wp.blockEditor,ps=ms.BlockControls,_s=ms.BlockAlignmentToolbar,hs=ms.InnerBlocks,gs=wp.data.dispatch,fs=["genesis-blocks/gb-pricing-table"],bs=rs()((function(e){return os()(e,(function(){return["genesis-blocks/gb-pricing-table"]}))})),ys=function(e){m()(n,e);var t=ls(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&gs("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.columns,r=t.columnsGap,o=t.align,i=e.setAttributes;return[React.createElement(ps,{key:"controls"},React.createElement(_s,{value:o,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),React.createElement(Xi,a()({key:"gb-pricing-table-inspector-"+this.props.clientId},ss({setAttributes:i},this.props))),React.createElement(ts,a()({key:"gb-pricing-table-"+this.props.clientId},this.props),React.createElement("div",{className:b()("gb-pricing-table-wrap-admin","gb-block-pricing-table-gap-"+r)},React.createElement(hs,{template:bs(n),templateLock:"all",allowedBlocks:fs})))]}}]),n}(us);function ks(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}ds("genesis-blocks/gb-pricing",{title:cs("Pricing","genesis-blocks"),description:cs("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[cs("pricing table","genesis-blocks"),cs("shop","genesis-blocks"),cs("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:cs("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:cs("Pricing Columns Gap","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:ys,save:function(e){var t=e.attributes.columnsGap,n=b()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(ts,e,React.createElement("div",{className:n||void 0},React.createElement(hs.Content,null)))}});var Ms=wp.i18n.__,vs=wp.element.Component,Ls=wp.blockEditor,ws=Ls.InspectorControls,Ys=Ls.PanelColorSettings,Ts=wp.components,Ds=Ts.PanelBody,Rs=Ts.RangeControl,Ss=function(e){m()(n,e);var t=ks(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderWidth,a=n.borderColor,o=n.borderRadius,i=n.backgroundColor,s=n.padding,l=t.setAttributes;return React.createElement(ws,{key:"inspector"},React.createElement(Ds,null,React.createElement(v,{id:"gb_pricing_inner_padding"},React.createElement(Rs,{label:Ms("Pricing Column Padding","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),React.createElement(v,{id:"gb_pricing_inner_borderWidth"},React.createElement(Rs,{label:Ms("Pricing Column Border","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),React.createElement(v,{id:"gb_pricing_inner_borderRadius"},React.createElement(Rs,{label:Ms("Pricing Column Border Radius","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({borderRadius:t})},min:0,max:20,step:1}))),0<r&&React.createElement(v,{id:"gb_pricing_inner_borderColor"},React.createElement(Ys,{title:Ms("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({borderColor:e})},label:Ms("Border Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_pricing_inner_colorSettings"},React.createElement(Ys,{title:Ms("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return l({backgroundColor:e})},label:Ms("Background Color","genesis-blocks")}]})))}}]),n}(vs);n(351),n(352);function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var js=wp.i18n.__,Ps=wp.element.Component,Hs=wp.blocks.registerBlockType,Os=wp.blockEditor,zs=Os.InnerBlocks,As=Os.AlignmentToolbar,Bs=Os.BlockControls,Ns=wp.element.Fragment,Fs=["genesis-blocks/gb-pricing-table-description","genesis-blocks/gb-pricing-table-price","genesis-blocks/gb-pricing-table-subtitle","genesis-blocks/gb-pricing-table-title","genesis-blocks/gb-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"],Ws=function(e){m()(n,e);var t=Cs(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.borderWidth,r=t.borderColor,o=t.borderRadius,i=t.backgroundColor,s=t.padding,l=t.alignment,c=e.setAttributes,u={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:o||null,backgroundColor:i||null,padding:s?s+"%":null};return[React.createElement(Bs,{key:"controls"},React.createElement(As,{value:l,onChange:function(e){c({alignment:e})}})),React.createElement(Ss,a()({key:"gb-pricing-table-inner-inspector-"+this.props.clientId},Es({setAttributes:c},this.props))),React.createElement(Ns,{key:"gb-pricing-table-inner-fragment-"+this.props.clientId},React.createElement("div",{className:b()(l?"gb-block-pricing-table-"+l:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:u},React.createElement(zs,{template:[["genesis-blocks/gb-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-features",{features:"<li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li>",multilineTag:"li",ordered:!1,customFontSize:20,paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["genesis-blocks/gb-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:Fs,templateInsertUpdatesSelection:!1}))))]}}]),n}(Ps);Hs("genesis-blocks/gb-pricing-table",{title:js("Pricing Column","genesis-blocks"),description:js("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[js("pricing","genesis-blocks"),js("shop","genesis-blocks"),js("buy","genesis-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},gb_settings_data:{gb_pricing_inner_padding:{title:js("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:js("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:js("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:js("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:js("Pricing Column Background Color","genesis-blocks")}},edit:Ws,save:function(e){var t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,o=t.backgroundColor,i=t.alignment,s=t.padding,l={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:o||null,padding:s?s+"%":null};return React.createElement("div",{className:b()(i?"gb-block-pricing-table-"+i:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:l},React.createElement(zs.Content,null)))}});var Is=wp.i18n.__,Us=wp.element.Fragment,Vs=wp.components.RangeControl;function Js(e){var t=e.padding,n=e.paddingTitle,r=e.paddingHelp,a=e.paddingMin,o=e.paddingMax,i=e.paddingEnable,s=e.onChangePadding,l=void 0===s?function(){}:s,c=e.paddingTop,u=e.paddingTopMin,d=e.paddingTopMax,m=e.paddingEnableTop,p=e.onChangePaddingTop,_=void 0===p?function(){}:p,h=e.paddingRight,g=e.paddingRightMin,f=e.paddingRightMax,b=e.paddingEnableRight,y=e.onChangePaddingRight,k=void 0===y?function(){}:y,M=e.paddingBottom,v=e.paddingBottomMin,L=e.paddingBottomMax,w=e.paddingEnableBottom,Y=e.onChangePaddingBottom,T=void 0===Y?function(){}:Y,D=e.paddingLeft,R=e.paddingLeftMin,S=e.paddingLeftMax,x=e.paddingEnableLeft,E=e.onChangePaddingLeft,C=void 0===E?function(){}:E,j=e.paddingVertical,P=e.paddingEnableVertical,H=e.paddingVerticalMin,O=e.paddingVerticalMax,z=e.onChangePaddingVertical,A=void 0===z?function(){}:z,B=e.paddingHorizontal,N=e.paddingEnableHorizontal,F=e.paddingHorizontalMin,W=e.paddingHorizontalMax,I=e.onChangePaddingHorizontal,U=void 0===I?function(){}:I;return React.createElement(Us,null,i&&React.createElement(Vs,{label:n||Is("Padding","genesis-blocks"),help:r||null,value:t,min:a,max:o,onChange:l}),m&&React.createElement(Vs,{label:Is("Padding Top","genesis-blocks"),value:c,min:u,max:d,onChange:_}),b&&React.createElement(Vs,{label:Is("Padding Right","genesis-blocks"),value:h,min:g,max:f,onChange:k}),w&&React.createElement(Vs,{label:Is("Padding Bottom","genesis-blocks"),value:M,min:v,max:L,onChange:T}),x&&React.createElement(Vs,{label:Is("Padding Left","genesis-blocks"),value:D,min:R,max:S,onChange:C}),P&&React.createElement(Vs,{label:Is("Padding Vertical","genesis-blocks"),value:j,min:H,max:O,onChange:A}),N&&React.createElement(Vs,{label:Is("Padding Horizontal","genesis-blocks"),value:B,min:F,max:W,onChange:U}))}function Gs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var qs=wp.i18n.__,$s=wp.element.Component,Ks=wp.compose.compose,Zs=wp.blockEditor,Qs=Zs.InspectorControls,Xs=Zs.FontSizePicker,el=Zs.withFontSizes,tl=Zs.withColors,nl=Zs.ContrastChecker,rl=Zs.PanelColorSettings,al=wp.components,ol=al.withFallbackStyles,il=al.PanelBody,sl=al.ToggleControl,ll=al.TextControl,cl=(al.RangeControl,ol((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}}))),ul=function(e){m()(n,e);var t=Gs(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.showTerm,o=n.showCurrency,i=n.term,s=n.currency,l=n.paddingTop,c=n.paddingRight,u=n.paddingBottom,d=n.paddingLeft,m=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,_=t.fontSize,h=t.setFontSize,g=t.backgroundColor,f=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,k=t.fallbackBackgroundColor,M=t.fallbackTextColor;return React.createElement(Qs,{key:"inspector"},React.createElement(il,{title:qs("Text Settings","genesis-blocks")},React.createElement(Xs,{fallbackFontSize:p,value:_.size,onChange:h}),React.createElement(sl,{label:qs("Show currency symbol","genesis-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&React.createElement(ll,{label:qs("Currency Symbol","genesis-blocks"),type:"text",value:s,onChange:function(t){return e.props.setAttributes({currency:t})}}),React.createElement(sl,{label:qs("Show pricing duration","genesis-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&React.createElement(ll,{label:qs("Pricing Duration","genesis-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({term:t})}})),React.createElement(il,{title:qs("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return m({paddingTop:e})},paddingEnableRight:!0,paddingRight:c,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return m({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:u,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return m({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:d,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return m({paddingLeft:e})}})),React.createElement(rl,{title:qs("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:g.color,onChange:b,label:qs("Background Color","genesis-blocks")},{value:f.color,onChange:y,label:qs("Text Color","genesis-blocks")}]},React.createElement(nl,a()({textColor:f.color,backgroundColor:g.color,fallbackTextColor:M,fallbackBackgroundColor:k},{fontSize:_.size}))))}}]),n}($s),dl=Ks([cl,el("fontSize"),tl("backgroundColor",{textColor:"color"})])(ul);function ml(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var pl=wp.i18n.__,_l=(wp.blocks.registerBlockType,wp.compose.compose),hl=wp.element,gl=hl.Component,fl=hl.Fragment,bl=wp.blockEditor,yl=bl.RichText,kl=bl.withFontSizes,Ml=bl.withColors,vl=function(e){m()(n,e);var t=ml(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.price,a=n.currency,o=n.term,s=n.showTerm,l=n.showCurrency,c=n.paddingTop,u=n.paddingRight,d=n.paddingBottom,m=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),_=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,g=t.textColor,f=b()((e={"gb-pricing-table-price-wrap":!0,"has-text-color":g.color,"has-background":h.color},i()(e,h.class,h.class),i()(e,g.class,g.class),i()(e,"gb-pricing-has-currency",l),e)),y=b()(i()({"gb-pricing-table-price":!0},_.class,_.class)),k={backgroundColor:h.color,color:g.color,paddingTop:c?c+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:d?d+"px":void 0,paddingLeft:m?m+"px":void 0},M={fontSize:_.size?_.size+"px":void 0},v=Math.floor(_.size/2.5),L={fontSize:_.size?v+"px":void 0},w=Math.floor(_.size/2.5),Y={fontSize:_.size?w+"px":void 0};return[React.createElement(fl,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(dl,this.props),React.createElement("div",{className:f||void 0,style:k},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},l&&React.createElement(yl,{tagName:"span",itemProp:"priceCurrency",placeholder:pl("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return p({currency:e})},className:"gb-pricing-table-currency",style:L}),React.createElement(yl,{tagName:"div",itemProp:"price",placeholder:pl("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({price:e})},style:M,className:y||void 0}),s&&React.createElement(yl,{tagName:"span",value:o,placeholder:pl("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return p({term:e})},className:"gb-pricing-table-term",style:Y}))))]}}]),n}(gl),Ll=_l([kl("fontSize"),Ml("backgroundColor",{textColor:"color"})])(vl),wl=wp.i18n.__,Yl=wp.blockEditor,Tl=Yl.RichText,Dl=Yl.getFontSizeClass,Rl=Yl.getColorClassName,Sl=[{attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,c=n.textColor,u=n.customBackgroundColor,d=n.customTextColor,m=n.term,p=n.showTerm,_=n.showCurrency,h=n.paddingTop,g=n.paddingRight,f=n.paddingBottom,y=n.paddingLeft,k=Dl(o),M=Rl("color",c),v=Rl("background-color",l),L=b()((t={"has-background":l||u,"gb-pricing-table-price-wrap":!0},i()(t,M,M),i()(t,v,v),i()(t,"gb-pricing-has-currency",_&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},k,k)),Y={backgroundColor:v?void 0:u,color:M?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:y?y+"px":void 0},T={fontSize:k?void 0:s},D=k?void 0:s,R=Math.floor(D/2.5),S={fontSize:D?R+"px":void 0},x=Math.floor(D/2.5),E={fontSize:D?x+"px":void 0};return React.createElement("div",{className:L||void 0,style:Y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&_&&React.createElement(Tl.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:wl("$","genesis-blocks"),value:a,className:"gb-pricing-table-currency",style:S}),React.createElement(Tl.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:T}),m&&p&&React.createElement(Tl.Content,{tagName:"span",value:m,className:"gb-pricing-table-term",style:E})))}}],xl=wp.i18n.__,El=wp.blocks.registerBlockType,Cl=wp.element,jl=(Cl.Component,Cl.Fragment,wp.blockEditor),Pl=jl.RichText,Hl=jl.getFontSizeClass,Ol=(jl.FontSizePicker,jl.withFontSizes,jl.getColorClassName);function zl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}El("genesis-blocks/gb-pricing-table-price",{title:xl("Product Price","genesis-blocks"),description:xl("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[xl("pricing table","genesis-blocks"),xl("price","genesis-blocks"),xl("shop","genesis-blocks")],attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Ll,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,c=n.textColor,u=n.customBackgroundColor,d=n.customTextColor,m=n.term,p=n.showTerm,_=n.showCurrency,h=n.paddingTop,g=n.paddingRight,f=n.paddingBottom,y=n.paddingLeft,k=Hl(o),M=Ol("color",c),v=Ol("background-color",l),L=b()((t={"has-background":l||u,"gb-pricing-table-price-wrap":!0},i()(t,M,M),i()(t,v,v),i()(t,"gb-pricing-has-currency",_&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},k,k)),Y={backgroundColor:v?void 0:u,color:M?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:y?y+"px":void 0},T={fontSize:k?void 0:s},D=k?void 0:s,R=Math.floor(D/2.5),S={fontSize:D?R+"px":void 0},x=Math.floor(D/2.5),E={fontSize:D?x+"px":void 0};return React.createElement("div",{className:L||void 0,style:Y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&_&&React.createElement(Pl.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"gb-pricing-table-currency",style:S}),React.createElement(Pl.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:T}),m&&p&&React.createElement(Pl.Content,{tagName:"span",value:m,className:"gb-pricing-table-term",style:E})))},deprecated:Sl});var Al=wp.i18n.__,Bl=wp.element.Component,Nl=wp.compose.compose,Fl=wp.blockEditor,Wl=Fl.InspectorControls,Il=Fl.FontSizePicker,Ul=Fl.withFontSizes,Vl=Fl.withColors,Jl=Fl.ContrastChecker,Gl=Fl.PanelColorSettings,ql=Fl.ColorPalette,$l=wp.components,Kl=$l.withFallbackStyles,Zl=$l.PanelBody,Ql=$l.PanelRow,Xl=$l.SelectControl,ec=$l.BaseControl,tc=$l.RangeControl,nc=Kl((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),rc=function(e){m()(n,e);var t=zl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderStyle,o=n.borderColor,i=n.borderWidth,s=n.paddingTop,l=n.paddingRight,c=n.paddingBottom,u=n.paddingLeft,d=(t.isSelected,t.setAttributes),m=t.fallbackFontSize,p=t.fontSize,_=t.setFontSize,h=t.backgroundColor,g=t.textColor,f=t.setBackgroundColor,b=t.setTextColor,y=t.fallbackBackgroundColor,k=t.fallbackTextColor,M=[{value:"gb-list-border-none",label:Al("None")},{value:"gb-list-border-solid",label:Al("Solid")},{value:"gb-list-border-dotted",label:Al("Dotted")},{value:"gb-list-border-dashed",label:Al("Dashed")}];return React.createElement(Wl,{key:"inspector"},React.createElement(Zl,{title:Al("Text Settings","genesis-blocks")},React.createElement(Il,{fallbackFontSize:m,value:p.size,onChange:_}),React.createElement(Xl,{label:Al("List Border Style","genesis-blocks"),value:r,options:M.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({borderStyle:t})}}),"gb-list-border-none"!==r&&React.createElement(tc,{label:Al("List Border Width","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:1,max:5,step:1}),"gb-list-border-none"!==r&&React.createElement(Ql,null,React.createElement(ec,{label:Al("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(ql,{initialOpen:!1,value:o,onChange:function(e){return d({borderColor:e})}})))),React.createElement(Zl,{title:Al("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:s,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:l,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:c,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:u,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(Gl,{title:Al("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:f,label:Al("Background Color","genesis-blocks")},{value:g.color,onChange:b,label:Al("Text Color","genesis-blocks")}]},React.createElement(Jl,a()({textColor:g.color,backgroundColor:h.color,fallbackTextColor:k,fallbackBackgroundColor:y},{fontSize:p.size}))))}}]),n}(Bl),ac=Nl([nc,Ul("fontSize"),Vl("backgroundColor",{textColor:"color"})])(rc);function oc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ic=wp.i18n.__,sc=(wp.blocks.registerBlockType,wp.compose.compose),lc=wp.element,cc=lc.Component,uc=lc.Fragment,dc=wp.blockEditor,mc=dc.RichText,pc=dc.withFontSizes,_c=dc.withColors,hc=function(e){m()(n,e);var t=oc(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.features,a=n.borderStyle,o=n.borderColor,s=n.borderWidth,l=n.paddingTop,c=n.paddingRight,u=n.paddingBottom,d=n.paddingLeft,m=(t.isSelected,t.className,t.setAttributes),p=(t.fallbackFontSize,t.fontSize),_=t.backgroundColor,h=t.textColor,g=b()((e={"gb-pricing-table-features":!0},i()(e,p.class,p.class),i()(e,"has-text-color",h.color),i()(e,"has-background",_.color),i()(e,_.class,_.class),i()(e,h.class,h.class),i()(e,a,a),i()(e,"gb-list-border-width-"+s,s),e)),f={fontSize:p.size?p.size+"px":void 0,backgroundColor:_.color,color:h.color,borderColor:o||void 0,paddingTop:l?l+"px":void 0,paddingRight:c?c+"px":void 0,paddingBottom:u?u+"px":void 0,paddingLeft:d?d+"px":void 0};return[React.createElement(uc,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(ac,this.props),React.createElement(mc,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:ic("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return m({features:e})},style:f,className:g||void 0}))]}}]),n}(cc),gc=sc([pc("fontSize"),_c("backgroundColor",{textColor:"color"})])(hc),fc=wp.i18n.__,bc=wp.blocks.registerBlockType,yc=(wp.element.Component,wp.blockEditor),kc=yc.RichText,Mc=yc.getFontSizeClass,vc=(yc.FontSizePicker,yc.withFontSizes,yc.getColorClassName);function Lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}bc("genesis-blocks/gb-pricing-table-features",{title:fc("Product Features","genesis-blocks"),description:fc("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[fc("pricing table","genesis-blocks"),fc("features","genesis-blocks"),fc("shop","genesis-blocks")],attributes:{features:{type:"string",source:"html",selector:"ol,ul",multiline:"li"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},borderStyle:{type:"string",default:"gb-list-border-none"},borderColor:{type:"string"},borderWidth:{type:"number",default:1},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:gc,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.borderStyle,m=n.borderColor,p=n.borderWidth,_=n.paddingTop,h=n.paddingRight,g=n.paddingBottom,f=n.paddingLeft,y=Mc(a),k=vc("color",l),M=vc("background-color",s),v=b()((t={"has-background":s||c,"gb-pricing-table-features":!0},i()(t,y,y),i()(t,k,k),i()(t,M,M),i()(t,d,d),i()(t,"gb-list-border-width-"+p,p),t)),L={fontSize:y?void 0:o,backgroundColor:M?void 0:c,color:k?void 0:u,borderColor:m||void 0,paddingTop:_?_+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:f?f+"px":void 0};return React.createElement(kc.Content,{tagName:"ul",itemProp:"description",value:r,className:v||void 0,style:L})}});var wc=wp.i18n.__,Yc=wp.element.Component,Tc=wp.compose.compose,Dc=wp.blockEditor,Rc=Dc.InspectorControls,Sc=Dc.FontSizePicker,xc=Dc.withFontSizes,Ec=Dc.withColors,Cc=Dc.ContrastChecker,jc=Dc.PanelColorSettings,Pc=(Dc.RangeControl,wp.components),Hc=Pc.withFallbackStyles,Oc=Pc.PanelBody,zc=Hc((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),Ac=function(e){m()(n,e);var t=Lc(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,s=(e.isSelected,e.setAttributes),l=e.fallbackFontSize,c=e.fontSize,u=e.setFontSize,d=e.backgroundColor,m=e.textColor,p=e.setBackgroundColor,_=e.setTextColor,h=e.fallbackBackgroundColor,g=e.fallbackTextColor;return React.createElement(Rc,{key:"inspector"},React.createElement(Oc,{title:wc("Text Settings","genesis-blocks")},React.createElement(Sc,{fallbackFontSize:l,value:c.size,onChange:u})),React.createElement(Oc,{title:wc("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return s({paddingLeft:e})}})),React.createElement(jc,{title:wc("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:p,label:wc("Background Color","genesis-blocks")},{value:m.color,onChange:_,label:wc("Text Color","genesis-blocks")}]},React.createElement(Cc,a()({textColor:m.color,backgroundColor:d.color,fallbackTextColor:g,fallbackBackgroundColor:h},{fontSize:c.size}))))}}]),n}(Yc),Bc=Tc([zc,xc("fontSize"),Ec("backgroundColor",{textColor:"color"})])(Ac);function Nc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Fc=wp.i18n.__,Wc=(wp.blocks.registerBlockType,wp.compose.compose),Ic=wp.element,Uc=Ic.Component,Vc=Ic.Fragment,Jc=wp.blockEditor,Gc=Jc.RichText,qc=Jc.withFontSizes,$c=Jc.withColors,Kc=function(e){m()(n,e);var t=Nc(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.title,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,c=(t.isSelected,t.className,t.setAttributes),u=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,m=t.textColor,p=b()((e={"gb-pricing-table-title":!0},i()(e,u.class,u.class),i()(e,"has-text-color",m.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,m.class,m.class),e)),_={fontSize:u.size?u.size+"px":void 0,backgroundColor:d.color,color:m.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(Vc,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(Bc,this.props),React.createElement(Gc,{tagName:"div",itemProp:"name",placeholder:Fc("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return c({title:e})},style:_,className:p||void 0}))]}}]),n}(Uc),Zc=Wc([qc("fontSize"),$c("backgroundColor",{textColor:"color"})])(Kc),Qc=wp.i18n.__,Xc=wp.blocks.registerBlockType,eu=(wp.element.Component,wp.blockEditor),tu=eu.RichText,nu=eu.getFontSizeClass,ru=(eu.FontSizePicker,eu.withFontSizes,eu.getColorClassName);function au(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}Xc("genesis-blocks/gb-pricing-table-title",{title:Qc("Product Title","genesis-blocks"),description:Qc("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Qc("pricing table","genesis-blocks"),Qc("title","genesis-blocks"),Qc("shop","genesis-blocks")],attributes:{title:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Zc,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.paddingTop,m=n.paddingRight,p=n.paddingBottom,_=n.paddingLeft,h=nu(a),g=ru("color",l),f=ru("background-color",s),y={fontSize:h?void 0:o,backgroundColor:f?void 0:c,color:g?void 0:u,paddingTop:d?d+"px":void 0,paddingRight:m?m+"px":void 0,paddingBottom:p?p+"px":void 0,paddingLeft:_?_+"px":void 0},k=b()((t={"has-background":s||c,"gb-pricing-table-title":!0},i()(t,h,h),i()(t,g,g),i()(t,f,f),t));return React.createElement(tu.Content,{tagName:"div",itemProp:"name",value:r,style:y,className:k||void 0})}});var ou=wp.i18n.__,iu=(wp.blocks.registerBlockType,wp.compose.compose),su=wp.element,lu=su.Component,cu=su.Fragment,uu=wp.blockEditor,du=uu.RichText,mu=uu.withFontSizes,pu=uu.withColors,_u=function(e){m()(n,e);var t=au(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.subtitle,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,c=(t.isSelected,t.className,t.setAttributes),u=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,m=t.textColor,p=b()((e={"gb-pricing-table-subtitle":!0},i()(e,u.class,u.class),i()(e,"has-text-color",m.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,m.class,m.class),e)),_={fontSize:u.size?u.size+"px":void 0,backgroundColor:d.color,color:m.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(cu,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(Bc,this.props),React.createElement(du,{tagName:"div",placeholder:ou("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return c({subtitle:e})},style:_,className:p||void 0}))]}}]),n}(lu),hu=iu([mu("fontSize"),pu("backgroundColor",{textColor:"color"})])(_u),gu=wp.i18n.__,fu=wp.blocks.registerBlockType,bu=(wp.element.Component,wp.blockEditor),yu=bu.RichText,ku=bu.getFontSizeClass,Mu=(bu.FontSizePicker,bu.withFontSizes,bu.getColorClassName);function vu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}fu("genesis-blocks/gb-pricing-table-subtitle",{title:gu("Product Subtitle","genesis-blocks"),description:gu("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[gu("pricing table","genesis-blocks"),gu("subtitle","genesis-blocks"),gu("shop","genesis-blocks")],attributes:{subtitle:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:hu,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.paddingTop,m=n.paddingRight,p=n.paddingBottom,_=n.paddingLeft,h=ku(a),g=Mu("color",l),f=Mu("background-color",s),y=b()((t={"has-background":s||c,"gb-pricing-table-subtitle":!0},i()(t,h,h),i()(t,g,g),i()(t,f,f),t)),k={fontSize:h?void 0:o,backgroundColor:f?void 0:c,color:g?void 0:u,paddingTop:d?d+"px":void 0,paddingRight:m?m+"px":void 0,paddingBottom:p?p+"px":void 0,paddingLeft:_?_+"px":void 0};return React.createElement(yu.Content,{tagName:"div",value:r,className:y||void 0,style:k})}});var Lu=wp.i18n.__,wu=wp.element.Component,Yu=wp.compose.compose,Tu=wp.blockEditor,Du=Tu.InspectorControls,Ru=(Tu.FontSizePicker,Tu.withFontSizes),Su=Tu.withColors,xu=(Tu.ContrastChecker,Tu.PanelColorSettings),Eu=wp.components,Cu=Eu.withFallbackStyles,ju=Eu.PanelBody,Pu=(Eu.ToggleControl,Eu.TextControl,Eu.RangeControl,Cu((function(e,t){var n=t.attributes.backgroundColor,r=e.querySelector('[contenteditable="true"]'),a=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!a?void 0:a.backgroundColor}}))),Hu=function(e){m()(n,e);var t=vu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=(t.buttonText,t.buttonUrl,t.buttonAlignment,t.buttonBackgroundColor),s=t.buttonTextColor,l=t.buttonSize,c=t.buttonShape,u=t.buttonTarget,d=(e.isSelected,e.setAttributes),m=e.backgroundColor,p=e.setBackgroundColor;e.fallbackBackgroundColor;return React.createElement(Du,{key:"inspector"},React.createElement(ju,{title:Lu("Button Settings","genesis-blocks")},React.createElement(dn,{buttonTarget:u,onChangeButtonTarget:function(e){return d({buttonTarget:!u})},buttonSize:l,onChangeButtonSize:function(e){return d({buttonSize:e})},buttonShape:c,onChangeButtonShape:function(e){return d({buttonShape:e})},buttonBackgroundColor:i,onChangeButtonColor:function(e){return d({buttonBackgroundColor:e})},buttonTextColor:s,onChangeButtonTextColor:function(e){return d({buttonTextColor:e})}})),React.createElement(ju,{title:Lu("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:a,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:o,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(xu,{title:Lu("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:m.color,onChange:p,label:Lu("Background Color","genesis-blocks")}]}))}}]),n}(wu),Ou=Yu([Pu,Ru("fontSize"),Su("backgroundColor")])(Hu);function zu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Au=wp.i18n.__,Bu=(wp.blocks.registerBlockType,wp.compose.compose),Nu=wp.element,Fu=Nu.Component,Wu=Nu.Fragment,Iu=wp.blockEditor,Uu=Iu.RichText,Vu=Iu.withFontSizes,Ju=Iu.withColors,Gu=(Iu.InnerBlocks,Iu.URLInput),qu=wp.components,$u=qu.Button,Ku=qu.Dashicon,Zu=qu.Icon,Qu=function(e){m()(n,e);var t=zu(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.subtitle,t.paddingTop),r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=t.buttonText,s=t.buttonUrl,l=t.buttonAlignment,c=t.buttonBackgroundColor,u=t.buttonTextColor,d=t.buttonSize,m=t.buttonShape,p=(t.buttonTarget,e.isSelected),_=(e.className,e.setAttributes),h=e.backgroundColor,g=b()({"gb-pricing-table-button":!0}),f={backgroundColor:h.color,paddingTop:n?n+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:a?a+"px":void 0,paddingLeft:o?o+"px":void 0};return[React.createElement(Wu,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(Ou,this.props),React.createElement("div",{className:g||void 0,style:f},React.createElement(bn,this.props,React.createElement(Uu,{tagName:"span",placeholder:Au("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:[],className:b()("gb-button",m,d),style:{color:u,backgroundColor:c},onChange:function(e){return _({buttonText:e})}})),p&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(l),onSubmit:function(e){return e.preventDefault()},style:{textAlign:l}},React.createElement(Ku,{icon:"admin-links"}),React.createElement(Gu,{className:"button-url",value:s,onChange:function(e){return _({buttonUrl:e})}}),React.createElement($u,{label:Au("Apply","genesis-blocks"),type:"submit"},React.createElement(Zu,{icon:"editor-break"})))))]}}]),n}(Fu),Xu=Bu([Vu("fontSize"),Ju("backgroundColor",{textColor:"color"})])(Qu),ed=wp.i18n.__,td=wp.blocks.registerBlockType,nd=(wp.element.Component,wp.blockEditor),rd=nd.RichText,ad=(nd.getFontSizeClass,nd.FontSizePicker,nd.withFontSizes,nd.getColorClassName);td("genesis-blocks/gb-pricing-table-button",{title:ed("Product Button","genesis-blocks"),description:ed("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[ed("pricing table","genesis-blocks"),ed("subtitle","genesis-blocks"),ed("shop","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Xu,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,a=t.paddingTop,o=t.paddingRight,s=t.paddingBottom,l=t.paddingLeft,c=t.buttonText,u=t.buttonUrl,d=(t.buttonAlignment,t.buttonBackgroundColor),m=t.buttonTextColor,p=t.buttonSize,_=t.buttonShape,h=t.buttonTarget,g=ad("background-color",n),f=b()(i()({"has-background":n||r,"gb-pricing-table-button":!0},g,g)),y={backgroundColor:g?void 0:r,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return React.createElement("div",{className:f||void 0,style:y},React.createElement(bn,e,c&&React.createElement("a",{href:u,target:h?"_blank":null,rel:h?"noopener noreferrer":null,className:b()("gb-button",_,p),style:{color:m,backgroundColor:d}},React.createElement(rd.Content,{value:c}))))}});var od=wp.i18n.__,id=wp.element.Fragment,sd=wp.components.RangeControl;function ld(e){var t=e.marginTop,n=e.marginTopLabel,r=e.marginTopMin,a=e.marginTopMax,o=e.marginEnableTop,i=e.onChangeMarginTop,s=void 0===i?function(){}:i,l=e.marginRight,c=e.marginRightLabel,u=e.marginRightMin,d=e.marginRightMax,m=e.marginEnableRight,p=e.onChangeMarginRight,_=void 0===p?function(){}:p,h=e.marginBottom,g=e.marginBottomLabel,f=e.marginBottomMin,b=e.marginBottomMax,y=e.marginEnableBottom,k=e.onChangeMarginBottom,M=void 0===k?function(){}:k,v=e.marginLeft,L=e.marginLeftLabel,w=e.marginLeftMin,Y=e.marginLeftMax,T=e.marginEnableLeft,D=e.onChangeMarginLeft,R=void 0===D?function(){}:D,S=e.marginVertical,x=e.marginVerticalLabel,E=e.marginEnableVertical,C=e.marginVerticalMin,j=e.marginVerticalMax,P=e.onChangeMarginVertical,H=void 0===P?function(){}:P,O=e.marginHorizontal,z=e.marginHorizontalLabel,A=e.marginEnableHorizontal,B=e.marginHorizontalMin,N=e.marginHorizontalMax,F=e.onChangeMarginHorizontal,W=void 0===F?function(){}:F;return React.createElement(id,null,o&&React.createElement(sd,{label:n||od("Margin Top","genesis-blocks"),value:t,min:r,max:a,onChange:s}),m&&React.createElement(sd,{label:c||od("Margin Right","genesis-blocks"),value:l,min:u,max:d,onChange:_}),y&&React.createElement(sd,{label:g||od("Margin Bottom","genesis-blocks"),value:h,min:f,max:b,onChange:M}),T&&React.createElement(sd,{label:L||od("Margin Left","genesis-blocks"),value:v,min:w,max:Y,onChange:R}),E&&React.createElement(sd,{label:x||od("Margin Vertical","genesis-blocks"),value:S,min:C,max:j,onChange:H}),A&&React.createElement(sd,{label:z||od("Margin Horizontal","genesis-blocks"),value:O,min:B,max:N,onChange:W}))}function cd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ud=wp.i18n.__,dd=wp.element.Component,md=wp.compose.compose,pd=wp.blockEditor,_d=pd.InspectorControls,hd=pd.withColors,gd=pd.ContrastChecker,fd=pd.PanelColorSettings,bd=wp.components,yd=bd.PanelBody,kd=bd.SelectControl,Md=bd.TextControl,vd=bd.FormToggle,Ld=(0,bd.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=n.buttonTextColor,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:r||!l?void 0:l.backgroundColor,fallbackTextColor:a||!l?void 0:l.color,fallbackButtonBackgroundColor:o||!l?void 0:l.buttonBackgroundColor,fallbackButtonTextColor:i||!l?void 0:l.buttonTextColor}})),wd=function(e){m()(n,e);var t=cd(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"doubleOptInChange",value:function(e){this.props.doubleOptIn&&this.props.doubleOptIn(e.target.checked)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.backgroundColor,a=e.setBackgroundColor,o=e.fallbackBackgroundColor,i=e.textColor,s=e.fallbackTextColor,l=e.setTextColor,c=e.buttonBackgroundColor,u=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,m=e.fallbackButtonTextColor,p=e.setButtonBackgroundColor,_=e.setButtonTextColor,h={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:ud("Select a list","genesis-blocks"),value:""}]}};return genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((function(e){return h.mailchimp.lists.push({label:e.name,value:e.id})})),React.createElement(_d,null,React.createElement(yd,{title:ud("Newsletter","genesis-blocks"),initialOpen:!t.mailingList},React.createElement(v,{id:"gb_newsletter_mailingList"},React.createElement(kd,{label:ud("Mailing List","genesis-blocks"),help:ud("The list people will be subscribed to.","genesis-blocks"),options:h.mailchimp.lists,value:t.mailingList,onChange:function(e){return n({mailingList:e})}})),React.createElement(v,{id:"gb_newsletter_successMessage"},React.createElement(Md,{type:"string",label:ud("Success Message","genesis-blocks"),help:ud("The message shown when people successfully subscribe.","genesis-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),React.createElement(v,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(vd,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"gb-newsletter-double-opt-in-toggle",checked:t.doubleOptIn,onChange:function(e){return n({doubleOptIn:e.target.checked})}}),React.createElement("label",{className:"gb-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},ud("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},ud("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(yd,{title:ud("General","genesis-blocks"),initialOpen:!!t.mailingList},React.createElement(v,{id:"gb_newsletter_containerPadding"},React.createElement(Js,{paddingEnable:!0,paddingTitle:ud("Block Padding","genesis-blocks"),paddingHelp:ud("Adjust the padding applied to the inside of the block.","genesis-blocks"),padding:t.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:function(e){return n({containerPadding:e})}})),React.createElement(v,{id:"gb_newsletter_containerMargin"},React.createElement(ld,{marginEnableTop:!0,marginTopLabel:ud("Block Margin Top","genesis-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:ud("Block Margin Bottom","genesis-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),React.createElement(dn,{enableButtonTarget:!1,buttonSize:t.buttonSize,onChangeButtonSize:function(e){return n({buttonSize:e})},buttonShape:t.buttonShape,onChangeButtonShape:function(e){return n({buttonShape:e})},enableButtonBackgroundColor:!1,enableButtonTextColor:!1})),React.createElement(v,{id:"gb_newsletter_colorOptions"},React.createElement(fd,{title:ud("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:a,label:ud("Block Background Color","genesis-blocks")},{value:i.color,onChange:l,label:ud("Block Text Color","genesis-blocks")},{value:c.color,onChange:p,label:ud("Button Background Color","genesis-blocks")},{value:d.color,onChange:_,label:ud("Button Text Color","genesis-blocks")}]},React.createElement(gd,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:s,fallbackBackgroundColor:o}),React.createElement(gd,{textColor:d.color,backgroundColor:c.color,fallbackButtonTextColor:m,fallbackButtonBackgroundColor:u}),React.createElement(gd,{textColor:c.color,backgroundColor:r.color,fallbackButtonBackgroundColor:u,fallbackBackgroundColor:o}))))}}]),n}(dd),Yd=md([Ld,hd("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(wd);function Td(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Dd=wp.element.Component,Rd=(wp.blockEditor.getColorClassName,function(e){m()(n,e);var t=Td(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t,n,r=this.props,a=r.attributes,o=r.backgroundColor,s=r.textColor;return t=a.customBackgroundColor?"gb-has-custom-background-color":a.backgroundColor?"has-"+a.backgroundColor+"-background-color":null,n=a.customTextColor?"gb-has-custom-text-color":a.textColor?"has-"+a.textColor+"-color":null,React.createElement("div",{style:{backgroundColor:o.color,padding:a.containerPadding?a.containerPadding:void 0,marginTop:a.containerMarginTop?a.containerMarginTop:void 0,marginBottom:a.containerMarginBottom?a.containerMarginBottom:void 0,color:s.color},className:b()([this.props.className],(e={"gb-block-newsletter":!0,"gb-form-styles":!0,"has-background":a.backgroundColor||a.customBackgroundColor},i()(e,t,t),i()(e,n,n),e))},this.props.children)}}]),n}(Dd));function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ed(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Cd=wp.i18n.__,jd=wp.compose,Pd=jd.compose,Hd=jd.withInstanceId,Od=wp.blockEditor,zd=(Od.getColorClassName,Od.RichText),Ad=Od.withColors,Bd=wp.element,Nd=Bd.Fragment,Fd=Bd.Component,Wd=wp.components,Id=Wd.TextControl,Ud=(0,Wd.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=e.querySelector('[contenteditable="true"]'),s=i?getComputedStyle(i):null;return{fallbackBackgroundColor:r||!s?void 0:s.backgroundColor,fallbackTextColor:a||!s?void 0:s.color,fallbackButtonBackgroundColor:o||!s?void 0:s.buttonBackgroundColor}})),Vd=function(e){m()(n,e);var t=Ed(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return u()(n,[{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.attributes,i=r.isSelected,s=r.setAttributes,l=r.buttonBackgroundColor,c=r.buttonTextColor,u=genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;return e=o.customButtonBackgroundColor?"gb-has-custom-background-color":o.buttonBackgroundColor?"has-"+o.buttonBackgroundColor+"-background-color":null,t=o.customButtonTextColor?"gb-has-custom-text-color":o.buttonTextColor?"has-"+o.buttonTextColor+"-color":null,[React.createElement(Yd,a()({key:"gb-newsletter-inspector-"+this.props.clientId},xd({setAttributes:s},this.props))),React.createElement(Rd,a()({key:"gb-newsletter-container-"+this.props.clientId},this.props),!u&&React.createElement(Nd,null,React.createElement("div",{className:"gb-newsletter-notice"},Cd("You must define your newsletter provider API keys to use this block.","genesis-blocks"),React.createElement("p",null,React.createElement("a",{href:genesis_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},Cd("Configure your settings","genesis-blocks"))))),u&&React.createElement(Nd,null,React.createElement(zd,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:o.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),React.createElement(Id,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:b()("gb-block-button")},React.createElement(bn,this.props,React.createElement(zd,{tagName:"span",placeholder:Cd("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o.buttonText,allowedFormats:[],className:b()("gb-button",o.buttonClass,o.buttonShape,o.buttonSize,e,t,{"has-background":o.buttonBackgroundColor||o.customButtonBackgroundColor,"has-text-color":o.buttonTextColor||o.customButtonTextColor}),style:{backgroundColor:l.color,color:c.color},onChange:function(e){return n.props.setAttributes({buttonText:e})}})),i&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o.buttonAlignment),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o.buttonAlignment}}))))]}}]),n}(Fd),Jd=Pd([Ud,Ad("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Hd(Vd)),Gd=(n(353),n(354),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-newsletter",{title:Gd("Email newsletter","genesis-blocks"),description:Gd("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[Gd("Mailchimp","genesis-blocks"),Gd("Subscribe","genesis-blocks"),Gd("Newsletter","genesis-blocks")],edit:Jd,gb_settings_data:{gb_newsletter_mailingList:{title:Gd("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:Gd("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:Gd("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:Gd("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:Gd("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:Gd("Color Options","genesis-blocks")}},save:function(){return null}});var qd=n(32),$d=n.n(qd);var Kd=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"gb-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"gb-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"gb-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"gb-background-"+e.backgroundRepeat:null,e.hasParallax?"gb-has-parallax":null];var t},Zd=function(e){return{backgroundImage:e.backgroundImgURL?"url(".concat(e.backgroundImgURL,")"):void 0,backgroundPosition:e.focalPoint?"".concat(100*e.focalPoint.x,"% ").concat(100*e.focalPoint.y,"%"):void 0}};function Qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var em=function(e){m()(n,e);var t=Xd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,t=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null;var r,a,o=b()([this.props.className,"gb-layout-columns-"+n.columns,n.layout].concat($d()(Kd(n)),[e,t,n.columnMaxWidth&&n.centerColumns?"gb-columns-center":null]),i()({},"align"+n.align,n.align));r=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},a=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qd(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null},Zd(n));return React.createElement("div",{className:o||void 0,style:Object.assign(r,a,s)},this.props.children)}}]),n}(wp.element.Component),tm={};tm.oneEqual=React.createElement("svg",{className:"dashicon",height:"26",viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),tm.twoEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),tm.twoLeftWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),tm.twoRightWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),tm.threeEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),tm.threeWideCenter=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),tm.threeWideLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),tm.threeWideRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),tm.fourEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),tm.fourLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),tm.fourRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),tm.fiveEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),tm.sixEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),tm.blockIcon=React.createElement("svg",{viewBox:"0 0 60 34",height:"34",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));var nm=tm,rm=wp.i18n.__,am={1:[{name:rm("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:nm.oneEqual}],2:[{name:rm("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:nm.twoEqual},{name:rm("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:nm.twoLeftWide},{name:rm("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:nm.twoRightWide}],3:[{name:rm("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:nm.threeEqual},{name:rm("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:nm.threeWideCenter},{name:rm("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:nm.threeWideLeft},{name:rm("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:nm.threeWideRight}],4:[{name:rm("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:nm.fourEqual},{name:rm("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:nm.fourLeft},{name:rm("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:nm.fourRight}],5:[{name:rm("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:nm.fiveEqual}],6:[{name:rm("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:nm.sixEqual}]};function om(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function im(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var sm=wp.i18n.__,lm=wp.element,cm=lm.Fragment,um=lm.Component,dm=wp.components,mm=dm.PanelBody,pm=dm.RangeControl,_m=dm.Button,hm=dm.ButtonGroup,gm=dm.FocalPointPicker,fm=dm.Icon,bm=dm.ToggleControl,ym=dm.SelectControl,km=wp.blockEditor,Mm=km.MediaUpload,vm=km.MediaUploadCheck,Lm=function(e){m()(n,e);var t=im(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,o=[{value:"no-repeat",label:sm("No Repeat","genesis-blocks")},{value:"repeat",label:sm("Repeat","genesis-blocks")},{value:"repeat-x",label:sm("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:sm("Repeat Vertically","genesis-blocks")}],s=[{value:"auto",label:sm("Auto","genesis-blocks")},{value:"cover",label:sm("Cover","genesis-blocks")},{value:"contain",label:sm("Contain","genesis-blocks")}];return"cover"===r.backgroundSize&&(e=sm("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","genesis-blocks")),"contain"===r.backgroundSize&&(e=sm("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===r.backgroundSize&&(e=sm("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(cm,null,React.createElement(mm,{title:sm("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(vm,null,React.createElement(Mm,{onSelect:function(e){a({backgroundImgURL:e.url})},type:"image",value:r.backgroundImgURL,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(hm,{className:"gb-background-button-group"},React.createElement(_m,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:sm("Edit image","genesis-blocks"),onClick:t},React.createElement(fm,{icon:"format-image"}),sm("Select Image","genesis-blocks")),r.backgroundImgURL&&React.createElement(_m,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:sm("Remove Image","genesis-blocks"),onClick:function(){return a({backgroundImgURL:null})}},React.createElement(fm,{icon:"dismiss"}),sm("Remove","genesis-blocks"))))}})),r.backgroundImgURL&&React.createElement(cm,null,React.createElement(gm,{label:sm("Focal Point","genesis-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return a({focalPoint:e})}}),React.createElement(pm,{label:sm("Image Opacity","genesis-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),React.createElement(bm,{label:sm("Fixed Background","genesis-blocks"),checked:r.hasParallax,onChange:function(){a(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?om(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasParallax:!r.hasParallax},r.hasParallax?{}:{focalPoint:void 0}))}}),React.createElement(ym,{className:"gb-inspector-help-text",label:sm("Image Display","genesis-blocks"),value:r.backgroundSize,help:e,options:s,onChange:function(e){return t.props.setAttributes({backgroundSize:e})}}),"cover"!==r.backgroundSize&&React.createElement(ym,{label:sm("Image Repeat","genesis-blocks"),value:r.backgroundRepeat,options:o,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}]),n}(um);function wm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ym=wp.i18n.__,Tm=wp.element,Dm=Tm.Component,Rm=Tm.Fragment,Sm=wp.blockEditor,xm=Sm.InspectorControls,Em=Sm.PanelColorSettings,Cm=Sm.ContrastChecker,jm=wp.components,Pm=jm.PanelBody,Hm=jm.RangeControl,Om=jm.ButtonGroup,zm=jm.Button,Am=jm.Tooltip,Bm=jm.ToggleControl,Nm=jm.SelectControl,Fm=function(e){m()(n,e);var t=wm(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,a=t.backgroundColor,o=t.setBackgroundColor,i=t.textColor,s=t.setTextColor,l=1;n.columns&&(l=parseInt(n.columns.toString().split("-")));var c=[{value:"px",label:Ym("Pixel (px)","genesis-blocks")},{value:"%",label:Ym("Percent (%)","genesis-blocks")},{value:"em",label:Ym("Em (em)","genesis-blocks")}];return React.createElement(xm,{key:"inspector"},n.layout&&React.createElement(Pm,{title:Ym("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(v,{id:"gb_column_columns"},React.createElement(Hm,{label:Ym("Column Count","genesis-blocks"),help:Ym("Note: Changing the column count after you've added content to the column can cause loss of content.","genesis-blocks"),value:n.columns,onChange:function(t){return e.props.setAttributes({columns:t,layout:"gb-"+t+"-col-equal"})},min:1,max:6,step:1})),React.createElement("hr",null),(2===n.columns||3===n.columns||4===n.columns)&&React.createElement(Rm,null,React.createElement(v,{id:"gb_column_columnLayouts"},React.createElement("p",null,Ym("Column Layout","genesis-blocks")),React.createElement(Om,{"aria-label":Ym("Column Layout","genesis-blocks")},Lo()(am[l],(function(t){var n=t.name,a=t.key,o=t.icon;t.col;return React.createElement(Am,{text:n,key:a},React.createElement(zm,{key:a,className:"gb-column-selector-button",isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o))}))),React.createElement("p",null,React.createElement("i",null,Ym("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(v,{id:"gb_column_columnsGap"},React.createElement(Hm,{label:Ym("Column Gap","genesis-blocks"),help:Ym("Adjust the spacing between columns.","genesis-blocks"),value:n.columnsGap,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:10,step:1})),React.createElement("hr",null),React.createElement(v,{id:"gb_column_columnMaxWidth"},React.createElement(Hm,{label:Ym("Column Inner Max Width (px)"),help:Ym("Adjust the width of the content inside the container wrapper.","genesis-blocks"),value:n.columnMaxWidth,onChange:function(t){return e.props.setAttributes({columnMaxWidth:t})},min:0,max:2e3,step:1})),0<n.columnMaxWidth&&React.createElement(v,{id:"gb_column_centerColumns"},React.createElement(Bm,{label:Ym("Center Columns In Container","genesis-blocks"),help:Ym("Center the columns in the container when max-width is used.","genesis-blocks"),checked:n.centerColumns,onChange:function(){return e.props.setAttributes({centerColumns:!n.centerColumns})}})),React.createElement("hr",null),React.createElement(v,{id:"gb_column_responsiveToggle"},React.createElement(Bm,{label:Ym("Responsive Columns","genesis-blocks"),help:Ym("Columns will be adjusted to fit on tablets and mobile devices.","genesis-blocks"),checked:n.responsiveToggle,onChange:function(){return e.props.setAttributes({responsiveToggle:!n.responsiveToggle})}}))),React.createElement(v,{id:"gb_column_marginPadding"},React.createElement(Pm,{title:Ym("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Nm,{label:Ym("Margin Unit","genesis-blocks"),help:Ym("Choose between pixel, percent, or em units.","genesis-blocks"),options:c,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Bm,{label:Ym("Sync Margin","genesis-blocks"),help:Ym("Top and bottom margins will have the same value.","genesis-blocks"),checked:n.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!n.marginSync})}}),n.marginSync?React.createElement(ld,{marginEnableVertical:!0,marginVerticalLabel:Ym("Margin Top/Bottom","genesis-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):React.createElement(ld,{marginEnableTop:!0,marginTop:n.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return r({marginTop:e})},marginEnableBottom:!0,marginBottom:n.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return r({marginBottom:e})}}),React.createElement("hr",null),React.createElement(Nm,{label:Ym("Padding Unit","genesis-blocks"),help:Ym("Choose between pixel, percent, or em units.","genesis-blocks"),options:c,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Bm,{label:Ym("Sync Padding","genesis-blocks"),help:Ym("Padding on all sides will have the same value.","genesis-blocks"),checked:n.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!n.paddingSync})}}),n.paddingSync?React.createElement(Js,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):React.createElement(Js,{paddingEnableTop:!0,paddingTop:n.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return r({paddingTop:e})},paddingEnableRight:!0,paddingRight:n.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return r({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:n.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return r({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:n.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return r({paddingLeft:e})}}))),React.createElement(v,{id:"gb_column_colorSettings"},React.createElement(Em,{title:Ym("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a.color,onChange:o,label:Ym("Background Color","genesis-blocks")},{value:i.color,onChange:s,label:Ym("Text Color","genesis-blocks")}]},React.createElement(Cm,{textColor:i.color,backgroundColor:a.color}))),React.createElement(v,{id:"gb_column_backgroundImagePanel"},React.createElement(Lm,this.props)))}}]),n}(Dm);function Wm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Im=wp.i18n.__,Um=wp.element,Vm=Um.Component,Jm=Um.Fragment,Gm=wp.compose.compose,qm=wp.data.dispatch,$m=wp.blockEditor,Km=$m.BlockControls,Zm=$m.BlockAlignmentToolbar,Qm=$m.InnerBlocks,Xm=$m.withColors,ep=wp.components,tp=ep.Placeholder,np=ep.ButtonGroup,rp=ep.Tooltip,ap=ep.Button,op=["genesis-blocks/gb-column"],ip=rs()((function(e){return os()(e,(function(){return["genesis-blocks/gb-column"]}))})),sp=function(e){m()(n,e);var t=Wm(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={selectLayout:!0},r}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&qm("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=1;n.columns&&(o=parseInt(n.columns.toString().split("-")));var i=[{name:Im("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:nm.oneEqual},{name:Im("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:nm.twoEqual},{name:Im("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:nm.threeEqual},{name:Im("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:nm.fourEqual},{name:Im("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:nm.fiveEqual},{name:Im("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:nm.sixEqual}];return!n.layout&&this.state.selectLayout?[React.createElement(tp,{key:"placeholder",icon:"editor-table",label:n.columns?Im("Column Layout","genesis-blocks"):Im("Column Number","genesis-blocks"),instructions:n.columns?Im("Select a layout for this column.","genesis-blocks"):Im("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},n.columns?React.createElement(Jm,null,React.createElement(np,{"aria-label":Im("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},Lo()(am[o],(function(t){var n=t.name,a=t.key,o=t.icon;return React.createElement(rp,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(ap,{key:a,className:b()("gb-column-selector-button",a),isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o)))}))),React.createElement(ap,{className:"gb-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},Im("Return to Column Selection","genesis-blocks"))):React.createElement(np,{"aria-label":Im("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},Lo()(i,(function(t){var n=t.name,a=t.key,o=t.icon,i=t.columns;return React.createElement(rp,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(ap,{className:b()("gb-column-selector-button","gb-select-"+a),isSmall:!0,onClick:function(){r({columns:i,layout:1===i||5===i||6===i?a:null}),1===i&&e.setState({selectLayout:!1})}},o)))}))))]:[React.createElement(Km,{key:"controls"},React.createElement(Zm,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),React.createElement(Fm,a()({},this.props,{key:"inspector"})),React.createElement(em,a()({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),React.createElement("div",{className:b()("gb-layout-column-wrap-admin","gb-block-layout-column-gap-"+n.columnsGap,n.responsiveToggle?"gb-is-responsive-column":null),style:{maxWidth:n.columnMaxWidth?n.columnMaxWidth:null}},React.createElement(Qm,{template:ip(n.columns),templateLock:"all",allowedBlocks:op})))]}}]),n}(Vm),lp=Gm([Xm("backgroundColor",{textColor:"color"})])(sp);function cp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var up=wp.element.Component,dp=wp.blockEditor.InnerBlocks,mp=function(e){m()(n,e);var t=cp(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=b()(["gb-layout-column-wrap","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null]);return React.createElement(em,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(dp.Content,null)))}}]),n}(up),pp={backgroundImgURL:{type:"string"},backgroundDimRatio:{type:"number",default:100},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundSize:{type:"string",default:"cover"},hasParallax:{type:"boolean",default:!1},focalPoint:{type:"object"}};function _p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_p(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gp=wp.i18n.__;function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-columns",{title:gp("Advanced Columns","genesis-blocks"),description:gp("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[gp("column","genesis-blocks"),gp("grid","genesis-blocks"),gp("row","genesis-blocks")],attributes:hp(hp({},pp),{},{columns:{type:"number"},layout:{type:"string"},columnsGap:{type:"number",default:2},align:{type:"string"},responsiveToggle:{type:"boolean",default:!0},marginSync:{type:"boolean",default:!1},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},marginUnit:{type:"string",default:"px"},paddingSync:{type:"boolean",default:!1},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingUnit:{type:"string",default:"px"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},columnMaxWidth:{type:"number"},centerColumns:{type:"boolean",default:!0}}),gb_settings_data:{gb_column_columns:{title:gp("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:gp("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:gp("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:gp("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:gp("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:gp("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:gp("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:gp("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:gp("Background Settings","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:function(e){return React.createElement(lp,e)},save:function(e){return React.createElement(mp,e)}});var bp=wp.i18n.__,yp=wp.element.Component,kp=wp.compose.compose,Mp=wp.blockEditor,vp=Mp.InspectorControls,Lp=Mp.PanelColorSettings,Yp=Mp.withColors,Tp=Mp.ContrastChecker,Dp=wp.components,Rp=Dp.PanelBody,Sp=Dp.ToggleControl,xp=Dp.SelectControl,Ep=function(e){m()(n,e);var t=fp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.backgroundColor,r=t.setBackgroundColor,a=t.textColor,o=t.setTextColor,i=t.attributes,s=t.setAttributes,l=[{value:"px",label:bp("Pixel (px)","genesis-blocks")},{value:"%",label:bp("Percent (%)","genesis-blocks")},{value:"em",label:bp("Em (em)","genesis-blocks")}];return React.createElement(vp,{key:"inspector"},React.createElement(v,{id:"gb_column_inner_marginPadding"},React.createElement(Rp,{title:bp("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(xp,{label:bp("Margin Unit","genesis-blocks"),help:bp("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Sp,{label:bp("Sync Margin","genesis-blocks"),help:bp("Top and bottom margins will have the same value.","genesis-blocks"),checked:i.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!i.marginSync})}}),i.marginSync?React.createElement(ld,{marginEnableVertical:!0,marginVerticalLabel:bp("Margin Top/Bottom","genesis-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return s({margin:e})}}):React.createElement(ld,{marginEnableTop:!0,marginTop:i.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return s({marginTop:e})},marginEnableBottom:!0,marginBottom:i.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return s({marginBottom:e})}}),React.createElement("hr",null),React.createElement(xp,{label:bp("Padding Unit","genesis-blocks"),help:bp("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Sp,{label:bp("Sync Padding","genesis-blocks"),help:bp("Padding on all sides will have the same value.","genesis-blocks"),checked:i.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!i.paddingSync})}}),i.paddingSync?React.createElement(Js,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return s({padding:e})}}):React.createElement(Js,{paddingEnableTop:!0,paddingTop:i.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:i.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:i.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return s({paddingLeft:e})}}))),React.createElement(v,{id:"gb_column_inner_colorSettings"},React.createElement(Lp,{title:bp("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:bp("Background Color","genesis-blocks")},{value:a.color,onChange:o,label:bp("Text Color","genesis-blocks")}]},React.createElement(Tp,{textColor:a.color,backgroundColor:n.color}))),React.createElement(v,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Lm,this.props)))}}]),n}(yp),Cp=kp([Yp("backgroundColor",{textColor:"color"})])(Ep);function jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Hp=function(e){m()(n,e);var t=Pp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jp(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null},Zd(n));return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()(this.props.className,"gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b.a.apply(void 0,["gb-block-layout-column-inner",r,a].concat($d()(Kd(n)))),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function Op(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var zp=wp.i18n.__,Ap=wp.compose.compose,Bp=wp.element.Component,Np=wp.components.ToolbarGroup,Fp=wp.blockEditor,Wp=Fp.AlignmentToolbar,Ip=Fp.BlockControls,Up=Fp.InnerBlocks,Vp=Fp.withColors,Jp=function(e){m()(n,e);var t=Op(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:zp("Vertical Align Top","genesis-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:zp("Vertical Align Middle","genesis-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:zp("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[React.createElement(Ip,{key:"controls"},React.createElement(Wp,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),React.createElement(Np,{controls:r})),React.createElement(Cp,a()({},this.props,{key:"inspector"})),React.createElement(Hp,a()({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(Up,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}]),n}(Bp),Gp=Ap([Vp("backgroundColor",{textColor:"color"})])(Jp);function qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var $p=wp.element.Component,Kp=wp.blockEditor.InnerBlocks,Zp=function(e){m()(n,e);var t=qp(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(Hp,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Kp.Content,null))}}]),n}($p);function Qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Xp=function(e){m()(n,e);var t=Qp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,o={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null};return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()("gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b()("gb-block-layout-column-inner",r,a),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function e_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var t_=wp.element.Component,n_=wp.blockEditor.InnerBlocks,r_=function(e){m()(n,e);var t=e_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(Xp,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(n_.Content,null))}}]),n}(t_),a_=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},save:function(e){return React.createElement(r_,e)}}];n(355),n(356);function o_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o_(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s_=wp.i18n.__;(0,wp.blocks.registerBlockType)("genesis-blocks/gb-column",{title:s_("Column","genesis-blocks"),description:s_("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[s_("column","genesis-blocks"),s_("layout","genesis-blocks"),s_("row","genesis-blocks")],attributes:i_(i_({},pp),{},{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}}),gb_settings_data:{gb_column_inner_marginPadding:{title:s_("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:s_("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:s_("Background Image","genesis-blocks")}},edit:function(e){return React.createElement(Gp,e)},save:function(e){return React.createElement(Zp,e)},deprecated:a_});var l_=wp.compose.createHigherOrderComponent((function(e){return function(t){return"genesis-blocks/gb-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?React.createElement(e,a()({},t,{className:"gb-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):React.createElement(e,t)}}),"withClientIdClassName");function c_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",l_);var u_=wp.i18n.__,d_=wp.element,m_=d_.Component,p_=d_.Fragment,__=wp.components,h_=__.Button,g_=__.Dashicon,f_=__.Tooltip,b_=function(e){m()(n,e);var t=c_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"addDefaultSrc",value:function(e){e.target.src=genesis_blocks_globals.pattern_fallback_image}},{key:"render",value:function(){var e=this;return React.createElement(p_,null,React.createElement("div",{key:"gb-layout-design-"+this.props.itemKey,className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(h_,{key:this.props.itemKey,className:"gb-layout-insert-button",isSmall:!0,onClick:function(){e.props.import(e.props.content,e.props.clientId)}},React.createElement("img",{src:this.props.image?this.props.image:genesis_blocks_globals.pattern_fallback_image,alt:this.props.name,onError:this.addDefaultSrc})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},this.props.name,React.createElement(f_,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?u_("Remove from Favorites","genesis-blocks"):u_("Add to Favorites","genesis-blocks")},React.createElement(h_,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},React.createElement(g_,{icon:"heart",className:b()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}]),n}(m_);function y_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var k_=wp.i18n.__,M_=wp.url.addQueryArgs,v_=wp.element,L_=v_.Component,w_=v_.Fragment,Y_=function(e){m()(n,e);var t=y_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return React.createElement(w_,null,React.createElement("div",{className:"gb-layout-reusable"},React.createElement("div",null,React.createElement("a",{role:"button",key:this.props.itemKey,className:"gb-layout-insert-button",onClick:function(){e.props.import(e.props.content)}},this.props.name)),React.createElement("div",{className:"gb-layout-reusable-actions"},React.createElement("span",null,React.createElement("a",{href:M_("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},k_("Edit","genesis-blocks"))))))}}]),n}(L_),T_=wp.blocks.rawHandler;function D_(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,T_({HTML:e,mode:"BLOCKS"}))}var R_=wp.element.useState;wp.i18n.__;var S_=wp.components.Button;function x_(e){return React.createElement(React.Fragment,null,React.createElement("div",{className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(S_,{className:"gb-layout-insert-button gb-layout-collection-button",isSmall:!0,onClick:function(){e.collectionsView.setCurrentView("collection"),e.collectionsView.setCurrentCollection(e.collectionSlug)}},React.createElement("div",{className:"gb-layout-collection-cover"},React.createElement("img",{src:e.context.collections[e.collectionSlug].thumbnail?e.context.collections[e.collectionSlug].thumbnail:genesis_blocks_globals.pattern_fallback_image,alt:e.context.collections[e.collectionSlug].label,onError:function(e){e.target.src=genesis_blocks_globals.pattern_fallback_image}})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},React.createElement("span",{className:"gb-layout-collection-label"},e.context.collections[e.collectionSlug].label))))))))}var E_=wp.i18n.__,C_=wp.components.ButtonGroup;function j_(e){var t,n,r,o,i,s,l,c=(n=R_((t={view:"collections",collection:null}).view),r=fo()(n,2),o=r[0],i=r[1],s=R_(t.collection),l=fo()(s,2),{currentView:o,setCurrentView:i,currentCollection:l[0],setCurrentCollection:l[1]});function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"layouts",n=[];for(var r in e.context[t]){var a=e.context[t][r];a.hasOwnProperty("collection")&&c.currentCollection===a.collection.slug&&n.push(React.createElement(b_,{key:a.key,itemKey:a.key,name:a.name,image:a.image,import:D_,content:a.content,context:e.context,clientId:e.clientId}))}return 0===n.length?"":React.createElement(React.Fragment,null,React.createElement("h3",{className:"gb-collection-type-title"},"layouts"===t?E_("Page Layouts","genesis-blocks"):"sections"===t?E_("Page Sections","genesis-blocks"):void 0),React.createElement(C_,{className:"gb-layout-choices","aria-label":E_("Layout Options in this Collection","genesis-blocks")},n))}return React.createElement("div",{className:"gb-collections"},React.createElement("div",{className:"gb-collections-header"},React.createElement("div",{className:"gb-collections-header-left"},"collection"!==c.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:function(){c.setCurrentView("collections")}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),E_("View All Collections ","genesis-blocks"))),"collections"===c.currentView?React.createElement("h2",{className:"gb-collection-title"},E_("Collections ","genesis-blocks")):"collection"===c.currentView?React.createElement("h2",{className:"gb-collection-title"},E_("Browsing ","genesis-blocks")+e.context.collections[c.currentCollection].label):void 0),React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://developer.wpengine.com/genesis-blocks/layouts-block/#collections",tabIndex:"0",className:"gb-collections-link"},React.createElement("span",{className:"dashicons dashicons-info"}),E_("Learn about Collections","genesis-blocks"))),React.createElement("div",{className:"gb-collections-body"},function(t){if("collections"!==c.currentView)return"";var n=[];for(var r in t)n.push(React.createElement(x_,a()({key:r,collectionSlug:r,collectionsView:c},e)));return React.createElement(C_,{className:"gb-layout-choices","aria-label":E_("Collections Available","genesis-blocks")},n)}(e.context.collections),"collection"!==c.currentView?"":React.createElement(React.Fragment,null,u("sections"),u("layouts"))))}function P_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var H_=wp.compose.compose,O_=wp.blocks.rawHandler,z_=wp.data,A_=z_.withSelect,B_=z_.withDispatch,N_=wp.element,F_=N_.Component,W_=N_.Fragment,I_=function(e){m()(n,e);var t=P_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"layoutTabContent",value:function(){return"gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(Y_,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(j_,this.props):React.createElement(b_,this.props)}},{key:"render",value:function(){return React.createElement(W_,null,this.layoutTabContent())}}]),n}(F_),U_=H_(A_((function(e,t){var n,r=t.clientId,a=e("core/block-editor").getBlock;return n=!e("core/editor")||(n=e("core/editor").canUserUseUnfilteredHTML)(),{block:a(r),canUserUseUnfilteredHTML:n}})),B_((function(e,t){var n=t.block,r=t.canUserUseUnfilteredHTML;return{import:function(t){return e("core/block-editor").replaceBlocks(n.clientId,O_({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:r}))}}})))(I_),V_=n(16),J_=n.n(V_),G_=n(34),q_=n.n(G_),$_=n(42),K_=n.n($_);function Z_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Q_=wp.apiFetch,X_=Object(Kn.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),eh=function(e){m()(r,e);var t,n=Z_(r);function r(){var e;l()(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),i()(K_()(e),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),e}return u()(r,[{key:"getFavoriteKeys",value:function(){return Q_({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"getFavorites",value:function(){var e=this;return Q_({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((function(t){var n=[];return Object.values(e.state.all).forEach((function(e){t.includes(e.key)&&n.push(e)})),n})).catch((function(e){return console.error(e)}))}},{key:"addFavorite",value:function(e){return Q_({path:"/genesisblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"removeFavorite",value:function(e){return Q_({path:"/genesisblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return e})).catch((function(e){return console.error(e)}))}},{key:"componentDidMount",value:(t=q_()(J_.a.mark((function e(){var t,n=this;return J_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getFavoriteKeys();case 2:t=e.sent,wp.apiFetch({method:"GET",path:"/genesisblocks/v1/layouts/all?filter=allowed"}).then(function(){var e=q_()(J_.a.mark((function e(r){var a,o,i,s,l;return J_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],o=[],i=[],s=[],l=[],Object.values(r).forEach((function(e){"layout"===e.type&&a.push(e),"section"===e.type&&o.push(e),"wp_block"===e.type&&i.push(e),e.hasOwnProperty("collection")&&(l.hasOwnProperty(e.collection.slug)||(l[e.collection.slug]=[],e.collection.image=e.image,l[e.collection.slug]=e.collection)),t.includes(e.key)&&s.push(e)})),n.setState({all:r,layouts:a,sections:o,favorites:s,favoriteKeys:t,reusableBlocks:i,collections:l});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e,t=this;return this.state.all?Zn.a.createElement(X_.Provider,{value:{favorites:this.state.favorites,favoriteKeys:this.state.favoriteKeys,layouts:this.state.layouts,sections:this.state.sections,all:this.state.all,reusableBlocks:this.state.reusableBlocks,collections:this.state.collections,toggleFavorite:(e=q_()(J_.a.mark((function e(n){var r,a;return J_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFavoriteKeys();case 2:if(!(r=e.sent).includes(n)){e.next=9;break}return e.next=6,t.removeFavorite(n);case 6:r=e.sent,e.next=12;break;case 9:return e.next=11,t.addFavorite(n);case 11:r=e.sent;case 12:return e.next=14,t.getFavorites();case 14:return a=e.sent,t.setState({favorites:a,favoriteKeys:r}),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}},this.props.children):null}}]),r}(Kn.Component);function th(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var nh=wp.i18n.__,rh=wp.url.addQueryArgs,ah=wp.element,oh=ah.Component,ih=ah.Fragment,sh=wp.components,lh=sh.ButtonGroup,ch=sh.TextControl,uh=sh.SelectControl,dh=function(e){m()(n,e);var t=th(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return u()(n,[{key:"getLayoutArray",value:function(){var e=[];switch(this.props.currentTab){case"gb-layout-tab-layouts":e=this.props.context.layouts;break;case"gb-layout-tab-sections":e=this.props.context.sections;break;case"gb-layout-tab-favorites":e=this.props.context.favorites;break;case"gb-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks;break;case"gb-layout-tab-collections":e=this.props.context.collections}return e}},{key:"render",value:function(){var e=this,t=this.getLayoutArray(),n=["all"];if("gb-layout-tab-collections"!==this.props.currentTab)for(var r=0;r<t.length;r++)for(var o=0;o<t[r].category.length;o++)n.includes(t[r].category[o])||n.push(t[r].category[o]);var i=n.map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}})),s=this.props.data;return"gb-layout-tab-collections"===this.props.currentTab?React.createElement(j_,a()({key:this.props.data.key},this.props)):React.createElement(ih,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(ih,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(uh,{key:"layout-library-select-categories-"+this.props.clientId,label:nh("Layout Categories","genesis-blocks"),value:this.state.category,options:i,onChange:function(t){return e.setState({category:t})}}),React.createElement(ch,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:nh("Search Layouts","genesis-blocks"),onChange:function(t){return e.setState({search:t})}}))):React.createElement(ih,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,nh("Reusable Blocks","genesis-blocks")),React.createElement("div",{className:"gb-layout-modal-header-reusable-actions"},React.createElement("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:rh("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},nh("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(X_.Consumer,null,(function(t){return React.createElement(lh,{key:"layout-library-context-button-group-"+e.props.clientId,className:b()("gb-layout-choices","current-tab-"+e.props.currentTab,"full"===e.state.activeView?"gb-layout-view-full":null),"aria-label":nh("Layout Options","genesis-blocks")},Lo()(s,(function(n){var r=n.name,a=n.key,o=n.image,i=n.content,s=n.category,l=n.keywords;if(("all"===e.state.category||s.includes(e.state.category))&&(!e.state.search||l&&l.some((function(t){return t.toLowerCase().includes(e.state.search.toLowerCase())}))))return React.createElement(U_,{key:"layout-library-item-"+a,name:r,itemKey:a,image:o,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}]),n}(oh),mh=wp.i18n.__,ph=wp.element,_h=ph.Fragment,hh=ph.useState,gh=wp.components,fh=gh.Button,bh=gh.Dashicon,yh=gh.Modal,kh=gh.TabPanel,Mh=wp.data.useDispatch;var vh=function(e){var t=hh("gb-layout-tab-sections"),n=fo()(t,2),r=n[0],a=n[1],o=hh(!0),i=fo()(o,2),s=i[0],l=i[1],c=Mh("core/block-editor").removeBlock,u=[];return e.context.sections.length>0&&u.push({name:"gb-layout-tab-sections",title:mh("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),e.context.layouts.length>0&&u.push({name:"gb-layout-tab-layouts",title:mh("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),Object.keys(e.context.collections).length>0&&u.push({name:"gb-layout-tab-collections",title:mh("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),u.push({name:"gb-layout-tab-favorites",title:mh("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),e.context.reusableBlocks.length&&u.push({name:"gb-layout-tab-reusable-blocks",title:mh("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(_h,{key:"layout-modal-fragment-"+e.clientId},React.createElement(fh,{key:"layout-modal-library-button-"+e.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:function(){l(!0)}},mh("Layout Library","genesis-blocks")),s?React.createElement(yh,{key:"layout-modal-modal-component-"+e.clientId,className:"gb-layout-modal",title:mh("Layout Selector","genesis-blocks"),onRequestClose:function(){l(!1),a(null),c(e.clientId)}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement(bh,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},mh("Add Custom Layouts","genesis-blocks")),React.createElement("span",null,"·"),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/",target:"_blank",rel:"noopener noreferrer"},mh("Reusable Blocks","genesis-blocks")),React.createElement("a",{href:"https://www.research.net/r/XFQYFPP",target:"_blank",rel:"noopener noreferrer",className:"gb-pro-feedback"},React.createElement(bh,{icon:"admin-comments"})," ",mh("Send Feedback","genesis-blocks"))),React.createElement(kh,{key:"layout-modal-tabpanel-"+e.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:function(e){return a(e)},tabs:u},(function(t){var n=mh("Default tab content","genesis-blocks");if(t.name){if("gb-layout-tab-sections"===t.name)return[React.createElement(dh,{key:"layout-library-sections-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.sections,context:e.context})];if("gb-layout-tab-layouts"===t.name)return[React.createElement(dh,{key:"layout-library-layouts-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.layouts,context:e.context})];if("gb-layout-tab-collections"===t.name)return[React.createElement(dh,{key:"layout-library-collections-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.collections,context:e.context})];if("gb-layout-tab-favorites"===t.name)return[React.createElement(dh,{key:"layout-library-favorites-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.favorites,context:e.context})];if("gb-layout-tab-reusable-blocks"===t.name)return[React.createElement(dh,{key:"layout-library-reusable-blocks-"+e.clientId,clientId:e.clientId,currentTab:r,data:e.context.reusableBlocks,context:e.context})]}return React.createElement("div",null,n)}))):null)};function Lh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var wh=wp.i18n.__,Yh=wp.components.Placeholder,Th=wp.element,Dh=Th.Component,Rh=Th.Fragment,Sh=wp.blockEditor,xh=Sh.BlockControls,Eh=Sh.BlockAlignmentToolbar,Ch=function(e){m()(n,e);var t=Lh(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[React.createElement(Rh,{key:this.props.clientId},React.createElement(xh,{key:"controls"},React.createElement(Eh,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),React.createElement(Yh,{key:"placeholder",label:wh("Layout Selector","genesis-blocks"),instructions:wh("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(X_.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return React.createElement(vh,{clientId:r,context:e})}))))]}}]),n}(Dh),jh=(n(357),n(358),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-layouts",{title:jh("Layouts","genesis-blocks"),description:jh("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[jh("layout","genesis-blocks"),jh("column","genesis-blocks"),jh("section","genesis-blocks")],edit:function(e){return React.createElement(eh,null,React.createElement(Ch,e))},save:function(){return null}});var Ph=!1;function Hh(){var e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}wp.data.subscribe((function(){!function(){if(Ph)return;var e=document.querySelector(".edit-post-header__toolbar");if(!e)return;var t=document.createElement("div"),n='<div class="gb-toolbar-insert-layout">';n+='<button id="gbLayoutInsertButton" class="components-button components-icon-button" aria-label="'.concat(jh("Insert Layout","genesis-blocks"),'"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ').concat(jh("Layouts","genesis-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t);var r=document.querySelector(".components-accessible-toolbar.edit-post-header-toolbar");r&&(r.style.flexGrow=0);document.getElementById("gbLayoutInsertButton").addEventListener("click",Hh),Ph=!0}()}));n(359),n(360);var Oh=["core/paragraph","core/heading"],zh="Desktop",Ah="Tablet",Bh="Mobile",Nh={Desktop:"default",Tablet:"1200px",Mobile:"600px"};function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fh(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ih=function(e){return e.replace(/([a-z])([A-Z1-9])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()},Uh=function(e){return"string"!=typeof e||e.match(/[A-Za-z]+$/)?e:"".concat(e,"px")},Vh=function(e,t){var n;return null===(n=t.find((function(t){return e===t.slug})))||void 0===n?void 0:n.size},Jh=n(18);const Gh=e=>{if(!Object(Jh.isObject)(e)||Array.isArray(e))return e;const t=Object(Jh.pickBy)(Object(Jh.mapValues)(e,Gh),Jh.identity);return Object(Jh.isEmpty)(t)?void 0:t};var qh=function(e){var t=e.clientId,n=e.device,r=e.selectedDevice,a=e.settingName,o=e.settingValue;return React.createElement(React.Fragment,null,o?"@media only screen and (max-width: ".concat(n,") {\n\t\t\t\t#block-").concat(t," {\n\t\t\t\t\t").concat(Ih(a),": ").concat(o," !important\n\t\t\t\t}\n\t\t\t}"):null,r===n&&o?"#block-".concat(t," {\n\t\t\t\t").concat(Ih(a),": ").concat(o," !important\n\t\t\t}"):null)};function $h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$h(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zh=wp.blockEditor,Qh=Zh.InspectorControls,Xh=Zh.LineHeightControl,eg=wp.blocks.hasBlockSupport,tg=wp.components,ng=tg.Button,rg=tg.FontSizePicker,ag=tg.NavigableMenu,og=tg.PanelBody,ig=wp.compose.createHigherOrderComponent,sg=wp.data,lg=sg.useDispatch,cg=sg.useSelect,ug=wp.i18n.__,dg=ig((function(e){return function(t){var n=cg((function(e){return e("core/block-editor").getSettings()})),r=n.disableCustomFontSizes,a=n.enableCustomLineHeight,o=n.fontSizes,s=cg((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?t():zh})),l=lg("core/edit-post").__experimentalSetPreviewDeviceType,c=!eg(t.name,"typography.fontSize",!0)||!(null==o?void 0:o.length),u=!eg(t.name,"typography.lineHeight",!0)||!a;if(!Oh.includes(t.name)||c&&u)return React.createElement(e,t);var d,m,p,_=function(e){l&&l(e)},h=function(e,n){return t.attributes.gbResponsiveSettings&&t.attributes.gbResponsiveSettings[n]?t.attributes.gbResponsiveSettings[n][e]:""},g=function(e,n){t.setAttributes(i()({},"gbResponsiveSettings",Kh(Kh({},t.attributes.gbResponsiveSettings),{},i()({},Nh[s],Kh(Kh({},t.attributes.gbResponsiveSettings[Nh[s]]),{},i()({},e,n))))))},f=h("fontSize",Nh.Mobile),b=h("fontSize",Nh.Tablet);return React.createElement(React.Fragment,null,Object.keys(t.attributes.gbResponsiveSettings).length?React.createElement("style",null,c?null:React.createElement(React.Fragment,null,React.createElement(qh,{device:Nh.Tablet,selectedDevice:Nh[s],settingName:"fontSize",settingValue:Uh(Vh(b,o)||b),clientId:t.clientId}),React.createElement(qh,{device:Nh.Mobile,selectedDevice:Nh[s],settingName:"fontSize",settingValue:Uh(Vh(f,o)||f),clientId:t.clientId})),u?null:React.createElement(React.Fragment,null,React.createElement(qh,{device:Nh.Tablet,selectedDevice:Nh[s],settingName:"lineHeight",settingValue:h("lineHeight",Nh.Tablet),clientId:t.clientId}),React.createElement(qh,{device:Nh.Mobile,selectedDevice:Nh[s],settingName:"lineHeight",settingValue:h("lineHeight",Nh.Mobile),clientId:t.clientId}))):null,React.createElement(e,t),React.createElement(Qh,null,React.createElement(og,{title:ug("Responsive Typography","genesis-blocks")},React.createElement(ag,{className:"gb-responsive-toggle",onNavigate:function(){},orientation:"horizontal"},React.createElement(ng,{icon:"laptop",showTooltip:!0,label:ug("Desktop view","genesis-blocks"),onClick:function(){return _(zh)},isPrimary:zh===s,isSecondary:zh!==s},ug("Desktop","genesis-blocks")),React.createElement(ng,{icon:"tablet",showTooltip:!0,label:ug("Tablet view","genesis-blocks"),onClick:function(){return _(Ah)},isPrimary:Ah===s,isSecondary:Ah!==s},ug("Tablet","genesis-blocks")),React.createElement(ng,{icon:"smartphone",showTooltip:!0,label:ug("Mobile view","genesis-blocks"),onClick:function(){return _(Bh)},isPrimary:Bh===s,isSecondary:Bh!==s},ug("Mobile","genesis-blocks"))),c?null:React.createElement(rg,{value:function(){var e,n,r,a,i,l;if(zh===s)return Vh(t.attributes.fontSize,o)||Vh(null===(e=t.attributes)||void 0===e||null===(n=e.style)||void 0===n||null===(r=n.typography)||void 0===r?void 0:r.fontSize,o)||(null===(a=t.attributes)||void 0===a||null===(i=a.style)||void 0===i||null===(l=i.typography)||void 0===l?void 0:l.fontSize);var c=h("fontSize",Nh[s]);return Vh(c,o)||c}(),onChange:function(e){var n=function(e,t){var n;return null===(n=t.find((function(t){return e===t.size})))||void 0===n?void 0:n.slug}(e,o);if(zh!==s)g("fontSize",n||e);else{var r,a,i,l=Kh(Kh({},null===(r=t.attributes)||void 0===r?void 0:r.style),{},{typography:Kh(Kh({},null===(a=t.attributes)||void 0===a||null===(i=a.style)||void 0===i?void 0:i.typography),{},{fontSize:n?void 0:e})});t.setAttributes({style:Gh?Gh(l):l,fontSize:n})}},fontSizes:o,disableCustomFontSizes:r}),u||!Xh?null:React.createElement(Xh,{value:zh===s?null===(d=t.attributes)||void 0===d||null===(m=d.style)||void 0===m||null===(p=m.typography)||void 0===p?void 0:p.lineHeight:h("lineHeight",Nh[s]),onChange:function(e){if(zh!==s)g("lineHeight",e);else{var n,r,a,o=Kh(Kh({},null===(n=t.attributes)||void 0===n?void 0:n.style),{},{typography:Kh(Kh({},null===(r=t.attributes)||void 0===r||null===(a=r.style)||void 0===a?void 0:a.typography),{},{lineHeight:e})});t.setAttributes({style:Gh?Gh(o):o})}}}))))}}),"withResponsiveSettings"),mg=wp.hooks.addFilter;mg("blocks.registerBlockType","genesis-blocks/add-responsive-controls-attributes",(function(e,t){return Oh.includes(t)?Wh(Wh({},e),{},{attributes:Wh(Wh({},null==e?void 0:e.attributes),{},i()({},"gbResponsiveSettings",{type:"object",default:{}}))}):e})),mg("editor.BlockEdit","genesis-blocks/add-responsive-controls",dg)},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]);
|
289 |
object-assign
|
290 |
(c) Sindre Sorhus
|
291 |
@license MIT
|
292 |
+
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=i(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-in":77,"./en-in.js":77,"./en-nz":78,"./en-nz.js":78,"./en-sg":79,"./en-sg.js":79,"./eo":80,"./eo.js":80,"./es":81,"./es-do":82,"./es-do.js":82,"./es-us":83,"./es-us.js":83,"./es.js":81,"./et":84,"./et.js":84,"./eu":85,"./eu.js":85,"./fa":86,"./fa.js":86,"./fi":87,"./fi.js":87,"./fil":88,"./fil.js":88,"./fo":89,"./fo.js":89,"./fr":90,"./fr-ca":91,"./fr-ca.js":91,"./fr-ch":92,"./fr-ch.js":92,"./fr.js":90,"./fy":93,"./fy.js":93,"./ga":94,"./ga.js":94,"./gd":95,"./gd.js":95,"./gl":96,"./gl.js":96,"./gom-deva":97,"./gom-deva.js":97,"./gom-latn":98,"./gom-latn.js":98,"./gu":99,"./gu.js":99,"./he":100,"./he.js":100,"./hi":101,"./hi.js":101,"./hr":102,"./hr.js":102,"./hu":103,"./hu.js":103,"./hy-am":104,"./hy-am.js":104,"./id":105,"./id.js":105,"./is":106,"./is.js":106,"./it":107,"./it-ch":108,"./it-ch.js":108,"./it.js":107,"./ja":109,"./ja.js":109,"./jv":110,"./jv.js":110,"./ka":111,"./ka.js":111,"./kk":112,"./kk.js":112,"./km":113,"./km.js":113,"./kn":114,"./kn.js":114,"./ko":115,"./ko.js":115,"./ku":116,"./ku.js":116,"./ky":117,"./ky.js":117,"./lb":118,"./lb.js":118,"./lo":119,"./lo.js":119,"./lt":120,"./lt.js":120,"./lv":121,"./lv.js":121,"./me":122,"./me.js":122,"./mi":123,"./mi.js":123,"./mk":124,"./mk.js":124,"./ml":125,"./ml.js":125,"./mn":126,"./mn.js":126,"./mr":127,"./mr.js":127,"./ms":128,"./ms-my":129,"./ms-my.js":129,"./ms.js":128,"./mt":130,"./mt.js":130,"./my":131,"./my.js":131,"./nb":132,"./nb.js":132,"./ne":133,"./ne.js":133,"./nl":134,"./nl-be":135,"./nl-be.js":135,"./nl.js":134,"./nn":136,"./nn.js":136,"./oc-lnc":137,"./oc-lnc.js":137,"./pa-in":138,"./pa-in.js":138,"./pl":139,"./pl.js":139,"./pt":140,"./pt-br":141,"./pt-br.js":141,"./pt.js":140,"./ro":142,"./ro.js":142,"./ru":143,"./ru.js":143,"./sd":144,"./sd.js":144,"./se":145,"./se.js":145,"./si":146,"./si.js":146,"./sk":147,"./sk.js":147,"./sl":148,"./sl.js":148,"./sq":149,"./sq.js":149,"./sr":150,"./sr-cyrl":151,"./sr-cyrl.js":151,"./sr.js":150,"./ss":152,"./ss.js":152,"./sv":153,"./sv.js":153,"./sw":154,"./sw.js":154,"./ta":155,"./ta.js":155,"./te":156,"./te.js":156,"./tet":157,"./tet.js":157,"./tg":158,"./tg.js":158,"./th":159,"./th.js":159,"./tl-ph":160,"./tl-ph.js":160,"./tlh":161,"./tlh.js":161,"./tr":162,"./tr.js":162,"./tzl":163,"./tzl.js":163,"./tzm":164,"./tzm-latn":165,"./tzm-latn.js":165,"./tzm.js":164,"./ug-cn":166,"./ug-cn.js":166,"./uk":167,"./uk.js":167,"./ur":168,"./ur.js":168,"./uz":169,"./uz-latn":170,"./uz-latn.js":170,"./uz.js":169,"./vi":171,"./vi.js":171,"./x-pseudo":172,"./x-pseudo.js":172,"./yo":173,"./yo.js":173,"./zh-cn":174,"./zh-cn.js":174,"./zh-hk":175,"./zh-hk.js":175,"./zh-mo":176,"./zh-mo.js":176,"./zh-tw":177,"./zh-tw.js":177};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=206},function(e,t,n){var r=n(208),a=n(272),o=n(195),i=n(13),s=n(281);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?a(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(209),a=n(271),o=n(192);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(179),a=n(184);e.exports=function(e,t,n,o){var i=n.length,s=i,l=!o;if(null==e)return!s;for(e=Object(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],d=e[u],m=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(o)var _=o(d,m,u,e,t,p);if(!(void 0===_?a(m,d,3,o,p):_))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(22),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(22);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(22);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(22);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},function(e,t,n){var r=n(21);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(21),a=n(36),o=n(37);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(181),a=n(224),o=n(24),i=n(183),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(r(e)?m:s).test(i(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(23),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,a=n(225),o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(12)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(228),a=n(21),o=n(36);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}},function(e,t,n){var r=n(229),a=n(230),o=n(231),i=n(232),s=n(233);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(25);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(25),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(25),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},function(e,t,n){var r=n(25);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(26);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(26);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(26);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(26);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},function(e,t,n){var r=n(179),a=n(185),o=n(245),i=n(249),s=n(266),l=n(13),c=n(188),u=n(190),d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,_,h){var g=l(e),f=l(t),b=g?"[object Array]":s(e),y=f?"[object Array]":s(t),k=(b="[object Arguments]"==b?d:b)==d,M=(y="[object Arguments]"==y?d:y)==d,v=b==y;if(v&&c(e)){if(!c(t))return!1;g=!0,k=!1}if(v&&!k)return h||(h=new r),g||u(e)?a(e,t,n,p,_,h):o(e,t,b,n,p,_,h);if(!(1&n)){var L=k&&m.call(e,"__wrapped__"),w=M&&m.call(t,"__wrapped__");if(L||w){var Y=L?e.value():e,T=w?t.value():t;return h||(h=new r),_(Y,T,n,p,h)}}return!!v&&(h||(h=new r),i(e,t,n,p,_,h))}},function(e,t,n){var r=n(37),a=n(241),o=n(242);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=a,i.prototype.has=o,e.exports=i},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(23),a=n(246),o=n(180),i=n(185),s=n(247),l=n(248),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,m){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var _=1&r;if(p||(p=l),e.size!=t.size&&!_)return!1;var h=m.get(e);if(h)return h==t;r|=2,m.set(e,t);var g=i(p(e),p(t),r,c,d,m);return m.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,n){var r=n(12).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(250),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,i,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var m=c[d];if(!(l?m in t:a.call(t,m)))return!1}var p=s.get(e),_=s.get(t);if(p&&_)return p==t&&_==e;var h=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var f=e[m=c[d]],b=t[m];if(o)var y=l?o(b,f,m,t,e,s):o(f,b,m,e,t,s);if(!(void 0===y?f===b||i(f,b,n,o,s):y)){h=!1;break}g||(g="constructor"==m)}if(h&&!g){var k=e.constructor,M=t.constructor;k==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof M&&M instanceof M||(h=!1)}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(251),a=n(253),o=n(38);e.exports=function(e){return r(e,o,a)}},function(e,t,n){var r=n(252),a=n(13);e.exports=function(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},function(e,t,n){var r=n(254),a=n(255),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return o.call(e,t)})))}:a;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(186),a=n(187),o=n(13),i=n(188),s=n(189),l=n(190),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&a(e),d=!n&&!u&&i(e),m=!n&&!u&&!d&&l(e),p=n||u||d||m,_=p?r(e.length,String):[],h=_.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||m&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||_.push(g);return _}},function(e,t,n){var r=n(19),a=n(20);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(19),a=n(39),o=n(20),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(182),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(35)(e))},function(e,t,n){var r=n(263),a=n(264),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(265)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(267),a=n(36),o=n(268),i=n(269),s=n(270),l=n(19),c=n(183),u=c(r),d=c(a),m=c(o),p=c(i),_=c(s),h=l;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||a&&"[object Map]"!=h(new a)||o&&"[object Promise]"!=h(o.resolve())||i&&"[object Set]"!=h(new i)||s&&"[object WeakMap]"!=h(new s))&&(h=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case m:return"[object Promise]";case p:return"[object Set]";case _:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,n){var r=n(17)(n(12),"DataView");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Promise");e.exports=r},function(e,t,n){var r=n(17)(n(12),"Set");e.exports=r},function(e,t,n){var r=n(17)(n(12),"WeakMap");e.exports=r},function(e,t,n){var r=n(191),a=n(38);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var o=t[n],i=e[o];t[n]=[o,i,r(i)]}return t}},function(e,t,n){var r=n(184),a=n(29),o=n(278),i=n(41),s=n(191),l=n(192),c=n(28);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(n){var i=a(n,e);return void 0===i&&i===t?o(n,e):r(t,i,3)}}},function(e,t,n){var r=n(274),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)})),t}));e.exports=i},function(e,t,n){var r=n(275);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(37);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},function(e,t,n){var r=n(277);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(23),a=n(178),o=n(13),i=n(27),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(279),a=n(280);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(194),a=n(187),o=n(13),i=n(189),s=n(39),l=n(28);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var m=l(t[c]);if(!(d=null!=e&&n(e,m)))break;e=e[m]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(m,u)&&(o(e)||a(e))}},function(e,t,n){var r=n(282),a=n(283),o=n(41),i=n(28);e.exports=function(e){return o(e)?r(i(e)):a(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(193);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(285),a=n(40);e.exports=function(e,t){var n=-1,o=a(e)?Array(e.length):[];return r(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}},function(e,t,n){var r=n(286),a=n(289)(r);e.exports=a},function(e,t,n){var r=n(287),a=n(38);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t,n){var r=n(288)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,o=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++a];if(!1===n(o[l],l,o))break}return t}}},function(e,t,n){var r=n(40);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var o=n.length,i=t?o:-1,s=Object(n);(t?i--:++i<o)&&!1!==a(s[i],i,s););return n}}},function(e,t,n){var r=n(195);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(292);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(293);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(294),a=n(24),o=n(27),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(295),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(45);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var a=t&&t.prototype instanceof u?t:u,o=Object.create(a.prototype),i=new v(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return w()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=y(i,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,i),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c={};function u(){}function d(){}function m(){}var p={};p[a]=function(){return this};var _=Object.getPrototypeOf,h=_&&_(_(L([])));h&&h!==t&&n.call(h,a)&&(p=h);var g=m.prototype=u.prototype=Object.create(p);function f(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var r;this._invoke=function(a,o){function i(){return new t((function(r,i){!function r(a,o,i,s){var c=l(e[a],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:w}}function w(){return{value:void 0,done:!0}}return d.prototype=g.constructor=m,m.constructor=d,m[i]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},f(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new b(s(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},f(g),g[i]="Generator",g[a]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=L,v.prototype={constructor:v,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;M(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.r(t);var r=n(9),a=n.n(r),o=n(7),i=n.n(o),s=n(1),l=n.n(s),c=n(2),u=n.n(c),d=n(3),m=n.n(d),p=n(4),_=n.n(p),h=n(0),g=n.n(h),f=n(5),b=n.n(f);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var k=wp.element.Component,M=wp.hooks.applyFilters,v=function(e){m()(n,e);var t=y(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){if(void 0===this.props.children)return null;var e=!1;if(void 0!==this.props.children.props&&void 0!==this.props.children.props.name||(e=!0),e&&(void 0===this.props.children._owner||void 0===this.props.children._owner.memoizedProps||void 0===this.props.children._owner.memoizedProps.name))return this.props.children;var t=e?this.props.children._owner.memoizedProps.name:this.props.children.props.name;return M("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}]),n}(k);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var w=wp.i18n.__,Y=wp.element.Component,T=wp.blockEditor,D=T.InspectorControls,R=T.PanelColorSettings,S=wp.components,x=S.PanelBody,E=S.RangeControl,C=S.SelectControl,j=function(e){m()(n,e);var t=L(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:"left-aligned",label:w("Left Aligned","genesis-blocks")},{value:"right-aligned",label:w("Right Aligned","genesis-blocks")}],n=this.props,r=n.attributes,a=r.testimonialBackgroundColor,o=r.testimonialTextColor,i=r.testimonialFontSize,s=r.testimonialCiteAlign,l=n.setAttributes;return React.createElement(D,{key:"inspector"},React.createElement(x,null,React.createElement(v,{id:"gb_testimonial_testimonialFontSize"},React.createElement(E,{label:w("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({testimonialFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(C,{label:w("Cite Alignment","genesis-blocks"),description:w("Left or right align the cite name and title.","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({testimonialCiteAlign:t})}}))),React.createElement(v,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(R,{title:w("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({testimonialBackgroundColor:e})},label:w("Background Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_testimonial_testimonialTextColor"},React.createElement(R,{title:w("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({testimonialTextColor:e})},label:w("Text Color","genesis-blocks")}]})))}}]),n}(Y);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var H=function(e){m()(n,e);var t=P(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialImgURL,n=e.testimonialBackgroundColor,r=e.testimonialTextColor,a=e.testimonialFontSize,o=e.testimonialCiteAlign;return React.createElement("div",{style:{backgroundColor:n||"#f2f2f2",color:r||"#32373c"},className:b()(this.props.className,o,{"gb-has-avatar":t},"gb-font-size-"+a,"gb-block-testimonial")},this.props.children)}}]),n}(wp.element.Component),O={};O.upload=React.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));var z=O;function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var F=wp.i18n.__,W=wp.element,I=W.Component,U=W.Fragment,V=wp.blockEditor,J=V.RichText,G=V.AlignmentToolbar,q=V.BlockControls,$=V.MediaUpload,K=wp.components,Z=K.Button,Q=K.Dashicon,X=["image"],ee=function(e){m()(n,e);var t=N(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.testimonialName,o=n.testimonialTitle,i=n.testimonialContent,s=n.testimonialAlignment,l=n.testimonialImgURL,c=n.testimonialImgID,u=n.testimonialImgAlt,d=n.testimonialTextColor,m=t.setAttributes,p=function(){m({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(q,{key:"controls"},React.createElement(G,{value:s,onChange:function(e){return m({testimonialAlignment:e})}})),React.createElement(j,a()({key:"gb-testimonial-inspector-"+this.props.clientId},B({setAttributes:m},this.props))),React.createElement(H,a()({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(J,{tagName:"div",multiline:"p",placeholder:F("Add testimonial text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-testimonial-text"),style:{textAlign:s},onChange:function(e){return m({testimonialContent:e})}}),React.createElement("div",{className:"gb-testimonial-info"},React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement($,{buttonProps:{className:"change-image"},onSelect:function(e){return m({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt})},allowed:X,type:"image",value:c,render:function(e){var t=e.open;return React.createElement(U,null,React.createElement(Z,{className:c?"gb-change-image":"gb-add-image",onClick:t},c?React.createElement("img",{className:"gb-testimonial-avatar",src:l,alt:u||null}):z.upload),c&&React.createElement(Z,{className:"gb-remove-image",onClick:p},React.createElement(Q,{icon:"dismiss"})))}}))),React.createElement(J,{tagName:"h2",placeholder:F("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-testimonial-name",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialName:t})}}),React.createElement(J,{tagName:"small",placeholder:F("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,className:"gb-testimonial-title",style:{color:d},onChange:function(t){return e.props.setAttributes({testimonialTitle:t})}})))]}}]),n}(I);function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ne=wp.element.Component,re=wp.blockEditor.RichText,ae=function(e){m()(n,e);var t=te(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.testimonialName,n=e.testimonialTitle,r=e.testimonialContent,a=e.testimonialAlignment,o=e.testimonialImgURL,i=e.testimonialImgAlt,s=e.testimonialTextColor;return React.createElement(H,this.props,React.createElement(re.Content,{tagName:"div",className:"gb-testimonial-text",style:{textAlign:a},value:r}),React.createElement("div",{className:"gb-testimonial-info"},o&&React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement("img",{className:"gb-testimonial-avatar",src:o,alt:i||null}))),t&&React.createElement(re.Content,{tagName:"h2",className:"gb-testimonial-name",style:{color:s||"#32373c"},value:t}),n&&React.createElement(re.Content,{tagName:"small",className:"gb-testimonial-title",style:{color:s||"#32373c"},value:n})))}}]),n}(ne),oe=(n(328),n(330),wp.i18n.__);function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-testimonial",{title:oe("Testimonial","genesis-blocks"),description:oe("Add a user testimonial with a name and title.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[oe("testimonial","genesis-blocks"),oe("quote","genesis-blocks"),oe("atomic","genesis-blocks")],attributes:{testimonialName:{type:"array",selector:".gb-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".gb-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".gb-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},gb_settings_data:{gb_testimonial_testimonialFontSize:{title:oe("Font Size","genesis-blocks")},gb_testimonial_testimonialCiteAlign:{title:oe("Cite Alignment","genesis-blocks")},gb_testimonial_testimonialBackgroundColor:{title:oe("Background Color","genesis-blocks")},gb_testimonial_testimonialTextColor:{title:oe("Text Color","genesis-blocks")}},edit:function(e){return React.createElement(ee,e)},save:function(e){return React.createElement(ae,e)}});var se=wp.i18n.__,le=wp.element.Component,ce=wp.blockEditor,ue=ce.InspectorControls,de=ce.PanelColorSettings,me=wp.components,pe=me.PanelBody,_e=me.RangeControl,he=me.SelectControl,ge=me.TextControl,fe=function(e){m()(n,e);var t=ie(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.profileFontSize,r=t.profileBackgroundColor,a=t.profileTextColor,o=t.profileLinkColor,i=t.twitter,s=t.facebook,l=t.instagram,c=t.pinterest,u=t.google,d=t.youtube,m=t.github,p=t.linkedin,_=t.wordpress,h=t.email,g=t.website,f=t.profileAvatarShape,b=this.props.setAttributes,y=[{value:"square",label:se("Square","genesis-blocks")},{value:"round",label:se("Round","genesis-blocks")}];return React.createElement(ue,{key:"inspector"},React.createElement(pe,null,React.createElement(v,{id:"gb_author_profile_profileFontSize"},React.createElement(_e,{label:se("Font Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_author_profile_profileAvatarShape"},React.createElement(he,{label:se("Avatar Shape","genesis-blocks"),description:se("Choose between a round or square avatar shape.","genesis-blocks"),options:y,value:f,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}})),React.createElement(v,{id:"gb_author_profile_profileBackgroundColor"},React.createElement(de,{title:se("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return b({profileBackgroundColor:e})},label:se("Background Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_author_profile_profileTextColor"},React.createElement(de,{title:se("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return b({profileTextColor:e})},label:se("Text Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_author_profile_profileLinkColor"},React.createElement(de,{title:se("Social Link Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return b({profileLinkColor:e})},label:se("Social Link Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_author_profile_socialLinks"},React.createElement(pe,{title:se("Social Links","genesis-blocks"),initialOpen:!1},React.createElement("p",null,se("Add links to your social media site and they will appear in the bottom of the profile box.","genesis-blocks")),React.createElement(ge,{label:se("Twitter URL","genesis-blocks"),type:"url",value:i,onChange:function(t){return e.props.setAttributes({twitter:t})}}),React.createElement(ge,{label:se("Facebook URL","genesis-blocks"),type:"url",value:s,onChange:function(t){return e.props.setAttributes({facebook:t})}}),React.createElement(ge,{label:se("Instagram URL","genesis-blocks"),type:"url",value:l,onChange:function(t){return e.props.setAttributes({instagram:t})}}),React.createElement(ge,{label:se("Pinterest URL","genesis-blocks"),type:"url",value:c,onChange:function(t){return e.props.setAttributes({pinterest:t})}}),React.createElement(ge,{label:se("Google URL","genesis-blocks"),type:"url",value:u,onChange:function(t){return e.props.setAttributes({google:t})}}),React.createElement(ge,{label:se("YouTube URL","genesis-blocks"),type:"url",value:d,onChange:function(t){return e.props.setAttributes({youtube:t})}}),React.createElement(ge,{label:se("Github URL","genesis-blocks"),type:"url",value:m,onChange:function(t){return e.props.setAttributes({github:t})}}),React.createElement(ge,{label:se("LinkedIn URL","genesis-blocks"),type:"url",value:p,onChange:function(t){return e.props.setAttributes({linkedin:t})}}),React.createElement(ge,{label:se("WordPress Profile URL","genesis-blocks"),type:"url",value:_,onChange:function(t){return e.props.setAttributes({wordpress:t})}}),React.createElement(ge,{label:se("Email URL","genesis-blocks"),help:se('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"genesis-blocks"),type:"url",value:h,onChange:function(t){return e.props.setAttributes({email:t})}}),React.createElement(ge,{label:se("Website URL","genesis-blocks"),type:"url",value:g,onChange:function(t){return e.props.setAttributes({website:t})}}))))}}]),n}(le);function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ye=function(e){m()(n,e);var t=be(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,o=e.profileTextColor,i=e.profileAvatarShape;return React.createElement("div",{style:{backgroundColor:a,color:o},className:b()(this.props.className,t,i,{"gb-has-avatar":n},"gb-font-size-"+r,"gb-block-profile","gb-profile-columns")},this.props.children)}}]),n}(wp.element.Component);function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Me=wp.i18n.__,ve=function(e){m()(n,e);var t=ke(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Website","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-website-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-website-"+this.props.clientId},Me("Visit Website (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Twitter","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},Me("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Facebook","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},Me("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Instagram","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-instagram-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-instagram-"+this.props.clientId},Me("Visit Instagram account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Pinterest","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},Me("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Google","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-google-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-google-"+this.props.clientId},Me("Visit Google account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("YouTube","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-youtube-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-youtube-"+this.props.clientId},Me("Visit YouTube account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("LinkedIn","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},Me("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Github","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-github-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-github-"+this.props.clientId},Me("Visit GitHub account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("WordPress","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-wordpress-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-wordpress-"+this.props.clientId},Me("Visit WordPress account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M21.469 6.825c.84 1.537 1.318 3.3 1.318 5.175 0 3.979-2.156 7.456-5.363 9.325l3.295-9.527c.615-1.54.82-2.771.82-3.864 0-.405-.026-.78-.07-1.11m-7.981.105c.647-.03 1.232-.105 1.232-.105.582-.075.514-.93-.067-.899 0 0-1.755.135-2.88.135-1.064 0-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885 0 0 .54.061 1.125.09l1.68 4.605-2.37 7.08L5.354 6.9c.649-.03 1.234-.1 1.234-.1.585-.075.516-.93-.065-.896 0 0-1.746.138-2.874.138-.2 0-.438-.008-.69-.015C4.911 3.15 8.235 1.215 12 1.215c2.809 0 5.365 1.072 7.286 2.833-.046-.003-.091-.009-.141-.009-1.06 0-1.812.923-1.812 1.914 0 .89.513 1.643 1.06 2.531.411.72.89 1.643.89 2.977 0 .915-.354 1.994-.821 3.479l-1.075 3.585-3.9-11.61.001.014zM12 22.784c-1.059 0-2.081-.153-3.048-.437l3.237-9.406 3.315 9.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211 12c0-1.564.336-3.05.935-4.39L7.29 21.709C3.694 19.96 1.212 16.271 1.211 12M12 0C5.385 0 0 5.385 0 12s5.385 12 12 12 12-5.385 12-12S18.615 0 12 0"})))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":Me("Email","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},Me("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})))))}}]),n}(wp.element.Component);function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var we=function(e){m()(n,e);var t=Le(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}]),n}(wp.element.Component);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Re=wp.i18n.__,Se=wp.element,xe=Se.Component,Ee=Se.Fragment,Ce=wp.blockEditor,je=Ce.RichText,Pe=Ce.AlignmentToolbar,He=Ce.BlockControls,Oe=Ce.MediaUpload,ze=wp.components,Ae=ze.Button,Be=ze.Dashicon,Ne=["image"],Fe=function(e){m()(n,e);var t=De(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.attributes.clientId&&e.props.attributes.clientId===e.props.clientId||e.props.setAttributes({clientId:e.props.clientId}),e}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.profileName,r=t.profileTitle,o=t.profileContent,i=t.profileAlignment,s=t.profileImgURL,l=t.profileImgID,c=t.profileImgAlt,u=t.profileTextColor,d=e.setAttributes;return[React.createElement(He,{key:"controls"},React.createElement(Pe,{value:i,onChange:function(e){return d({profileAlignment:e})}})),React.createElement(fe,a()({key:"gb-author-profile-inspector-"+this.props.clientId},Te({setAttributes:d},this.props))),React.createElement(ye,a()({key:"gb-author-profile-"+this.props.clientId},this.props),React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement(Oe,{buttonProps:{className:"change-image"},onSelect:function(e){return d({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt})},allowed:Ne,type:"image",value:l,render:function(e){var t=e.open;return React.createElement(Ee,null,React.createElement(Ae,{onClick:t},l?React.createElement("img",{className:b()("gb-profile-avatar","gb-change-image","wp-image-"+l),src:s,alt:c}):z.upload),l&&React.createElement(Ae,{className:"gb-remove-image",onClick:function(){d({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(Be,{icon:"dismiss"})))}}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},React.createElement(je,{tagName:"h2",placeholder:Re("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:"gb-profile-name",style:{color:u},onChange:function(e){return d({profileName:e})}}),React.createElement(je,{tagName:"p",placeholder:Re("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,className:"gb-profile-title",style:{color:u},onChange:function(e){return d({profileTitle:e})}}),React.createElement(je,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Re("Add profile text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:function(e){return d({profileContent:e})}}),React.createElement(ve,this.props)))]}}]),n}(xe);function We(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ie=wp.element.Component,Ue=wp.blockEditor.RichText,Ve=function(e){m()(n,e);var t=We(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileImgAlt,i=e.profileImgID,s=e.profileTextColor;return React.createElement(ye,this.props,a&&i&&React.createElement(we,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:b()("gb-profile-avatar","wp-image-"+i),src:a,alt:o}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(Ue.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(Ue.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(Ue.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(ve,this.props)))}}]),n}(Ie);n(331),n(332);function Je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ge=function(e){m()(n,e);var t=Je(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileAlignment,n=e.profileImgURL,r=e.profileFontSize,a=e.profileBackgroundColor,o=e.profileTextColor,i=e.profileAvatarShape;return React.createElement("div",{style:{backgroundColor:a,color:o},className:b()(this.props.className,t,i,{"gb-has-avatar":n},"gb-font-size-"+r,"gb-block-profile","gb-profile-columns")},this.props.children)}}]),n}(wp.element.Component);function qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var $e=wp.i18n.__,Ke=function(e){m()(n,e);var t=qe(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},$e("Website","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},$e("Twitter","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},$e("Facebook","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},$e("Instagram","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},$e("Pinterest","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},$e("Google","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},$e("YouTube","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},$e("LinkedIn","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},$e("Github","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},$e("WordPress","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},$e("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}]),n}(wp.element.Component);function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Qe=function(e){m()(n,e);var t=Ze(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}]),n}(wp.element.Component);function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var et=wp.element.Component,tt=wp.blockEditor.RichText,nt={attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},save:function(e){m()(n,e);var t=Xe(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileImgAlt,i=e.profileImgID,s=e.profileTextColor;return React.createElement(Ge,this.props,a&&React.createElement(Qe,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:b()("gb-profile-avatar","wp-image-"+i),src:a,alt:o}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(tt.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:t}),n&&React.createElement(tt.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:n}),r&&React.createElement(tt.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(Ke,this.props)))}}]),n}(et)};function rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var at=wp.element.Component,ot=wp.blockEditor.RichText,it=[nt,{attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},website:{type:"url"}},save:function(e){m()(n,e);var t=rt(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.profileName,n=e.profileTitle,r=e.profileContent,a=e.profileImgURL,o=e.profileTextColor;return React.createElement(ye,this.props,a&&React.createElement(we,this.props,React.createElement("div",{className:"gb-profile-image-square"},React.createElement("img",{className:"gb-profile-avatar",src:a,alt:"avatar"}))),React.createElement("div",{className:b()("gb-profile-column gb-profile-content-wrap")},t&&React.createElement(ot.Content,{tagName:"h2",className:"gb-profile-name",style:{color:o},value:t}),n&&React.createElement(ot.Content,{tagName:"p",className:"gb-profile-title",style:{color:o},value:n}),r&&React.createElement(ot.Content,{tagName:"div",className:"gb-profile-text",value:r}),React.createElement(ve,this.props)))}}]),n}(at)}],st=wp.i18n.__;function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-profile-box",{title:st("Profile Box","genesis-blocks"),description:st("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[st("author","genesis-blocks"),st("profile","genesis-blocks"),st("atomic","genesis-blocks"),st("genesis","genesis-blocks")],attributes:{clientId:{type:"string",default:""},profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},gb_settings_data:{gb_author_profile_profileFontSize:{title:st("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:st("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:st("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:st("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:st("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:st("Social Links","genesis-blocks")}},edit:function(e){return React.createElement(Fe,a()({},e,{clientId:e.clientId}))},save:function(e){return React.createElement(Ve,a()({},e,{clientId:e.attributes.clientId}))},deprecated:it});var ct=wp.i18n.__,ut=wp.element.Component,dt=wp.blockEditor,mt=dt.PanelColorSettings,pt=dt.InspectorControls,_t=wp.components,ht=_t.PanelBody,gt=_t.RangeControl,ft=_t.SelectControl,bt=function(e){m()(n,e);var t=lt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:null,label:ct("Always Show","genesis-blocks")},{value:"gb-dismissable",label:ct("Dismissible","genesis-blocks")}],n=this.props.attributes,r=n.noticeBackgroundColor,a=n.noticeTextColor,o=n.noticeTitleColor,i=n.noticeFontSize,s=n.noticeDismiss,l=this.props.setAttributes;return React.createElement(pt,{key:"inspector"},React.createElement(ht,null,React.createElement(v,{id:"gb_notice_noticeFontSize"},React.createElement(gt,{label:ct("Font Size","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({noticeFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_notice_noticeDismiss"},React.createElement(ft,{label:ct("Notice Display","genesis-blocks"),description:ct("Do you want the message to always show or dismissible?","genesis-blocks"),options:t,value:s,onChange:function(t){return e.props.setAttributes({noticeDismiss:t})}}))),React.createElement(v,{id:"gb_notice_colorSettings"},React.createElement(mt,{title:ct("Notice Color","genesis-blocks"),colorValue:r,initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return l({noticeBackgroundColor:e})},colors:[{color:"#00d1b2",name:"teal"},{color:"#3373dc",name:"royal blue"},{color:"#209cef",name:"sky blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"},{color:"#392F43",name:"black"}],label:ct("Notice Color","genesis-blocks")}]}),React.createElement(mt,{title:ct("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:function(e){return l({noticeTitleColor:e})},label:ct("Title Color","genesis-blocks")}]}),React.createElement(mt,{title:ct("Text Color","genesis-blocks"),colorValue:a,initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({noticeTextColor:e})},label:ct("Text Color","genesis-blocks")}]})))}}]),n}(ut),yt=n(196),kt=n.n(yt);function Mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var vt=function(e){m()(n,e);var t=Mt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.noticeTitle,r=t.noticeAlignment,a=t.noticeBackgroundColor,o=t.noticeTextColor,i=t.noticeFontSize,s=t.noticeDismiss,l=(e=s+n,kt()(e).substr(0,6));return React.createElement("div",{style:{color:o,textAlign:r,backgroundColor:a},className:b()(this.props.className,s,"gb-font-size-"+i,"gb-block-notice"),"data-id":l},this.props.children)}}]),n}(wp.element.Component);function Lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var wt=function(e){m()(n,e);var t=Lt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes.noticeTitleColor;return React.createElement("div",{className:"gb-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}]),n}(wp.element.Component),Yt={};Yt.upload=React.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),Yt.dismiss=React.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},React.createElement("path",{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zM15 13l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));var Tt=Yt;n(333),n(334);function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var xt=wp.i18n.__,Et=wp.element.Component,Ct=wp.blocks.registerBlockType,jt=wp.blockEditor,Pt=jt.RichText,Ht=jt.AlignmentToolbar,Ot=jt.BlockControls,zt=function(e){m()(n,e);var t=St(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.noticeTitle,r=t.noticeContent,o=t.noticeAlignment,i=t.noticeBackgroundColor,s=t.noticeTitleColor,l=t.noticeDismiss,c=e.setAttributes;return[React.createElement(Ot,{key:"controls"},React.createElement(Ht,{value:o,onChange:function(e){return c({noticeAlignment:e})}})),React.createElement(bt,a()({key:"gb-notice-inspector-"+this.props.clientId},Rt({setAttributes:c},this.props))),React.createElement(vt,a()({key:"gb-notice-noticebox-"+this.props.clientId},this.props),l&&"gb-dismissable"===l&&React.createElement(wt,this.props,Tt.dismiss),React.createElement(Pt,{tagName:"p",placeholder:xt("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,className:b()("gb-notice-title"),style:{color:s},onChange:function(e){return c({noticeTitle:e})}}),React.createElement(Pt,{tagName:"div",multiline:"p",placeholder:xt("Add notice text…","genesis-blocks"),value:r,className:b()("gb-notice-text"),style:{borderColor:i},onChange:function(e){return c({noticeContent:e})}}))]}}]),n}(Et);function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}Ct("genesis-blocks/gb-notice",{title:xt("Notice","genesis-blocks"),description:xt("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[xt("notice","genesis-blocks"),xt("message","genesis-blocks"),xt("atomic","genesis-blocks")],attributes:{noticeTitle:{type:"string",selector:".gb-notice-title"},noticeContent:{type:"array",selector:".gb-notice-text",source:"children"},noticeAlignment:{type:"string"},noticeBackgroundColor:{type:"string",default:"#00d1b2"},noticeTextColor:{type:"string",default:"#32373c"},noticeTitleColor:{type:"string",default:"#fff"},noticeFontSize:{type:"number",default:18},noticeDismiss:{type:"string",default:""}},gb_settings_data:{gb_notice_noticeFontSize:{title:xt("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:xt("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:xt("Notice Color","genesis-blocks")}},edit:zt,save:function(e){var t=e.attributes,n=t.noticeTitle,r=t.noticeContent,a=t.noticeBackgroundColor,o=t.noticeTitleColor,i=t.noticeDismiss;return React.createElement(vt,e,i&&"gb-dismissable"===i&&React.createElement(wt,e,Tt.dismiss),n&&React.createElement("div",{className:"gb-notice-title",style:{color:o}},React.createElement(Pt.Content,{tagName:"p",value:n})),r&&React.createElement(Pt.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:a},value:r}))}});var Bt=wp.i18n.__,Nt=wp.element.Component,Ft=wp.blockEditor.InspectorControls,Wt=wp.components,It=Wt.RangeControl,Ut=Wt.SelectControl,Vt=Wt.PanelBody,Jt=function(e){m()(n,e);var t=At(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapFontSize,r=t.dropCapStyle,a=[{value:"gb-drop-cap-letter",label:Bt("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:Bt("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:Bt("Border","genesis-blocks")}];return React.createElement(Ft,{key:"inspector"},React.createElement(Vt,null,React.createElement(v,{id:"gb_dropcap_dropCapFontSize"},React.createElement(It,{label:Bt("Drop Cap Size","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({dropCapFontSize:t})},min:1,max:6,step:1})),React.createElement(v,{id:"gb_dropcap_dropCapStyle"},React.createElement(Ut,{label:Bt("Drop Cap Style","genesis-blocks"),description:Bt("Choose the style of the drop cap in your paragraph","genesis-blocks"),options:a,value:r,onChange:function(t){return e.props.setAttributes({dropCapStyle:t})}}))))}}]),n}(Nt);function Gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var qt=function(e){m()(n,e);var t=Gt(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.dropCapAlignment,n=e.dropCapTextColor,r=e.dropCapFontSize,a=e.dropCapStyle;return React.createElement("div",{style:{color:n,textAlign:t},className:b()(this.props.className,a,"gb-font-size-"+r,"gb-block-drop-cap")},this.props.children)}}]),n}(wp.element.Component);n(335),n(336);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Kt=wp.i18n.__,Zt=wp.element.Component,Qt=wp.blocks.registerBlockType,Xt=wp.blockEditor,en=Xt.RichText,tn=Xt.AlignmentToolbar,nn=Xt.BlockControls,rn=function(e){m()(n,e);var t=$t(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.dropCapContent,r=t.dropCapAlignment,o=t.dropCapFontSize;return[React.createElement(nn,{key:"controls"},React.createElement(tn,{value:r,onChange:function(t){return e.props.setAttributes({dropCapAlignment:t})}})),React.createElement(Jt,a()({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(qt,a()({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(en,{tagName:"div",multiline:"p",placeholder:Kt("Add paragraph text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:b()("gb-drop-cap-text","gb-font-size-"+o),onChange:function(t){return e.props.setAttributes({dropCapContent:t})}}))]}}]),n}(Zt);Qt("genesis-blocks/gb-drop-cap",{title:Kt("Drop Cap","genesis-blocks"),description:Kt("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[Kt("drop cap","genesis-blocks"),Kt("quote","genesis-blocks"),Kt("genesis","genesis-blocks")],attributes:{dropCapContent:{type:"array",selector:".gb-drop-cap-text",source:"children"},dropCapAlignment:{type:"string"},dropCapBackgroundColor:{type:"string",default:"#f2f2f2"},dropCapTextColor:{type:"string",default:"#32373c"},dropCapFontSize:{type:"number",default:3},dropCapStyle:{type:"string",default:"drop-cap-letter"}},gb_settings_data:{gb_dropcap_dropCapFontSize:{title:Kt("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:Kt("Drop Cap Style","genesis-blocks")}},edit:rn,save:function(e){var t=e.attributes.dropCapContent;return React.createElement(qt,e,t&&React.createElement(en.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});var an=wp.i18n.__,on=wp.element.Fragment,sn=wp.components,ln=sn.SelectControl,cn=sn.ToggleControl,un=wp.blockEditor.PanelColorSettings;function dn(e){var t=e.enableButtonBackgroundColor,n=e.buttonBackgroundColor,r=e.onChangeButtonColor,a=void 0===r?function(){}:r,o=e.enableButtonTextColor,i=e.buttonTextColor,s=e.onChangeButtonTextColor,l=void 0===s?function(){}:s,c=e.enableButtonSize,u=e.buttonSize,d=e.onChangeButtonSize,m=void 0===d?function(){}:d,p=e.enableButtonShape,_=e.buttonShape,h=e.onChangeButtonShape,g=void 0===h?function(){}:h,f=e.enableButtonTarget,b=e.buttonTarget,y=e.onChangeButtonTarget,k=void 0===y?function(){}:y,M=[{value:"gb-button-size-small",label:an("Small","genesis-blocks")},{value:"gb-button-size-medium",label:an("Medium","genesis-blocks")},{value:"gb-button-size-large",label:an("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:an("Extra Large","genesis-blocks")}],L=[{value:"gb-button-shape-square",label:an("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:an("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:an("Circular","genesis-blocks")}];return React.createElement(on,null,React.createElement(v,{id:"gb_button_buttonOptions"},!1!==f&&React.createElement(cn,{label:an("Open link in new window","genesis-blocks"),checked:b,onChange:k}),!1!==c&&React.createElement(ln,{selected:u,label:an("Button Size","genesis-blocks"),value:u,options:M.map((function(e){return{value:e.value,label:e.label}})),onChange:m}),!1!==p&&React.createElement(ln,{label:an("Button Shape","genesis-blocks"),value:_,options:L.map((function(e){return{value:e.value,label:e.label}})),onChange:g}),!1!==t&&React.createElement(un,{title:an("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:a,label:an("Button Color","genesis-blocks")}]}),!1!==o&&React.createElement(un,{title:an("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:l,label:an("Button Text Color","genesis-blocks")}]})))}function mn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}wp.i18n.__;var pn=wp.element.Component,_n=wp.blockEditor.InspectorControls,hn=wp.components.PanelBody,gn=function(e){m()(n,e);var t=mn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonBackgroundColor,n=e.buttonTextColor,r=e.buttonSize,a=e.buttonShape,o=e.buttonTarget,i=this.props.setAttributes;return React.createElement(_n,{key:"inspector"},React.createElement(hn,null,React.createElement(dn,{buttonTarget:o,onChangeButtonTarget:function(e){return i({buttonTarget:!o})},buttonSize:r,onChangeButtonSize:function(e){return i({buttonSize:e})},buttonShape:a,onChangeButtonShape:function(e){return i({buttonShape:e})},buttonBackgroundColor:t,onChangeButtonColor:function(e){return i({buttonBackgroundColor:e})},buttonTextColor:n,onChangeButtonTextColor:function(e){return i({buttonTextColor:e})}})))}}]),n}(pn);function fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var bn=function(e){m()(n,e);var t=fn(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:b()(this.props.className,"gb-block-button")},this.props.children)}}]),n}(wp.element.Component);n(337),n(338);function yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var kn=wp.i18n.__,Mn=wp.element.Component,vn=wp.blocks.registerBlockType,Ln=wp.blockEditor,wn=Ln.RichText,Yn=Ln.AlignmentToolbar,Tn=Ln.BlockControls,Dn=Ln.URLInput,Rn=wp.components,Sn=Rn.Button,xn=Rn.Dashicon,En=Rn.Icon,Cn=function(e){m()(n,e);var t=yn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,c=t.buttonShape,u=e.isSelected,d=e.setAttributes;return[React.createElement(Tn,{key:"controls"},React.createElement(Yn,{value:o,onChange:function(e){d({buttonAlignment:e})}})),React.createElement(gn,a()({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(bn,a()({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(wn,{tagName:"span",placeholder:kn("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:b()("gb-button",c,l),style:{color:s||"#ffffff",backgroundColor:i||"#3373dc"},onChange:function(e){return d({buttonText:e})}})),u&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(xn,{icon:"admin-links"}),React.createElement(Dn,{className:"button-url",value:r,onChange:function(e){return d({buttonUrl:e})}}),React.createElement(Sn,{label:kn("Apply","genesis-blocks"),type:"submit"},React.createElement(En,{icon:"editor-break"})))]}}]),n}(Mn);function jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}vn("genesis-blocks/gb-button",{title:kn("Button","genesis-blocks"),description:kn("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[kn("button","genesis-blocks"),kn("link","genesis-blocks"),kn("genesis","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},gb_settings_data:{gb_button_buttonOptions:{title:kn("Button Options","genesis-blocks")}},edit:Cn,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget;return React.createElement(bn,e,n&&React.createElement("a",{href:r,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o||"#ffffff",backgroundColor:a||"#3373dc"}},React.createElement(wn.Content,{value:n})))}});var Pn=wp.i18n.__,Hn=wp.element,On=Hn.Component,zn=Hn.Fragment,An=wp.blockEditor,Bn=An.InspectorControls,Nn=An.PanelColorSettings,Fn=wp.components,Wn=Fn.PanelBody,In=Fn.RangeControl,Un=Fn.ToggleControl,Vn=Fn.SelectControl,Jn=function(e){m()(n,e);var t=jn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.spacerHeight,a=n.spacerDivider,o=n.spacerDividerStyle,i=n.spacerDividerColor,s=n.spacerDividerHeight,l=t.setAttributes,c=[{value:"gb-divider-solid",label:Pn("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:Pn("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:Pn("Dotted","genesis-blocks")}];return React.createElement(Bn,{key:"inspector"},React.createElement(Wn,null,React.createElement(v,{id:"gb_spacer_spacerHeight"},React.createElement(In,{label:Pn("Spacer Height","genesis-blocks"),value:r||"",onChange:function(t){return e.props.setAttributes({spacerHeight:t})},min:30,max:600})),React.createElement(v,{id:"gb_spacer_spacerDivider"},React.createElement(Un,{label:Pn("Add Divider","genesis-blocks"),checked:a,onChange:function(){return e.props.setAttributes({spacerDivider:!a})}}))),a?React.createElement(zn,null,React.createElement(Wn,null,React.createElement(v,{id:"gb_spacer_spacerDividerStyle"},React.createElement(Vn,{label:Pn("Divider Style","genesis-blocks"),value:o,options:c.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({spacerDividerStyle:t})}})),React.createElement(v,{id:"gb_spacer_spacerDividerHeight"},React.createElement(In,{label:Pn("Divider Height","genesis-blocks"),value:s||"",onChange:function(t){return e.props.setAttributes({spacerDividerHeight:t})},min:1,max:5}))),React.createElement(v,{id:"gb_spacer_dividerColor"},React.createElement(Nn,{title:Pn("Divider Color","genesis-blocks"),initialOpen:!1,colorSettings:[{colors:[{color:"#ddd",name:"white"},{color:"#333",name:"black"},{color:"#3373dc",name:"royal blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"}],value:i,onChange:function(e){return l({spacerDividerColor:e})},label:Pn("Divider Color","genesis-blocks")}]}))):null)}}]),n}(On);function Gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var qn,$n=function(e){m()(n,e);var t=Gn(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.spacerDivider,n=e.spacerDividerStyle,r=e.spacerDividerColor,a=e.spacerDividerHeight;return React.createElement("div",{style:{color:r},className:b()(this.props.className,"gb-block-spacer",n,{"gb-spacer-divider":t},"gb-divider-size-"+a)},this.props.children)}}]),n}(wp.element.Component),Kn=n(10),Zn=n.n(Kn),Qn=(qn=function(e,t){return(qn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}qn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xn=function(){return(Xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},er={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},tr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return Qn(t,e),t.prototype.render=function(){return Kn.createElement("div",{className:this.props.className||"",style:Xn(Xn({position:"absolute",userSelect:"none"},er[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(Kn.PureComponent),nr=n(15),rr=n.n(nr),ar=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(){return(or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},ir={width:"auto",height:"auto"},sr=rr()((function(e,t,n){return Math.max(Math.min(e,n),t)})),lr=rr()((function(e,t){return Math.round(e/t)*t})),cr=rr()((function(e,t){return new RegExp(e,"i").test(t)})),ur=rr()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n}),0),a=Math.abs(t[r]-e);return 0===n||a<n?t[r]:e})),dr=rr()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),mr=rr()((function(e){return"auto"===(e=e.toString())||dr(e,"px")||dr(e,"%")||dr(e,"vh")||dr(e,"vw")||dr(e,"vmax")||dr(e,"vmin")?e:e+"px"})),pr=function(e,t,n,r){if(e&&"string"==typeof e){if(dr(e,"%"))return t*(Number(e.replace("%",""))/100);if(dr(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(dr(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},_r=rr()((function(e,t,n,r,a,o,i){return r=pr(r,e.width,t,n),a=pr(a,e.height,t,n),o=pr(o,e.width,t,n),i=pr(i,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===a?void 0:Number(a),minWidth:void 0===o?void 0:Number(o),minHeight:void 0===i?void 0:Number(i)}})),hr=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],gr=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return ar(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||ir},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){var e=this.parentNode;if(e)for(var t=0,n=[].slice.call(e.children);t<n.length;t++){var r=n[t];if(r.classList.contains("__resizable_base__"))return r}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=a}return{width:e,height:t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&dr(e.propsSize[t].toString(),"%")){if(dr(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return mr(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?mr(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?mr(t.height):n("height")}},enumerable:!0,configurable:!0}),t.prototype.getParentSize=function(){if(!this.base||!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=!1,t=this.parentNode.style.flexWrap,n=this.base.style.minWidth;"wrap"!==t&&(e=!0,this.parentNode.style.flexWrap="wrap"),this.base.style.position="relative",this.base.style.minWidth="100%";var r={width:this.base.offsetWidth,height:this.base.offsetHeight};return this.base.style.position="absolute",e&&(this.parentNode.style.flexWrap=t),this.base.style.minWidth=n,r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0});var t=this.parentNode;if(t&&!this.base){var n=this.window.document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.transform="scale(0, 0)",n.style.left="0",n.style.flex="0",n.classList?n.classList.add("__resizable_base__"):n.className+="__resizable_base__",t.appendChild(n)}}},t.prototype.componentWillUnmount=function(){if(this.window){this.unbindEvents();var e=this.parentNode;if(!this.base||!e)return;if(!e||!this.base)return;e.removeChild(this.base)}},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),a=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}}else if("window"===this.props.bounds){if(this.window){r=this.window.innerWidth-this.resizableLeft,a=this.window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<a?t:a}}else if(this.props.bounds){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),a=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<a?t:a}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,a=this.state,o=a.direction,i=a.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=i.width,m=i.height,p=c||0,_=u||0;return cr("right",o)&&(d=i.width+(e-i.x)*r/n,l&&(m=(d-_)/this.ratio+p)),cr("left",o)&&(d=i.width-(e-i.x)*r/n,l&&(m=(d-_)/this.ratio+p)),cr("bottom",o)&&(m=i.height+(t-i.y)*r/n,l&&(d=(m-p)*this.ratio+_)),cr("top",o)&&(m=i.height-(t-i.y)*r/n,l&&(d=(m-p)*this.ratio+_)),{newWidth:d,newHeight:m}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var a=this.props,o=a.lockAspectRatio,i=a.lockAspectRatioExtraHeight,s=a.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,m=i||0,p=s||0;if(o){var _=(u-m)*this.ratio+p,h=(d-m)*this.ratio+p,g=(l-p)/this.ratio+m,f=(c-p)/this.ratio+m,b=Math.max(l,_),y=Math.min(c,h),k=Math.max(u,g),M=Math.min(d,f);e=sr(e,b,y),t=sr(t,k,M)}else e=sr(e,l,c),t=sr(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,o=r.top;this.resizableLeft=a,this.resizableTop=o}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,a=0;if(e.nativeEvent instanceof this.window.MouseEvent){if(r=e.nativeEvent.clientX,a=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof this.window.TouchEvent&&(r=e.nativeEvent.touches[0].clientX,a=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var i=this.parentNode;if(i){var s=this.window.getComputedStyle(i).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:or(or({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){var t=this.props,n=t.maxWidth,r=t.maxHeight,a=t.minWidth,o=t.minHeight,i=e instanceof this.window.MouseEvent?e.clientX:e.touches[0].clientX,s=e instanceof this.window.MouseEvent?e.clientY:e.touches[0].clientY,l=this.state,c=l.direction,u=l.original,d=l.width,m=l.height,p=this.getParentSize(),_=_r(p,this.window.innerWidth,this.window.innerHeight,n,r,a,o);n=_.maxWidth,r=_.maxHeight,a=_.minWidth,o=_.minHeight;var h=this.calculateNewSizeFromDirection(i,s),g=h.newHeight,f=h.newWidth,b=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(f,g,{width:b.maxWidth,height:b.maxHeight},{width:a,height:o});if(f=y.newWidth,g=y.newHeight,this.props.grid){var k=lr(f,this.props.grid[0]),M=lr(g,this.props.grid[1]),v=this.props.snapGap||0;f=0===v||Math.abs(k-f)<=v?k:f,g=0===v||Math.abs(M-g)<=v?M:g}this.props.snap&&this.props.snap.x&&(f=ur(f,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=ur(g,this.props.snap.y,this.props.snapGap));var L={width:f-u.width,height:g-u.height};if(d&&"string"==typeof d)if(dr(d,"%"))f=f/p.width*100+"%";else if(dr(d,"vw")){f=f/this.window.innerWidth*100+"vw"}else if(dr(d,"vh")){f=f/this.window.innerHeight*100+"vh"}if(m&&"string"==typeof m)if(dr(m,"%"))g=g/p.height*100+"%";else if(dr(m,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(dr(m,"vh")){g=g/this.window.innerHeight*100+"vh"}var w={width:this.createSizeForCssProperty(f,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?w.flexBasis=w.width:"column"===this.flexDir&&(w.flexBasis=w.height),this.setState(w),this.props.onResize&&this.props.onResize(e,c,this.resizable,L)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,a=t.original;if(n&&this.resizable){var o={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:or(or({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,a=t.handleClasses,o=t.handleWrapperStyle,i=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?Kn.createElement(tr,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:a&&a[t]},s&&s[t]?s[t]:null):null}));return Kn.createElement("span",{className:i,style:o},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==hr.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=or(or(or({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as;return Kn.createElement(r,or({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&Kn.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(Kn.PureComponent);n(339),n(340);function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var br=wp.i18n.__,yr=wp.element.Component,kr=wp.blocks.registerBlockType,Mr=function(e){m()(n,e);var t=fr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacerHeight,r=t.spacerDividerColor,o=e.className,i=e.setAttributes,s=e.toggleSelection;return[React.createElement(Jn,a()({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement($n,a()({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(gr,{className:b()(o,"gb-spacer-handle"),style:{color:r},size:{width:"100%",height:n},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"gb-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:function(){s(!1)},onResizeStop:function(e,t,r,a){i({spacerHeight:parseInt(n+a.height,10)}),s(!0)}}))]}}]),n}(yr);function vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}kr("genesis-blocks/gb-spacer",{title:br("Spacer","genesis-blocks"),description:br("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[br("spacer","genesis-blocks"),br("divider","genesis-blocks"),br("atomic","genesis-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"gb-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},gb_settings_data:{gb_spacer_spacerHeight:{title:br("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:br("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:br("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:br("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:br("Divider Color","genesis-blocks")}},edit:Mr,save:function(e){var t=e.attributes.spacerHeight;return React.createElement($n,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});var Lr=wp.i18n.__,wr=wp.element.Component,Yr=wp.blockEditor.InspectorControls,Tr=wp.components,Dr=Tr.PanelBody,Rr=Tr.RangeControl,Sr=Tr.ToggleControl,xr=function(e){m()(n,e);var t=vr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this;return React.createElement(Yr,{key:"inspector"},React.createElement(Dr,null,React.createElement(v,{id:"gb_accordion_accordionFontSize"},React.createElement(Rr,{label:Lr("Title Font Size","genesis-blocks"),value:this.props.attributes.accordionFontSize,onChange:function(t){return e.props.setAttributes({accordionFontSize:t})},min:14,max:24,step:1})),React.createElement(v,{id:"gb_accordion_accordionOpen"},React.createElement(Sr,{label:Lr("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:function(){return e.props.setAttributes({accordionOpen:!e.props.attributes.accordionOpen})}}))))}}]),n}(wr);function Er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Cr=function(e){m()(n,e);var t=Er(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.accordionAlignment?"gb-align-"+this.props.attributes.accordionAlignment:void 0,"gb-block-accordion",this.props.attributes.accordionFontSize?"gb-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}]),n}(wp.element.Component);function jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Pr=wp.i18n.__,Hr=wp.element.Component,Or=wp.blockEditor,zr=Or.RichText,Ar=Or.AlignmentToolbar,Br=Or.BlockControls,Nr=Or.InnerBlocks,Fr=function(e){m()(n,e);var t=jr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this;return[React.createElement(Br,{key:"controls"},React.createElement(Ar,{value:this.props.attributes.accordionAlignment,onChange:function(t){return e.props.setAttributes({accordionAlignment:t})}})),React.createElement(xr,a()({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(Cr,a()({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(zr,{tagName:"p",placeholder:Pr("Accordion Title","genesis-blocks"),value:this.props.attributes.accordionTitle,className:"gb-accordion-title",onChange:function(t){return e.props.setAttributes({accordionTitle:t})}}),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Nr,null)))]}}]),n}(Hr);function Wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ir=wp.element.Component,Ur=wp.blockEditor,Vr=Ur.RichText,Jr=Ur.InnerBlocks,Gr=function(e){m()(n,e);var t=Wr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement(Cr,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Vr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Jr.Content,null))))}}]),n}(Ir);function qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var $r=function(e){m()(n,e);var t=qr(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.accordionAlignment,n=e.accordionFontSize;return React.createElement("div",{style:{},className:b()(this.props.className,t,"gb-block-accordion","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function Kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Zr=wp.element.Component,Qr=wp.blockEditor,Xr=Qr.RichText,ea=Qr.InnerBlocks,ta=function(e){m()(n,e);var t=Kr(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement($r,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Xr.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(ea.Content,null))))}}]),n}(Zr),na=[{attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:function(e){return React.createElement(ta,e)}}],ra=(n(341),n(342),wp.i18n.__),aa=(wp.element.Component,{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}});function oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-accordion",{title:ra("Accordion","genesis-blocks"),description:ra("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[ra("accordion","genesis-blocks"),ra("list","genesis-blocks"),ra("genesis","genesis-blocks")],attributes:aa,gb_settings_data:{gb_accordion_accordionFontSize:{title:ra("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:ra("Open by default","genesis-blocks")}},edit:function(e){return React.createElement(Fr,e)},save:function(e){return React.createElement(Gr,e)},deprecated:na});var ia=wp.i18n.__,sa=wp.element.Component,la=wp.blockEditor,ca=la.InspectorControls,ua=la.PanelColorSettings,da=la.MediaUpload,ma=wp.components,pa=ma.Button,_a=ma.Icon,ha=ma.PanelBody,ga=ma.RangeControl,fa=ma.SelectControl,ba=ma.ToggleControl,ya=function(e){m()(n,e);var t=oa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.buttonBackgroundColor,r=t.buttonTextColor,a=t.buttonSize,o=t.buttonShape,i=t.buttonTarget,s=t.titleFontSize,l=t.ctaTextFontSize,c=t.ctaBackgroundColor,u=t.ctaTextColor,d=t.dimRatio,m=t.imgURL,p=t.imgID,_=this.props.setAttributes,h=[{value:"gb-button-size-small",label:ia("Small")},{value:"gb-button-size-medium",label:ia("Medium")},{value:"gb-button-size-large",label:ia("Large")},{value:"gb-button-size-extralarge",label:ia("Extra Large")}],g=[{value:"gb-button-shape-square",label:ia("Square")},{value:"gb-button-shape-rounded",label:ia("Rounded Square")},{value:"gb-button-shape-circular",label:ia("Circular")}],f=function(){_({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(ca,{key:"inspector"},React.createElement(v,{id:"gb_cta_textOptions"},React.createElement(ha,{title:ia("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(ga,{label:ia("Title Font Size","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({titleFontSize:t})},min:24,max:60,step:2}),React.createElement(ga,{label:ia("Text Font Size","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({ctaTextFontSize:t})},min:14,max:24,step:2}),React.createElement(ua,{title:ia("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return _({ctaTextColor:e})},label:ia("Text Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_cta_backgroundOptions"},React.createElement(ha,{title:ia("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,ia("Select a background image:","genesis-blocks")),React.createElement(da,{onSelect:function(e){_({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:p,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(pa,{className:"gb-cta-inspector-media",label:ia("Edit image","genesis-blocks"),onClick:t},React.createElement(_a,{icon:"format-image"}),ia("Select Image","genesis-blocks")),m&&!!m.length&&React.createElement(pa,{className:"gb-cta-inspector-media",label:ia("Remove Image","genesis-blocks"),onClick:f},React.createElement(_a,{icon:"dismiss"}),ia("Remove","genesis-blocks")))}}),m&&!!m.length&&React.createElement(ga,{label:ia("Image Opacity","genesis-blocks"),value:d,onChange:function(t){return e.props.setAttributes({dimRatio:t})},min:0,max:100,step:10}),React.createElement(ua,{title:ia("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:function(e){return _({ctaBackgroundColor:e})},label:ia("Overlay Color","genesis-blocks")}]}))),React.createElement(v,{id:"gb_cta_buttonOptions"},React.createElement(ha,{title:ia("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(ba,{label:ia("Open link in new window","genesis-blocks"),checked:i,onChange:function(){return e.props.setAttributes({buttonTarget:!i})}}),React.createElement(fa,{label:ia("Button Size","genesis-blocks"),value:a,options:h.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonSize:t})}}),React.createElement(fa,{label:ia("Button Shape","genesis-blocks"),value:o,options:g.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({buttonShape:t})}}),React.createElement(ua,{title:ia("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:function(e){return _({buttonBackgroundColor:e})},label:ia("Button Color","genesis-blocks")}]}),React.createElement(ua,{title:ia("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r,onChange:function(e){return _({buttonTextColor:e})},label:ia("Button Text Color","genesis-blocks")}]}))))}}]),n}(sa);function ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ma=function(e){m()(n,e);var t=ka(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var La=function(e){m()(n,e);var t=va(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=(t.buttonText,t.buttonUrl,t.buttonAlignment),r=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize,t.buttonShape,t.buttonTarget,t.ctaTitle,t.ctaText,t.ctaTitleFontSize,t.ctaTextFontSize),a=t.ctaWidth,o=t.ctaBackgroundColor,s=(t.ctaTextColor,b()([this.props.className,"gb-block-cta"],(e={},i()(e,"gb-font-size-"+r,r),i()(e,"align"+a,a),e))),l={backgroundColor:o||void 0,textAlign:n||void 0};return React.createElement("div",{style:l,className:s||void 0},this.props.children)}}]),n}(wp.element.Component);function wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ya=function(e){m()(n,e);var t=wa(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=(e.ctaWidth,e.ctaBackgroundColor),a=(e.ctaTextColor,b()([this.props.className,"gb-block-cta"],i()({},"gb-font-size-"+n,n))),o={backgroundColor:r||void 0,textAlign:t||void 0};return React.createElement("div",{style:o,className:a||void 0},this.props.children)}}]),n}(wp.element.Component);function Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Da=function(e){m()(n,e);var t=Ta(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=(e.buttonText,e.buttonUrl,e.buttonAlignment),n=(e.buttonBackgroundColor,e.buttonTextColor,e.buttonSize,e.buttonShape,e.buttonTarget,e.ctaTitle,e.ctaText,e.ctaTitleFontSize,e.ctaTextFontSize),r=e.ctaWidth,a=e.ctaBackgroundColor;e.ctaTextColor;return React.createElement("div",{style:{backgroundColor:a,textAlign:t},className:b()(this.props.className,"align".concat(r),"gb-block-cta","gb-font-size-"+n)},this.props.children)}}]),n}(wp.element.Component);function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Sa=wp.blockEditor.RichText,xa=[{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.titleFontSize,p=(t.ctaTextFontSize,t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(La,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+m),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:p},value:u})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Sa.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.ctaTextFontSize,p=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(Ya,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+m),style:{color:p},value:u})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:l?"noopener noreferrer":null,className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Sa.Content,{value:n}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string",default:"#f2f2f2"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50}},save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=(t.buttonAlignment,t.buttonBackgroundColor),o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.ctaTextFontSize,p=(t.ctaWidth,t.ctaBackgroundColor,t.ctaTextColor),_=t.imgURL,h=(t.imgID,t.imgAlt),g=t.dimRatio;return React.createElement(Da,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",Ea(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Sa.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+d),style:{color:p},value:c}),u&&React.createElement(Sa.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+m),style:{color:p},value:u})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Sa.Content,{value:n}))))},migrate:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({titleFontSize:e.ctaTitleFontSize},e)}}];function Ea(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}n(343),n(344);function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ha=wp.i18n.__,Oa=wp.element.Component,za=wp.blocks.registerBlockType,Aa=wp.blockEditor,Ba=Aa.AlignmentToolbar,Na=Aa.URLInput,Fa=Aa.BlockControls,Wa=Aa.BlockAlignmentToolbar,Ia=Aa.RichText,Ua=wp.components,Va=Ua.Button,Ja=Ua.Dashicon,Ga=Ua.Icon,qa=function(e){m()(n,e);var t=Pa(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,i=t.buttonBackgroundColor,s=t.buttonTextColor,l=t.buttonSize,c=t.buttonShape,u=t.ctaTitle,d=t.ctaText,m=t.titleFontSize,p=t.ctaTextFontSize,_=t.ctaWidth,h=t.ctaTextColor,g=t.imgURL,f=t.imgAlt,y=t.dimRatio,k=e.isSelected,M=e.setAttributes;return[React.createElement(Fa,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(Wa,{value:_,onChange:function(e){return M({ctaWidth:e})},controls:["center","wide","full"]}),React.createElement(Ba,{value:o,onChange:function(e){M({buttonAlignment:e})}})),React.createElement(ya,a()({key:"gb-cta-inspector-"+this.props.clientId},ja({setAttributes:M},this.props))),React.createElement(Ma,a()({key:"gb-cta-"+this.props.clientId},this.props),g&&!!g.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",$a(y),{"has-background-dim":0!==y}),src:g,alt:f})),React.createElement("div",{className:"gb-cta-content"},React.createElement(Ia,{tagName:"h2",placeholder:Ha("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:u,className:b()("gb-cta-title","gb-font-size-"+m),style:{color:h},onChange:function(e){return M({ctaTitle:e})}}),React.createElement(Ia,{tagName:"div",multiline:"p",placeholder:Ha("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:d,className:b()("gb-cta-text","gb-font-size-"+p),style:{color:h},onChange:function(e){return M({ctaText:e})}})),React.createElement("div",{className:"gb-cta-button"},React.createElement(Ia,{tagName:"span",placeholder:Ha("Button text…","genesis-blocks"),value:n,allowedFormats:[],className:b()("gb-button",c,l),style:{color:s,backgroundColor:i},onChange:function(e){return M({buttonText:e})}}),k&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o}},React.createElement(Ja,{icon:"admin-links"}),React.createElement(Na,{className:"button-url",value:r,onChange:function(e){return M({buttonUrl:e})}}),React.createElement(Va,{label:Ha("Apply","genesis-blocks"),type:"submit"},React.createElement(Ga,{icon:"editor-break"})))))]}}]),n}(Oa);function $a(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function Ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}za("genesis-blocks/gb-cta",{title:Ha("Call To Action","genesis-blocks"),description:Ha("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[Ha("call to action","genesis-blocks"),Ha("cta","genesis-blocks"),Ha("atomic","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},gb_settings_data:{gb_cta_textOptions:{title:Ha("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:Ha("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:Ha("Button Options","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.ctaWidth;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:qa,save:function(e){var t=e.attributes,n=t.buttonText,r=t.buttonUrl,a=t.buttonBackgroundColor,o=t.buttonTextColor,i=t.buttonSize,s=t.buttonShape,l=t.buttonTarget,c=t.ctaTitle,u=t.ctaText,d=t.ctaTitleFontSize,m=t.titleFontSize,p=t.ctaTextColor,_=t.imgURL,h=t.imgAlt,g=t.dimRatio;return React.createElement(Ma,e,_&&!!_.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:b()("gb-cta-image",$a(g),{"has-background-dim":0!==g}),src:_,alt:h})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(Ia.Content,{tagName:"h2",className:b()("gb-cta-title","gb-font-size-"+m),style:{color:p},value:c}),u&&React.createElement(Ia.Content,{tagName:"div",className:b()("gb-cta-text","gb-font-size-"+d),style:{color:p},value:u})),n&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:r,target:l?"_blank":"_self",rel:"noopener noreferrer",className:b()("gb-button",s,i),style:{color:o,backgroundColor:a}},React.createElement(Ia.Content,{value:n}))))},deprecated:xa});var Za=wp.i18n.__,Qa=wp.element.Component,Xa=wp.blockEditor.InspectorControls,eo=wp.components,to=eo.PanelBody,no=eo.SelectControl,ro=eo.ToggleControl,ao=function(e){m()(n,e);var t=Ka(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=[{value:"gb-share-icon-text",label:Za("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:Za("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:Za("Text Only","genesis-blocks")}],n=[{value:"gb-share-shape-square",label:Za("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:Za("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:Za("Circular","genesis-blocks")}],r=[{value:"gb-share-size-small",label:Za("Small","genesis-blocks")},{value:"gb-share-size-medium",label:Za("Medium","genesis-blocks")},{value:"gb-share-size-large",label:Za("Large","genesis-blocks")}],a=[{value:"gb-share-color-standard",label:Za("Standard","genesis-blocks")},{value:"gb-share-color-social",label:Za("Social Colors","genesis-blocks")}];return React.createElement(Xa,{key:"inspector"},React.createElement(v,{id:"gb_sharing_links"},React.createElement(to,null,React.createElement("p",null,Za("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(ro,{label:Za("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:function(){return e.props.setAttributes({twitter:!e.props.attributes.twitter})}}),React.createElement(ro,{label:Za("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:function(){return e.props.setAttributes({facebook:!e.props.attributes.facebook})}}),React.createElement(ro,{label:Za("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:function(){return e.props.setAttributes({pinterest:!e.props.attributes.pinterest})}}),React.createElement(ro,{label:Za("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:function(){return e.props.setAttributes({linkedin:!e.props.attributes.linkedin})}}),React.createElement(ro,{label:Za("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:function(){return e.props.setAttributes({reddit:!e.props.attributes.reddit})}}),React.createElement(ro,{label:Za("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:function(){return e.props.setAttributes({email:!e.props.attributes.email})}}))),React.createElement(to,{title:Za("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(v,{id:"gb_sharing_shareButtonStyle"},React.createElement(no,{label:Za("Button Style","genesis-blocks"),value:this.props.attributes.shareButtonStyle,options:t.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonStyle:t})}})),React.createElement(v,{id:"gb_sharing_shareButtonShape"},React.createElement(no,{label:Za("Button Shape","genesis-blocks"),value:this.props.attributes.shareButtonShape,options:n.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonShape:t})}})),React.createElement(v,{id:"gb_sharing_shareButtonSize"},React.createElement(no,{label:Za("Button Size","genesis-blocks"),value:this.props.attributes.shareButtonSize,options:r.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonSize:t})}})),React.createElement(v,{id:"gb_sharing_shareButtonColor"},React.createElement(no,{label:Za("Button Color","genesis-blocks"),value:this.props.attributes.shareButtonColor,options:a.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({shareButtonColor:t})}}))))}}]),n}(Qa);function oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var io=function(e){m()(n,e);var t=oo(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){return React.createElement("div",{className:b()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"gb-align-"+this.props.attributes.shareAlignment:void 0,"gb-block-sharing")},this.props.children)}}]),n}(wp.element.Component);function so(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var lo=wp.i18n.__,co=wp.element.Component,uo=wp.blockEditor,mo=uo.AlignmentToolbar,po=uo.BlockControls,_o=function(e){m()(n,e);var t=so(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.attributes.clientId&&e.props.attributes.clientId===e.props.clientId||e.props.setAttributes({clientId:e.props.clientId}),e}return u()(n,[{key:"render",value:function(){var e=this;return[React.createElement(po,{key:"controls"},React.createElement(mo,{value:this.props.attributes.shareAlignment,onChange:function(t){return e.props.setAttributes({shareAlignment:t})}})),React.createElement(ao,a()({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(io,a()({key:"gb-share-links-"+this.props.clientId},this.props),React.createElement("ul",{className:"gb-share-list"},this.props.attributes.twitter&&React.createElement("li",null,React.createElement("a",{className:"gb-share-twitter"},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},lo("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},lo("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},lo("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},lo("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("svg",{"aria-labelledby":"gb-link-reddit-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-reddit-"+this.props.clientId},lo("Share on Reddit","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})),React.createElement("span",{className:"gb-social-text"},lo("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},lo("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})),React.createElement("span",{className:"gb-social-text"},lo("Share via Email","genesis-blocks"))))))]}}]),n}(co),ho=(n(345),n(346),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-sharing",{title:ho("Sharing","genesis-blocks"),description:ho("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[ho("sharing","genesis-blocks"),ho("social","genesis-blocks"),ho("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:ho("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:ho("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:ho("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:ho("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:ho("Button Color","genesis-blocks")}},edit:function(e){return React.createElement(_o,a()({},e,{clientId:e.clientId}))},save:function(){return null}});var go=n(14),fo=n.n(go),bo=n(6),yo=n.n(bo),ko=n(33),Mo=n.n(ko),vo=n(11),Lo=n.n(vo);function wo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Yo=wp.i18n.__,To=wp.element,Do=To.Component,Ro=(To.Fragment,wp.blockEditor.InspectorControls),So=wp.components,xo=So.PanelBody,Eo=So.QueryControls,Co=So.RangeControl,jo=So.SelectControl,Po=So.TextControl,Ho=So.ToggleControl,Oo=So.FormTokenField,zo=So.Spinner,Ao=wp.url.addQueryArgs,Bo=wp.apiFetch,No=[],Fo=function(e){m()(n,e);var t=wo(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={categoriesList:!1,categoriesTitleToIdRelationships:!1,categoriesIdToTitleRelationships:!1,pagesList:!1,pagesTitleToIdRelationships:!1,pagesIdToTitleRelationships:!1,waitingForApiResponse:!1},e}return u()(n,[{key:"componentDidMount",value:function(){this.stillMounted=!0}},{key:"componentDidUpdate",value:function(){if(this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.categories&&!this.state.categoriesList&&"post"===this.props.attributes.postType&&this.getCategoriesFromServer(!!this.props.attributes.categories&&this.props.attributes.categories,!0),this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.selectedPages.length>0&&!this.state.pagesList&&"page"===this.props.attributes.postType){var e=[];for(var t in this.props.attributes.selectedPages)e.push(this.props.attributes.selectedPages[t].value);this.getPagesFromServer(e||!1,!0)}}},{key:"componentWillUnmount",value:function(){this.stillMounted=!1}},{key:"getCategoriesFromServer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r){if(t.setState({waitingForApiResponse:!0,categoriesList:!1}),!e||0===e.length)return n||t.setState({waitingForApiResponse:!1}),void r();var a={per_page:99,search:e};n&&(a={per_page:99,include:e}),t.fetchRequest=Bo({path:Ao("/wp/v2/categories",a)}).then((function(e){var n=t.state.categoriesTitleToIdRelationships?t.state.categoriesTitleToIdRelationships:{},a=t.state.categoriesIdToTitleRelationships?t.state.categoriesIdToTitleRelationships:{};for(var o in e)n[e[o].name+" ("+e[o].slug+")"]=e[o].id,a[e[o].id]=e[o].name+" ("+e[o].slug+")";t.setState({categoriesList:e,categoriesTitleToIdRelationships:n,categoriesIdToTitleRelationships:a,waitingForApiResponse:!1}),r()})).catch((function(){console.log("category request failure: ".concat(error.message)),t.stillMounted&&(t.setState({categoriesList:[],waitingForApiResponse:!1}),r())}))}))}},{key:"getPagesFromServer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r){if(t.setState({waitingForApiResponse:!0,pagesList:!1}),!e||0===e.length)return n||t.setState({waitingForApiResponse:!1}),void r();var a={per_page:-1,search:e};n&&(a={per_page:-1,include:e}),t.fetchRequest=Bo({path:Ao("/wp/v2/pages",a)}).then((function(e){var n=t.state.pagesTitleToIdRelationships?t.state.pagesTitleToIdRelationships:{},a=t.state.pagesIdToTitleRelationships?t.state.pagesIdToTitleRelationships:{};for(var o in e)n[e[o].title.rendered+" ("+e[o].slug+")"]=e[o].id,a[e[o].id]=e[o].title.rendered+" ("+e[o].slug+")";t.setState({pagesList:e,pagesTitleToIdRelationships:n,pagesIdToTitleRelationships:a,waitingForApiResponse:!1}),r()})).catch((function(){t.stillMounted&&(t.setState({pagesList:[],waitingForApiResponse:!1}),r())}))}))}},{key:"imageSizeSelect",value:function(){var e=wp.data.select("core/block-editor").getSettings();return Mo()(Lo()(e.imageSizes,(function(e){var t=e.name;return{value:e.slug,label:t}})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.latestPosts,i=n.order,s=n.orderBy,l=this.state,c=l.categoriesList,u=l.categoriesTitleToIdRelationships,d=l.categoriesIdToTitleRelationships,m=l.pagesList,p=l.pagesTitleToIdRelationships,_=l.pagesIdToTitleRelationships,h=[{value:"post",label:Yo("Post","genesis-blocks")},{value:"page",label:Yo("Page","genesis-blocks")}],g=[{value:"div",label:Yo("div","genesis-blocks")},{value:"header",label:Yo("header","genesis-blocks")},{value:"section",label:Yo("section","genesis-blocks")},{value:"article",label:Yo("article","genesis-blocks")},{value:"main",label:Yo("main","genesis-blocks")},{value:"aside",label:Yo("aside","genesis-blocks")},{value:"footer",label:Yo("footer","genesis-blocks")}],f=[{value:"h2",label:Yo("H2","genesis-blocks")},{value:"h3",label:Yo("H3","genesis-blocks")},{value:"h4",label:Yo("H4","genesis-blocks")},{value:"h5",label:Yo("H5","genesis-blocks")},{value:"h6",label:Yo("H6","genesis-blocks")}],b=Array.isArray(o)&&o.length,y="post"===n.postType,k={value:"selectimage",label:Yo("Select image size","genesis-blocks")},M={value:"gb-block-post-grid-landscape",label:Yo("GB Grid Landscape","genesis-blocks")},L={value:"gb-block-post-grid-square",label:Yo("GB Grid Square","genesis-blocks")},w=this.imageSizeSelect();w.push(L,M),w.unshift(k);return React.createElement(Ro,null,React.createElement(xo,{title:Yo("Post and Page Grid Settings","genesis-blocks"),className:y?null:"genesis-blocks-hide-query"},React.createElement(v,{id:"gb_postgrid_postType"},React.createElement(jo,{label:Yo("Content Type","genesis-blocks"),options:h,value:n.postType,onChange:function(t){return e.props.setAttributes({postType:t})}})),"page"===n.postType&&React.createElement(v,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(Oo,{suggestions:Mo()(Lo()(m,(function(e){var t=e.title,n=e.slug;return t.rendered+" ("+n+")"}))),label:React.createElement(React.Fragment,null,Yo("Enter page names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(zo,null)):null),placeholder:Yo("Start typing page name…","genesis-blocks"),value:function(){if(!e.props.attributes.selectedPages)return[];var t=[];for(var n in e.props.attributes.selectedPages){var r=e.props.attributes.selectedPages[n].value;_[r]&&t.push(_[e.props.attributes.selectedPages[n].value])}return t}(),onInputChange:function(t){var n="getPagesFromServer";No[n]&&(clearTimeout(No[n]),No[n]=null),No[n]=setTimeout((function(){clearTimeout(No[n]),e.getPagesFromServer(t)}),500)},onChange:function(e){var t=[];for(var n in e)t.push({value:p[e[n]]});t||(t=void 0),r({selectedPages:t})}})))),"post"===n.postType&&React.createElement(v,{id:"gb_postgrid_categories"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(Oo,{suggestions:Mo()(Lo()(c,(function(e){return e.name+" ("+e.slug+")"}))),label:React.createElement(React.Fragment,null,Yo("Enter category names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(zo,null)):null),placeholder:Yo("Start typing category name…","genesis-blocks"),value:function(){if(!e.props.attributes.categories)return[];var t=e.props.attributes.categories.split(","),n=[];for(var r in t)d[t[r]]&&n.push(d[t[r]]);return n}(),onInputChange:function(t){var n="getCategoriesFromServer";No[n]&&(clearTimeout(No[n]),No[n]=null),No[n]=setTimeout((function(){clearTimeout(No[n]),e.getCategoriesFromServer(t)}),500)},onChange:function(e){var t="";for(var n in e)u[e[n]]&&(t=t+u[e[n]]+",");(t=t.replace(/,\s*$/,""))||(t=void 0),r({categories:void 0!==t?t:""})}})))),"post"===n.postType&&React.createElement(React.Fragment,null,React.createElement(v,{id:"gb_postgrid_queryControls"},React.createElement(Eo,a()({order:i,orderBy:s},{numberOfItems:n.postsToShow,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})}}))),React.createElement(v,{id:"gb_postgrid_offset"},React.createElement(Co,{label:Yo("Number of items to offset","genesis-blocks"),value:n.offset,onChange:function(e){return r({offset:e})},min:0,max:20}))),"grid"===n.postLayout&&React.createElement(v,{id:"gb_postgrid_columns"},React.createElement(Co,{label:Yo("Columns","genesis-blocks"),value:n.columns,onChange:function(e){return r({columns:e})},min:1,max:b?Math.min(4,o.length):4}))),React.createElement(xo,{title:Yo("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(v,{id:"gb_postgrid_displaySectionTitle"},React.createElement(Ho,{label:Yo("Display Section Title","genesis-blocks"),checked:n.displaySectionTitle,onChange:function(){return e.props.setAttributes({displaySectionTitle:!n.displaySectionTitle})}})),n.displaySectionTitle&&React.createElement(v,{id:"gb_postgrid_sectionTitle"},React.createElement(Po,{label:Yo("Section Title","genesis-blocks"),type:"text",value:n.sectionTitle,onChange:function(t){return e.props.setAttributes({sectionTitle:t})}})),React.createElement(v,{id:"gb_postgrid_displayPostImage"},React.createElement(Ho,{label:Yo("Display Featured Image","genesis-blocks"),checked:n.displayPostImage,onChange:function(){return e.props.setAttributes({displayPostImage:!n.displayPostImage})}})),n.displayPostImage&&React.createElement(v,{id:"gb_postgrid_imageSizeValue"},React.createElement(jo,{label:Yo("Image Size","genesis-blocks"),value:function(){for(var e=0;e<w.length;e++)if(w[e].value===n.imageSize)return n.imageSize;return"full"}(),options:w,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),React.createElement(v,{id:"gb_postgrid_displayPostTitle"},React.createElement(Ho,{label:Yo("Display Title","genesis-blocks"),checked:n.displayPostTitle,onChange:function(){return e.props.setAttributes({displayPostTitle:!n.displayPostTitle})}})),y&&React.createElement(v,{id:"gb_postgrid_displayPostAuthor"},React.createElement(Ho,{label:Yo("Display Author","genesis-blocks"),checked:n.displayPostAuthor,onChange:function(){return e.props.setAttributes({displayPostAuthor:!n.displayPostAuthor})}})),y&&React.createElement(v,{id:"gb_postgrid_displayPostDate"},React.createElement(Ho,{label:Yo("Display Date","genesis-blocks"),checked:n.displayPostDate,onChange:function(){return e.props.setAttributes({displayPostDate:!n.displayPostDate})}})),React.createElement(v,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(Ho,{label:Yo("Display Excerpt","genesis-blocks"),checked:n.displayPostExcerpt,onChange:function(){return e.props.setAttributes({displayPostExcerpt:!n.displayPostExcerpt})}})),n.displayPostExcerpt&&React.createElement(v,{id:"gb_postgrid_excerptLength"},React.createElement(Co,{label:Yo("Excerpt Length","genesis-blocks"),value:n.excerptLength,onChange:function(e){return r({excerptLength:e})},min:0,max:150})),React.createElement(v,{id:"gb_postgrid_displayPostLink"},React.createElement(Ho,{label:Yo("Display Continue Reading Link","genesis-blocks"),checked:n.displayPostLink,onChange:function(){return e.props.setAttributes({displayPostLink:!n.displayPostLink})}})),n.displayPostLink&&React.createElement(v,{id:"gb_postgrid_readMoreText"},React.createElement(Po,{label:Yo("Customize Continue Reading Text","genesis-blocks"),type:"text",value:n.readMoreText,onChange:function(t){return e.props.setAttributes({readMoreText:t})}}))),React.createElement(xo,{title:Yo("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(v,{id:"gb_postgrid_sectionTag"},React.createElement(jo,{label:Yo("Post Grid Section Tag","genesis-blocks"),options:g,value:n.sectionTag,onChange:function(t){return e.props.setAttributes({sectionTag:t})},help:Yo("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),n.sectionTitle&&React.createElement(v,{id:"gb_postgrid_sectionTitleTag"},React.createElement(jo,{label:Yo("Section Title Heading Tag","genesis-blocks"),options:f,value:n.sectionTitleTag,onChange:function(t){return e.props.setAttributes({sectionTitleTag:t})},help:Yo("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),n.displayPostTitle&&React.createElement(v,{id:"gb_postgrid_postTitleTag"},React.createElement(jo,{label:Yo("Post Title Heading Tag","genesis-blocks"),options:f,value:n.postTitleTag,onChange:function(t){return e.props.setAttributes({postTitleTag:t})},help:Yo("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}]),n}(Do),Wo=n(29),Io=n.n(Wo);function Uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Vo=wp.i18n.__,Jo=wp.element,Go=Jo.Fragment,qo=Jo.Component,$o=wp.components,Ko=$o.Placeholder,Zo=$o.Dashicon,Qo=function(e){m()(n,e);var t=Uo(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1},r}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.imgSize!==e.imgSize&&this.setImageUrl()}},{key:"componentDidMount",value:function(){var e=this;this.setState({setImageUrlSubscription:wp.data.subscribe((function(){e.setImageUrl()}))})}},{key:"componentWillUnmount",value:function(){this.state.setImageUrlSubscription()}},{key:"setImageUrl",value:function(){var e=this.getImageUrl();e||(e=this.getFullImageSize()),e&&this.setState({imageUrl:e,imageLoaded:!0})}},{key:"getImageUrl",value:function(){return Io()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}},{key:"getFullImageSize",value:function(){return Io()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}},{key:"render",value:function(){return React.createElement(Go,null,React.createElement("div",{className:b()("gb-block-post-grid-image")},React.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},React.createElement("img",{src:this.state.imageUrl?this.state.imageUrl:this.props.imgSizeLandscape,alt:this.props.imgAlt,className:this.props.imgClass})),!this.getImageUrl()&&this.state.imageLoaded&&"selectimage"!==this.props.imgSize&&React.createElement(Go,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(Zo,{icon:"warning"})),React.createElement(Ko,{className:"gb-post-grid-no-image-placeholder"},React.createElement(Zo,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},Vo("There is no image generated for the selected image size, so a fallback image size is being used.","genesis-blocks")),React.createElement("div",{className:"gb-post-grid-image-help"},React.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":Vo("Learn more about image sizes (opens in a new tab)","genesis-blocks"),href:"https://github.com/studiopress/genesis-blocks/wiki/Post-Grid-Block#featured-image-sizes"},Vo("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}]),n}(qo);function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ti=wp.element,ni=ti.useState,ri=ti.useEffect,ai=wp.i18n.__,oi=wp.htmlEntities.decodeEntities,ii=wp.components,si=ii.Placeholder,li=ii.Spinner,ci=ii.ToolbarGroup,ui=wp.blockEditor,di=ui.BlockAlignmentToolbar,mi=ui.BlockControls,pi=wp.apiFetch,_i=wp.url.addQueryArgs,hi=[];n(347),n(348);var gi=wp.i18n.__;function fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-post-grid",{title:gi("Post and Page Grid","genesis-blocks"),description:gi("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[gi("post","genesis-blocks"),gi("page","genesis-blocks"),gi("grid","genesis-blocks"),gi("atomic","genesis-blocks")],edit:function(e){var t,n=ni(),r=fo()(n,2),o=r[0],s=r[1],l=ni(e),c=fo()(l,2),u=c[0],d=c[1],m=e.attributes,p=e.setAttributes;if(e.attributes.postType!==u.postType||e.attributes.selectedPages!==u.selectedPages||e.attributes.categories!==u.categories||e.attributes.order!==u.order||e.attributes.orderby!==u.orderby||e.attributes.offset!==u.offset||e.attributes.postsToShow!==u.postsToShow){var _="handleUpdateAttributes";hi[_]&&(clearTimeout(hi[_]),hi[_]=null),hi[_]=setTimeout((function(){clearTimeout(hi[_]),d(e.attributes)}),500)}ri((function(){s(null)}),[u]),ri((function(){o||("post"===e.attributes.postType&&new Promise((function(t){var n={order:e.attributes.order,orderby:e.attributes.orderBy,per_page:e.attributes.postsToShow,offset:e.attributes.offset};if(wp.data.select("core/editor")){var r=wp.data.select("core/editor").getCurrentPostId();r&&(n.exclude=[r])}e.attributes.categories&&(n.categories=e.attributes.categories),pi({path:_i("/wp/v2/posts",n)}).then((function(e){s(e),t()})).catch((function(e){console.log(e)}))})),"page"===e.attributes.postType&&new Promise((function(t){var n=e.attributes.selectedPages&&e.attributes.selectedPages.length>0?e.attributes.selectedPages.map((function(e){return e.value})):null,r={per_page:6},a=wp.data.select("core/editor").getCurrentPostId();a&&(r.exclude=[a]),n&&(delete r.per_page,r.include=n,r.orderby="include"),pi({path:_i("/wp/v2/pages",r)}).then((function(e){s(e),t()})).catch((function(e){console.log(e)}))})))}),[o]);var h=Array.isArray(o)&&o.length,g="post"===m.postType;if(!h)return React.createElement(React.Fragment,null,React.createElement(Fo,ei({setAttributes:p},e)),React.createElement(si,{icon:"admin-post",label:ai("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(o)?ai("No posts found.","genesis-blocks"):React.createElement(li,null)));var f=[{icon:"grid-view",title:ai("Grid View","genesis-blocks"),onClick:function(){return p({postLayout:"grid"})},isActive:"grid"===m.postLayout},{icon:"list-view",title:ai("List View","genesis-blocks"),onClick:function(){return p({postLayout:"list"})},isActive:"list"===m.postLayout}],y=m.sectionTag?m.sectionTag:"section",k=m.sectionTitleTag?m.sectionTitleTag:"h2",M=m.postTitleTag?m.postTitleTag:"h3";return React.createElement(React.Fragment,null,React.createElement(Fo,ei({setAttributes:p},e)),React.createElement(mi,null,React.createElement(di,{value:m.align,onChange:function(e){p({align:e})},controls:["center","wide","full"]}),React.createElement(ci,{controls:f})),React.createElement(y,{className:b()(e.className,"gb-block-post-grid")},m.displaySectionTitle&&m.sectionTitle&&React.createElement(k,{className:"gb-post-grid-section-title"},m.sectionTitle),React.createElement("div",{className:b()((t={"is-grid":"grid"===m.postLayout,"is-list":"list"===m.postLayout},i()(t,"columns-".concat(m.columns),"grid"===m.postLayout),i()(t,"gb-post-grid-items","gb-post-grid-items"),t))},o.map((function(t,n){return React.createElement("article",{key:n,id:"post-"+t.id,className:b()("post-"+t.id,t.featured_image_src&&m.displayPostImage?"has-post-thumbnail":null)},m.displayPostImage&&t.featured_media?React.createElement(Qo,a()({},e,{imgAlt:oi(t.title.rendered.trim())||ai("(Untitled)","genesis-blocks"),imgClass:"wp-image-".concat(t.featured_media.toString()),imgID:t.featured_media.toString(),imgSize:m.imageSize,imgSizeLandscape:t.featured_image_src,imgSizeSquare:t.featured_image_src_square,imgLink:t.link})):null,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},m.displayPostTitle&&React.createElement(M,{className:"gb-block-post-grid-title"},React.createElement("a",{href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},oi(t.title.rendered.trim())||ai("(Untitled)","genesis-blocks"))),g&&t.author_info&&t.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-byline"},m.displayPostAuthor&&t.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-author"},React.createElement("a",{className:"gb-text-link",target:"_blank",rel:"noopener noreferrer",href:t.author_info.author_link},t.author_info.display_name)),m.displayPostDate&&t.date_gmt&&React.createElement("time",{dateTime:yo()(t.date_gmt).utc().format(),className:"gb-block-post-grid-date"},yo()(t.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},m.displayPostExcerpt&&t.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(r=t.excerpt.rendered,o=m.excerptLength,r.split(" ").splice(0,o).join(" "))}}),m.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},m.readMoreText)))));var r,o})))))},gb_settings_data:{gb_postgrid_postType:{title:gi("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:gi("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:gi("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:gi("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:gi("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:gi("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:gi("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:gi("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:gi("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:gi("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:gi("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:gi("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:gi("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:gi("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:gi("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:gi("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:gi("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:gi("Post Title Heading Tag","genesis-blocks")}},save:function(){return null}});var bi=wp.i18n.__,yi=wp.element.Component,ki=wp.blockEditor,Mi=ki.InspectorControls,vi=ki.PanelColorSettings,Li=ki.MediaUpload,wi=wp.components,Yi=wi.Button,Ti=wi.Icon,Di=wi.PanelBody,Ri=wi.RangeControl,Si=function(e){m()(n,e);var t=fi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.containerPaddingTop,r=t.containerPaddingRight,a=t.containerPaddingBottom,o=t.containerPaddingLeft,i=t.containerMarginTop,s=t.containerMarginBottom,l=t.containerMaxWidth,c=t.containerBackgroundColor,u=t.containerDimRatio,d=t.containerImgURL,m=t.containerImgID,p=this.props.setAttributes,_=function(){p({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Mi,{key:"inspector"},React.createElement(v,{id:"gb_container_containerOptions"},React.createElement(Di,{title:bi("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(Ri,{label:bi("Padding Top (%)","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({containerPaddingTop:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Bottom (%)","genesis-blocks"),value:a,onChange:function(t){return e.props.setAttributes({containerPaddingBottom:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Left (%)","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({containerPaddingLeft:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Padding Right (%)","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({containerPaddingRight:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Margin Top (%)","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({containerMarginTop:t})},min:0,max:30,step:1}),React.createElement(Ri,{label:bi("Margin Bottom (%)","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({containerMarginBottom:t})},min:0,max:30,step:.5}),React.createElement(Ri,{label:bi("Inside Container Max Width (px)","genesis-blocks"),value:l,onChange:function(t){return e.props.setAttributes({containerMaxWidth:t})},min:500,max:1600,step:1}))),React.createElement(v,{id:"gb_container_backgroundOptions"},React.createElement(Di,{title:bi("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,bi("Select a background image:","genesis-blocks")),React.createElement(Li,{onSelect:function(e){p({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:m,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(Yi,{className:"gb-container-inspector-media",label:bi("Edit image","genesis-blocks"),onClick:t},React.createElement(Ti,{icon:"format-image"}),bi("Select Image","genesis-blocks")),d&&!!d.length&&React.createElement(Yi,{className:"gb-container-inspector-media",label:bi("Remove Image","genesis-blocks"),onClick:_},React.createElement(Ti,{icon:"dismiss"}),bi("Remove","genesis-blocks")))}}),d&&!!d.length&&React.createElement(Ri,{label:bi("Image Opacity","genesis-blocks"),value:u,onChange:function(t){return e.props.setAttributes({containerDimRatio:t})},min:0,max:100,step:10}),React.createElement(vi,{title:bi("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,label:bi("Background Color","genesis-blocks"),onChange:function(e){return p({containerBackgroundColor:e})}}]}))))}}]),n}(yi);function xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ei=function(e){m()(n,e);var t=xi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,c=t.containerMarginTop,u=t.containerMarginBottom,d=t.containerWidth,m=t.containerMaxWidth,p=t.containerImgURL,_=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:c?"".concat(c,"%"):void 0,marginBottom:u?"".concat(u,"%"):void 0},f=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:f||void 0},React.createElement("div",{className:"gb-container-inside"},p&&!!p.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:p,alt:_})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:m?"".concat(m,"px"):void 0}},this.props.children)))}}]),n}(wp.element.Component);function Ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ji=function(e){m()(n,e);var t=Ci(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.containerBackgroundColor,n=e.containerAlignment,r=e.containerPaddingTop,a=e.containerPaddingRight,o=e.containerPaddingBottom,s=e.containerPaddingLeft,l=e.containerMarginTop,c=e.containerMarginBottom,u=e.containerWidth,d=(e.containerMaxWidth,b()([this.props.className,"gb-block-container"],i()({},"align"+u,u)));return React.createElement("div",{style:{backgroundColor:t,textAlign:n,paddingLeft:"".concat(s,"%"),paddingRight:"".concat(a,"%"),paddingBottom:"".concat(o,"%"),paddingTop:"".concat(r,"%"),marginTop:"".concat(l,"%"),marginBottom:"".concat(c,"%")},className:d||void 0},this.props.children)}}]),n}(wp.element.Component);function Pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Hi=function(e){m()(n,e);var t=Pi(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.containerBackgroundColor,r=t.containerAlignment,a=t.containerPaddingTop,o=t.containerPaddingRight,s=t.containerPaddingBottom,l=t.containerPaddingLeft,c=t.containerMarginTop,u=t.containerMarginBottom,d=t.containerWidth,m=t.containerMaxWidth,p=t.containerImgURL,_=t.containerImgAlt,h=t.containerDimRatio,g={backgroundColor:n||void 0,textAlign:r||void 0,paddingLeft:l?"".concat(l,"%"):void 0,paddingRight:o?"".concat(o,"%"):void 0,paddingBottom:s?"".concat(s,"%"):void 0,paddingTop:a?"".concat(a,"%"):void 0,marginTop:c?"".concat(c,"%"):void 0,marginBottom:u?"".concat(u,"%"):void 0},f=b()([this.props.className,"gb-block-container"],i()({},"align"+d,d));return React.createElement("div",{style:g,className:f||void 0},React.createElement("div",{className:"gb-container-inside"},p&&!!p.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(e=h,0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)),{"has-background-dim":0!==h}),src:p,alt:_})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(m,"px")}},this.props.children)))}}]),n}(wp.element.Component);var Oi=wp.blockEditor.InnerBlocks;var zi=[{attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){return React.createElement(Hi,e,React.createElement(Oi.Content,null))}},{attributes:{containerPaddingTop:{type:"number",default:0},containerPaddingRight:{type:"number",default:0},containerPaddingBottom:{type:"number",default:0},containerPaddingLeft:{type:"number",default:0},containerMarginTop:{type:"number",default:0},containerMarginBottom:{type:"number",default:0},containerWidth:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string",default:"#fff"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:function(e){var t,n=e.attributes,r=n.containerMaxWidth,a=n.containerImgURL,o=n.containerImgAlt,i=n.containerDimRatio;return React.createElement(ji,e,React.createElement("div",{className:"gb-container-inside"},a&&!!a.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:b()("gb-container-image",(t=i,0===t||50===t?null:"has-background-dim-"+10*Math.round(t/10)),{"has-background-dim":0!==i}),src:a,alt:o})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:"".concat(r,"px")}},React.createElement(Oi.Content,null))))}}];n(349),n(350);function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Fi=wp.i18n.__,Wi=wp.element.Component,Ii=wp.blocks.registerBlockType,Ui=wp.blockEditor.InnerBlocks,Vi=function(e){m()(n,e);var t=Ni(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.setAttributes;return[React.createElement(Si,a()({key:"gb-container-inspector-"+this.props.clientId},Bi({setAttributes:e},this.props))),React.createElement(Ei,a()({key:"gb-container-"+this.props.clientId},this.props),React.createElement(Ui,null))]}}]),n}(Wi);function Ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}Ii("genesis-blocks/gb-container",{title:Fi("Container","genesis-blocks"),description:Fi("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[Fi("container","genesis-blocks"),Fi("section","genesis-blocks"),Fi("genesis","genesis-blocks")],supports:{align:["center","wide","full"]},attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number"},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},gb_settings_data:{gb_container_containerOptions:{title:Fi("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:Fi("Background Options","genesis-blocks")}},edit:Vi,save:function(e){return React.createElement(Ei,e,React.createElement(Ui.Content,null))},getEditWrapperProps:function(e){var t=e.containerWidth;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:zi});var Gi=wp.i18n.__,qi=wp.element.Component,$i=wp.blockEditor.InspectorControls,Ki=wp.components,Zi=Ki.PanelBody,Qi=Ki.RangeControl,Xi=function(e){m()(n,e);var t=Ji(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.columns,r=t.columnsGap;return React.createElement($i,{key:"inspector"},React.createElement(Zi,null,React.createElement(v,{id:"gb_pricing_columns"},React.createElement(Qi,{label:Gi("Pricing Columns","genesis-blocks"),value:n,onChange:function(t){return e.props.setAttributes({columns:t})},min:1,max:4})),React.createElement(v,{id:"gb_pricing_columnsGap"},React.createElement(Qi,{label:Gi("Pricing Columns Gap","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:5,step:1}))))}}]),n}(qi);function es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ts=function(e){m()(n,e);var t=es(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.columns,n=e.align,r=b()([this.props.className,"gb-pricing-columns-"+t],i()({},"align"+n,n));return React.createElement("div",{className:r||void 0},this.props.children)}}]),n}(wp.element.Component),ns=n(30),rs=n.n(ns),as=n(31),os=n.n(as);function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var cs=wp.i18n.__,us=wp.element.Component,ds=wp.blocks.registerBlockType,ms=wp.blockEditor,ps=ms.BlockControls,_s=ms.BlockAlignmentToolbar,hs=ms.InnerBlocks,gs=wp.data.dispatch,fs=["genesis-blocks/gb-pricing-table"],bs=rs()((function(e){return os()(e,(function(){return["genesis-blocks/gb-pricing-table"]}))})),ys=function(e){m()(n,e);var t=ls(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&gs("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.columns,r=t.columnsGap,o=t.align,i=e.setAttributes;return[React.createElement(ps,{key:"controls"},React.createElement(_s,{value:o,onChange:function(e){return i({align:e})},controls:["center","wide","full"]})),React.createElement(Xi,a()({key:"gb-pricing-table-inspector-"+this.props.clientId},ss({setAttributes:i},this.props))),React.createElement(ts,a()({key:"gb-pricing-table-"+this.props.clientId},this.props),React.createElement("div",{className:b()("gb-pricing-table-wrap-admin","gb-block-pricing-table-gap-"+r)},React.createElement(hs,{template:bs(n),templateLock:"all",allowedBlocks:fs})))]}}]),n}(us);function ks(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}ds("genesis-blocks/gb-pricing",{title:cs("Pricing","genesis-blocks"),description:cs("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[cs("pricing table","genesis-blocks"),cs("shop","genesis-blocks"),cs("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:cs("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:cs("Pricing Columns Gap","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:ys,save:function(e){var t=e.attributes.columnsGap,n=b()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(ts,e,React.createElement("div",{className:n||void 0},React.createElement(hs.Content,null)))}});var Ms=wp.i18n.__,vs=wp.element.Component,Ls=wp.blockEditor,ws=Ls.InspectorControls,Ys=Ls.PanelColorSettings,Ts=wp.components,Ds=Ts.PanelBody,Rs=Ts.RangeControl,Ss=function(e){m()(n,e);var t=ks(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderWidth,a=n.borderColor,o=n.borderRadius,i=n.backgroundColor,s=n.padding,l=t.setAttributes;return React.createElement(ws,{key:"inspector"},React.createElement(Ds,null,React.createElement(v,{id:"gb_pricing_inner_padding"},React.createElement(Rs,{label:Ms("Pricing Column Padding","genesis-blocks"),value:s,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:20,step:1})),React.createElement(v,{id:"gb_pricing_inner_borderWidth"},React.createElement(Rs,{label:Ms("Pricing Column Border","genesis-blocks"),value:r,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:0,max:10,step:1})),React.createElement(v,{id:"gb_pricing_inner_borderRadius"},React.createElement(Rs,{label:Ms("Pricing Column Border Radius","genesis-blocks"),value:o,onChange:function(t){return e.props.setAttributes({borderRadius:t})},min:0,max:20,step:1}))),0<r&&React.createElement(v,{id:"gb_pricing_inner_borderColor"},React.createElement(Ys,{title:Ms("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a,onChange:function(e){return l({borderColor:e})},label:Ms("Border Color","genesis-blocks")}]})),React.createElement(v,{id:"gb_pricing_inner_colorSettings"},React.createElement(Ys,{title:Ms("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:function(e){return l({backgroundColor:e})},label:Ms("Background Color","genesis-blocks")}]})))}}]),n}(vs);n(351),n(352);function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var js=wp.i18n.__,Ps=wp.element.Component,Hs=wp.blocks.registerBlockType,Os=wp.blockEditor,zs=Os.InnerBlocks,As=Os.AlignmentToolbar,Bs=Os.BlockControls,Ns=wp.element.Fragment,Fs=["genesis-blocks/gb-pricing-table-description","genesis-blocks/gb-pricing-table-price","genesis-blocks/gb-pricing-table-subtitle","genesis-blocks/gb-pricing-table-title","genesis-blocks/gb-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"],Ws=function(e){m()(n,e);var t=Cs(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.borderWidth,r=t.borderColor,o=t.borderRadius,i=t.backgroundColor,s=t.padding,l=t.alignment,c=e.setAttributes,u={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:o||null,backgroundColor:i||null,padding:s?s+"%":null};return[React.createElement(Bs,{key:"controls"},React.createElement(As,{value:l,onChange:function(e){c({alignment:e})}})),React.createElement(Ss,a()({key:"gb-pricing-table-inner-inspector-"+this.props.clientId},Es({setAttributes:c},this.props))),React.createElement(Ns,{key:"gb-pricing-table-inner-fragment-"+this.props.clientId},React.createElement("div",{className:b()(l?"gb-block-pricing-table-"+l:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:u},React.createElement(zs,{template:[["genesis-blocks/gb-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-features",{features:"<li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li>",multilineTag:"li",ordered:!1,customFontSize:20,paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["genesis-blocks/gb-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:Fs,templateInsertUpdatesSelection:!1}))))]}}]),n}(Ps);Hs("genesis-blocks/gb-pricing-table",{title:js("Pricing Column","genesis-blocks"),description:js("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[js("pricing","genesis-blocks"),js("shop","genesis-blocks"),js("buy","genesis-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},gb_settings_data:{gb_pricing_inner_padding:{title:js("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:js("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:js("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:js("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:js("Pricing Column Background Color","genesis-blocks")}},edit:Ws,save:function(e){var t=e.attributes,n=t.borderWidth,r=t.borderColor,a=t.borderRadius,o=t.backgroundColor,i=t.alignment,s=t.padding,l={borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:r||null,borderRadius:a||null,backgroundColor:o||null,padding:s?s+"%":null};return React.createElement("div",{className:b()(i?"gb-block-pricing-table-"+i:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:l},React.createElement(zs.Content,null)))}});var Is=wp.i18n.__,Us=wp.element.Fragment,Vs=wp.components.RangeControl;function Js(e){var t=e.padding,n=e.paddingTitle,r=e.paddingHelp,a=e.paddingMin,o=e.paddingMax,i=e.paddingEnable,s=e.onChangePadding,l=void 0===s?function(){}:s,c=e.paddingTop,u=e.paddingTopMin,d=e.paddingTopMax,m=e.paddingEnableTop,p=e.onChangePaddingTop,_=void 0===p?function(){}:p,h=e.paddingRight,g=e.paddingRightMin,f=e.paddingRightMax,b=e.paddingEnableRight,y=e.onChangePaddingRight,k=void 0===y?function(){}:y,M=e.paddingBottom,v=e.paddingBottomMin,L=e.paddingBottomMax,w=e.paddingEnableBottom,Y=e.onChangePaddingBottom,T=void 0===Y?function(){}:Y,D=e.paddingLeft,R=e.paddingLeftMin,S=e.paddingLeftMax,x=e.paddingEnableLeft,E=e.onChangePaddingLeft,C=void 0===E?function(){}:E,j=e.paddingVertical,P=e.paddingEnableVertical,H=e.paddingVerticalMin,O=e.paddingVerticalMax,z=e.onChangePaddingVertical,A=void 0===z?function(){}:z,B=e.paddingHorizontal,N=e.paddingEnableHorizontal,F=e.paddingHorizontalMin,W=e.paddingHorizontalMax,I=e.onChangePaddingHorizontal,U=void 0===I?function(){}:I;return React.createElement(Us,null,i&&React.createElement(Vs,{label:n||Is("Padding","genesis-blocks"),help:r||null,value:t,min:a,max:o,onChange:l}),m&&React.createElement(Vs,{label:Is("Padding Top","genesis-blocks"),value:c,min:u,max:d,onChange:_}),b&&React.createElement(Vs,{label:Is("Padding Right","genesis-blocks"),value:h,min:g,max:f,onChange:k}),w&&React.createElement(Vs,{label:Is("Padding Bottom","genesis-blocks"),value:M,min:v,max:L,onChange:T}),x&&React.createElement(Vs,{label:Is("Padding Left","genesis-blocks"),value:D,min:R,max:S,onChange:C}),P&&React.createElement(Vs,{label:Is("Padding Vertical","genesis-blocks"),value:j,min:H,max:O,onChange:A}),N&&React.createElement(Vs,{label:Is("Padding Horizontal","genesis-blocks"),value:B,min:F,max:W,onChange:U}))}function Gs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var qs=wp.i18n.__,$s=wp.element.Component,Ks=wp.compose.compose,Zs=wp.blockEditor,Qs=Zs.InspectorControls,Xs=Zs.FontSizePicker,el=Zs.withFontSizes,tl=Zs.withColors,nl=Zs.ContrastChecker,rl=Zs.PanelColorSettings,al=wp.components,ol=al.withFallbackStyles,il=al.PanelBody,sl=al.ToggleControl,ll=al.TextControl,cl=(al.RangeControl,ol((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}}))),ul=function(e){m()(n,e);var t=Gs(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.showTerm,o=n.showCurrency,i=n.term,s=n.currency,l=n.paddingTop,c=n.paddingRight,u=n.paddingBottom,d=n.paddingLeft,m=(t.isSelected,t.setAttributes),p=t.fallbackFontSize,_=t.fontSize,h=t.setFontSize,g=t.backgroundColor,f=t.textColor,b=t.setBackgroundColor,y=t.setTextColor,k=t.fallbackBackgroundColor,M=t.fallbackTextColor;return React.createElement(Qs,{key:"inspector"},React.createElement(il,{title:qs("Text Settings","genesis-blocks")},React.createElement(Xs,{fallbackFontSize:p,value:_.size,onChange:h}),React.createElement(sl,{label:qs("Show currency symbol","genesis-blocks"),checked:o,onChange:function(){return e.props.setAttributes({showCurrency:!o})}}),o&&React.createElement(ll,{label:qs("Currency Symbol","genesis-blocks"),type:"text",value:s,onChange:function(t){return e.props.setAttributes({currency:t})}}),React.createElement(sl,{label:qs("Show pricing duration","genesis-blocks"),checked:r,onChange:function(){return e.props.setAttributes({showTerm:!r})}}),r&&React.createElement(ll,{label:qs("Pricing Duration","genesis-blocks"),type:"text",value:i,onChange:function(t){return e.props.setAttributes({term:t})}})),React.createElement(il,{title:qs("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:l,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return m({paddingTop:e})},paddingEnableRight:!0,paddingRight:c,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return m({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:u,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return m({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:d,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return m({paddingLeft:e})}})),React.createElement(rl,{title:qs("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:g.color,onChange:b,label:qs("Background Color","genesis-blocks")},{value:f.color,onChange:y,label:qs("Text Color","genesis-blocks")}]},React.createElement(nl,a()({textColor:f.color,backgroundColor:g.color,fallbackTextColor:M,fallbackBackgroundColor:k},{fontSize:_.size}))))}}]),n}($s),dl=Ks([cl,el("fontSize"),tl("backgroundColor",{textColor:"color"})])(ul);function ml(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var pl=wp.i18n.__,_l=(wp.blocks.registerBlockType,wp.compose.compose),hl=wp.element,gl=hl.Component,fl=hl.Fragment,bl=wp.blockEditor,yl=bl.RichText,kl=bl.withFontSizes,Ml=bl.withColors,vl=function(e){m()(n,e);var t=ml(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.price,a=n.currency,o=n.term,s=n.showTerm,l=n.showCurrency,c=n.paddingTop,u=n.paddingRight,d=n.paddingBottom,m=n.paddingLeft,p=(t.isSelected,t.className,t.setAttributes),_=(t.fallbackFontSize,t.fontSize),h=t.backgroundColor,g=t.textColor,f=b()((e={"gb-pricing-table-price-wrap":!0,"has-text-color":g.color,"has-background":h.color},i()(e,h.class,h.class),i()(e,g.class,g.class),i()(e,"gb-pricing-has-currency",l),e)),y=b()(i()({"gb-pricing-table-price":!0},_.class,_.class)),k={backgroundColor:h.color,color:g.color,paddingTop:c?c+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:d?d+"px":void 0,paddingLeft:m?m+"px":void 0},M={fontSize:_.size?_.size+"px":void 0},v=Math.floor(_.size/2.5),L={fontSize:_.size?v+"px":void 0},w=Math.floor(_.size/2.5),Y={fontSize:_.size?w+"px":void 0};return[React.createElement(fl,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(dl,this.props),React.createElement("div",{className:f||void 0,style:k},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},l&&React.createElement(yl,{tagName:"span",itemProp:"priceCurrency",placeholder:pl("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:a,onChange:function(e){return p({currency:e})},className:"gb-pricing-table-currency",style:L}),React.createElement(yl,{tagName:"div",itemProp:"price",placeholder:pl("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return p({price:e})},style:M,className:y||void 0}),s&&React.createElement(yl,{tagName:"span",value:o,placeholder:pl("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:function(e){return p({term:e})},className:"gb-pricing-table-term",style:Y}))))]}}]),n}(gl),Ll=_l([kl("fontSize"),Ml("backgroundColor",{textColor:"color"})])(vl),wl=wp.i18n.__,Yl=wp.blockEditor,Tl=Yl.RichText,Dl=Yl.getFontSizeClass,Rl=Yl.getColorClassName,Sl=[{attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,c=n.textColor,u=n.customBackgroundColor,d=n.customTextColor,m=n.term,p=n.showTerm,_=n.showCurrency,h=n.paddingTop,g=n.paddingRight,f=n.paddingBottom,y=n.paddingLeft,k=Dl(o),M=Rl("color",c),v=Rl("background-color",l),L=b()((t={"has-background":l||u,"gb-pricing-table-price-wrap":!0},i()(t,M,M),i()(t,v,v),i()(t,"gb-pricing-has-currency",_&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},k,k)),Y={backgroundColor:v?void 0:u,color:M?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:y?y+"px":void 0},T={fontSize:k?void 0:s},D=k?void 0:s,R=Math.floor(D/2.5),S={fontSize:D?R+"px":void 0},x=Math.floor(D/2.5),E={fontSize:D?x+"px":void 0};return React.createElement("div",{className:L||void 0,style:Y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&_&&React.createElement(Tl.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:wl("$","genesis-blocks"),value:a,className:"gb-pricing-table-currency",style:S}),React.createElement(Tl.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:T}),m&&p&&React.createElement(Tl.Content,{tagName:"span",value:m,className:"gb-pricing-table-term",style:E})))}}],xl=wp.i18n.__,El=wp.blocks.registerBlockType,Cl=wp.element,jl=(Cl.Component,Cl.Fragment,wp.blockEditor),Pl=jl.RichText,Hl=jl.getFontSizeClass,Ol=(jl.FontSizePicker,jl.withFontSizes,jl.getColorClassName);function zl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}El("genesis-blocks/gb-pricing-table-price",{title:xl("Product Price","genesis-blocks"),description:xl("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[xl("pricing table","genesis-blocks"),xl("price","genesis-blocks"),xl("shop","genesis-blocks")],attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Ll,save:function(e){var t,n=e.attributes,r=n.price,a=n.currency,o=n.fontSize,s=n.customFontSize,l=n.backgroundColor,c=n.textColor,u=n.customBackgroundColor,d=n.customTextColor,m=n.term,p=n.showTerm,_=n.showCurrency,h=n.paddingTop,g=n.paddingRight,f=n.paddingBottom,y=n.paddingLeft,k=Hl(o),M=Ol("color",c),v=Ol("background-color",l),L=b()((t={"has-background":l||u,"gb-pricing-table-price-wrap":!0},i()(t,M,M),i()(t,v,v),i()(t,"gb-pricing-has-currency",_&&a),t)),w=b()(i()({"gb-pricing-table-price":!0},k,k)),Y={backgroundColor:v?void 0:u,color:M?void 0:d,paddingTop:h?h+"px":void 0,paddingRight:g?g+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:y?y+"px":void 0},T={fontSize:k?void 0:s},D=k?void 0:s,R=Math.floor(D/2.5),S={fontSize:D?R+"px":void 0},x=Math.floor(D/2.5),E={fontSize:D?x+"px":void 0};return React.createElement("div",{className:L||void 0,style:Y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&_&&React.createElement(Pl.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"gb-pricing-table-currency",style:S}),React.createElement(Pl.Content,{tagName:"div",itemProp:"price",value:r,className:w||void 0,style:T}),m&&p&&React.createElement(Pl.Content,{tagName:"span",value:m,className:"gb-pricing-table-term",style:E})))},deprecated:Sl});var Al=wp.i18n.__,Bl=wp.element.Component,Nl=wp.compose.compose,Fl=wp.blockEditor,Wl=Fl.InspectorControls,Il=Fl.FontSizePicker,Ul=Fl.withFontSizes,Vl=Fl.withColors,Jl=Fl.ContrastChecker,Gl=Fl.PanelColorSettings,ql=Fl.ColorPalette,$l=wp.components,Kl=$l.withFallbackStyles,Zl=$l.PanelBody,Ql=$l.PanelRow,Xl=$l.SelectControl,ec=$l.BaseControl,tc=$l.RangeControl,nc=Kl((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),rc=function(e){m()(n,e);var t=zl(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.borderStyle,o=n.borderColor,i=n.borderWidth,s=n.paddingTop,l=n.paddingRight,c=n.paddingBottom,u=n.paddingLeft,d=(t.isSelected,t.setAttributes),m=t.fallbackFontSize,p=t.fontSize,_=t.setFontSize,h=t.backgroundColor,g=t.textColor,f=t.setBackgroundColor,b=t.setTextColor,y=t.fallbackBackgroundColor,k=t.fallbackTextColor,M=[{value:"gb-list-border-none",label:Al("None")},{value:"gb-list-border-solid",label:Al("Solid")},{value:"gb-list-border-dotted",label:Al("Dotted")},{value:"gb-list-border-dashed",label:Al("Dashed")}];return React.createElement(Wl,{key:"inspector"},React.createElement(Zl,{title:Al("Text Settings","genesis-blocks")},React.createElement(Il,{fallbackFontSize:m,value:p.size,onChange:_}),React.createElement(Xl,{label:Al("List Border Style","genesis-blocks"),value:r,options:M.map((function(e){return{value:e.value,label:e.label}})),onChange:function(t){e.props.setAttributes({borderStyle:t})}}),"gb-list-border-none"!==r&&React.createElement(tc,{label:Al("List Border Width","genesis-blocks"),value:i,onChange:function(t){return e.props.setAttributes({borderWidth:t})},min:1,max:5,step:1}),"gb-list-border-none"!==r&&React.createElement(Ql,null,React.createElement(ec,{label:Al("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(ql,{initialOpen:!1,value:o,onChange:function(e){return d({borderColor:e})}})))),React.createElement(Zl,{title:Al("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:s,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:l,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:c,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:u,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(Gl,{title:Al("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:h.color,onChange:f,label:Al("Background Color","genesis-blocks")},{value:g.color,onChange:b,label:Al("Text Color","genesis-blocks")}]},React.createElement(Jl,a()({textColor:g.color,backgroundColor:h.color,fallbackTextColor:k,fallbackBackgroundColor:y},{fontSize:p.size}))))}}]),n}(Bl),ac=Nl([nc,Ul("fontSize"),Vl("backgroundColor",{textColor:"color"})])(rc);function oc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ic=wp.i18n.__,sc=(wp.blocks.registerBlockType,wp.compose.compose),lc=wp.element,cc=lc.Component,uc=lc.Fragment,dc=wp.blockEditor,mc=dc.RichText,pc=dc.withFontSizes,_c=dc.withColors,hc=function(e){m()(n,e);var t=oc(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.features,a=n.borderStyle,o=n.borderColor,s=n.borderWidth,l=n.paddingTop,c=n.paddingRight,u=n.paddingBottom,d=n.paddingLeft,m=(t.isSelected,t.className,t.setAttributes),p=(t.fallbackFontSize,t.fontSize),_=t.backgroundColor,h=t.textColor,g=b()((e={"gb-pricing-table-features":!0},i()(e,p.class,p.class),i()(e,"has-text-color",h.color),i()(e,"has-background",_.color),i()(e,_.class,_.class),i()(e,h.class,h.class),i()(e,a,a),i()(e,"gb-list-border-width-"+s,s),e)),f={fontSize:p.size?p.size+"px":void 0,backgroundColor:_.color,color:h.color,borderColor:o||void 0,paddingTop:l?l+"px":void 0,paddingRight:c?c+"px":void 0,paddingBottom:u?u+"px":void 0,paddingLeft:d?d+"px":void 0};return[React.createElement(uc,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(ac,this.props),React.createElement(mc,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:ic("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return m({features:e})},style:f,className:g||void 0}))]}}]),n}(cc),gc=sc([pc("fontSize"),_c("backgroundColor",{textColor:"color"})])(hc),fc=wp.i18n.__,bc=wp.blocks.registerBlockType,yc=(wp.element.Component,wp.blockEditor),kc=yc.RichText,Mc=yc.getFontSizeClass,vc=(yc.FontSizePicker,yc.withFontSizes,yc.getColorClassName);function Lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}bc("genesis-blocks/gb-pricing-table-features",{title:fc("Product Features","genesis-blocks"),description:fc("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[fc("pricing table","genesis-blocks"),fc("features","genesis-blocks"),fc("shop","genesis-blocks")],attributes:{features:{type:"string",source:"html",selector:"ol,ul",multiline:"li"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},borderStyle:{type:"string",default:"gb-list-border-none"},borderColor:{type:"string"},borderWidth:{type:"number",default:1},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:gc,save:function(e){var t,n=e.attributes,r=n.features,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.borderStyle,m=n.borderColor,p=n.borderWidth,_=n.paddingTop,h=n.paddingRight,g=n.paddingBottom,f=n.paddingLeft,y=Mc(a),k=vc("color",l),M=vc("background-color",s),v=b()((t={"has-background":s||c,"gb-pricing-table-features":!0},i()(t,y,y),i()(t,k,k),i()(t,M,M),i()(t,d,d),i()(t,"gb-list-border-width-"+p,p),t)),L={fontSize:y?void 0:o,backgroundColor:M?void 0:c,color:k?void 0:u,borderColor:m||void 0,paddingTop:_?_+"px":void 0,paddingRight:h?h+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:f?f+"px":void 0};return React.createElement(kc.Content,{tagName:"ul",itemProp:"description",value:r,className:v||void 0,style:L})}});var wc=wp.i18n.__,Yc=wp.element.Component,Tc=wp.compose.compose,Dc=wp.blockEditor,Rc=Dc.InspectorControls,Sc=Dc.FontSizePicker,xc=Dc.withFontSizes,Ec=Dc.withColors,Cc=Dc.ContrastChecker,jc=Dc.PanelColorSettings,Pc=(Dc.RangeControl,wp.components),Hc=Pc.withFallbackStyles,Oc=Pc.PanelBody,zc=Hc((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,i=n.customFontSize,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||i||!l?void 0:parseInt(l.fontSize)||void 0}})),Ac=function(e){m()(n,e);var t=Lc(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,s=(e.isSelected,e.setAttributes),l=e.fallbackFontSize,c=e.fontSize,u=e.setFontSize,d=e.backgroundColor,m=e.textColor,p=e.setBackgroundColor,_=e.setTextColor,h=e.fallbackBackgroundColor,g=e.fallbackTextColor;return React.createElement(Rc,{key:"inspector"},React.createElement(Oc,{title:wc("Text Settings","genesis-blocks")},React.createElement(Sc,{fallbackFontSize:l,value:c.size,onChange:u})),React.createElement(Oc,{title:wc("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return s({paddingLeft:e})}})),React.createElement(jc,{title:wc("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:p,label:wc("Background Color","genesis-blocks")},{value:m.color,onChange:_,label:wc("Text Color","genesis-blocks")}]},React.createElement(Cc,a()({textColor:m.color,backgroundColor:d.color,fallbackTextColor:g,fallbackBackgroundColor:h},{fontSize:c.size}))))}}]),n}(Yc),Bc=Tc([zc,xc("fontSize"),Ec("backgroundColor",{textColor:"color"})])(Ac);function Nc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Fc=wp.i18n.__,Wc=(wp.blocks.registerBlockType,wp.compose.compose),Ic=wp.element,Uc=Ic.Component,Vc=Ic.Fragment,Jc=wp.blockEditor,Gc=Jc.RichText,qc=Jc.withFontSizes,$c=Jc.withColors,Kc=function(e){m()(n,e);var t=Nc(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.title,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,c=(t.isSelected,t.className,t.setAttributes),u=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,m=t.textColor,p=b()((e={"gb-pricing-table-title":!0},i()(e,u.class,u.class),i()(e,"has-text-color",m.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,m.class,m.class),e)),_={fontSize:u.size?u.size+"px":void 0,backgroundColor:d.color,color:m.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(Vc,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(Bc,this.props),React.createElement(Gc,{tagName:"div",itemProp:"name",placeholder:Fc("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return c({title:e})},style:_,className:p||void 0}))]}}]),n}(Uc),Zc=Wc([qc("fontSize"),$c("backgroundColor",{textColor:"color"})])(Kc),Qc=wp.i18n.__,Xc=wp.blocks.registerBlockType,eu=(wp.element.Component,wp.blockEditor),tu=eu.RichText,nu=eu.getFontSizeClass,ru=(eu.FontSizePicker,eu.withFontSizes,eu.getColorClassName);function au(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}Xc("genesis-blocks/gb-pricing-table-title",{title:Qc("Product Title","genesis-blocks"),description:Qc("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Qc("pricing table","genesis-blocks"),Qc("title","genesis-blocks"),Qc("shop","genesis-blocks")],attributes:{title:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Zc,save:function(e){var t,n=e.attributes,r=n.title,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.paddingTop,m=n.paddingRight,p=n.paddingBottom,_=n.paddingLeft,h=nu(a),g=ru("color",l),f=ru("background-color",s),y={fontSize:h?void 0:o,backgroundColor:f?void 0:c,color:g?void 0:u,paddingTop:d?d+"px":void 0,paddingRight:m?m+"px":void 0,paddingBottom:p?p+"px":void 0,paddingLeft:_?_+"px":void 0},k=b()((t={"has-background":s||c,"gb-pricing-table-title":!0},i()(t,h,h),i()(t,g,g),i()(t,f,f),t));return React.createElement(tu.Content,{tagName:"div",itemProp:"name",value:r,style:y,className:k||void 0})}});var ou=wp.i18n.__,iu=(wp.blocks.registerBlockType,wp.compose.compose),su=wp.element,lu=su.Component,cu=su.Fragment,uu=wp.blockEditor,du=uu.RichText,mu=uu.withFontSizes,pu=uu.withColors,_u=function(e){m()(n,e);var t=au(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.subtitle,a=n.paddingTop,o=n.paddingRight,s=n.paddingBottom,l=n.paddingLeft,c=(t.isSelected,t.className,t.setAttributes),u=(t.fallbackFontSize,t.fontSize),d=t.backgroundColor,m=t.textColor,p=b()((e={"gb-pricing-table-subtitle":!0},i()(e,u.class,u.class),i()(e,"has-text-color",m.color),i()(e,"has-background",d.color),i()(e,d.class,d.class),i()(e,m.class,m.class),e)),_={fontSize:u.size?u.size+"px":void 0,backgroundColor:d.color,color:m.color,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(cu,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(Bc,this.props),React.createElement(du,{tagName:"div",placeholder:ou("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,onChange:function(e){return c({subtitle:e})},style:_,className:p||void 0}))]}}]),n}(lu),hu=iu([mu("fontSize"),pu("backgroundColor",{textColor:"color"})])(_u),gu=wp.i18n.__,fu=wp.blocks.registerBlockType,bu=(wp.element.Component,wp.blockEditor),yu=bu.RichText,ku=bu.getFontSizeClass,Mu=(bu.FontSizePicker,bu.withFontSizes,bu.getColorClassName);function vu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}fu("genesis-blocks/gb-pricing-table-subtitle",{title:gu("Product Subtitle","genesis-blocks"),description:gu("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[gu("pricing table","genesis-blocks"),gu("subtitle","genesis-blocks"),gu("shop","genesis-blocks")],attributes:{subtitle:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:hu,save:function(e){var t,n=e.attributes,r=n.subtitle,a=n.fontSize,o=n.customFontSize,s=n.backgroundColor,l=n.textColor,c=n.customBackgroundColor,u=n.customTextColor,d=n.paddingTop,m=n.paddingRight,p=n.paddingBottom,_=n.paddingLeft,h=ku(a),g=Mu("color",l),f=Mu("background-color",s),y=b()((t={"has-background":s||c,"gb-pricing-table-subtitle":!0},i()(t,h,h),i()(t,g,g),i()(t,f,f),t)),k={fontSize:h?void 0:o,backgroundColor:f?void 0:c,color:g?void 0:u,paddingTop:d?d+"px":void 0,paddingRight:m?m+"px":void 0,paddingBottom:p?p+"px":void 0,paddingLeft:_?_+"px":void 0};return React.createElement(yu.Content,{tagName:"div",value:r,className:y||void 0,style:k})}});var Lu=wp.i18n.__,wu=wp.element.Component,Yu=wp.compose.compose,Tu=wp.blockEditor,Du=Tu.InspectorControls,Ru=(Tu.FontSizePicker,Tu.withFontSizes),Su=Tu.withColors,xu=(Tu.ContrastChecker,Tu.PanelColorSettings),Eu=wp.components,Cu=Eu.withFallbackStyles,ju=Eu.PanelBody,Pu=(Eu.ToggleControl,Eu.TextControl,Eu.RangeControl,Cu((function(e,t){var n=t.attributes.backgroundColor,r=e.querySelector('[contenteditable="true"]'),a=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!a?void 0:a.backgroundColor}}))),Hu=function(e){m()(n,e);var t=vu(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.paddingTop,r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=(t.buttonText,t.buttonUrl,t.buttonAlignment,t.buttonBackgroundColor),s=t.buttonTextColor,l=t.buttonSize,c=t.buttonShape,u=t.buttonTarget,d=(e.isSelected,e.setAttributes),m=e.backgroundColor,p=e.setBackgroundColor;e.fallbackBackgroundColor;return React.createElement(Du,{key:"inspector"},React.createElement(ju,{title:Lu("Button Settings","genesis-blocks")},React.createElement(dn,{buttonTarget:u,onChangeButtonTarget:function(e){return d({buttonTarget:!u})},buttonSize:l,onChangeButtonSize:function(e){return d({buttonSize:e})},buttonShape:c,onChangeButtonShape:function(e){return d({buttonShape:e})},buttonBackgroundColor:i,onChangeButtonColor:function(e){return d({buttonBackgroundColor:e})},buttonTextColor:s,onChangeButtonTextColor:function(e){return d({buttonTextColor:e})}})),React.createElement(ju,{title:Lu("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Js,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:function(e){return d({paddingTop:e})},paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:function(e){return d({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:a,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:function(e){return d({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:o,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:function(e){return d({paddingLeft:e})}})),React.createElement(xu,{title:Lu("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:m.color,onChange:p,label:Lu("Background Color","genesis-blocks")}]}))}}]),n}(wu),Ou=Yu([Pu,Ru("fontSize"),Su("backgroundColor")])(Hu);function zu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Au=wp.i18n.__,Bu=(wp.blocks.registerBlockType,wp.compose.compose),Nu=wp.element,Fu=Nu.Component,Wu=Nu.Fragment,Iu=wp.blockEditor,Uu=Iu.RichText,Vu=Iu.withFontSizes,Ju=Iu.withColors,Gu=(Iu.InnerBlocks,Iu.URLInput),qu=wp.components,$u=qu.Button,Ku=qu.Dashicon,Zu=qu.Icon,Qu=function(e){m()(n,e);var t=zu(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.subtitle,t.paddingTop),r=t.paddingRight,a=t.paddingBottom,o=t.paddingLeft,i=t.buttonText,s=t.buttonUrl,l=t.buttonAlignment,c=t.buttonBackgroundColor,u=t.buttonTextColor,d=t.buttonSize,m=t.buttonShape,p=(t.buttonTarget,e.isSelected),_=(e.className,e.setAttributes),h=e.backgroundColor,g=b()({"gb-pricing-table-button":!0}),f={backgroundColor:h.color,paddingTop:n?n+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:a?a+"px":void 0,paddingLeft:o?o+"px":void 0};return[React.createElement(Wu,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(Ou,this.props),React.createElement("div",{className:g||void 0,style:f},React.createElement(bn,this.props,React.createElement(Uu,{tagName:"span",placeholder:Au("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:i,allowedFormats:[],className:b()("gb-button",m,d),style:{color:u,backgroundColor:c},onChange:function(e){return _({buttonText:e})}})),p&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(l),onSubmit:function(e){return e.preventDefault()},style:{textAlign:l}},React.createElement(Ku,{icon:"admin-links"}),React.createElement(Gu,{className:"button-url",value:s,onChange:function(e){return _({buttonUrl:e})}}),React.createElement($u,{label:Au("Apply","genesis-blocks"),type:"submit"},React.createElement(Zu,{icon:"editor-break"})))))]}}]),n}(Fu),Xu=Bu([Vu("fontSize"),Ju("backgroundColor",{textColor:"color"})])(Qu),ed=wp.i18n.__,td=wp.blocks.registerBlockType,nd=(wp.element.Component,wp.blockEditor),rd=nd.RichText,ad=(nd.getFontSizeClass,nd.FontSizePicker,nd.withFontSizes,nd.getColorClassName);td("genesis-blocks/gb-pricing-table-button",{title:ed("Product Button","genesis-blocks"),description:ed("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[ed("pricing table","genesis-blocks"),ed("subtitle","genesis-blocks"),ed("shop","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Xu,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,a=t.paddingTop,o=t.paddingRight,s=t.paddingBottom,l=t.paddingLeft,c=t.buttonText,u=t.buttonUrl,d=(t.buttonAlignment,t.buttonBackgroundColor),m=t.buttonTextColor,p=t.buttonSize,_=t.buttonShape,h=t.buttonTarget,g=ad("background-color",n),f=b()(i()({"has-background":n||r,"gb-pricing-table-button":!0},g,g)),y={backgroundColor:g?void 0:r,paddingTop:a?a+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return React.createElement("div",{className:f||void 0,style:y},React.createElement(bn,e,c&&React.createElement("a",{href:u,target:h?"_blank":null,rel:h?"noopener noreferrer":null,className:b()("gb-button",_,p),style:{color:m,backgroundColor:d}},React.createElement(rd.Content,{value:c}))))}});var od=wp.i18n.__,id=wp.element.Fragment,sd=wp.components.RangeControl;function ld(e){var t=e.marginTop,n=e.marginTopLabel,r=e.marginTopMin,a=e.marginTopMax,o=e.marginEnableTop,i=e.onChangeMarginTop,s=void 0===i?function(){}:i,l=e.marginRight,c=e.marginRightLabel,u=e.marginRightMin,d=e.marginRightMax,m=e.marginEnableRight,p=e.onChangeMarginRight,_=void 0===p?function(){}:p,h=e.marginBottom,g=e.marginBottomLabel,f=e.marginBottomMin,b=e.marginBottomMax,y=e.marginEnableBottom,k=e.onChangeMarginBottom,M=void 0===k?function(){}:k,v=e.marginLeft,L=e.marginLeftLabel,w=e.marginLeftMin,Y=e.marginLeftMax,T=e.marginEnableLeft,D=e.onChangeMarginLeft,R=void 0===D?function(){}:D,S=e.marginVertical,x=e.marginVerticalLabel,E=e.marginEnableVertical,C=e.marginVerticalMin,j=e.marginVerticalMax,P=e.onChangeMarginVertical,H=void 0===P?function(){}:P,O=e.marginHorizontal,z=e.marginHorizontalLabel,A=e.marginEnableHorizontal,B=e.marginHorizontalMin,N=e.marginHorizontalMax,F=e.onChangeMarginHorizontal,W=void 0===F?function(){}:F;return React.createElement(id,null,o&&React.createElement(sd,{label:n||od("Margin Top","genesis-blocks"),value:t,min:r,max:a,onChange:s}),m&&React.createElement(sd,{label:c||od("Margin Right","genesis-blocks"),value:l,min:u,max:d,onChange:_}),y&&React.createElement(sd,{label:g||od("Margin Bottom","genesis-blocks"),value:h,min:f,max:b,onChange:M}),T&&React.createElement(sd,{label:L||od("Margin Left","genesis-blocks"),value:v,min:w,max:Y,onChange:R}),E&&React.createElement(sd,{label:x||od("Margin Vertical","genesis-blocks"),value:S,min:C,max:j,onChange:H}),A&&React.createElement(sd,{label:z||od("Margin Horizontal","genesis-blocks"),value:O,min:B,max:N,onChange:W}))}function cd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var ud=wp.i18n.__,dd=wp.element.Component,md=wp.compose.compose,pd=wp.blockEditor,_d=pd.InspectorControls,hd=pd.withColors,gd=pd.ContrastChecker,fd=pd.PanelColorSettings,bd=wp.components,yd=bd.PanelBody,kd=bd.SelectControl,Md=bd.TextControl,vd=bd.FormToggle,Ld=(0,bd.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=n.buttonTextColor,s=e.querySelector('[contenteditable="true"]'),l=s?getComputedStyle(s):null;return{fallbackBackgroundColor:r||!l?void 0:l.backgroundColor,fallbackTextColor:a||!l?void 0:l.color,fallbackButtonBackgroundColor:o||!l?void 0:l.buttonBackgroundColor,fallbackButtonTextColor:i||!l?void 0:l.buttonTextColor}})),wd=function(e){m()(n,e);var t=cd(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"doubleOptInChange",value:function(e){this.props.doubleOptIn&&this.props.doubleOptIn(e.target.checked)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.backgroundColor,a=e.setBackgroundColor,o=e.fallbackBackgroundColor,i=e.textColor,s=e.fallbackTextColor,l=e.setTextColor,c=e.buttonBackgroundColor,u=e.fallbackButtonBackgroundColor,d=e.buttonTextColor,m=e.fallbackButtonTextColor,p=e.setButtonBackgroundColor,_=e.setButtonTextColor,h={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:ud("Select a list","genesis-blocks"),value:""}]}};return genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((function(e){return h.mailchimp.lists.push({label:e.name,value:e.id})})),React.createElement(_d,null,React.createElement(yd,{title:ud("Newsletter","genesis-blocks"),initialOpen:!t.mailingList},React.createElement(v,{id:"gb_newsletter_mailingList"},React.createElement(kd,{label:ud("Mailing List","genesis-blocks"),help:ud("The list people will be subscribed to.","genesis-blocks"),options:h.mailchimp.lists,value:t.mailingList,onChange:function(e){return n({mailingList:e})}})),React.createElement(v,{id:"gb_newsletter_successMessage"},React.createElement(Md,{type:"string",label:ud("Success Message","genesis-blocks"),help:ud("The message shown when people successfully subscribe.","genesis-blocks"),value:t.successMessage,onChange:function(e){return n({successMessage:e})}})),React.createElement(v,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(vd,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"gb-newsletter-double-opt-in-toggle",checked:t.doubleOptIn,onChange:function(e){return n({doubleOptIn:e.target.checked})}}),React.createElement("label",{className:"gb-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},ud("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},ud("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(yd,{title:ud("General","genesis-blocks"),initialOpen:!!t.mailingList},React.createElement(v,{id:"gb_newsletter_containerPadding"},React.createElement(Js,{paddingEnable:!0,paddingTitle:ud("Block Padding","genesis-blocks"),paddingHelp:ud("Adjust the padding applied to the inside of the block.","genesis-blocks"),padding:t.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:function(e){return n({containerPadding:e})}})),React.createElement(v,{id:"gb_newsletter_containerMargin"},React.createElement(ld,{marginEnableTop:!0,marginTopLabel:ud("Block Margin Top","genesis-blocks"),marginTop:t.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return n({containerMarginTop:e})},marginEnableBottom:!0,marginBottomLabel:ud("Block Margin Bottom","genesis-blocks"),marginBottom:t.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return n({containerMarginBottom:e})}})),React.createElement(dn,{enableButtonTarget:!1,buttonSize:t.buttonSize,onChangeButtonSize:function(e){return n({buttonSize:e})},buttonShape:t.buttonShape,onChangeButtonShape:function(e){return n({buttonShape:e})},enableButtonBackgroundColor:!1,enableButtonTextColor:!1})),React.createElement(v,{id:"gb_newsletter_colorOptions"},React.createElement(fd,{title:ud("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:r.color,onChange:a,label:ud("Block Background Color","genesis-blocks")},{value:i.color,onChange:l,label:ud("Block Text Color","genesis-blocks")},{value:c.color,onChange:p,label:ud("Button Background Color","genesis-blocks")},{value:d.color,onChange:_,label:ud("Button Text Color","genesis-blocks")}]},React.createElement(gd,{textColor:i.color,backgroundColor:r.color,fallbackTextColor:s,fallbackBackgroundColor:o}),React.createElement(gd,{textColor:d.color,backgroundColor:c.color,fallbackButtonTextColor:m,fallbackButtonBackgroundColor:u}),React.createElement(gd,{textColor:c.color,backgroundColor:r.color,fallbackButtonBackgroundColor:u,fallbackBackgroundColor:o}))))}}]),n}(dd),Yd=md([Ld,hd("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(wd);function Td(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Dd=wp.element.Component,Rd=(wp.blockEditor.getColorClassName,function(e){m()(n,e);var t=Td(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t,n,r=this.props,a=r.attributes,o=r.backgroundColor,s=r.textColor;return t=a.customBackgroundColor?"gb-has-custom-background-color":a.backgroundColor?"has-"+a.backgroundColor+"-background-color":null,n=a.customTextColor?"gb-has-custom-text-color":a.textColor?"has-"+a.textColor+"-color":null,React.createElement("div",{style:{backgroundColor:o.color,padding:a.containerPadding?a.containerPadding:void 0,marginTop:a.containerMarginTop?a.containerMarginTop:void 0,marginBottom:a.containerMarginBottom?a.containerMarginBottom:void 0,color:s.color},className:b()([this.props.className],(e={"gb-block-newsletter":!0,"gb-form-styles":!0,"has-background":a.backgroundColor||a.customBackgroundColor},i()(e,t,t),i()(e,n,n),e))},this.props.children)}}]),n}(Dd));function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ed(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Cd=wp.i18n.__,jd=wp.compose,Pd=jd.compose,Hd=jd.withInstanceId,Od=wp.blockEditor,zd=(Od.getColorClassName,Od.RichText),Ad=Od.withColors,Bd=wp.element,Nd=Bd.Fragment,Fd=Bd.Component,Wd=wp.components,Id=Wd.TextControl,Ud=(0,Wd.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.backgroundColor,a=n.textColor,o=n.buttonBackgroundColor,i=e.querySelector('[contenteditable="true"]'),s=i?getComputedStyle(i):null;return{fallbackBackgroundColor:r||!s?void 0:s.backgroundColor,fallbackTextColor:a||!s?void 0:s.color,fallbackButtonBackgroundColor:o||!s?void 0:s.buttonBackgroundColor}})),Vd=function(e){m()(n,e);var t=Ed(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).props.setAttributes({instanceId:e.props.instanceId}),e}return u()(n,[{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.attributes,i=r.isSelected,s=r.setAttributes,l=r.buttonBackgroundColor,c=r.buttonTextColor,u=genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;return e=o.customButtonBackgroundColor?"gb-has-custom-background-color":o.buttonBackgroundColor?"has-"+o.buttonBackgroundColor+"-background-color":null,t=o.customButtonTextColor?"gb-has-custom-text-color":o.buttonTextColor?"has-"+o.buttonTextColor+"-color":null,[React.createElement(Yd,a()({key:"gb-newsletter-inspector-"+this.props.clientId},xd({setAttributes:s},this.props))),React.createElement(Rd,a()({key:"gb-newsletter-container-"+this.props.clientId},this.props),!u&&React.createElement(Nd,null,React.createElement("div",{className:"gb-newsletter-notice"},Cd("You must define your newsletter provider API keys to use this block.","genesis-blocks"),React.createElement("p",null,React.createElement("a",{href:genesis_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},Cd("Configure your settings","genesis-blocks"))))),u&&React.createElement(Nd,null,React.createElement(zd,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:o.emailInputLabel,onChange:function(e){return n.props.setAttributes({emailInputLabel:e})}}),React.createElement(Id,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:b()("gb-block-button")},React.createElement(bn,this.props,React.createElement(zd,{tagName:"span",placeholder:Cd("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o.buttonText,allowedFormats:[],className:b()("gb-button",o.buttonClass,o.buttonShape,o.buttonSize,e,t,{"has-background":o.buttonBackgroundColor||o.customButtonBackgroundColor,"has-text-color":o.buttonTextColor||o.customButtonTextColor}),style:{backgroundColor:l.color,color:c.color},onChange:function(e){return n.props.setAttributes({buttonText:e})}})),i&&React.createElement("form",{key:"form-link",className:"blocks-button__inline-link gb-button-".concat(o.buttonAlignment),onSubmit:function(e){return e.preventDefault()},style:{textAlign:o.buttonAlignment}}))))]}}]),n}(Fd),Jd=Pd([Ud,Ad("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(Hd(Vd)),Gd=(n(353),n(354),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-newsletter",{title:Gd("Email newsletter","genesis-blocks"),description:Gd("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[Gd("Mailchimp","genesis-blocks"),Gd("Subscribe","genesis-blocks"),Gd("Newsletter","genesis-blocks")],edit:Jd,gb_settings_data:{gb_newsletter_mailingList:{title:Gd("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:Gd("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:Gd("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:Gd("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:Gd("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:Gd("Color Options","genesis-blocks")}},save:function(){return null}});var qd=n(32),$d=n.n(qd);var Kd=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"gb-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"gb-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"gb-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"gb-background-"+e.backgroundRepeat:null,e.hasParallax?"gb-has-parallax":null];var t},Zd=function(e){return{backgroundImage:e.backgroundImgURL?"url(".concat(e.backgroundImgURL,")"):void 0,backgroundPosition:e.focalPoint?"".concat(100*e.focalPoint.x,"% ").concat(100*e.focalPoint.y,"%"):void 0}};function Qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var em=function(e){m()(n,e);var t=Xd(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,t=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null;var r,a,o=b()([this.props.className,"gb-layout-columns-"+n.columns,n.layout].concat($d()(Kd(n)),[e,t,n.columnMaxWidth&&n.centerColumns?"gb-columns-center":null]),i()({},"align"+n.align,n.align));r=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},a=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qd(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null},Zd(n));return React.createElement("div",{className:o||void 0,style:Object.assign(r,a,s)},this.props.children)}}]),n}(wp.element.Component),tm={};tm.oneEqual=React.createElement("svg",{className:"dashicon",height:"26",viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),tm.twoEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),tm.twoLeftWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),tm.twoRightWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),tm.threeEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),tm.threeWideCenter=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),tm.threeWideLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),tm.threeWideRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),tm.fourEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),tm.fourLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),tm.fourRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),tm.fiveEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),tm.sixEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),tm.blockIcon=React.createElement("svg",{viewBox:"0 0 60 34",height:"34",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));var nm=tm,rm=wp.i18n.__,am={1:[{name:rm("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:nm.oneEqual}],2:[{name:rm("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:nm.twoEqual},{name:rm("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:nm.twoLeftWide},{name:rm("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:nm.twoRightWide}],3:[{name:rm("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:nm.threeEqual},{name:rm("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:nm.threeWideCenter},{name:rm("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:nm.threeWideLeft},{name:rm("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:nm.threeWideRight}],4:[{name:rm("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:nm.fourEqual},{name:rm("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:nm.fourLeft},{name:rm("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:nm.fourRight}],5:[{name:rm("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:nm.fiveEqual}],6:[{name:rm("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:nm.sixEqual}]};function om(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function im(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var sm=wp.i18n.__,lm=wp.element,cm=lm.Fragment,um=lm.Component,dm=wp.components,mm=dm.PanelBody,pm=dm.RangeControl,_m=dm.Button,hm=dm.ButtonGroup,gm=dm.FocalPointPicker,fm=dm.Icon,bm=dm.ToggleControl,ym=dm.SelectControl,km=wp.blockEditor,Mm=km.MediaUpload,vm=km.MediaUploadCheck,Lm=function(e){m()(n,e);var t=im(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.setAttributes,o=[{value:"no-repeat",label:sm("No Repeat","genesis-blocks")},{value:"repeat",label:sm("Repeat","genesis-blocks")},{value:"repeat-x",label:sm("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:sm("Repeat Vertically","genesis-blocks")}],s=[{value:"auto",label:sm("Auto","genesis-blocks")},{value:"cover",label:sm("Cover","genesis-blocks")},{value:"contain",label:sm("Contain","genesis-blocks")}];return"cover"===r.backgroundSize&&(e=sm("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","genesis-blocks")),"contain"===r.backgroundSize&&(e=sm("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===r.backgroundSize&&(e=sm("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(cm,null,React.createElement(mm,{title:sm("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(vm,null,React.createElement(Mm,{onSelect:function(e){a({backgroundImgURL:e.url})},type:"image",value:r.backgroundImgURL,render:function(e){var t=e.open;return React.createElement("div",null,React.createElement(hm,{className:"gb-background-button-group"},React.createElement(_m,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:sm("Edit image","genesis-blocks"),onClick:t},React.createElement(fm,{icon:"format-image"}),sm("Select Image","genesis-blocks")),r.backgroundImgURL&&React.createElement(_m,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:sm("Remove Image","genesis-blocks"),onClick:function(){return a({backgroundImgURL:null})}},React.createElement(fm,{icon:"dismiss"}),sm("Remove","genesis-blocks"))))}})),r.backgroundImgURL&&React.createElement(cm,null,React.createElement(gm,{label:sm("Focal Point","genesis-blocks"),url:r.backgroundImgURL,value:r.focalPoint,onChange:function(e){return a({focalPoint:e})}}),React.createElement(pm,{label:sm("Image Opacity","genesis-blocks"),value:r.backgroundDimRatio,onChange:function(e){return t.props.setAttributes({backgroundDimRatio:e})},min:0,max:100,step:10}),React.createElement(bm,{label:sm("Fixed Background","genesis-blocks"),checked:r.hasParallax,onChange:function(){a(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?om(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasParallax:!r.hasParallax},r.hasParallax?{}:{focalPoint:void 0}))}}),React.createElement(ym,{className:"gb-inspector-help-text",label:sm("Image Display","genesis-blocks"),value:r.backgroundSize,help:e,options:s,onChange:function(e){return t.props.setAttributes({backgroundSize:e})}}),"cover"!==r.backgroundSize&&React.createElement(ym,{label:sm("Image Repeat","genesis-blocks"),value:r.backgroundRepeat,options:o,onChange:function(e){return t.props.setAttributes({backgroundRepeat:e})}}))))}}]),n}(um);function wm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Ym=wp.i18n.__,Tm=wp.element,Dm=Tm.Component,Rm=Tm.Fragment,Sm=wp.blockEditor,xm=Sm.InspectorControls,Em=Sm.PanelColorSettings,Cm=Sm.ContrastChecker,jm=wp.components,Pm=jm.PanelBody,Hm=jm.RangeControl,Om=jm.ButtonGroup,zm=jm.Button,Am=jm.Tooltip,Bm=jm.ToggleControl,Nm=jm.SelectControl,Fm=function(e){m()(n,e);var t=wm(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,a=t.backgroundColor,o=t.setBackgroundColor,i=t.textColor,s=t.setTextColor,l=1;n.columns&&(l=parseInt(n.columns.toString().split("-")));var c=[{value:"px",label:Ym("Pixel (px)","genesis-blocks")},{value:"%",label:Ym("Percent (%)","genesis-blocks")},{value:"em",label:Ym("Em (em)","genesis-blocks")}];return React.createElement(xm,{key:"inspector"},n.layout&&React.createElement(Pm,{title:Ym("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(v,{id:"gb_column_columns"},React.createElement(Hm,{label:Ym("Column Count","genesis-blocks"),help:Ym("Note: Changing the column count after you've added content to the column can cause loss of content.","genesis-blocks"),value:n.columns,onChange:function(t){return e.props.setAttributes({columns:t,layout:"gb-"+t+"-col-equal"})},min:1,max:6,step:1})),React.createElement("hr",null),(2===n.columns||3===n.columns||4===n.columns)&&React.createElement(Rm,null,React.createElement(v,{id:"gb_column_columnLayouts"},React.createElement("p",null,Ym("Column Layout","genesis-blocks")),React.createElement(Om,{"aria-label":Ym("Column Layout","genesis-blocks")},Lo()(am[l],(function(t){var n=t.name,a=t.key,o=t.icon;t.col;return React.createElement(Am,{text:n,key:a},React.createElement(zm,{key:a,className:"gb-column-selector-button",isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o))}))),React.createElement("p",null,React.createElement("i",null,Ym("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(v,{id:"gb_column_columnsGap"},React.createElement(Hm,{label:Ym("Column Gap","genesis-blocks"),help:Ym("Adjust the spacing between columns.","genesis-blocks"),value:n.columnsGap,onChange:function(t){return e.props.setAttributes({columnsGap:t})},min:0,max:10,step:1})),React.createElement("hr",null),React.createElement(v,{id:"gb_column_columnMaxWidth"},React.createElement(Hm,{label:Ym("Column Inner Max Width (px)"),help:Ym("Adjust the width of the content inside the container wrapper.","genesis-blocks"),value:n.columnMaxWidth,onChange:function(t){return e.props.setAttributes({columnMaxWidth:t})},min:0,max:2e3,step:1})),0<n.columnMaxWidth&&React.createElement(v,{id:"gb_column_centerColumns"},React.createElement(Bm,{label:Ym("Center Columns In Container","genesis-blocks"),help:Ym("Center the columns in the container when max-width is used.","genesis-blocks"),checked:n.centerColumns,onChange:function(){return e.props.setAttributes({centerColumns:!n.centerColumns})}})),React.createElement("hr",null),React.createElement(v,{id:"gb_column_responsiveToggle"},React.createElement(Bm,{label:Ym("Responsive Columns","genesis-blocks"),help:Ym("Columns will be adjusted to fit on tablets and mobile devices.","genesis-blocks"),checked:n.responsiveToggle,onChange:function(){return e.props.setAttributes({responsiveToggle:!n.responsiveToggle})}}))),React.createElement(v,{id:"gb_column_marginPadding"},React.createElement(Pm,{title:Ym("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Nm,{label:Ym("Margin Unit","genesis-blocks"),help:Ym("Choose between pixel, percent, or em units.","genesis-blocks"),options:c,value:n.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Bm,{label:Ym("Sync Margin","genesis-blocks"),help:Ym("Top and bottom margins will have the same value.","genesis-blocks"),checked:n.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!n.marginSync})}}),n.marginSync?React.createElement(ld,{marginEnableVertical:!0,marginVerticalLabel:Ym("Margin Top/Bottom","genesis-blocks"),marginVertical:n.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return r({margin:e})}}):React.createElement(ld,{marginEnableTop:!0,marginTop:n.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return r({marginTop:e})},marginEnableBottom:!0,marginBottom:n.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return r({marginBottom:e})}}),React.createElement("hr",null),React.createElement(Nm,{label:Ym("Padding Unit","genesis-blocks"),help:Ym("Choose between pixel, percent, or em units.","genesis-blocks"),options:c,value:n.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Bm,{label:Ym("Sync Padding","genesis-blocks"),help:Ym("Padding on all sides will have the same value.","genesis-blocks"),checked:n.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!n.paddingSync})}}),n.paddingSync?React.createElement(Js,{paddingEnable:!0,padding:n.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return r({padding:e})}}):React.createElement(Js,{paddingEnableTop:!0,paddingTop:n.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return r({paddingTop:e})},paddingEnableRight:!0,paddingRight:n.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return r({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:n.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return r({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:n.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return r({paddingLeft:e})}}))),React.createElement(v,{id:"gb_column_colorSettings"},React.createElement(Em,{title:Ym("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:a.color,onChange:o,label:Ym("Background Color","genesis-blocks")},{value:i.color,onChange:s,label:Ym("Text Color","genesis-blocks")}]},React.createElement(Cm,{textColor:i.color,backgroundColor:a.color}))),React.createElement(v,{id:"gb_column_backgroundImagePanel"},React.createElement(Lm,this.props)))}}]),n}(Dm);function Wm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Im=wp.i18n.__,Um=wp.element,Vm=Um.Component,Jm=Um.Fragment,Gm=wp.compose.compose,qm=wp.data.dispatch,$m=wp.blockEditor,Km=$m.BlockControls,Zm=$m.BlockAlignmentToolbar,Qm=$m.InnerBlocks,Xm=$m.withColors,ep=wp.components,tp=ep.Placeholder,np=ep.ButtonGroup,rp=ep.Tooltip,ap=ep.Button,op=["genesis-blocks/gb-column"],ip=rs()((function(e){return os()(e,(function(){return["genesis-blocks/gb-column"]}))})),sp=function(e){m()(n,e);var t=Wm(n);function n(e){var r;return l()(this,n),(r=t.apply(this,arguments)).state={selectLayout:!0},r}return u()(n,[{key:"componentDidUpdate",value:function(e){this.props.attributes.columns!==e.attributes.columns&&qm("core/block-editor").synchronizeTemplate()}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=1;n.columns&&(o=parseInt(n.columns.toString().split("-")));var i=[{name:Im("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:nm.oneEqual},{name:Im("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:nm.twoEqual},{name:Im("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:nm.threeEqual},{name:Im("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:nm.fourEqual},{name:Im("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:nm.fiveEqual},{name:Im("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:nm.sixEqual}];return!n.layout&&this.state.selectLayout?[React.createElement(tp,{key:"placeholder",icon:"editor-table",label:n.columns?Im("Column Layout","genesis-blocks"):Im("Column Number","genesis-blocks"),instructions:n.columns?Im("Select a layout for this column.","genesis-blocks"):Im("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},n.columns?React.createElement(Jm,null,React.createElement(np,{"aria-label":Im("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},Lo()(am[o],(function(t){var n=t.name,a=t.key,o=t.icon;return React.createElement(rp,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(ap,{key:a,className:b()("gb-column-selector-button",a),isSmall:!0,onClick:function(){r({layout:a}),e.setState({selectLayout:!1})}},o)))}))),React.createElement(ap,{className:"gb-column-selector-button-back",onClick:function(){r({columns:null}),e.setState({selectLayout:!0})}},Im("Return to Column Selection","genesis-blocks"))):React.createElement(np,{"aria-label":Im("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},Lo()(i,(function(t){var n=t.name,a=t.key,o=t.icon,i=t.columns;return React.createElement(rp,{text:n,key:a},React.createElement("div",{className:"gb-column-selector"},React.createElement(ap,{className:b()("gb-column-selector-button","gb-select-"+a),isSmall:!0,onClick:function(){r({columns:i,layout:1===i||5===i||6===i?a:null}),1===i&&e.setState({selectLayout:!1})}},o)))}))))]:[React.createElement(Km,{key:"controls"},React.createElement(Zm,{value:n.align,onChange:function(e){return r({align:e})},controls:["center","wide","full"]})),React.createElement(Fm,a()({},this.props,{key:"inspector"})),React.createElement(em,a()({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),React.createElement("div",{className:b()("gb-layout-column-wrap-admin","gb-block-layout-column-gap-"+n.columnsGap,n.responsiveToggle?"gb-is-responsive-column":null),style:{maxWidth:n.columnMaxWidth?n.columnMaxWidth:null}},React.createElement(Qm,{template:ip(n.columns),templateLock:"all",allowedBlocks:op})))]}}]),n}(Vm),lp=Gm([Xm("backgroundColor",{textColor:"color"})])(sp);function cp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var up=wp.element.Component,dp=wp.blockEditor.InnerBlocks,mp=function(e){m()(n,e);var t=cp(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes,t=b()(["gb-layout-column-wrap","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null]);return React.createElement(em,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(dp.Content,null)))}}]),n}(up),pp={backgroundImgURL:{type:"string"},backgroundDimRatio:{type:"number",default:100},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundSize:{type:"string",default:"cover"},hasParallax:{type:"boolean",default:!1},focalPoint:{type:"object"}};function _p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_p(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gp=wp.i18n.__;function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}(0,wp.blocks.registerBlockType)("genesis-blocks/gb-columns",{title:gp("Advanced Columns","genesis-blocks"),description:gp("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[gp("column","genesis-blocks"),gp("grid","genesis-blocks"),gp("row","genesis-blocks")],attributes:hp(hp({},pp),{},{columns:{type:"number"},layout:{type:"string"},columnsGap:{type:"number",default:2},align:{type:"string"},responsiveToggle:{type:"boolean",default:!0},marginSync:{type:"boolean",default:!1},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},marginUnit:{type:"string",default:"px"},paddingSync:{type:"boolean",default:!1},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingUnit:{type:"string",default:"px"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},columnMaxWidth:{type:"number"},centerColumns:{type:"boolean",default:!0}}),gb_settings_data:{gb_column_columns:{title:gp("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:gp("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:gp("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:gp("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:gp("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:gp("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:gp("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:gp("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:gp("Background Settings","genesis-blocks")}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:function(e){return React.createElement(lp,e)},save:function(e){return React.createElement(mp,e)}});var bp=wp.i18n.__,yp=wp.element.Component,kp=wp.compose.compose,Mp=wp.blockEditor,vp=Mp.InspectorControls,Lp=Mp.PanelColorSettings,Yp=Mp.withColors,Tp=Mp.ContrastChecker,Dp=wp.components,Rp=Dp.PanelBody,Sp=Dp.ToggleControl,xp=Dp.SelectControl,Ep=function(e){m()(n,e);var t=fp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.backgroundColor,r=t.setBackgroundColor,a=t.textColor,o=t.setTextColor,i=t.attributes,s=t.setAttributes,l=[{value:"px",label:bp("Pixel (px)","genesis-blocks")},{value:"%",label:bp("Percent (%)","genesis-blocks")},{value:"em",label:bp("Em (em)","genesis-blocks")}];return React.createElement(vp,{key:"inspector"},React.createElement(v,{id:"gb_column_inner_marginPadding"},React.createElement(Rp,{title:bp("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(xp,{label:bp("Margin Unit","genesis-blocks"),help:bp("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.marginUnit,onChange:function(t){return e.props.setAttributes({marginUnit:t})}}),React.createElement(Sp,{label:bp("Sync Margin","genesis-blocks"),help:bp("Top and bottom margins will have the same value.","genesis-blocks"),checked:i.marginSync,onChange:function(){return e.props.setAttributes({marginSync:!i.marginSync})}}),i.marginSync?React.createElement(ld,{marginEnableVertical:!0,marginVerticalLabel:bp("Margin Top/Bottom","genesis-blocks"),marginVertical:i.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:function(e){return s({margin:e})}}):React.createElement(ld,{marginEnableTop:!0,marginTop:i.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:function(e){return s({marginTop:e})},marginEnableBottom:!0,marginBottom:i.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:function(e){return s({marginBottom:e})}}),React.createElement("hr",null),React.createElement(xp,{label:bp("Padding Unit","genesis-blocks"),help:bp("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:i.paddingUnit,onChange:function(t){return e.props.setAttributes({paddingUnit:t})}}),React.createElement(Sp,{label:bp("Sync Padding","genesis-blocks"),help:bp("Padding on all sides will have the same value.","genesis-blocks"),checked:i.paddingSync,onChange:function(){return e.props.setAttributes({paddingSync:!i.paddingSync})}}),i.paddingSync?React.createElement(Js,{paddingEnable:!0,padding:i.padding,paddingMin:"0",paddingMax:"200",onChangePadding:function(e){return s({padding:e})}}):React.createElement(Js,{paddingEnableTop:!0,paddingTop:i.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:function(e){return s({paddingTop:e})},paddingEnableRight:!0,paddingRight:i.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:function(e){return s({paddingRight:e})},paddingEnableBottom:!0,paddingBottom:i.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:function(e){return s({paddingBottom:e})},paddingEnableLeft:!0,paddingLeft:i.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:function(e){return s({paddingLeft:e})}}))),React.createElement(v,{id:"gb_column_inner_colorSettings"},React.createElement(Lp,{title:bp("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:bp("Background Color","genesis-blocks")},{value:a.color,onChange:o,label:bp("Text Color","genesis-blocks")}]},React.createElement(Tp,{textColor:a.color,backgroundColor:n.color}))),React.createElement(v,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Lm,this.props)))}}]),n}(yp),Cp=kp([Yp("backgroundColor",{textColor:"color"})])(Ep);function jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Hp=function(e){m()(n,e);var t=Pp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jp(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null},Zd(n));return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()(this.props.className,"gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b.a.apply(void 0,["gb-block-layout-column-inner",r,a].concat($d()(Kd(n)))),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function Op(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var zp=wp.i18n.__,Ap=wp.compose.compose,Bp=wp.element.Component,Np=wp.components.ToolbarGroup,Fp=wp.blockEditor,Wp=Fp.AlignmentToolbar,Ip=Fp.BlockControls,Up=Fp.InnerBlocks,Vp=Fp.withColors,Jp=function(e){m()(n,e);var t=Op(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=[{icon:"arrow-up-alt2",title:zp("Vertical Align Top","genesis-blocks"),isActive:"top"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"top"})}},{icon:"minus",title:zp("Vertical Align Middle","genesis-blocks"),isActive:"center"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"center"})}},{icon:"arrow-down-alt2",title:zp("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===t.columnVerticalAlignment,onClick:function(){return n({columnVerticalAlignment:"bottom"})}}];return[React.createElement(Ip,{key:"controls"},React.createElement(Wp,{value:t.textAlign,onChange:function(e){n({textAlign:e})}}),React.createElement(Np,{controls:r})),React.createElement(Cp,a()({},this.props,{key:"inspector"})),React.createElement(Hp,a()({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(Up,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}]),n}(Bp),Gp=Ap([Vp("backgroundColor",{textColor:"color"})])(Jp);function qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var $p=wp.element.Component,Kp=wp.blockEditor.InnerBlocks,Zp=function(e){m()(n,e);var t=qp(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(Hp,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Kp.Content,null))}}]),n}($p);function Qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Xp=function(e){m()(n,e);var t=Qp(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e,t,n=this.props.attributes;e=n.marginSync?{marginTop:0<n.margin?n.margin+n.marginUnit:null,marginBottom:0<n.margin?n.margin+n.marginUnit:null}:{marginTop:0<n.marginTop?n.marginTop+n.marginUnit:null,marginBottom:0<n.marginBottom?n.marginBottom+n.marginUnit:null},t=n.paddingSync?{padding:0<n.padding?n.padding+n.paddingUnit:null}:{paddingTop:0<n.paddingTop?n.paddingTop+n.paddingUnit:null,paddingRight:0<n.paddingRight?n.paddingRight+n.paddingUnit:null,paddingBottom:0<n.paddingBottom?n.paddingBottom+n.paddingUnit:null,paddingLeft:0<n.paddingLeft?n.paddingLeft+n.paddingUnit:null};var r,a,o={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:n.textAlign?n.textAlign:null};return r=n.customBackgroundColor?"gb-has-custom-background-color":n.backgroundColor?"has-"+n.backgroundColor+"-background-color":null,a=n.customTextColor?"gb-has-custom-text-color":n.textColor?"has-"+n.textColor+"-color":null,React.createElement("div",{className:b()("gb-block-layout-column",n.columnVerticalAlignment?"gb-is-vertically-aligned-"+n.columnVerticalAlignment:null)},React.createElement("div",{className:b()("gb-block-layout-column-inner",r,a),style:Object.assign(e,t,o)},this.props.children))}}]),n}(wp.element.Component);function e_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var t_=wp.element.Component,n_=wp.blockEditor.InnerBlocks,r_=function(e){m()(n,e);var t=e_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props.attributes;return React.createElement(Xp,a()({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(n_.Content,null))}}]),n}(t_),a_=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},save:function(e){return React.createElement(r_,e)}}];n(355),n(356);function o_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o_(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s_=wp.i18n.__;(0,wp.blocks.registerBlockType)("genesis-blocks/gb-column",{title:s_("Column","genesis-blocks"),description:s_("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[s_("column","genesis-blocks"),s_("layout","genesis-blocks"),s_("row","genesis-blocks")],attributes:i_(i_({},pp),{},{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}}),gb_settings_data:{gb_column_inner_marginPadding:{title:s_("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:s_("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:s_("Background Image","genesis-blocks")}},edit:function(e){return React.createElement(Gp,e)},save:function(e){return React.createElement(Zp,e)},deprecated:a_});var l_=wp.compose.createHigherOrderComponent((function(e){return function(t){return"genesis-blocks/gb-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?React.createElement(e,a()({},t,{className:"gb-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):React.createElement(e,t)}}),"withClientIdClassName");function c_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",l_);var u_=wp.i18n.__,d_=wp.element,m_=d_.Component,p_=d_.Fragment,__=wp.components,h_=__.Button,g_=__.Dashicon,f_=__.Tooltip,b_=window.GenesisAnalytics.GAClient,y_=function(e){m()(n,e);var t=c_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"addDefaultSrc",value:function(e){e.target.src=genesis_blocks_globals.pattern_fallback_image}},{key:"render",value:function(){var e=this;return React.createElement(p_,null,React.createElement("div",{key:"gb-layout-design-"+this.props.itemKey,className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(h_,{key:this.props.itemKey,className:"gb-layout-insert-button",isSmall:!0,onClick:function(){b_.send("Select ".concat(e.props.type),{event_category:"Layout Modal",event_label:e.props.name}),e.props.import(e.props.content,e.props.clientId)}},React.createElement("img",{src:this.props.image?this.props.image:genesis_blocks_globals.pattern_fallback_image,alt:this.props.name,onError:this.addDefaultSrc})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},this.props.name,React.createElement(f_,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?u_("Remove from Favorites","genesis-blocks"):u_("Add to Favorites","genesis-blocks")},React.createElement(h_,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:function(){e.props.context.toggleFavorite(e.props.itemKey)}},React.createElement(g_,{icon:"heart",className:b()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}]),n}(m_);function 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 _()(this,n)}}var M_=wp.i18n.__,v_=wp.url.addQueryArgs,L_=wp.element,w_=L_.Component,Y_=L_.Fragment,T_=function(e){m()(n,e);var t=k_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this,t=this.props.itemKey.match(/\d+/g)[0];return React.createElement(Y_,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:v_("post.php",{post:t,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},M_("Edit","genesis-blocks"))))))}}]),n}(w_),D_=wp.blocks.rawHandler;function R_(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,D_({HTML:e,mode:"BLOCKS"}))}var S_=wp.element.useState;wp.i18n.__;var x_=wp.components.Button,E_=window.GenesisAnalytics.GAClient;function C_(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(x_,{className:"gb-layout-insert-button gb-layout-collection-button",isSmall:!0,onClick:function(){e.collectionsView.setCurrentView("collection"),e.setCurrentCollection(e.collectionSlug),E_.send("Select Collection",{event_category:"Layout Modal",event_label:e.collectionSlug})}},React.createElement("div",{className:"gb-layout-collection-cover"},React.createElement("img",{src:e.context.collections[e.collectionSlug].thumbnail?e.context.collections[e.collectionSlug].thumbnail:genesis_blocks_globals.pattern_fallback_image,alt:e.context.collections[e.collectionSlug].label,onError:function(e){e.target.src=genesis_blocks_globals.pattern_fallback_image}})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},React.createElement("span",{className:"gb-layout-collection-label"},e.context.collections[e.collectionSlug].label))))))))}var j_=wp.data,P_=j_.useDispatch,H_=j_.useSelect,O_=wp.i18n.__,z_=wp.components.ButtonGroup;function A_(e){var t,n,r,o=H_((function(e){return e("core/block-editor").getSettings()})).currentCollection,i=(t=S_({view:o?"collection":"collections"}.view),{currentView:(n=fo()(t,2))[0],setCurrentView:n[1]}),s=P_("core/block-editor").updateSettings,l=function(e){return s({currentCollection:e})};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")&&o===a.collection.slug&&n.push(React.createElement(y_,{key:a.key,itemKey:a.key,name:a.name,image:a.image,import:R_,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?O_("Page Layouts","genesis-blocks"):"sections"===t?O_("Page Sections","genesis-blocks"):void 0),React.createElement(z_,{className:"gb-layout-choices","aria-label":O_("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"!==i.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:function(){i.setCurrentView("collections"),i.setCurrentCollection(null)}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),O_("View All Collections ","genesis-blocks"))),"collections"===i.currentView?React.createElement("h2",{className:"gb-collection-title"},O_("Collections ","genesis-blocks")):"collection"===i.currentView?React.createElement("h2",{className:"gb-collection-title"},O_("Browsing ","genesis-blocks")+(null===(r=e.context.collections[o])||void 0===r?void 0:r.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"}),O_("Learn about Collections","genesis-blocks"))),React.createElement("div",{className:"gb-collections-body"},function(t){if("collections"!==i.currentView)return"";var n=[];for(var r in t)n.push(React.createElement(C_,a()({key:r,collectionSlug:r,collectionsView:i,setCurrentCollection:l},e)));return React.createElement(z_,{className:"gb-layout-choices","aria-label":O_("Collections Available","genesis-blocks")},n)}(e.context.collections),"collection"!==i.currentView?"":React.createElement(React.Fragment,null,c("sections"),c("layouts"))))}function B_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var N_=wp.compose.compose,F_=wp.blocks.rawHandler,W_=wp.data,I_=W_.withSelect,U_=W_.withDispatch,V_=wp.element,J_=V_.Component,G_=V_.Fragment,q_=function(e){m()(n,e);var t=B_(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"layoutTabContent",value:function(){return"gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(T_,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(A_,this.props):React.createElement(y_,this.props)}},{key:"render",value:function(){return React.createElement(G_,null,this.layoutTabContent())}}]),n}(J_),$_=N_(I_((function(e,t){var n,r=t.clientId,a=e("core/block-editor").getBlock;return n=!e("core/editor")||(n=e("core/editor").canUserUseUnfilteredHTML)(),{block:a(r),canUserUseUnfilteredHTML:n}})),U_((function(e,t){var n=t.block,r=t.canUserUseUnfilteredHTML;return{import:function(t){return e("core/block-editor").replaceBlocks(n.clientId,F_({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:r}))}}})))(q_),K_=n(16),Z_=n.n(K_),Q_=n(34),X_=n.n(Q_),eh=n(42),th=n.n(eh);function nh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var rh=wp.apiFetch,ah=window.GenesisAnalytics.GAClient,oh=Object(Kn.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),ih=function(e){m()(r,e);var t,n=nh(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()(th()(e),"state",{favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""}),e}return u()(r,[{key:"getFavoriteKeys",value:function(){return rh({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 rh({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 rh({path:"/genesisblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return ah.send("Add Favorite",{event_category:"Layout Modal"}),e})).catch((function(e){return console.error(e)}))}},{key:"removeFavorite",value:function(e){return rh({path:"/genesisblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).then((function(e){return ah.send("Remove Favorite",{event_category:"Layout Modal"}),e})).catch((function(e){return console.error(e)}))}},{key:"componentDidMount",value:(t=X_()(Z_.a.mark((function e(){var t,n=this;return Z_.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=X_()(Z_.a.mark((function e(r){var a,o,i,s,l;return Z_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],o=[],i=[],s=[],l=[],Object.values(r).forEach((function(e){"layout"===e.type&&a.push(e),"section"===e.type&&o.push(e),"wp_block"===e.type&&i.push(e),e.hasOwnProperty("collection")&&(l.hasOwnProperty(e.collection.slug)||(l[e.collection.slug]=[],e.collection.image=e.image,l[e.collection.slug]=e.collection)),t.includes(e.key)&&s.push(e)})),n.setState({all:r,layouts:a,sections:o,favorites:s,favoriteKeys:t,reusableBlocks:i,collections:l});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e,t=this;return this.state.all?Zn.a.createElement(oh.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=X_()(Z_.a.mark((function e(n){var r,a;return Z_.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFavoriteKeys();case 2:if(!(r=e.sent).includes(n)){e.next=9;break}return e.next=6,t.removeFavorite(n);case 6:r=e.sent,e.next=12;break;case 9:return e.next=11,t.addFavorite(n);case 11:r=e.sent;case 12:return e.next=14,t.getFavorites();case 14:return a=e.sent,t.setState({favorites:a,favoriteKeys:r}),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}},this.props.children):null}}]),r}(Kn.Component);function sh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var lh=wp.i18n.__,ch=wp.url.addQueryArgs,uh=wp.element,dh=uh.Component,mh=uh.Fragment,ph=wp.components,_h=ph.ButtonGroup,hh=ph.TextControl,gh=ph.SelectControl,fh=window.GenesisAnalytics,bh=fh.debounce,yh=fh.GAClient,kh=bh(yh.send.bind(yh),500),Mh=bh(yh.send.bind(yh),500),vh=function(e){m()(n,e);var t=sh(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).state={category:"all",search:void 0,activeView:"grid"},e}return u()(n,[{key:"getLayoutArray",value:function(){var e=[];switch(this.props.currentTab){case"gb-layout-tab-layouts":e=this.props.context.layouts;break;case"gb-layout-tab-sections":e=this.props.context.sections;break;case"gb-layout-tab-favorites":e=this.props.context.favorites;break;case"gb-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks;break;case"gb-layout-tab-collections":e=this.props.context.collections}return e}},{key:"render",value:function(){var e=this,t=this.getLayoutArray(),n=["all"];if("gb-layout-tab-collections"!==this.props.currentTab)for(var r=0;r<t.length;r++)for(var o=0;o<t[r].category.length;o++)n.includes(t[r].category[o])||n.push(t[r].category[o]);var i=n.map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}})),s=this.props.data;return"gb-layout-tab-collections"===this.props.currentTab?React.createElement(A_,a()({key:this.props.data.key},this.props)):React.createElement(mh,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(mh,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(gh,{key:"layout-library-select-categories-"+this.props.clientId,label:lh("Layout Categories","genesis-blocks"),value:this.state.category,options:i,onChange:function(t){kh("Select Category",{event_category:"Layout Modal",event_label:t}),e.setState({category:t})}}),React.createElement(hh,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:lh("Search Layouts","genesis-blocks"),onChange:function(t){t.length&&Mh("Search",{event_category:"Layout Modal",event_label:t}),e.setState({search:t})}}))):React.createElement(mh,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,lh("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:ch("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},lh("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(oh.Consumer,null,(function(t){return React.createElement(_h,{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":lh("Layout Options","genesis-blocks")},Lo()(s,(function(n){var r=n.name,a=n.key,o=n.image,i=n.content,s=n.category,l=n.keywords,c=n.type;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($_,{key:"layout-library-item-"+a,name:r,type:c,itemKey:a,image:o,content:i,context:t,clientId:e.props.clientId,currentTab:e.props.currentTab})})))})))}}]),n}(dh),Lh=wp.i18n.__,wh=wp.element,Yh=wh.Fragment,Th=wh.useState,Dh=wp.components,Rh=Dh.Button,Sh=Dh.Dashicon,xh=Dh.Modal,Eh=Dh.TabPanel,Ch=wp.data.useDispatch,jh=window.GenesisAnalytics,Ph=jh.debounce,Hh=jh.GAClient,Oh=Ph(Hh.send.bind(Hh),500);var zh=function(e){var t=Th("gb-layout-tab-collections"),n=fo()(t,2),r=n[0],a=n[1],o=Th(!0),i=fo()(o,2),s=i[0],l=i[1],c=Ch("core/block-editor").removeBlock,u=[];return Object.keys(e.context.collections).length>0&&u.push({name:"gb-layout-tab-collections",title:Lh("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),e.context.sections.length>0&&u.push({name:"gb-layout-tab-sections",title:Lh("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),e.context.layouts.length>0&&u.push({name:"gb-layout-tab-layouts",title:Lh("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),u.push({name:"gb-layout-tab-favorites",title:Lh("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),e.context.reusableBlocks.length&&u.push({name:"gb-layout-tab-reusable-blocks",title:Lh("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(Yh,{key:"layout-modal-fragment-"+e.clientId},React.createElement(Rh,{key:"layout-modal-library-button-"+e.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:function(){l(!0)}},Lh("Layout Library","genesis-blocks")),s?React.createElement(xh,{key:"layout-modal-modal-component-"+e.clientId,className:"gb-layout-modal",title:Lh("Layout Selector","genesis-blocks"),onRequestClose:function(){l(!1),a(null),c(e.clientId)}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement(Sh,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},Lh("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"},Lh("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(Sh,{icon:"admin-comments"})," ",Lh("Send Feedback","genesis-blocks"))),React.createElement(Eh,{key:"layout-modal-tabpanel-"+e.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:function(e){Oh("Select Tab",{event_category:"Layout Modal",event_label:e}),a(e)},tabs:u},(function(t){var n=Lh("Default tab content","genesis-blocks");if(t.name){if("gb-layout-tab-sections"===t.name)return[React.createElement(vh,{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(vh,{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(vh,{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(vh,{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(vh,{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 Ah(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _()(this,n)}}var Bh=wp.i18n.__,Nh=wp.components.Placeholder,Fh=wp.element,Wh=Fh.Component,Ih=Fh.Fragment,Uh=wp.blockEditor,Vh=Uh.BlockControls,Jh=Uh.BlockAlignmentToolbar,Gh=function(e){m()(n,e);var t=Ah(n);function n(e){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.clientId;return[React.createElement(Ih,{key:this.props.clientId},React.createElement(Vh,{key:"controls"},React.createElement(Jh,{value:t.align,onChange:function(e){return n({align:e})},controls:[]})),React.createElement(Nh,{key:"placeholder",label:Bh("Layout Selector","genesis-blocks"),instructions:Bh("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(oh.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(function(e){return React.createElement(zh,{clientId:r,context:e})}))))]}}]),n}(Wh),qh=(n(357),n(358),wp.i18n.__);(0,wp.blocks.registerBlockType)("genesis-blocks/gb-layouts",{title:qh("Layouts","genesis-blocks"),description:qh("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[qh("layout","genesis-blocks"),qh("column","genesis-blocks"),qh("section","genesis-blocks")],edit:function(e){return React.createElement(ih,null,React.createElement(Gh,e))},save:function(){return null}});var $h=!1;function Kh(){var e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e),window.GenesisAnalytics.GAClient.send("Open Modal",{event_category:"Layout Modal"})}wp.data.subscribe((function(){!function(){if($h)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(qh("Insert Layout","genesis-blocks"),'"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ').concat(qh("Layouts","genesis-blocks"),"</button>"),n+="</div>",t.innerHTML=n,e.appendChild(t);var r=document.querySelector(".components-accessible-toolbar.edit-post-header-toolbar");r&&(r.style.flexGrow=0);document.getElementById("gbLayoutInsertButton").addEventListener("click",Kh),$h=!0}()}));n(359),n(360);var Zh=["core/paragraph","core/heading"],Qh="Desktop",Xh="Tablet",eg="Mobile",tg={Desktop:"default",Tablet:"1200px",Mobile:"600px"};function ng(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 rg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ng(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ng(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ag=function(e){return e.replace(/([a-z])([A-Z1-9])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()},og=function(e){return"string"!=typeof e||e.match(/[A-Za-z]+$/)?e:"".concat(e,"px")},ig=function(e,t){var n;return null===(n=t.find((function(t){return e===t.slug})))||void 0===n?void 0:n.size},sg=n(18);const lg=e=>{if(!Object(sg.isObject)(e)||Array.isArray(e))return e;const t=Object(sg.pickBy)(Object(sg.mapValues)(e,lg),sg.identity);return Object(sg.isEmpty)(t)?void 0:t};var cg=function(e){var t=e.clientId,n=e.device,r=e.selectedDevice,a=e.settingName,o=e.settingValue;return React.createElement(React.Fragment,null,o?"@media only screen and (max-width: ".concat(n,") {\n\t\t\t\t#block-").concat(t," {\n\t\t\t\t\t").concat(ag(a),": ").concat(o," !important\n\t\t\t\t}\n\t\t\t}"):null,r===n&&o?"#block-".concat(t," {\n\t\t\t\t").concat(ag(a),": ").concat(o," !important\n\t\t\t}"):null)};function ug(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 dg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mg=wp.blockEditor,pg=mg.InspectorControls,_g=mg.LineHeightControl,hg=wp.blocks.hasBlockSupport,gg=wp.components,fg=gg.Button,bg=gg.FontSizePicker,yg=gg.NavigableMenu,kg=gg.PanelBody,Mg=wp.compose.createHigherOrderComponent,vg=wp.data,Lg=vg.useDispatch,wg=vg.useSelect,Yg=wp.i18n.__,Tg=window.GenesisAnalytics,Dg=Tg.debounce,Rg=Tg.GAClient,Sg=Dg(Rg.sendBlockEvent.bind(Rg),500),xg=Dg(Rg.sendBlockEvent.bind(Rg),500),Eg=Dg(Rg.sendBlockEvent.bind(Rg),500),Cg=Mg((function(e){return function(t){var n=wg((function(e){return e("core/block-editor").getSettings()})),r=n.disableCustomFontSizes,a=n.enableCustomLineHeight,o=n.fontSizes,s=wg((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?t():Qh})),l=Lg("core/edit-post").__experimentalSetPreviewDeviceType,c=!hg(t.name,"typography.fontSize",!0)||!(null==o?void 0:o.length),u=!hg(t.name,"typography.lineHeight",!0)||!a;if(!Zh.includes(t.name)||c&&u)return React.createElement(e,t);var d,m,p,_=function(e){l&&(Sg({action:"Select Device - ".concat(e),event_category:"Responsive Styles"}),l(e))},h=function(e,n){return t.attributes.gbResponsiveSettings&&t.attributes.gbResponsiveSettings[n]?t.attributes.gbResponsiveSettings[n][e]:""},g=function(e,n){t.setAttributes(i()({},"gbResponsiveSettings",dg(dg({},t.attributes.gbResponsiveSettings),{},i()({},tg[s],dg(dg({},t.attributes.gbResponsiveSettings[tg[s]]),{},i()({},e,n)))))),"lineHeight"===e?Eg({action:"Set - ".concat(e),event_category:"Responsive Styles"}):xg({action:"Set - ".concat(e),event_category:"Responsive Styles"})},f=h("fontSize",tg.Mobile),b=h("fontSize",tg.Tablet);return React.createElement(React.Fragment,null,Object.keys(t.attributes.gbResponsiveSettings).length?React.createElement("style",null,c?null:React.createElement(React.Fragment,null,React.createElement(cg,{device:tg.Tablet,selectedDevice:tg[s],settingName:"fontSize",settingValue:og(ig(b,o)||b),clientId:t.clientId}),React.createElement(cg,{device:tg.Mobile,selectedDevice:tg[s],settingName:"fontSize",settingValue:og(ig(f,o)||f),clientId:t.clientId})),u?null:React.createElement(React.Fragment,null,React.createElement(cg,{device:tg.Tablet,selectedDevice:tg[s],settingName:"lineHeight",settingValue:h("lineHeight",tg.Tablet),clientId:t.clientId}),React.createElement(cg,{device:tg.Mobile,selectedDevice:tg[s],settingName:"lineHeight",settingValue:h("lineHeight",tg.Mobile),clientId:t.clientId}))):null,React.createElement(e,t),React.createElement(pg,null,React.createElement(kg,{title:Yg("Responsive Typography","genesis-blocks")},React.createElement(yg,{className:"gb-responsive-toggle",onNavigate:function(){},orientation:"horizontal"},React.createElement(fg,{icon:"laptop",showTooltip:!0,label:Yg("Desktop view","genesis-blocks"),onClick:function(){return _(Qh)},isPrimary:Qh===s,isSecondary:Qh!==s},Yg("Desktop","genesis-blocks")),React.createElement(fg,{icon:"tablet",showTooltip:!0,label:Yg("Tablet view","genesis-blocks"),onClick:function(){return _(Xh)},isPrimary:Xh===s,isSecondary:Xh!==s},Yg("Tablet","genesis-blocks")),React.createElement(fg,{icon:"smartphone",showTooltip:!0,label:Yg("Mobile view","genesis-blocks"),onClick:function(){return _(eg)},isPrimary:eg===s,isSecondary:eg!==s},Yg("Mobile","genesis-blocks"))),c?null:React.createElement(bg,{value:function(){var e,n,r,a,i,l;if(Qh===s)return ig(t.attributes.fontSize,o)||ig(null===(e=t.attributes)||void 0===e||null===(n=e.style)||void 0===n||null===(r=n.typography)||void 0===r?void 0:r.fontSize,o)||(null===(a=t.attributes)||void 0===a||null===(i=a.style)||void 0===i||null===(l=i.typography)||void 0===l?void 0:l.fontSize);var c=h("fontSize",tg[s]);return ig(c,o)||c}(),onChange:function(e){var n=function(e,t){var n;return null===(n=t.find((function(t){return e===t.size})))||void 0===n?void 0:n.slug}(e,o);if(Qh!==s)g("fontSize",n||e);else{var r,a,i,l=dg(dg({},null===(r=t.attributes)||void 0===r?void 0:r.style),{},{typography:dg(dg({},null===(a=t.attributes)||void 0===a||null===(i=a.style)||void 0===i?void 0:i.typography),{},{fontSize:n?void 0:e})});t.setAttributes({style:lg?lg(l):l,fontSize:n})}},fontSizes:o,disableCustomFontSizes:r}),u||!_g?null:React.createElement(_g,{value:Qh===s?null===(d=t.attributes)||void 0===d||null===(m=d.style)||void 0===m||null===(p=m.typography)||void 0===p?void 0:p.lineHeight:h("lineHeight",tg[s]),onChange:function(e){if(Qh!==s)g("lineHeight",e);else{var n,r,a,o=dg(dg({},null===(n=t.attributes)||void 0===n?void 0:n.style),{},{typography:dg(dg({},null===(r=t.attributes)||void 0===r||null===(a=r.style)||void 0===a?void 0:a.typography),{},{lineHeight:e})});t.setAttributes({style:lg?lg(o):o})}}}))))}}),"withResponsiveSettings"),jg=wp.hooks.addFilter;jg("blocks.registerBlockType","genesis-blocks/add-responsive-controls-attributes",(function(e,t){return Zh.includes(t)?rg(rg({},e),{},{attributes:rg(rg({},null==e?void 0:e.attributes),{},i()({},"gbResponsiveSettings",{type:"object",default:{}}))}):e})),jg("editor.BlockEdit","genesis-blocks/add-responsive-controls",Cg)},,,,,,,,,,,,,,,,,,,,,,,,,,,,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){}]);
|
genesis-blocks.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: A beautiful collection of handy blocks to help you get started with the new WordPress editor.
|
6 |
* Author: StudioPress
|
7 |
* Author URI: https://www.studiopress.com/
|
8 |
-
* Version: 1.
|
9 |
* License: GPL2+
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
*
|
5 |
* Description: A beautiful collection of handy blocks to help you get started with the new WordPress editor.
|
6 |
* Author: StudioPress
|
7 |
* Author URI: https://www.studiopress.com/
|
8 |
+
* Version: 1.4.0
|
9 |
* License: GPL2+
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
*
|
includes/load-scripts.php
CHANGED
@@ -114,8 +114,28 @@ function genesis_blocks_add_custom_block_category( $categories ) {
|
|
114 |
$categories
|
115 |
);
|
116 |
}
|
|
|
117 |
if ( class_exists( 'WP_Block_Editor_Context' ) ) {
|
118 |
add_filter( 'block_categories_all', 'genesis_blocks_add_custom_block_category', PHP_INT_MAX );
|
119 |
} else {
|
120 |
add_filter( 'block_categories', 'genesis_blocks_add_custom_block_category', PHP_INT_MAX );
|
121 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
$categories
|
115 |
);
|
116 |
}
|
117 |
+
|
118 |
if ( class_exists( 'WP_Block_Editor_Context' ) ) {
|
119 |
add_filter( 'block_categories_all', 'genesis_blocks_add_custom_block_category', PHP_INT_MAX );
|
120 |
} else {
|
121 |
add_filter( 'block_categories', 'genesis_blocks_add_custom_block_category', PHP_INT_MAX );
|
122 |
}
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Genesis Async Tagger appends the async prop to scripts when required.
|
126 |
+
*
|
127 |
+
* @param string $tag Tag name.
|
128 |
+
* @param string $handle Script handle provided by wp_enqueue.
|
129 |
+
*
|
130 |
+
* @return string Maybe modified script.
|
131 |
+
*/
|
132 |
+
function genesis_async_tagger( $tag, $handle ) {
|
133 |
+
if ( ! strpos( $handle, '#async' ) ) {
|
134 |
+
return $tag;
|
135 |
+
}
|
136 |
+
|
137 |
+
$tag = str_replace( '<script ', '<script async ', $tag );
|
138 |
+
|
139 |
+
return $tag;
|
140 |
+
}
|
141 |
+
add_filter( 'script_loader_tag', 'genesis_async_tagger', 10, 2 );
|
languages/genesis-blocks.pot
CHANGED
@@ -2,26 +2,23 @@
|
|
2 |
# This file is distributed under the GPL2+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Genesis Blocks 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/genesis-blocks\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2021-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: genesis-blocks\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
18 |
#: includes/load-scripts.php:111
|
19 |
-
#: lib/
|
20 |
-
#: lib/Settings/
|
21 |
-
#: lib/Settings/views/admin/
|
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 |
|
@@ -783,6 +780,36 @@ msgstr ""
|
|
783 |
msgid "slate text with cta"
|
784 |
msgstr ""
|
785 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
786 |
#: lib/Migration/Admin.php:64
|
787 |
msgid "Migrate to Genesis Blocks"
|
788 |
msgstr ""
|
@@ -791,11 +818,11 @@ msgstr ""
|
|
791 |
msgid "Migrate"
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: lib/Migration/Admin.php:
|
795 |
msgid "Migrate from Atomic Blocks to Genesis Blocks"
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: lib/Migration/Admin.php:
|
799 |
msgid "Genesis Blocks Pro Migration Tool"
|
800 |
msgstr ""
|
801 |
|
@@ -832,173 +859,503 @@ msgstr ""
|
|
832 |
msgid "User meta could not be updated"
|
833 |
msgstr ""
|
834 |
|
835 |
-
#: lib/Settings/AdminPage.php:
|
836 |
-
msgid "Genesis
|
837 |
-
msgstr ""
|
838 |
-
|
839 |
-
#: lib/Settings/AdminPage.php:107
|
840 |
-
msgid "Settings"
|
841 |
msgstr ""
|
842 |
|
843 |
-
#: lib/Settings/AdminPage.php:
|
844 |
-
#: lib/Settings/views/admin/getting-started.php:18
|
845 |
msgid "Getting Started with Genesis Blocks"
|
846 |
msgstr ""
|
847 |
|
848 |
-
#: lib/Settings/AdminPage.php:
|
849 |
-
#: lib/Settings/views/admin/getting-started.php:30
|
850 |
msgid "Getting Started"
|
851 |
msgstr ""
|
852 |
|
853 |
#: lib/Settings/AdminPage.php:133
|
854 |
-
msgid "Genesis Blocks
|
855 |
msgstr ""
|
856 |
|
857 |
#: lib/Settings/AdminPage.php:134
|
858 |
-
|
859 |
-
msgid "Genesis Pro"
|
860 |
msgstr ""
|
861 |
|
862 |
-
#: lib/Settings/views/admin/app.php:
|
863 |
-
#: lib/Settings/views/admin/getting-started.php:21
|
864 |
msgid "Leave a review!"
|
865 |
msgstr ""
|
866 |
|
867 |
-
#: lib/Settings/views/admin/
|
868 |
-
msgid "
|
869 |
msgstr ""
|
870 |
|
871 |
-
#: lib/Settings/views/admin/
|
872 |
-
|
|
|
873 |
msgstr ""
|
874 |
|
875 |
-
#: lib/Settings/views/admin/
|
876 |
-
|
|
|
|
|
877 |
msgstr ""
|
878 |
|
879 |
-
#: lib/Settings/views/admin/
|
880 |
-
|
|
|
|
|
881 |
msgstr ""
|
882 |
|
883 |
-
#: lib/Settings/views/admin/
|
884 |
-
msgid "
|
885 |
msgstr ""
|
886 |
|
887 |
-
#: lib/Settings/views/admin/genesis-
|
888 |
-
msgid "Genesis
|
889 |
msgstr ""
|
890 |
|
891 |
-
#: lib/Settings/views/admin/genesis-
|
892 |
-
msgid "
|
893 |
msgstr ""
|
894 |
|
895 |
-
|
896 |
-
|
|
|
897 |
msgstr ""
|
898 |
|
899 |
-
#: lib/Settings/views/admin/genesis-
|
900 |
-
msgid "
|
901 |
msgstr ""
|
902 |
|
903 |
-
#: lib/Settings/views/admin/genesis-
|
904 |
-
msgid "Block
|
905 |
msgstr ""
|
906 |
|
907 |
-
#: lib/Settings/views/admin/genesis-
|
908 |
-
msgid "
|
909 |
msgstr ""
|
910 |
|
911 |
-
#: lib/Settings/views/admin/genesis-
|
912 |
-
msgid "
|
913 |
msgstr ""
|
914 |
|
915 |
-
#: lib/Settings/views/admin/genesis-
|
916 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
917 |
msgstr ""
|
918 |
|
919 |
-
#: lib/Settings/views/admin/genesis-
|
920 |
-
msgid "
|
921 |
msgstr ""
|
922 |
|
923 |
-
#: lib/Settings/views/admin/genesis-
|
924 |
-
msgid "
|
925 |
msgstr ""
|
926 |
|
927 |
-
#: lib/Settings/views/admin/genesis-
|
928 |
-
|
|
|
|
|
|
|
|
|
|
|
929 |
msgstr ""
|
930 |
|
931 |
-
#: lib/Settings/views/admin/genesis-
|
932 |
-
msgid "
|
933 |
msgstr ""
|
934 |
|
935 |
-
#: lib/Settings/views/admin/genesis-
|
936 |
-
msgid "
|
937 |
msgstr ""
|
938 |
|
939 |
-
#: lib/Settings/views/admin/genesis-
|
940 |
-
msgid "
|
941 |
msgstr ""
|
942 |
|
943 |
-
#: lib/Settings/views/admin/genesis-
|
944 |
-
msgid "
|
945 |
msgstr ""
|
946 |
|
947 |
-
#: lib/Settings/views/admin/genesis-
|
948 |
-
msgid "
|
949 |
msgstr ""
|
950 |
|
951 |
-
#: lib/Settings/views/admin/
|
952 |
-
msgid "
|
953 |
msgstr ""
|
954 |
|
955 |
-
#: lib/Settings/views/admin/
|
956 |
-
msgid "
|
957 |
msgstr ""
|
958 |
|
959 |
-
#: lib/Settings/views/admin/
|
960 |
-
|
961 |
-
msgid "Help and Documentation"
|
962 |
msgstr ""
|
963 |
|
964 |
-
#: lib/Settings/views/admin/
|
965 |
-
msgid "
|
966 |
msgstr ""
|
967 |
|
968 |
-
#: lib/Settings/views/admin/
|
969 |
-
msgid "
|
970 |
msgstr ""
|
971 |
|
972 |
-
#: lib/Settings/views/admin/
|
973 |
-
msgid "Genesis
|
974 |
msgstr ""
|
975 |
|
976 |
-
#: lib/Settings/views/admin/
|
977 |
-
msgid "
|
978 |
msgstr ""
|
979 |
|
980 |
-
#: lib/Settings/views/admin/
|
981 |
-
msgid "
|
982 |
msgstr ""
|
983 |
|
984 |
-
#: lib/Settings/views/admin/
|
985 |
-
msgid "
|
986 |
msgstr ""
|
987 |
|
988 |
-
#: lib/Settings/views/admin/
|
989 |
-
msgid "
|
990 |
msgstr ""
|
991 |
|
992 |
-
#: lib/Settings/views/admin/
|
993 |
-
msgid "
|
994 |
msgstr ""
|
995 |
|
996 |
-
#: lib/Settings/views/admin/
|
997 |
-
msgid "
|
998 |
msgstr ""
|
999 |
|
1000 |
-
#: lib/Settings/views/admin/
|
1001 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1002 |
msgstr ""
|
1003 |
|
1004 |
#: src/blocks/block-author-profile/deprecated/1.8.2/filter.php:59
|
@@ -1214,11 +1571,24 @@ msgstr ""
|
|
1214 |
msgid "Newsletter Block"
|
1215 |
msgstr ""
|
1216 |
|
1217 |
-
#: src/blocks/block-newsletter/index.php:
|
1218 |
-
|
|
|
|
|
|
|
|
|
|
|
1219 |
msgstr ""
|
1220 |
|
1221 |
#: src/blocks/block-newsletter/index.php:288
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1222 |
msgid "Your Mailchimp API key is required for the Newsletter block to communicate with your Mailchimp account."
|
1223 |
msgstr ""
|
1224 |
|
@@ -1292,15 +1662,15 @@ msgstr ""
|
|
1292 |
msgid "To continue receiving the best of what our team is building, we encourage you to migrate. Our migration tool makes this nice and easy, and for the majority of use cases, completely automated."
|
1293 |
msgstr ""
|
1294 |
|
1295 |
-
#: lib/Migration/js/src/components/intro.js:
|
1296 |
msgid "Need to let the developer for this site know about this? Send them this link."
|
1297 |
msgstr ""
|
1298 |
|
1299 |
-
#: lib/Migration/js/src/components/intro.js:
|
1300 |
msgid "Developer Notice"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
-
#: lib/Migration/js/src/components/intro.js:
|
1304 |
msgid "Let’s Migrate"
|
1305 |
msgstr ""
|
1306 |
|
@@ -1446,6 +1816,22 @@ msgstr ""
|
|
1446 |
msgid "I have made necessary changes to PHP and CSS."
|
1447 |
msgstr ""
|
1448 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1449 |
#: src/blocks/block-accordion/components/edit.js:45
|
1450 |
msgid "Accordion Title"
|
1451 |
msgstr ""
|
@@ -1905,11 +2291,6 @@ msgstr ""
|
|
1905 |
msgid "Return to Column Selection"
|
1906 |
msgstr ""
|
1907 |
|
1908 |
-
#: src/blocks/block-column/components/inspector.js:73
|
1909 |
-
#: src/blocks/block-newsletter/components/inspector.js:185
|
1910 |
-
msgid "General"
|
1911 |
-
msgstr ""
|
1912 |
-
|
1913 |
#: src/blocks/block-column/components/inspector.js:79
|
1914 |
#: src/blocks/block-column/index.js:121
|
1915 |
msgid "Column Count"
|
@@ -2188,7 +2569,7 @@ msgid "drop cap"
|
|
2188 |
msgstr ""
|
2189 |
|
2190 |
#: src/blocks/block-layout/components/edit.js:39
|
2191 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2192 |
msgid "Layout Selector"
|
2193 |
msgstr ""
|
2194 |
|
@@ -2196,43 +2577,43 @@ msgstr ""
|
|
2196 |
msgid "Launch the layout library to browse pre-designed sections."
|
2197 |
msgstr ""
|
2198 |
|
2199 |
-
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:
|
2200 |
msgid "Collections Available"
|
2201 |
msgstr ""
|
2202 |
|
2203 |
-
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:
|
2204 |
msgid "Page Layouts"
|
2205 |
msgstr ""
|
2206 |
|
2207 |
-
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:
|
2208 |
msgid "Page Sections"
|
2209 |
msgstr ""
|
2210 |
|
2211 |
-
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:
|
2212 |
msgid "Layout Options in this Collection"
|
2213 |
msgstr ""
|
2214 |
|
2215 |
-
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:
|
2216 |
msgid "View All Collections "
|
2217 |
msgstr ""
|
2218 |
|
2219 |
-
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:
|
2220 |
msgid "Collections "
|
2221 |
msgstr ""
|
2222 |
|
2223 |
-
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:
|
2224 |
msgid "Browsing "
|
2225 |
msgstr ""
|
2226 |
|
2227 |
-
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:
|
2228 |
msgid "Learn about Collections"
|
2229 |
msgstr ""
|
2230 |
|
2231 |
-
#: src/blocks/block-layout/components/layout/layout-library-item-card.js:
|
2232 |
msgid "Remove from Favorites"
|
2233 |
msgstr ""
|
2234 |
|
2235 |
-
#: src/blocks/block-layout/components/layout/layout-library-item-card.js:
|
2236 |
msgid "Add to Favorites"
|
2237 |
msgstr ""
|
2238 |
|
@@ -2240,42 +2621,38 @@ msgstr ""
|
|
2240 |
msgid "Edit"
|
2241 |
msgstr ""
|
2242 |
|
2243 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2244 |
msgid "Sections"
|
2245 |
msgstr ""
|
2246 |
|
2247 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2248 |
#: src/blocks/block-layout/index.js:23
|
2249 |
#: src/blocks/block-layout/index.js:75
|
2250 |
msgid "Layouts"
|
2251 |
msgstr ""
|
2252 |
|
2253 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2254 |
-
msgid "Collections"
|
2255 |
-
msgstr ""
|
2256 |
-
|
2257 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:48
|
2258 |
msgid "Favorites"
|
2259 |
msgstr ""
|
2260 |
|
2261 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2262 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2263 |
msgid "Reusable Blocks"
|
2264 |
msgstr ""
|
2265 |
|
2266 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2267 |
msgid "Layout Library"
|
2268 |
msgstr ""
|
2269 |
|
2270 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2271 |
msgid "Add Custom Layouts"
|
2272 |
msgstr ""
|
2273 |
|
2274 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2275 |
msgid "Send Feedback"
|
2276 |
msgstr ""
|
2277 |
|
2278 |
-
#: src/blocks/block-layout/components/layout/layout-modal.js:
|
2279 |
msgid "Default tab content"
|
2280 |
msgstr ""
|
2281 |
|
@@ -3061,31 +3438,27 @@ msgstr ""
|
|
3061 |
msgid "Add a user testimonial with a name and title."
|
3062 |
msgstr ""
|
3063 |
|
3064 |
-
#: src/blocks/responsive-settings/components/with-responsive-settings.js:
|
3065 |
-
msgid "Responsive Typography"
|
3066 |
-
msgstr ""
|
3067 |
-
|
3068 |
-
#: src/blocks/responsive-settings/components/with-responsive-settings.js:191
|
3069 |
msgid "Desktop view"
|
3070 |
msgstr ""
|
3071 |
|
3072 |
-
#: src/blocks/responsive-settings/components/with-responsive-settings.js:
|
3073 |
msgid "Desktop"
|
3074 |
msgstr ""
|
3075 |
|
3076 |
-
#: src/blocks/responsive-settings/components/with-responsive-settings.js:
|
3077 |
msgid "Tablet view"
|
3078 |
msgstr ""
|
3079 |
|
3080 |
-
#: src/blocks/responsive-settings/components/with-responsive-settings.js:
|
3081 |
msgid "Tablet"
|
3082 |
msgstr ""
|
3083 |
|
3084 |
-
#: src/blocks/responsive-settings/components/with-responsive-settings.js:
|
3085 |
msgid "Mobile view"
|
3086 |
msgstr ""
|
3087 |
|
3088 |
-
#: src/blocks/responsive-settings/components/with-responsive-settings.js:
|
3089 |
msgid "Mobile"
|
3090 |
msgstr ""
|
3091 |
|
2 |
# This file is distributed under the GPL2+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Genesis Blocks 1.4.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/genesis-blocks\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2021-11-15T20:34:20+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: genesis-blocks\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
18 |
#: includes/load-scripts.php:111
|
19 |
+
#: lib/Migration/Admin.php:135
|
20 |
+
#: lib/Settings/AdminPage.php:67
|
21 |
+
#: lib/Settings/views/admin/app.php:20
|
|
|
|
|
|
|
22 |
msgid "Genesis Blocks"
|
23 |
msgstr ""
|
24 |
|
780 |
msgid "slate text with cta"
|
781 |
msgstr ""
|
782 |
|
783 |
+
#: lib/Analytics/AdminPage.php:61
|
784 |
+
#: src/blocks/block-column/components/inspector.js:73
|
785 |
+
#: src/blocks/block-newsletter/components/inspector.js:185
|
786 |
+
msgid "General"
|
787 |
+
msgstr ""
|
788 |
+
|
789 |
+
#: lib/Analytics/AdminPage.php:75
|
790 |
+
msgid "General Settings"
|
791 |
+
msgstr ""
|
792 |
+
|
793 |
+
#: lib/Analytics/AdminPage.php:81
|
794 |
+
msgid "<h2>General Settings</h2>"
|
795 |
+
msgstr ""
|
796 |
+
|
797 |
+
#: lib/Analytics/AdminPage.php:113
|
798 |
+
msgid "Analytics"
|
799 |
+
msgstr ""
|
800 |
+
|
801 |
+
#: lib/Analytics/AdminPage.php:119
|
802 |
+
msgid "Opt into anonymous usage tracking to help us make Genesis Blocks better."
|
803 |
+
msgstr ""
|
804 |
+
|
805 |
+
#: lib/Analytics/AdminPage.php:122
|
806 |
+
msgid "Enabled"
|
807 |
+
msgstr ""
|
808 |
+
|
809 |
+
#: lib/Analytics/AdminPage.php:123
|
810 |
+
msgid "Disabled"
|
811 |
+
msgstr ""
|
812 |
+
|
813 |
#: lib/Migration/Admin.php:64
|
814 |
msgid "Migrate to Genesis Blocks"
|
815 |
msgstr ""
|
818 |
msgid "Migrate"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: lib/Migration/Admin.php:125
|
822 |
msgid "Migrate from Atomic Blocks to Genesis Blocks"
|
823 |
msgstr ""
|
824 |
|
825 |
+
#: lib/Migration/Admin.php:127
|
826 |
msgid "Genesis Blocks Pro Migration Tool"
|
827 |
msgstr ""
|
828 |
|
859 |
msgid "User meta could not be updated"
|
860 |
msgstr ""
|
861 |
|
862 |
+
#: lib/Settings/AdminPage.php:66
|
863 |
+
msgid "Genesis"
|
|
|
|
|
|
|
|
|
864 |
msgstr ""
|
865 |
|
866 |
+
#: lib/Settings/AdminPage.php:121
|
|
|
867 |
msgid "Getting Started with Genesis Blocks"
|
868 |
msgstr ""
|
869 |
|
870 |
+
#: lib/Settings/AdminPage.php:122
|
|
|
871 |
msgid "Getting Started"
|
872 |
msgstr ""
|
873 |
|
874 |
#: lib/Settings/AdminPage.php:133
|
875 |
+
msgid "Genesis Blocks Settings"
|
876 |
msgstr ""
|
877 |
|
878 |
#: lib/Settings/AdminPage.php:134
|
879 |
+
msgid "Settings"
|
|
|
880 |
msgstr ""
|
881 |
|
882 |
+
#: lib/Settings/views/admin/app.php:24
|
|
|
883 |
msgid "Leave a review!"
|
884 |
msgstr ""
|
885 |
|
886 |
+
#: lib/Settings/views/admin/getting-started.php:60
|
887 |
+
msgid "About Genesis"
|
888 |
msgstr ""
|
889 |
|
890 |
+
#: lib/Settings/views/admin/getting-started.php:69
|
891 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:19
|
892 |
+
msgid "Genesis 101"
|
893 |
msgstr ""
|
894 |
|
895 |
+
#: lib/Settings/views/admin/getting-started.php:74
|
896 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:21
|
897 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:29
|
898 |
+
msgid "Collections"
|
899 |
msgstr ""
|
900 |
|
901 |
+
#: lib/Settings/views/admin/getting-started.php:79
|
902 |
+
#: lib/Settings/views/admin/getting-started.php:82
|
903 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:21
|
904 |
+
msgid "Genesis Pro"
|
905 |
msgstr ""
|
906 |
|
907 |
+
#: lib/Settings/views/admin/getting-started.php:104
|
908 |
+
msgid "Tab icon"
|
909 |
msgstr ""
|
910 |
|
911 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:20
|
912 |
+
msgid "View Genesis documentation (opens in a new tab)"
|
913 |
msgstr ""
|
914 |
|
915 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:20
|
916 |
+
msgid "View Genesis documentation"
|
917 |
msgstr ""
|
918 |
|
919 |
+
#. translators: %1$: opening i tag, %2$: closing i tag
|
920 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:27
|
921 |
+
msgid "%1$sBlock%2$s is a term used for any kind of content that you add in the new WordPress editor. When editing, anything you insert within a page or a post is a block. WordPress includes a few default blocks such as the Paragraph, Image, Heading, Gallery, etc. that give you a great head start."
|
922 |
msgstr ""
|
923 |
|
924 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:35
|
925 |
+
msgid "Working with Genesis Blocks is just like working with the default WordPress blocks. They all offer a quick way to add various types of content to your posts and pages."
|
926 |
msgstr ""
|
927 |
|
928 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:41
|
929 |
+
msgid "Block Documentation"
|
930 |
msgstr ""
|
931 |
|
932 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:47
|
933 |
+
msgid "Working with blocks"
|
934 |
msgstr ""
|
935 |
|
936 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:48
|
937 |
+
msgid "We’ll give a brief overview of how to add blocks and change their settings, as well as how to easily locate existing blocks so you can edit their content or settings."
|
938 |
msgstr ""
|
939 |
|
940 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:51
|
941 |
+
msgid "View working with blocks documentation (opens in a new tab)"
|
942 |
+
msgstr ""
|
943 |
+
|
944 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:51
|
945 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:62
|
946 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:73
|
947 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:84
|
948 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:95
|
949 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:106
|
950 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:117
|
951 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:128
|
952 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:139
|
953 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:150
|
954 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:161
|
955 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:172
|
956 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:183
|
957 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:194
|
958 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:205
|
959 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:216
|
960 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:227
|
961 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:238
|
962 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:249
|
963 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:260
|
964 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:271
|
965 |
+
msgid "View docs"
|
966 |
+
msgstr ""
|
967 |
+
|
968 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:58
|
969 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:198
|
970 |
+
msgid "Responsive Typography"
|
971 |
+
msgstr ""
|
972 |
+
|
973 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:59
|
974 |
+
msgid "Learn about Genesis responsive controls within the default WP Heading and Paragraph blocks that allow you to choose different font sizes or line heights for desktop, tablet, & mobile."
|
975 |
+
msgstr ""
|
976 |
+
|
977 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:62
|
978 |
+
msgid "View Responsive typography documentation (opens in a new tab)"
|
979 |
+
msgstr ""
|
980 |
+
|
981 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:69
|
982 |
+
msgid "Advanced Columns block"
|
983 |
+
msgstr ""
|
984 |
+
|
985 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:70
|
986 |
+
msgid "The Advanced Columns block gives you a powerful, flexible column system to build custom, full-page layouts for your posts and pages."
|
987 |
+
msgstr ""
|
988 |
+
|
989 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:73
|
990 |
+
msgid "View Advanced Columns block documentation (opens in a new tab)"
|
991 |
+
msgstr ""
|
992 |
+
|
993 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:80
|
994 |
+
msgid "Container block"
|
995 |
+
msgstr ""
|
996 |
+
|
997 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:81
|
998 |
+
msgid "The Container block allows you to wrap several individual blocks inside a parent container which can help you create differently styled sections of content on your posts and pages."
|
999 |
+
msgstr ""
|
1000 |
+
|
1001 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:84
|
1002 |
+
msgid "View Container block documentation (opens in a new tab)"
|
1003 |
+
msgstr ""
|
1004 |
+
|
1005 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:91
|
1006 |
+
msgid "Layouts block"
|
1007 |
+
msgstr ""
|
1008 |
+
|
1009 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:92
|
1010 |
+
msgid "The Layouts block gives you a quick and easy way to build beautiful pages with a library of pre-designed sections, layouts, and collections."
|
1011 |
+
msgstr ""
|
1012 |
+
|
1013 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:95
|
1014 |
+
msgid "View Layouts block documentation (opens in a new tab)"
|
1015 |
+
msgstr ""
|
1016 |
+
|
1017 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:102
|
1018 |
+
msgid "Drop Cap block"
|
1019 |
+
msgstr ""
|
1020 |
+
|
1021 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:103
|
1022 |
+
msgid "The Drop Cap block allows you to add a stylized letter to the first word of a paragraph. After adding a paragraph to the post or page, you can configure the drop cap settings."
|
1023 |
+
msgstr ""
|
1024 |
+
|
1025 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:106
|
1026 |
+
msgid "View Drop Cap block documentation (opens in a new tab)"
|
1027 |
+
msgstr ""
|
1028 |
+
|
1029 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:113
|
1030 |
+
msgid "Spacer block"
|
1031 |
+
msgstr ""
|
1032 |
+
|
1033 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:114
|
1034 |
+
msgid "The Spacer block allows you to easily add an adjustable-height spacer between other blocks. It also includes an optional divider with settings to change its style."
|
1035 |
+
msgstr ""
|
1036 |
+
|
1037 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:117
|
1038 |
+
msgid "View Spacer block documentation (opens in a new tab)"
|
1039 |
+
msgstr ""
|
1040 |
+
|
1041 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:124
|
1042 |
+
msgid "Button block"
|
1043 |
+
msgstr ""
|
1044 |
+
|
1045 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:125
|
1046 |
+
msgid "The Button block allows you to add a customizable button to your posts and pages with settings for changing the link target, button shape, button size, and button colors."
|
1047 |
+
msgstr ""
|
1048 |
+
|
1049 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:128
|
1050 |
+
msgid "View Button block documentation (opens in a new tab)"
|
1051 |
+
msgstr ""
|
1052 |
+
|
1053 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:135
|
1054 |
+
msgid "Call to Action block"
|
1055 |
+
msgstr ""
|
1056 |
+
|
1057 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:136
|
1058 |
+
msgid "The Call to Action block allows you to add a compact, wide, or full-width call-to-action section to your post or page. "
|
1059 |
+
msgstr ""
|
1060 |
+
|
1061 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:139
|
1062 |
+
msgid "View Call to Action block documentation (opens in a new tab)"
|
1063 |
+
msgstr ""
|
1064 |
+
|
1065 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:146
|
1066 |
+
msgid "Email Newsletter block"
|
1067 |
+
msgstr ""
|
1068 |
+
|
1069 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:147
|
1070 |
+
msgid "The Email Newsletter block allows you to add a Mailchimp email subscription form to any location in a post or page. This block currently works with the Mailchimp service only."
|
1071 |
+
msgstr ""
|
1072 |
+
|
1073 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:150
|
1074 |
+
msgid "View Email Newsletter block documentation (opens in a new tab)"
|
1075 |
+
msgstr ""
|
1076 |
+
|
1077 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:157
|
1078 |
+
msgid "Accordion block"
|
1079 |
+
msgstr ""
|
1080 |
+
|
1081 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:158
|
1082 |
+
msgid "The Accordion block allows you to display content in expandable/collapsible tabs so you can easily add lots of content without increasing page length."
|
1083 |
+
msgstr ""
|
1084 |
+
|
1085 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:161
|
1086 |
+
msgid "View Accordion block documentation (opens in a new tab)"
|
1087 |
+
msgstr ""
|
1088 |
+
|
1089 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:168
|
1090 |
+
msgid "Device Mockup block"
|
1091 |
+
msgstr ""
|
1092 |
+
|
1093 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:168
|
1094 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:190
|
1095 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:256
|
1096 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:66
|
1097 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:77
|
1098 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:88
|
1099 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:99
|
1100 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:110
|
1101 |
+
msgid "Included in Genesis Pro"
|
1102 |
+
msgstr ""
|
1103 |
+
|
1104 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:168
|
1105 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:190
|
1106 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:256
|
1107 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:66
|
1108 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:77
|
1109 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:88
|
1110 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:99
|
1111 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:110
|
1112 |
+
msgid "Pro"
|
1113 |
+
msgstr ""
|
1114 |
+
|
1115 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:169
|
1116 |
+
msgid "The Device Mockup block allows you to quickly and easily showcase how your designs look on a smartphone or tablet."
|
1117 |
+
msgstr ""
|
1118 |
+
|
1119 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:172
|
1120 |
+
msgid "View Device Mockup block documentation (opens in a new tab)"
|
1121 |
+
msgstr ""
|
1122 |
+
|
1123 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:179
|
1124 |
+
msgid "Notice block"
|
1125 |
+
msgstr ""
|
1126 |
+
|
1127 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:180
|
1128 |
+
msgid "The Notice block allows you add an inline notice box to any post or page. You can use it to highlight information or draw attention to a special message."
|
1129 |
+
msgstr ""
|
1130 |
+
|
1131 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:183
|
1132 |
+
msgid "View Notice block documentation (opens in a new tab)"
|
1133 |
+
msgstr ""
|
1134 |
+
|
1135 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:190
|
1136 |
+
msgid "Portfolio block"
|
1137 |
+
msgstr ""
|
1138 |
+
|
1139 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:191
|
1140 |
+
msgid "The Portfolio block allows you to display your latest work in a customizable grid-style layout. Using a dedicated custom post type, you can create unique portfolio pages on your own!"
|
1141 |
+
msgstr ""
|
1142 |
+
|
1143 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:194
|
1144 |
+
msgid "View Portfolio block documentation (opens in a new tab)"
|
1145 |
+
msgstr ""
|
1146 |
+
|
1147 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:201
|
1148 |
+
msgid "Post and Page Grid block"
|
1149 |
+
msgstr ""
|
1150 |
+
|
1151 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:202
|
1152 |
+
msgid "The Post and Page Grid block gives you an advanced, customizable, and sortable grid of posts and pages for your site."
|
1153 |
+
msgstr ""
|
1154 |
+
|
1155 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:205
|
1156 |
+
msgid "View Post and Page Grid block documentation (opens in a new tab)"
|
1157 |
+
msgstr ""
|
1158 |
+
|
1159 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:212
|
1160 |
+
msgid "Pricing block"
|
1161 |
+
msgstr ""
|
1162 |
+
|
1163 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:213
|
1164 |
+
msgid "The Pricing block allows you to build beautiful, dynamic, responsive pricing tables with settings to change columns, colors, padding, and position."
|
1165 |
+
msgstr ""
|
1166 |
+
|
1167 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:216
|
1168 |
+
msgid "View Pricing block documentation (opens in a new tab)"
|
1169 |
+
msgstr ""
|
1170 |
+
|
1171 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:223
|
1172 |
+
msgid "Profile Box block"
|
1173 |
+
msgstr ""
|
1174 |
+
|
1175 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:224
|
1176 |
+
msgid "The Profile Box block allows you to easily add a user profile box to any location on a post or page."
|
1177 |
+
msgstr ""
|
1178 |
+
|
1179 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:227
|
1180 |
+
msgid "View Profile Box block documentation (opens in a new tab)"
|
1181 |
+
msgstr ""
|
1182 |
+
|
1183 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:234
|
1184 |
+
msgid "Sharing block"
|
1185 |
+
msgstr ""
|
1186 |
+
|
1187 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:235
|
1188 |
+
msgid "The Sharing block makes it easy to add social media sharing icons anywhere on your post or page that allow readers to share your content on their social media profiles."
|
1189 |
+
msgstr ""
|
1190 |
+
|
1191 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:238
|
1192 |
+
msgid "View Sharing block documentation (opens in a new tab)"
|
1193 |
+
msgstr ""
|
1194 |
+
|
1195 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:245
|
1196 |
+
msgid "Testimonial block"
|
1197 |
+
msgstr ""
|
1198 |
+
|
1199 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:246
|
1200 |
+
msgid "The Testimonial block allows you to add a testimonial box to your post or page that includes the testimonial text as well as the author’s name, title, and avatar."
|
1201 |
+
msgstr ""
|
1202 |
+
|
1203 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:249
|
1204 |
+
msgid "View Testimonial block documentation (opens in a new tab)"
|
1205 |
+
msgstr ""
|
1206 |
+
|
1207 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:256
|
1208 |
+
msgid "Block Permissions"
|
1209 |
+
msgstr ""
|
1210 |
+
|
1211 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:257
|
1212 |
+
msgid "Genesis Blocks Pro includes the option to control which user roles have access to the settings of individual blocks."
|
1213 |
+
msgstr ""
|
1214 |
+
|
1215 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:260
|
1216 |
+
msgid "View Block Permissions documentation (opens in a new tab)"
|
1217 |
+
msgstr ""
|
1218 |
+
|
1219 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:267
|
1220 |
+
msgid "Reusable blocks"
|
1221 |
+
msgstr ""
|
1222 |
+
|
1223 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:268
|
1224 |
+
msgid "The WordPress block editor includes a handy Reusable Blocks feature that allows you to save a block (or a group of blocks) and reuse it in other posts and pages on your site. "
|
1225 |
+
msgstr ""
|
1226 |
+
|
1227 |
+
#: lib/Settings/views/admin/tabs/genesis-101.php:271
|
1228 |
+
msgid "View Reusable blocks documentation (opens in a new tab)"
|
1229 |
+
msgstr ""
|
1230 |
+
|
1231 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:22
|
1232 |
+
msgid "Collections are groups of pre-designed sections and layouts that share the same theme or design aesthetic. They make it easy to quickly build multiple pages on your site that are cohesive in their look and feel."
|
1233 |
+
msgstr ""
|
1234 |
+
|
1235 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:24
|
1236 |
+
msgid "View Collections Documentation (opens in a new tab)"
|
1237 |
+
msgstr ""
|
1238 |
+
|
1239 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:24
|
1240 |
+
msgid "View Collections Documentation"
|
1241 |
+
msgstr ""
|
1242 |
+
|
1243 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:28
|
1244 |
+
msgid "How to access collections:"
|
1245 |
+
msgstr ""
|
1246 |
+
|
1247 |
+
#. translators: %1$: opening anchor tag, %2$: closing anchor tag
|
1248 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:34
|
1249 |
+
msgid "When %1$sediting a page%2$s in your website, you can access Genesis Collections by clicking the “Layouts” button in the top menu bar."
|
1250 |
msgstr ""
|
1251 |
|
1252 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:48
|
1253 |
+
msgid "Current Collections"
|
1254 |
msgstr ""
|
1255 |
|
1256 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:57
|
1257 |
+
msgid "View Slate Demo (opens in a new tab)"
|
1258 |
msgstr ""
|
1259 |
|
1260 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:57
|
1261 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:68
|
1262 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:79
|
1263 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:90
|
1264 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:101
|
1265 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:112
|
1266 |
+
msgid "View Demo"
|
1267 |
msgstr ""
|
1268 |
|
1269 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:68
|
1270 |
+
msgid "View Agency Demo (opens in a new tab)"
|
1271 |
msgstr ""
|
1272 |
|
1273 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:79
|
1274 |
+
msgid "View Altitude Demo (opens in a new tab)"
|
1275 |
msgstr ""
|
1276 |
|
1277 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:90
|
1278 |
+
msgid "View Infinity Demo (opens in a new tab)"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:101
|
1282 |
+
msgid "View Monochrome Demo (opens in a new tab)"
|
1283 |
msgstr ""
|
1284 |
|
1285 |
+
#: lib/Settings/views/admin/tabs/genesis-collections.php:112
|
1286 |
+
msgid "View Tangerine Demo (opens in a new tab)"
|
1287 |
msgstr ""
|
1288 |
|
1289 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:22
|
1290 |
+
msgid "Genesis Pro provides advanced tools for building better WordPress websites faster! Unlock new features and tools across the Genesis platform including additional blocks and collections, advanced block features, and access to the industry’s most beloved customer support team when you need it."
|
1291 |
msgstr ""
|
1292 |
|
1293 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:24
|
1294 |
+
msgid "Get Genesis Pro"
|
1295 |
msgstr ""
|
1296 |
|
1297 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:25
|
1298 |
+
msgid "Learn more about Genesis Pro (opens in a new tab)"
|
|
|
1299 |
msgstr ""
|
1300 |
|
1301 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:25
|
1302 |
+
msgid "Learn More"
|
1303 |
msgstr ""
|
1304 |
|
1305 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:29
|
1306 |
+
msgid "Genesis Pro at a glance"
|
1307 |
msgstr ""
|
1308 |
|
1309 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:31
|
1310 |
+
msgid "Advanced features for Genesis Blocks"
|
1311 |
msgstr ""
|
1312 |
|
1313 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:32
|
1314 |
+
msgid "Access to all design Collections"
|
1315 |
msgstr ""
|
1316 |
|
1317 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:33
|
1318 |
+
msgid "Extra Genesis Blocks"
|
1319 |
msgstr ""
|
1320 |
|
1321 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:34
|
1322 |
+
msgid "24/7 Customer Support"
|
1323 |
msgstr ""
|
1324 |
|
1325 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:43
|
1326 |
+
msgid "Sections and Layouts"
|
1327 |
msgstr ""
|
1328 |
|
1329 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:44
|
1330 |
+
msgid "Genesis Pro provides you with a growing collection of page-building section and layout designs. Mix and match from over 70 pre-made designs to create beautiful pages in seconds. There are plenty of designs to choose from in the ever-growing collection."
|
1331 |
msgstr ""
|
1332 |
|
1333 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:48
|
1334 |
+
msgid "Premium Block Library"
|
1335 |
msgstr ""
|
1336 |
|
1337 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:49
|
1338 |
+
msgid "Genesis Pro comes with additional blocks for advanced site building including the Device Mockup and Portfolio blocks."
|
1339 |
+
msgstr ""
|
1340 |
+
|
1341 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:55
|
1342 |
+
msgid "Block-based access controls"
|
1343 |
+
msgstr ""
|
1344 |
+
|
1345 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:56
|
1346 |
+
msgid "Genesis Pro provides you the option to control which user roles have access to the settings of individual blocks. This is useful if you have specific brand styles (font styles, colors, etc.) and you don’t want to allow editors, authors, and/or contributors to change any branded elements."
|
1347 |
+
msgstr ""
|
1348 |
+
|
1349 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:60
|
1350 |
+
msgid "Industry-leading support"
|
1351 |
+
msgstr ""
|
1352 |
+
|
1353 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:61
|
1354 |
+
msgid "A Genesis Pro subscription gives you access to the incredible Customer Experience teams that have been the foundation of WP Engine and StudioPress. You will be able to build with confidence, knowing that you have extensive documentation and 24/7 support available."
|
1355 |
+
msgstr ""
|
1356 |
+
|
1357 |
+
#: lib/Settings/views/admin/tabs/genesis-pro.php:65
|
1358 |
+
msgid "Get started with Genesis Pro"
|
1359 |
msgstr ""
|
1360 |
|
1361 |
#: src/blocks/block-author-profile/deprecated/1.8.2/filter.php:59
|
1571 |
msgid "Newsletter Block"
|
1572 |
msgstr ""
|
1573 |
|
1574 |
+
#: src/blocks/block-newsletter/index.php:282
|
1575 |
+
#: src/blocks/block-newsletter/index.php:288
|
1576 |
+
msgid "Newsletter Block Settings"
|
1577 |
+
msgstr ""
|
1578 |
+
|
1579 |
+
#: src/blocks/block-newsletter/index.php:288
|
1580 |
+
msgid "Setup the email newsletter block with Mailchimp."
|
1581 |
msgstr ""
|
1582 |
|
1583 |
#: src/blocks/block-newsletter/index.php:288
|
1584 |
+
msgid "View Documentation"
|
1585 |
+
msgstr ""
|
1586 |
+
|
1587 |
+
#: src/blocks/block-newsletter/index.php:296
|
1588 |
+
msgid "Mailchimp API Key"
|
1589 |
+
msgstr ""
|
1590 |
+
|
1591 |
+
#: src/blocks/block-newsletter/index.php:301
|
1592 |
msgid "Your Mailchimp API key is required for the Newsletter block to communicate with your Mailchimp account."
|
1593 |
msgstr ""
|
1594 |
|
1662 |
msgid "To continue receiving the best of what our team is building, we encourage you to migrate. Our migration tool makes this nice and easy, and for the majority of use cases, completely automated."
|
1663 |
msgstr ""
|
1664 |
|
1665 |
+
#: lib/Migration/js/src/components/intro.js:33
|
1666 |
msgid "Need to let the developer for this site know about this? Send them this link."
|
1667 |
msgstr ""
|
1668 |
|
1669 |
+
#: lib/Migration/js/src/components/intro.js:35
|
1670 |
msgid "Developer Notice"
|
1671 |
msgstr ""
|
1672 |
|
1673 |
+
#: lib/Migration/js/src/components/intro.js:39
|
1674 |
msgid "Let’s Migrate"
|
1675 |
msgstr ""
|
1676 |
|
1816 |
msgid "I have made necessary changes to PHP and CSS."
|
1817 |
msgstr ""
|
1818 |
|
1819 |
+
#: lib/Settings/js/src/components/settings.js:73
|
1820 |
+
msgid "No fields found for this section."
|
1821 |
+
msgstr ""
|
1822 |
+
|
1823 |
+
#: lib/Settings/js/src/components/settings.js:113
|
1824 |
+
msgid "Settings saved"
|
1825 |
+
msgstr ""
|
1826 |
+
|
1827 |
+
#: lib/Settings/js/src/components/settings.js:114
|
1828 |
+
msgid "Saving failed"
|
1829 |
+
msgstr ""
|
1830 |
+
|
1831 |
+
#: lib/Settings/js/src/components/settings.js:117
|
1832 |
+
msgid "Save All"
|
1833 |
+
msgstr ""
|
1834 |
+
|
1835 |
#: src/blocks/block-accordion/components/edit.js:45
|
1836 |
msgid "Accordion Title"
|
1837 |
msgstr ""
|
2291 |
msgid "Return to Column Selection"
|
2292 |
msgstr ""
|
2293 |
|
|
|
|
|
|
|
|
|
|
|
2294 |
#: src/blocks/block-column/components/inspector.js:79
|
2295 |
#: src/blocks/block-column/index.js:121
|
2296 |
msgid "Column Count"
|
2569 |
msgstr ""
|
2570 |
|
2571 |
#: src/blocks/block-layout/components/edit.js:39
|
2572 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:84
|
2573 |
msgid "Layout Selector"
|
2574 |
msgstr ""
|
2575 |
|
2577 |
msgid "Launch the layout library to browse pre-designed sections."
|
2578 |
msgstr ""
|
2579 |
|
2580 |
+
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:50
|
2581 |
msgid "Collections Available"
|
2582 |
msgstr ""
|
2583 |
|
2584 |
+
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:88
|
2585 |
msgid "Page Layouts"
|
2586 |
msgstr ""
|
2587 |
|
2588 |
+
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:92
|
2589 |
msgid "Page Sections"
|
2590 |
msgstr ""
|
2591 |
|
2592 |
+
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:98
|
2593 |
msgid "Layout Options in this Collection"
|
2594 |
msgstr ""
|
2595 |
|
2596 |
+
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:122
|
2597 |
msgid "View All Collections "
|
2598 |
msgstr ""
|
2599 |
|
2600 |
+
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:132
|
2601 |
msgid "Collections "
|
2602 |
msgstr ""
|
2603 |
|
2604 |
+
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:138
|
2605 |
msgid "Browsing "
|
2606 |
msgstr ""
|
2607 |
|
2608 |
+
#: src/blocks/block-layout/components/layout/collections/views/Collections.js:165
|
2609 |
msgid "Learn about Collections"
|
2610 |
msgstr ""
|
2611 |
|
2612 |
+
#: src/blocks/block-layout/components/layout/layout-library-item-card.js:63
|
2613 |
msgid "Remove from Favorites"
|
2614 |
msgstr ""
|
2615 |
|
2616 |
+
#: src/blocks/block-layout/components/layout/layout-library-item-card.js:67
|
2617 |
msgid "Add to Favorites"
|
2618 |
msgstr ""
|
2619 |
|
2621 |
msgid "Edit"
|
2622 |
msgstr ""
|
2623 |
|
2624 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:37
|
2625 |
msgid "Sections"
|
2626 |
msgstr ""
|
2627 |
|
2628 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:45
|
2629 |
#: src/blocks/block-layout/index.js:23
|
2630 |
#: src/blocks/block-layout/index.js:75
|
2631 |
msgid "Layouts"
|
2632 |
msgstr ""
|
2633 |
|
2634 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:52
|
|
|
|
|
|
|
|
|
2635 |
msgid "Favorites"
|
2636 |
msgstr ""
|
2637 |
|
2638 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:59
|
2639 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:114
|
2640 |
msgid "Reusable Blocks"
|
2641 |
msgstr ""
|
2642 |
|
2643 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:75
|
2644 |
msgid "Layout Library"
|
2645 |
msgstr ""
|
2646 |
|
2647 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:101
|
2648 |
msgid "Add Custom Layouts"
|
2649 |
msgstr ""
|
2650 |
|
2651 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:125
|
2652 |
msgid "Send Feedback"
|
2653 |
msgstr ""
|
2654 |
|
2655 |
+
#: src/blocks/block-layout/components/layout/layout-modal.js:142
|
2656 |
msgid "Default tab content"
|
2657 |
msgstr ""
|
2658 |
|
3438 |
msgid "Add a user testimonial with a name and title."
|
3439 |
msgstr ""
|
3440 |
|
3441 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:203
|
|
|
|
|
|
|
|
|
3442 |
msgid "Desktop view"
|
3443 |
msgstr ""
|
3444 |
|
3445 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:208
|
3446 |
msgid "Desktop"
|
3447 |
msgstr ""
|
3448 |
|
3449 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:213
|
3450 |
msgid "Tablet view"
|
3451 |
msgstr ""
|
3452 |
|
3453 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:218
|
3454 |
msgid "Tablet"
|
3455 |
msgstr ""
|
3456 |
|
3457 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:223
|
3458 |
msgid "Mobile view"
|
3459 |
msgstr ""
|
3460 |
|
3461 |
+
#: src/blocks/responsive-settings/components/with-responsive-settings.js:228
|
3462 |
msgid "Mobile"
|
3463 |
msgstr ""
|
3464 |
|
lib/Analytics/AdminPage.php
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Genesis Analytics Admin Page
|
4 |
+
* Handles settings registration.
|
5 |
+
*
|
6 |
+
* @package Genesis\Blocks\Analytics
|
7 |
+
* @since 1.3.0
|
8 |
+
* @author StudioPress
|
9 |
+
* @license GPL-2.0-or-later
|
10 |
+
* @link https://github.com/studiopress/genesis-blocks/
|
11 |
+
*/
|
12 |
+
|
13 |
+
declare(strict_types=1);
|
14 |
+
|
15 |
+
namespace Genesis\Blocks\Analytics;
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Genesis Analytics Admin Page
|
19 |
+
*
|
20 |
+
* @since 1.3.0
|
21 |
+
*/
|
22 |
+
final class AdminPage {
|
23 |
+
/**
|
24 |
+
* Plugin context.
|
25 |
+
*
|
26 |
+
* @since 1.3.0
|
27 |
+
* @var array
|
28 |
+
*/
|
29 |
+
private $context;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Class Constructor.
|
33 |
+
*
|
34 |
+
* @since 1.3.0
|
35 |
+
* @param array $context Plugin context.
|
36 |
+
*/
|
37 |
+
public function __construct( array $context ) {
|
38 |
+
$this->context = $context;
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Initializes this class
|
43 |
+
*
|
44 |
+
* @since 1.4.0
|
45 |
+
*/
|
46 |
+
public function init(): void {
|
47 |
+
add_action( 'init', [ $this, 'register_analytics_settings' ] );
|
48 |
+
add_action( 'admin_init', [ $this, 'register_general_settings_section' ] );
|
49 |
+
add_action( 'admin_init', [ $this, 'register_general_settings_heading' ], 1 );
|
50 |
+
add_action( 'admin_init', [ $this, 'register_analytics_fields' ] );
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Registers the General settings tab.
|
55 |
+
*
|
56 |
+
* @since 1.4.0
|
57 |
+
*/
|
58 |
+
public function register_general_settings_section(): void {
|
59 |
+
add_settings_section(
|
60 |
+
'genesis_blocks_settings_general_section',
|
61 |
+
__( 'General', 'genesis-blocks' ),
|
62 |
+
null, // Rendering is handled by React, not WordPress.
|
63 |
+
'genesis_blocks_global_settings'
|
64 |
+
);
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Adds the General Settings tab heading.
|
69 |
+
*
|
70 |
+
* @since 1.4.0
|
71 |
+
*/
|
72 |
+
public function register_general_settings_heading(): void {
|
73 |
+
add_settings_field(
|
74 |
+
'genesis_blocks_general_intro',
|
75 |
+
__( 'General Settings', 'genesis-blocks' ),
|
76 |
+
null, // Rendering is handled by React, not WordPress.
|
77 |
+
'genesis_blocks_global_settings',
|
78 |
+
'genesis_blocks_settings_general_section',
|
79 |
+
[
|
80 |
+
// phpcs:ignore WordPress.WP.I18n.NoHtmlWrappedStrings -- passing to React to render.
|
81 |
+
'content' => __( '<h2>General Settings</h2>', 'genesis-blocks' ),
|
82 |
+
'type' => 'html',
|
83 |
+
]
|
84 |
+
);
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Registers the Analytics Opt In settings.
|
89 |
+
*
|
90 |
+
* @since 1.4.0
|
91 |
+
*/
|
92 |
+
public function register_analytics_settings(): void {
|
93 |
+
register_setting(
|
94 |
+
'genesis_blocks_analytics_settings',
|
95 |
+
'genesis_blocks_analytics_opt_in',
|
96 |
+
array(
|
97 |
+
'type' => 'string',
|
98 |
+
'sanitize_callback' => 'sanitize_text_field',
|
99 |
+
'show_in_rest' => true,
|
100 |
+
'default' => '0',
|
101 |
+
)
|
102 |
+
);
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Registers form fields for the Analytics Opt In setting.
|
107 |
+
*
|
108 |
+
* @since 1.4.0
|
109 |
+
*/
|
110 |
+
public function register_analytics_fields(): void {
|
111 |
+
add_settings_field(
|
112 |
+
'genesis_blocks_analytics_opt_in',
|
113 |
+
__( 'Analytics', 'genesis-blocks' ),
|
114 |
+
null, // Rendering is handled by React, not WordPress.
|
115 |
+
'genesis_blocks_global_settings',
|
116 |
+
'genesis_blocks_settings_general_section',
|
117 |
+
[
|
118 |
+
'class' => 'gb-inline-radio',
|
119 |
+
'help' => __( 'Opt into anonymous usage tracking to help us make Genesis Blocks better.', 'genesis-blocks' ),
|
120 |
+
'type' => 'radio',
|
121 |
+
'options' => [
|
122 |
+
'1' => __( 'Enabled', 'genesis-blocks' ),
|
123 |
+
'0' => __( 'Disabled', 'genesis-blocks' ),
|
124 |
+
],
|
125 |
+
]
|
126 |
+
);
|
127 |
+
}
|
128 |
+
}
|
lib/Analytics/AssetManager.php
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Genesis Analytics Asset Manager
|
4 |
+
* Responsible for enqueueing GA scripts.
|
5 |
+
*
|
6 |
+
* @package Genesis\Blocks\Analytics
|
7 |
+
* @since 1.3.0
|
8 |
+
* @author StudioPress
|
9 |
+
* @license GPL-2.0-or-later
|
10 |
+
* @link https://github.com/studiopress/genesis-blocks/
|
11 |
+
*/
|
12 |
+
|
13 |
+
declare(strict_types=1);
|
14 |
+
namespace Genesis\Blocks\Analytics;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Asset Manager Class
|
18 |
+
*
|
19 |
+
* @since 1.3.0
|
20 |
+
*/
|
21 |
+
final class AssetManager {
|
22 |
+
/**
|
23 |
+
* Plugin context.
|
24 |
+
*
|
25 |
+
* @since 1.3.0
|
26 |
+
* @var array
|
27 |
+
*/
|
28 |
+
private $context;
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Class Constructor.
|
32 |
+
*
|
33 |
+
* @since 1.3.0
|
34 |
+
* @param array $context Plugin context.
|
35 |
+
*/
|
36 |
+
public function __construct( array $context ) {
|
37 |
+
$this->context = $context;
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Initializes this class
|
42 |
+
*
|
43 |
+
* @since 1.3.0
|
44 |
+
*/
|
45 |
+
public function init(): void {
|
46 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_ga_script' ) );
|
47 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_ga_client_script' ) );
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Enqueues Google Analytics Script
|
52 |
+
* Checks if either the new genesis_blocks_analytics_opt_in option is set
|
53 |
+
* or if the old genesis_page_builder_analytics_opt_in option is set.
|
54 |
+
*
|
55 |
+
* @since 1.3.0
|
56 |
+
*/
|
57 |
+
public function enqueue_ga_script(): void {
|
58 |
+
// Get the current opt in setting first
|
59 |
+
$ga_opt_in = filter_var( get_option( 'genesis_blocks_analytics_opt_in', false ), FILTER_VALIDATE_BOOLEAN );
|
60 |
+
|
61 |
+
if ( ! $ga_opt_in ) {
|
62 |
+
// Get the Old GBP opt in setting
|
63 |
+
$ga_opt_in = filter_var( get_option( 'genesis_page_builder_analytics_opt_in', false ), FILTER_VALIDATE_BOOLEAN );
|
64 |
+
}
|
65 |
+
|
66 |
+
// If the user still hasn't opted in, return void early
|
67 |
+
if ( ! $ga_opt_in ) {
|
68 |
+
return;
|
69 |
+
}
|
70 |
+
|
71 |
+
wp_enqueue_script(
|
72 |
+
'genesis-analytics#async',
|
73 |
+
'https://www.googletagmanager.com/gtag/js?id=UA-17364082-14',
|
74 |
+
array(),
|
75 |
+
filemtime( $this->context['path'] . 'dist/blocks.build.js' ),
|
76 |
+
false
|
77 |
+
);
|
78 |
+
|
79 |
+
wp_localize_script(
|
80 |
+
'genesis-analytics#async',
|
81 |
+
'genesisAnalyticsConfig',
|
82 |
+
array( 'ga_opt_in' => 1 )
|
83 |
+
);
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Enqueue the Genesis Analytics Client script
|
88 |
+
*
|
89 |
+
* @since 1.3.0
|
90 |
+
*/
|
91 |
+
public function enqueue_ga_client_script(): void {
|
92 |
+
$file_path = 'lib/Analytics/js/gaClient.js';
|
93 |
+
wp_enqueue_script(
|
94 |
+
'genesis-analytics-client',
|
95 |
+
$this->context['url'] . $file_path,
|
96 |
+
array(),
|
97 |
+
filemtime( $this->context['path'] . $file_path ),
|
98 |
+
false
|
99 |
+
);
|
100 |
+
}
|
101 |
+
|
102 |
+
}
|
lib/Analytics/Module.php
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Genesis Analytics Module
|
4 |
+
*
|
5 |
+
* Controls Analytics usage for the Genesis Blocks plugin.
|
6 |
+
*
|
7 |
+
* @package Genesis\Blocks\Analytics
|
8 |
+
* @since 1.3.0
|
9 |
+
* @author StudioPress
|
10 |
+
* @license GPL-2.0-or-later
|
11 |
+
* @link https://github.com/studiopress/genesis-blocks/
|
12 |
+
*/
|
13 |
+
|
14 |
+
declare(strict_types=1);
|
15 |
+
namespace Genesis\Blocks\Analytics;
|
16 |
+
|
17 |
+
use Genesis\Blocks\Interfaces\ModuleInterface;
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Module Class
|
21 |
+
* Allows Genesis Blocks to initiate this module.
|
22 |
+
*
|
23 |
+
* @since 1.3.0
|
24 |
+
* @uses \Genesis\Blocks\Interface\ModuleInterface
|
25 |
+
*/
|
26 |
+
final class Module implements ModuleInterface {
|
27 |
+
/**
|
28 |
+
* Checks if this module is enabled.
|
29 |
+
*
|
30 |
+
* Modules can specify conditions when they should be disabled (other plugin
|
31 |
+
* is active, or in response to a user preference). Can also be used to
|
32 |
+
* quickly disable a module manually by editing the is_enabled return value.
|
33 |
+
*
|
34 |
+
* @since 1.0.0
|
35 |
+
* @return bool
|
36 |
+
*/
|
37 |
+
public function is_enabled(): bool {
|
38 |
+
return current_user_can( 'manage_options' );
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Module Activation
|
43 |
+
* Logic to be run when this module is activated.
|
44 |
+
*
|
45 |
+
* @since 1.0.0
|
46 |
+
* @uses Genesis\Blocks\Analytics\AdminPage
|
47 |
+
* @uses Genesis\Blocks\Analytics\AssetManager
|
48 |
+
* @param array $context Current environment information.
|
49 |
+
*
|
50 |
+
* @return void
|
51 |
+
*/
|
52 |
+
public function activate( array $context ): void {
|
53 |
+
( new AdminPage( $context ) )->init();
|
54 |
+
( new AssetManager( $context ) )->init();
|
55 |
+
}
|
56 |
+
}
|
lib/Analytics/js/gaClient.js
ADDED
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function () {
|
2 |
+
window.dataLayer = window.dataLayer || [];
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Ensures that the provided function isn't called
|
6 |
+
* multiple times in succession.
|
7 |
+
*
|
8 |
+
* @param {() => any} func
|
9 |
+
* @param {number} wait
|
10 |
+
*
|
11 |
+
* @returns {() => void}
|
12 |
+
*/
|
13 |
+
const debounce = (func, wait) => {
|
14 |
+
let timeout;
|
15 |
+
return function executedFunction(...args) {
|
16 |
+
const later = () => {
|
17 |
+
clearTimeout(timeout);
|
18 |
+
func(...args);
|
19 |
+
};
|
20 |
+
|
21 |
+
clearTimeout(timeout);
|
22 |
+
timeout = setTimeout(later, wait);
|
23 |
+
};
|
24 |
+
};
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Genesis Analytics Client
|
28 |
+
*
|
29 |
+
* @note Follows the singleton pattern to prevent multiple instances of the GA Client from being used.
|
30 |
+
* @doc https://developers.google.com/analytics/devguides/collection/gtagjs
|
31 |
+
*/
|
32 |
+
class GAClient {
|
33 |
+
/**
|
34 |
+
* Is Google Analytics enabled.
|
35 |
+
*
|
36 |
+
* @type {boolean}
|
37 |
+
*/
|
38 |
+
enabled = false;
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Google Analytics Client
|
42 |
+
*
|
43 |
+
* @type {Object}
|
44 |
+
*/
|
45 |
+
client;
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Google Analytics Measurment ID
|
49 |
+
*
|
50 |
+
* @type {string}
|
51 |
+
*/
|
52 |
+
GA_ID = "UA-17364082-14";
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Class constructor
|
56 |
+
*/
|
57 |
+
constructor() {
|
58 |
+
this.client = function () {
|
59 |
+
window.dataLayer.push(arguments);
|
60 |
+
};
|
61 |
+
|
62 |
+
this.config = window.genesisAnalyticsConfig || {};
|
63 |
+
if (this.config.ga_opt_in) {
|
64 |
+
this.enableAnalytics(this.config.ga_opt_in);
|
65 |
+
this.initClient();
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Enables Google Analytics
|
71 |
+
* Setting this value allows the GA Client to respect any opt out configuration
|
72 |
+
*
|
73 |
+
* @doc https://developers.google.com/analytics/devguides/collection/gtagjs/user-opt-out
|
74 |
+
*
|
75 |
+
* @param {boolean | number | string} enable The value to be set
|
76 |
+
*/
|
77 |
+
enableAnalytics(enable) {
|
78 |
+
enable = !!+enable;
|
79 |
+
|
80 |
+
if (enable) {
|
81 |
+
// Remove ga-disable-GA_MEASUREMENT_ID property to enable GA
|
82 |
+
delete window[`ga-disable-${this.GA_ID}`];
|
83 |
+
} else {
|
84 |
+
// Set ga-disable-GA_MEASUREMENT_ID property to disable GA
|
85 |
+
window[`ga-disable-${this.GA_ID}`] = "1";
|
86 |
+
}
|
87 |
+
this.enabled = enable;
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Sets up the initial values of the Google Analytics client.
|
92 |
+
*/
|
93 |
+
initClient() {
|
94 |
+
this.client("js", new Date());
|
95 |
+
this.client("config", this.GA_ID, { send_page_view: false });
|
96 |
+
}
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Sends an event to Google Analytics
|
100 |
+
*
|
101 |
+
* @param {string} action
|
102 |
+
* @param {{event_category: string; event_label?: string;}} params
|
103 |
+
*/
|
104 |
+
send(action, params) {
|
105 |
+
if (this.enabled) {
|
106 |
+
this.client("event", action, params);
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
+
/**
|
111 |
+
* Creates a debounced copy of send method
|
112 |
+
*/
|
113 |
+
sendDebounce = debounce(this.send.bind(this), 500);
|
114 |
+
|
115 |
+
/**
|
116 |
+
* Attaches the currently selected block name to the send parameters.
|
117 |
+
* If no event_label is provided, then the block name is used as the event_label.
|
118 |
+
*
|
119 |
+
* @param {{action: string; event_category: string; event_label?: string; throttle?: boolean;}} args
|
120 |
+
*/
|
121 |
+
sendBlockEvent(args) {
|
122 |
+
const data = window.wp.data.select("core/block-editor");
|
123 |
+
const block = data ? data.getSelectedBlock().name : "Undefined";
|
124 |
+
|
125 |
+
const { throttle, action, ...params } = args;
|
126 |
+
params.event_label = params.event_label
|
127 |
+
? `${params.event_label} - ${block}`
|
128 |
+
: block;
|
129 |
+
|
130 |
+
if (throttle) {
|
131 |
+
this.sendDebounce(action, params);
|
132 |
+
} else {
|
133 |
+
this.send(action, params);
|
134 |
+
}
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
// Assigns an instantiated class (Singleton pattern) to the Window global object
|
139 |
+
window.GenesisAnalytics = {
|
140 |
+
debounce,
|
141 |
+
GAClient: new GAClient(),
|
142 |
+
};
|
143 |
+
})(window);
|
lib/Migration/Admin.php
CHANGED
@@ -60,7 +60,7 @@ class Admin {
|
|
60 |
*/
|
61 |
public function add_submenu_page() {
|
62 |
add_submenu_page(
|
63 |
-
'genesis-blocks-
|
64 |
esc_html__( 'Migrate to Genesis Blocks', 'genesis-blocks' ),
|
65 |
esc_html__( 'Migrate', 'genesis-blocks' ),
|
66 |
'manage_options',
|
@@ -81,10 +81,17 @@ class Admin {
|
|
81 |
return;
|
82 |
}
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
wp_enqueue_style(
|
85 |
self::MENU_SLUG,
|
86 |
$this->plugin_info['url'] . '/lib/Migration/assets/css/admin.css',
|
87 |
-
[],
|
88 |
$this->plugin_info['version']
|
89 |
);
|
90 |
|
@@ -115,19 +122,23 @@ class Admin {
|
|
115 |
* @since 1.1.0
|
116 |
*/
|
117 |
public function render_page() {
|
118 |
-
$
|
119 |
if ( genesis_blocks_is_pro() ) {
|
120 |
-
$
|
121 |
}
|
122 |
?>
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
<
|
|
|
|
|
|
|
|
|
|
|
127 |
</div>
|
128 |
</div>
|
129 |
|
130 |
-
<div class="gb-migration__content"></div>
|
131 |
<?php
|
132 |
}
|
133 |
}
|
60 |
*/
|
61 |
public function add_submenu_page() {
|
62 |
add_submenu_page(
|
63 |
+
'genesis-blocks-getting-started',
|
64 |
esc_html__( 'Migrate to Genesis Blocks', 'genesis-blocks' ),
|
65 |
esc_html__( 'Migrate', 'genesis-blocks' ),
|
66 |
'manage_options',
|
81 |
return;
|
82 |
}
|
83 |
|
84 |
+
wp_enqueue_style(
|
85 |
+
'genesis-blocks-getting-started-style',
|
86 |
+
plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/css/admin.css',
|
87 |
+
[],
|
88 |
+
$this->plugin_info['version']
|
89 |
+
);
|
90 |
+
|
91 |
wp_enqueue_style(
|
92 |
self::MENU_SLUG,
|
93 |
$this->plugin_info['url'] . '/lib/Migration/assets/css/admin.css',
|
94 |
+
[ 'genesis-blocks-getting-started-style' ],
|
95 |
$this->plugin_info['version']
|
96 |
);
|
97 |
|
122 |
* @since 1.1.0
|
123 |
*/
|
124 |
public function render_page() {
|
125 |
+
$page_title = __( 'Migrate from Atomic Blocks to Genesis Blocks', 'genesis-blocks' );
|
126 |
if ( genesis_blocks_is_pro() ) {
|
127 |
+
$page_title = __( 'Genesis Blocks Pro Migration Tool', 'genesis-blocks' );
|
128 |
}
|
129 |
?>
|
130 |
+
|
131 |
+
<div class="wrap">
|
132 |
+
<div id="gb-admin-plugin-admin">
|
133 |
+
<div class="gb-admin-plugin-admin-header">
|
134 |
+
<div class="gb-admin-plugin-header-title-area">
|
135 |
+
<h1><img class="gb-plugin-common-logo" src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/genesis-planet-icon.svg' ); ?>" alt="<?php esc_html_e( 'Genesis Blocks', 'genesis-blocks' ); ?>" /><?php echo esc_html( $page_title ); ?></h1>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
<div class="gb-migration__content gb-admin-plugin-admin-body"></div>
|
139 |
</div>
|
140 |
</div>
|
141 |
|
|
|
142 |
<?php
|
143 |
}
|
144 |
}
|
lib/Migration/assets/css/admin.css
CHANGED
@@ -1,287 +1,93 @@
|
|
1 |
-
:root {
|
2 |
-
--color-brand: #06c;
|
3 |
-
--color-pink: #ff227e;
|
4 |
-
--color-orange: #ff7c53;
|
5 |
-
--color-heading: #000;
|
6 |
-
--color-body: rgb(51, 51, 51);
|
7 |
-
--color-white: #fff;
|
8 |
-
--color-black: #000;
|
9 |
-
--color-gray: #edf2f7;
|
10 |
-
--color-green: #48bb78;
|
11 |
-
--color-green-dark: #289f5a;
|
12 |
-
|
13 |
-
--color-blue: #0053ac;
|
14 |
-
--color-blue-100: #e8f3fc;
|
15 |
-
--color-blue-200: #b3d2ee;
|
16 |
-
--color-blue-300: #a6c4e1;
|
17 |
-
--color-blue-600: #2373c9;
|
18 |
-
--color-blue-700: #0061cb;
|
19 |
-
--color-blue-800: #004492;
|
20 |
-
|
21 |
-
--color-gray-100: #f7fafc;
|
22 |
-
--color-gray-200: #edf2f7;
|
23 |
-
--color-gray-300: #e2e8f0;
|
24 |
-
--color-gray-400: #cbd5e0;
|
25 |
-
--color-gray-500: #a0aec0;
|
26 |
-
--color-gray-600: #718096;
|
27 |
-
--color-gray-700: #4a5568;
|
28 |
-
--color-gray-800: #2d3748;
|
29 |
-
--color-gray-900: #1a202c;
|
30 |
-
|
31 |
-
--box-shadow: 10px 10px 20px 0 rgba(185, 185, 185, 0.1);
|
32 |
-
--box-shadow-small: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
33 |
-
}
|
34 |
-
|
35 |
-
.genesis-blocks_page_genesis-blocks-migrate .intro-wrap {
|
36 |
-
background-color: #06c;
|
37 |
-
background-image: linear-gradient(90deg, #06c 0%, #4eb0d3 100%);
|
38 |
-
padding: 40px 0 0 0;
|
39 |
-
}
|
40 |
-
|
41 |
-
.genesis-blocks_page_genesis-blocks-migrate .intro {
|
42 |
-
box-sizing: border-box;
|
43 |
-
display: flex;
|
44 |
-
padding: 0 4% 40px 4%;
|
45 |
-
vertical-align: top;
|
46 |
-
width: 100%;
|
47 |
-
align-items: center;
|
48 |
-
}
|
49 |
-
|
50 |
-
.genesis-blocks_page_genesis-blocks-migrate .intro h1 {
|
51 |
-
color: var(--color-white);
|
52 |
-
display: inline-block;
|
53 |
-
font-weight: 500;
|
54 |
-
font-size: 28px;
|
55 |
-
line-height: 1.2;
|
56 |
-
margin: 0;
|
57 |
-
padding-top: 2px;
|
58 |
-
}
|
59 |
-
|
60 |
-
.genesis-blocks_page_genesis-blocks-migrate .intro img {
|
61 |
-
width: 65px;
|
62 |
-
margin-right: 15px;
|
63 |
-
}
|
64 |
-
|
65 |
-
#wpcontent {
|
66 |
-
padding-left: 0;
|
67 |
-
}
|
68 |
-
|
69 |
-
.gb-migration__content {
|
70 |
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
71 |
-
line-height: 1.5;
|
72 |
-
}
|
73 |
-
|
74 |
-
.gb-migration__content {
|
75 |
-
color: var(--color-body);
|
76 |
-
font-size: 16px;
|
77 |
-
}
|
78 |
-
|
79 |
-
.gb-migration__content p {
|
80 |
-
margin-bottom: 1em;
|
81 |
-
font-size: 16px;
|
82 |
-
}
|
83 |
-
|
84 |
-
.gb-migration__content h1,
|
85 |
-
.gb-migration__content h2,
|
86 |
-
.gb-migration__content h3,
|
87 |
-
.gb-migration__content h4,
|
88 |
-
.gb-migration__content h5,
|
89 |
-
.gb-migration__content h6 {
|
90 |
-
font-weight: 500;
|
91 |
-
margin-bottom: 1em;
|
92 |
-
}
|
93 |
-
|
94 |
-
.gb-migration__content h2 {
|
95 |
-
font-size: 1.65rem;
|
96 |
-
}
|
97 |
-
|
98 |
-
.gb-migration__content a {
|
99 |
-
color: var(--color-brand);
|
100 |
-
text-decoration: underline;
|
101 |
-
}
|
102 |
-
|
103 |
.gb-migration__content {
|
104 |
display: flex;
|
105 |
flex-grow: 1;
|
106 |
flex-direction: column;
|
107 |
-
background-color: var(--color-gray);
|
108 |
}
|
109 |
|
110 |
.gb-migration__content ul {
|
111 |
list-style-type: disc;
|
112 |
-
padding-left:
|
113 |
-
margin
|
114 |
}
|
115 |
|
116 |
.gb-migration__content-wrapper {
|
117 |
-
padding: 1rem;
|
118 |
overflow: auto;
|
119 |
flex-grow: 1;
|
120 |
}
|
121 |
|
122 |
-
.gb-
|
123 |
-
|
124 |
-
padding: 1rem 2.5rem 2.5rem;
|
125 |
-
background-color: var(--color-white);
|
126 |
-
|
127 |
-
}
|
128 |
-
|
129 |
-
.gb-migration__content .container {
|
130 |
-
max-width: 1200px;
|
131 |
-
margin-left: auto;
|
132 |
-
margin-right: auto;
|
133 |
}
|
134 |
|
135 |
-
.gb-
|
136 |
-
appearance: none;
|
137 |
-
border: none;
|
138 |
-
display: flex;
|
139 |
-
color: var(--color-blue-100);
|
140 |
-
cursor: pointer;
|
141 |
-
box-shadow: var(--box-shadow-small);
|
142 |
-
padding-left: 1.25rem;
|
143 |
-
padding-right: 1.25rem;
|
144 |
-
font-size: 0.875rem;
|
145 |
-
height: 2.25rem;
|
146 |
-
line-height: 1;
|
147 |
-
font-weight: 500;
|
148 |
align-items: center;
|
149 |
-
border-radius: 0.25rem;
|
150 |
-
background-color: var(--color-blue-700);
|
151 |
-
text-decoration: none;
|
152 |
-
}
|
153 |
-
|
154 |
-
.gb-migration__content .btn:hover {
|
155 |
-
cursor: pointer;
|
156 |
-
background-color: var(--color-blue-800);
|
157 |
-
}
|
158 |
-
|
159 |
-
.gb-migration__content .btn[disabled] {
|
160 |
-
color: var(--color-gray-500);
|
161 |
-
background-color: var(--color-gray-200);
|
162 |
-
box-shadow: none;
|
163 |
-
cursor: not-allowed;
|
164 |
-
}
|
165 |
-
|
166 |
-
.gb-migration__content .btn-secondary {
|
167 |
-
color: var(--color-blue-600);
|
168 |
-
border-color: var(--color-blue-200);
|
169 |
-
background-color: var(--color-blue-100);
|
170 |
-
box-shadow: none;
|
171 |
-
border-width: 1px;
|
172 |
-
border-style: solid;
|
173 |
-
}
|
174 |
-
|
175 |
-
.gb-migration__content .btn-secondary:hover {
|
176 |
-
color: var(--color-blue-700);
|
177 |
-
background-color: var(--color-blue-200);
|
178 |
-
}
|
179 |
-
|
180 |
-
.help-text {
|
181 |
-
opacity: 0.7;
|
182 |
-
font-style: italic;
|
183 |
-
margin-top: 0.5rem;
|
184 |
-
font-size: 0.875rem;
|
185 |
-
}
|
186 |
-
|
187 |
-
.dev-notice {
|
188 |
display: flex;
|
189 |
-
|
190 |
-
|
191 |
-
height: 3rem;
|
192 |
-
justify-content: flex-start;
|
193 |
-
align-items: center;
|
194 |
-
border-width: 1px;
|
195 |
-
border-radius: 0.25rem;
|
196 |
-
border-color: var(--color-brand);
|
197 |
-
background-color: var(--color-blue-100);
|
198 |
-
}
|
199 |
-
|
200 |
-
.dev-notice > svg:first-of-type {
|
201 |
-
color: var(--color-blue-700);
|
202 |
-
}
|
203 |
-
|
204 |
-
.dev-notice svg {
|
205 |
-
color: var(--color-white);
|
206 |
-
fill: currentColor;
|
207 |
-
height: 1.25rem;
|
208 |
-
width: 1.25rem;
|
209 |
-
margin-left: 0.25rem;
|
210 |
-
}
|
211 |
-
|
212 |
-
.dev-notice > span {
|
213 |
-
color: var(--color-blue-700);
|
214 |
-
font-size: 0.875rem;
|
215 |
-
margin-left: 0.5rem;
|
216 |
-
line-height: 1;
|
217 |
-
font-weight: 500;
|
218 |
-
}
|
219 |
-
|
220 |
-
.dev-notice .btn {
|
221 |
-
color: var(--color-white);
|
222 |
-
background-color: var(--color-blue-600);
|
223 |
-
height: 2rem;
|
224 |
-
padding-right: 0.75rem;
|
225 |
-
padding-left: 0.75rem;
|
226 |
-
margin-left: auto;
|
227 |
-
}
|
228 |
-
|
229 |
-
.dev-notice .btn:hover,
|
230 |
-
.dev-notice .btn:hover svg {
|
231 |
-
color: var(--color-blue-800);
|
232 |
-
background-color: var(--color-blue-300);
|
233 |
}
|
234 |
|
235 |
.step {
|
236 |
-
background-color: var(--color-gray-
|
237 |
display: flex;
|
238 |
justify-content: flex-start;
|
239 |
-
padding-top:
|
240 |
-
padding-bottom:
|
241 |
-
padding-left:
|
242 |
-
padding-right:
|
243 |
border-top-width: 1px;
|
244 |
border-top-style: solid;
|
245 |
-
border-top-color: var(--color-gray
|
246 |
-
max-height:
|
247 |
overflow: hidden;
|
248 |
transition-duration: 200ms;
|
249 |
}
|
250 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
.step--complete:last-child {
|
252 |
background-color: rgba(0, 0, 0, 0);
|
253 |
overflow: auto;
|
254 |
max-height: none;
|
255 |
-
|
256 |
}
|
257 |
|
258 |
-
.step-icon
|
|
|
259 |
display: flex;
|
260 |
flex-shrink: 0;
|
|
|
261 |
align-items: center;
|
262 |
justify-content: center;
|
263 |
-
height: 2.
|
264 |
-
width: 2.
|
265 |
border-radius: 99999px;
|
266 |
-
border-color: var(--color-gray
|
267 |
border-width: 2px;
|
268 |
border-style: solid;
|
269 |
-
color: var(--color-gray
|
270 |
}
|
271 |
|
272 |
.step-icon svg {
|
273 |
-
width: 1.
|
274 |
-
height: 1.
|
275 |
fill: currentColor;
|
276 |
}
|
277 |
|
278 |
.step-icon span {
|
279 |
-
font-size: 1.
|
280 |
font-weight: 600;
|
281 |
}
|
282 |
|
283 |
.step h3 {
|
284 |
-
|
285 |
margin-top: 6px;
|
286 |
}
|
287 |
|
@@ -289,42 +95,46 @@
|
|
289 |
overflow: hidden;
|
290 |
transition: max-height 1s ease-in-out;
|
291 |
max-height: 200rem;
|
292 |
-
background-color: var(--color-white);
|
293 |
-
padding-top:
|
294 |
-
padding-bottom:
|
|
|
|
|
|
|
|
|
295 |
}
|
296 |
|
297 |
.step--active h3 {
|
298 |
-
color: var(--color-body);
|
299 |
}
|
300 |
|
301 |
.step--active .step-icon {
|
302 |
-
border-color: var(--color-
|
303 |
-
color: var(--color-
|
304 |
}
|
305 |
|
306 |
.step--complete .step-icon {
|
307 |
-
background-color: var(--color-
|
308 |
-
border-color: var(--color-
|
309 |
-
color: var(--color-white);
|
310 |
}
|
311 |
|
312 |
.step--complete h3 {
|
313 |
-
color: var(--color-body);
|
314 |
}
|
315 |
|
316 |
.step-content {
|
317 |
flex-grow: 1;
|
318 |
-
margin-left:
|
319 |
}
|
320 |
|
321 |
.step-footer {
|
322 |
display: flex;
|
323 |
align-items: center;
|
324 |
justify-content: space-between;
|
325 |
-
margin-top:
|
326 |
-
border-top: solid
|
327 |
-
padding-top:
|
328 |
}
|
329 |
|
330 |
.step-footer form {
|
@@ -332,60 +142,146 @@
|
|
332 |
align-items: center;
|
333 |
margin-left: auto;
|
334 |
margin-bottom: 0;
|
335 |
-
margin-right:
|
336 |
}
|
337 |
|
338 |
.step-footer button:only-child {
|
339 |
margin-left: auto;
|
340 |
}
|
341 |
|
342 |
-
.step-footer input[type="checkbox"] {
|
343 |
-
margin: 0;
|
344 |
-
}
|
345 |
-
|
346 |
-
|
347 |
.substeps li {
|
348 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
}
|
350 |
|
351 |
.substeps li.active {
|
352 |
-
|
|
|
353 |
}
|
354 |
|
355 |
.substeps li.done {
|
356 |
-
|
|
|
357 |
}
|
358 |
|
359 |
-
progress {
|
|
|
|
|
|
|
|
|
|
|
360 |
margin-left: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
361 |
}
|
362 |
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
}
|
369 |
|
370 |
.gb-migration__error {
|
371 |
-
|
372 |
-
|
373 |
-
margin-bottom: 1rem;
|
374 |
}
|
375 |
|
376 |
-
.gb-migration__error
|
377 |
-
|
378 |
-
|
379 |
}
|
380 |
|
381 |
.message-future {
|
382 |
font-size: 12px;
|
383 |
}
|
384 |
|
385 |
-
@media
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
|
387 |
-
.
|
388 |
-
|
|
|
|
|
|
|
|
|
389 |
}
|
390 |
|
391 |
}
|
@@ -408,7 +304,7 @@ label {
|
|
408 |
.components-spinner::before {
|
409 |
content: "";
|
410 |
position: absolute;
|
411 |
-
background-color: var(--color-white);
|
412 |
top: 3px;
|
413 |
left: 3px;
|
414 |
width: 4px;
|
@@ -427,4 +323,5 @@ label {
|
|
427 |
to {
|
428 |
transform: rotate(360deg);
|
429 |
}
|
|
|
430 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.gb-migration__content {
|
2 |
display: flex;
|
3 |
flex-grow: 1;
|
4 |
flex-direction: column;
|
|
|
5 |
}
|
6 |
|
7 |
.gb-migration__content ul {
|
8 |
list-style-type: disc;
|
9 |
+
padding-left: 1em;
|
10 |
+
margin: 1em 0 0;
|
11 |
}
|
12 |
|
13 |
.gb-migration__content-wrapper {
|
|
|
14 |
overflow: auto;
|
15 |
flex-grow: 1;
|
16 |
}
|
17 |
|
18 |
+
.gb-migration-intro {
|
19 |
+
margin-bottom: 2em;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
|
22 |
+
.gb-migration-intro .inline-notice {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
display: flex;
|
25 |
+
grid-gap: 2em;
|
26 |
+
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
.step {
|
30 |
+
background-color: var(--gb-color-gray-light);
|
31 |
display: flex;
|
32 |
justify-content: flex-start;
|
33 |
+
padding-top: 1em;
|
34 |
+
padding-bottom: 1em;
|
35 |
+
padding-left: 2em;
|
36 |
+
padding-right: 2em;
|
37 |
border-top-width: 1px;
|
38 |
border-top-style: solid;
|
39 |
+
border-top-color: var(--gb-color-gray);
|
40 |
+
max-height: 4.6em;
|
41 |
overflow: hidden;
|
42 |
transition-duration: 200ms;
|
43 |
}
|
44 |
|
45 |
+
.step:last-child {
|
46 |
+
border-bottom: 1px solid var(--gb-color-gray);
|
47 |
+
}
|
48 |
+
|
49 |
+
.step--active.step:last-child,
|
50 |
+
.step--complete:last-child {
|
51 |
+
border-bottom-width: 0;
|
52 |
+
padding-bottom: 0;
|
53 |
+
}
|
54 |
+
|
55 |
.step--complete:last-child {
|
56 |
background-color: rgba(0, 0, 0, 0);
|
57 |
overflow: auto;
|
58 |
max-height: none;
|
59 |
+
padding-bottom: 0.5em;
|
60 |
}
|
61 |
|
62 |
+
.step-icon,
|
63 |
+
.substep-icon {
|
64 |
display: flex;
|
65 |
flex-shrink: 0;
|
66 |
+
font-weight: 600;
|
67 |
align-items: center;
|
68 |
justify-content: center;
|
69 |
+
height: 2.5em;
|
70 |
+
width: 2.5em;
|
71 |
border-radius: 99999px;
|
72 |
+
border-color: var(--gb-color-gray);
|
73 |
border-width: 2px;
|
74 |
border-style: solid;
|
75 |
+
color: var(--gb-color-gray);
|
76 |
}
|
77 |
|
78 |
.step-icon svg {
|
79 |
+
width: 1.5em;
|
80 |
+
height: 1.5em;
|
81 |
fill: currentColor;
|
82 |
}
|
83 |
|
84 |
.step-icon span {
|
85 |
+
font-size: 1.25em;
|
86 |
font-weight: 600;
|
87 |
}
|
88 |
|
89 |
.step h3 {
|
90 |
+
margin-bottom: 6px;
|
91 |
margin-top: 6px;
|
92 |
}
|
93 |
|
95 |
overflow: hidden;
|
96 |
transition: max-height 1s ease-in-out;
|
97 |
max-height: 200rem;
|
98 |
+
background-color: var(--gb-color-white);
|
99 |
+
padding-top: 2em;
|
100 |
+
padding-bottom: 2em;
|
101 |
+
}
|
102 |
+
|
103 |
+
.step h3 {
|
104 |
+
color: var(--gb-color-gray);
|
105 |
}
|
106 |
|
107 |
.step--active h3 {
|
108 |
+
color: var(--gb-color-body);
|
109 |
}
|
110 |
|
111 |
.step--active .step-icon {
|
112 |
+
border-color: var(--gb-color-brand);
|
113 |
+
color: var(--gb-color-brand);
|
114 |
}
|
115 |
|
116 |
.step--complete .step-icon {
|
117 |
+
background-color: var(--gb-color-body);
|
118 |
+
border-color: var(--gb-color-body);
|
119 |
+
color: var(--gb-color-white);
|
120 |
}
|
121 |
|
122 |
.step--complete h3 {
|
123 |
+
color: var(--gb-color-body);
|
124 |
}
|
125 |
|
126 |
.step-content {
|
127 |
flex-grow: 1;
|
128 |
+
margin-left: 2em;
|
129 |
}
|
130 |
|
131 |
.step-footer {
|
132 |
display: flex;
|
133 |
align-items: center;
|
134 |
justify-content: space-between;
|
135 |
+
margin-top: 2em;
|
136 |
+
border-top: 1px solid #e1e9f1;
|
137 |
+
padding-top: 1em;
|
138 |
}
|
139 |
|
140 |
.step-footer form {
|
142 |
align-items: center;
|
143 |
margin-left: auto;
|
144 |
margin-bottom: 0;
|
145 |
+
margin-right: 1em;
|
146 |
}
|
147 |
|
148 |
.step-footer button:only-child {
|
149 |
margin-left: auto;
|
150 |
}
|
151 |
|
|
|
|
|
|
|
|
|
|
|
152 |
.substeps li {
|
153 |
+
background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.207 8.293a1 1 0 0 1 0 1.414l-4.5 4.5a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 1 1 1.414-1.414L10 12.086l3.793-3.793a1 1 0 0 1 1.414 0Z' fill='%239DB7D1'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 2a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM0 11C0 4.925 4.925 0 11 0s11 4.925 11 11-4.925 11-11 11S0 17.075 0 11Z' fill='%239DB7D1'/%3E%3C/svg%3E");
|
154 |
+
background-position: center left;
|
155 |
+
background-repeat: no-repeat;
|
156 |
+
color: var(--gb-color-gray);
|
157 |
+
font-weight: 600;
|
158 |
+
list-style-type: none;
|
159 |
+
margin: 0.5em 0;
|
160 |
+
padding-left: 32px;
|
161 |
}
|
162 |
|
163 |
.substeps li.active {
|
164 |
+
background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.207 8.293a1 1 0 0 1 0 1.414l-4.5 4.5a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 1 1 1.414-1.414L10 12.086l3.793-3.793a1 1 0 0 1 1.414 0Z' fill='%237E5CEF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 2a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM0 11C0 4.925 4.925 0 11 0s11 4.925 11 11-4.925 11-11 11S0 17.075 0 11Z' fill='%237E5CEF'/%3E%3C/svg%3E");
|
165 |
+
color: var(--gb-color-brand);
|
166 |
}
|
167 |
|
168 |
.substeps li.done {
|
169 |
+
background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 0C4.925 0 0 4.925 0 11s4.925 11 11 11 11-4.925 11-11S17.075 0 11 0Zm4.207 8.293a1 1 0 0 1 0 1.414l-4.5 4.5a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 1 1 1.414-1.414L10 12.086l3.793-3.793a1 1 0 0 1 1.414 0Z' fill='%23002838'/%3E%3C/svg%3E");
|
170 |
+
color: var(--gb-color-body);
|
171 |
}
|
172 |
|
173 |
+
.gb-migration-progress {
|
174 |
+
background-color: transparent;
|
175 |
+
border: 1px solid #7e5cef;
|
176 |
+
border-radius: 4px;
|
177 |
+
display: inline-block;
|
178 |
+
height: 8px;
|
179 |
margin-left: 10px;
|
180 |
+
position: relative;
|
181 |
+
overflow: hidden;
|
182 |
+
max-width: 250px;
|
183 |
+
width: 100%;
|
184 |
+
}
|
185 |
+
|
186 |
+
.gb-migration-progress-inside {
|
187 |
+
animation: gb-migration-progress-inside-animate 3.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
188 |
+
background: linear-gradient(90deg, #1ee7ec 0%, #7e5cef 100%);
|
189 |
+
bottom: 0;
|
190 |
+
left: 0;
|
191 |
+
position: absolute;
|
192 |
+
top: 0;
|
193 |
+
transition: width 0.4s linear 0s;
|
194 |
+
transform: translateX(0%) !important;
|
195 |
+
transform-origin: left;
|
196 |
+
width: 20%;
|
197 |
}
|
198 |
|
199 |
+
.gb-migration-progress-inside .gb-migration-progress-animate2 {
|
200 |
+
animation: gb-migration-progress-inside-animate2 3.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
201 |
+
}
|
202 |
+
|
203 |
+
@keyframes gb-migration-progress-inside-animate {
|
204 |
+
|
205 |
+
0% {
|
206 |
+
left: -35%;
|
207 |
+
right: 100%;
|
208 |
+
}
|
209 |
+
|
210 |
+
60% {
|
211 |
+
left: 100%;
|
212 |
+
right: -90%;
|
213 |
+
}
|
214 |
+
|
215 |
+
100% {
|
216 |
+
left: 100%;
|
217 |
+
right: -90%;
|
218 |
+
}
|
219 |
+
|
220 |
+
}
|
221 |
+
|
222 |
+
@keyframes gb-migration-progress-inside-animate2 {
|
223 |
+
|
224 |
+
0% {
|
225 |
+
left: -200%;
|
226 |
+
right: 100%;
|
227 |
+
}
|
228 |
+
|
229 |
+
60% {
|
230 |
+
left: 107%;
|
231 |
+
right: -8%;
|
232 |
+
}
|
233 |
+
|
234 |
+
100% {
|
235 |
+
left: 107%;
|
236 |
+
right: -8%;
|
237 |
+
}
|
238 |
+
|
239 |
}
|
240 |
|
241 |
.gb-migration__error {
|
242 |
+
display: table;
|
243 |
+
margin-bottom: 1em;
|
|
|
244 |
}
|
245 |
|
246 |
+
.gb-migration__error span:first-child {
|
247 |
+
font-weight: 600;
|
248 |
+
margin-right: 1em;
|
249 |
}
|
250 |
|
251 |
.message-future {
|
252 |
font-size: 12px;
|
253 |
}
|
254 |
|
255 |
+
@media (max-width: 1023px) {
|
256 |
+
|
257 |
+
.gb-migration-intro .inline-notice,
|
258 |
+
.step-footer {
|
259 |
+
display: block;
|
260 |
+
}
|
261 |
+
|
262 |
+
.inline-notice.gb-info a {
|
263 |
+
text-align: left;
|
264 |
+
}
|
265 |
+
|
266 |
+
.step {
|
267 |
+
padding: 1em;
|
268 |
+
}
|
269 |
+
|
270 |
+
.step-content {
|
271 |
+
margin-left: 1em;
|
272 |
+
}
|
273 |
+
|
274 |
+
.step-footer button {
|
275 |
+
margin-right: 0;
|
276 |
+
margin-top: 1em;
|
277 |
+
}
|
278 |
|
279 |
+
.step-footer button + form {
|
280 |
+
margin: 1.5em 0 0.5em;
|
281 |
+
}
|
282 |
+
|
283 |
+
.step-footer .gb-checkbox-label {
|
284 |
+
line-height: 1;
|
285 |
}
|
286 |
|
287 |
}
|
304 |
.components-spinner::before {
|
305 |
content: "";
|
306 |
position: absolute;
|
307 |
+
background-color: var(--gb-color-white);
|
308 |
top: 3px;
|
309 |
left: 3px;
|
310 |
width: 4px;
|
323 |
to {
|
324 |
transform: rotate(360deg);
|
325 |
}
|
326 |
+
|
327 |
}
|
lib/Migration/js/build/migration.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '54c719420dfe3b6e75db94e376d8e79b');
|
lib/Migration/js/build/migration.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)){if(r.length){var o=c.apply(null,r);o&&e.push(o)}}else if("object"===s)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,c,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(e){a=!0,c=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw c}}return s}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(14);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=n(0),c=n(8),s=n.n(c),o=n(9),a=n.n(o),i=n(5),l=n.n(i),u=(n(3),n(1)),b=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.goToNext,s=e.goToPrevious,o=e.stepIndex,a=1===o,i=Object(u.__)("Migrating from Atomic Blocks to Genesis Blocks is a one-way action. It can’t be undone. Please back up your site before you begin.","genesis-blocks");return genesisBlocksMigration.isPro&&(i=Object(u.__)("Migrating your Genesis Blocks content is a one-way action. It can’t be undone. Please back up your site before you begin.","genesis-blocks")),Object(r.createElement)(S,{isActive:t,isComplete:n},Object(r.createElement)(M,{index:o,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Back Up Your Site","genesis-blocks"),isStepActive:t},Object(r.createElement)("p",null,i),Object(r.createElement)(C,null,!a&&Object(r.createElement)(x,{onClick:s}),Object(r.createElement)(k,{checkboxLabel:Object(u.__)("I have backed up my site.","genesis-blocks"),onClick:c,stepIndex:o}))))},p=n(2),m=n.n(p),f=n(4),g=n.n(f),d=n(6),O=n(7),j=n.n(O),h=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.stepIndex,s=e.goToNext,o=Object(r.useState)(0),a=l()(o,2),i=a[0],b=a[1],p=Object(r.useState)(!1),f=l()(p,2),O=f[0],h=f[1],v=Object(r.useState)(!1),_=l()(v,2),k=_[0],x=_[1],y=Object(r.useState)(""),E=l()(y,2),w=E[0],N=E[1],A=Object(r.useState)(!1),B=l()(A,2),I=B[0],F=B[1],L=Object(r.useState)(0),R=l()(L,2),U=R[0],H=R[1],z=[Object(u.__)("Migrate block settings.","genesis-blocks"),Object(u.__)("Migrate block content. Migrated: ","genesis-blocks")+" ".concat(U,"."),Object(u.__)("Migrate favorite blocks.","genesis-blocks"),genesisBlocksMigration.isPro?Object(u.__)("Clean up.","genesis-blocks"):Object(u.__)("Deactivate Atomic Blocks.","genesis-blocks")],G=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j()({path:"/genesis-blocks/migrate-settings",method:"POST"}).then(g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(1),e.next=3,V();case 3:return e.next=5,Y();case 5:case"end":return e.stop()}}),e)})))).catch((function(e){e.hasOwnProperty("message")&&N(e.message),Object(d.speak)(Object(u.__)("The migration failed during settings migration.","genesis-blocks")),x(!0),h(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j()({path:"/genesis-blocks/migrate-pro-settings",method:"POST"}).catch((function(e){e.hasOwnProperty("message")&&N(e.message),Object(d.speak)(Object(u.__)("The pro settings migration failed.","genesis-blocks")),x(!0)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"invalid_json",e.next=3,j()({path:"/genesis-blocks/migrate-content",method:"POST"}).then(function(){var e=g()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.results&&t.results.postsFound>0)){e.next=5;break}return H((function(e){return e+t.results.postsFound})),e.next=4,Y();case 4:return e.abrupt("return");case 5:return b(2),e.next=8,D();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch(function(){var e=g()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasOwnProperty("code")||"invalid_json"!==t.code){e.next=6;break}return e.next=3,Y();case 3:return e.abrupt("return");case 6:t.hasOwnProperty("message")&&N(t.message);case 7:Object(d.speak)(Object(u.__)("The migration failed during post content migration","genesis-blocks")),x(!0);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"invalid_json",e.next=3,j()({path:"/genesis-blocks/migrate-user-meta",method:"POST"}).then(g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(3),e.next=3,W();case 3:case"end":return e.stop()}}),e)})))).catch(function(){var e=g()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasOwnProperty("code")||"invalid_json"!==t.code){e.next=6;break}return e.next=3,D();case 3:return e.abrupt("return");case 6:t.hasOwnProperty("message")&&N(t.message);case 7:Object(d.speak)(Object(u.__)("The migration failed while migrating favorite blocks.","genesis-blocks")),x(!0);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j()({path:"/genesis-blocks/migrate-cleanup",method:"POST"}).then((function(){Object(d.speak)(Object(u.__)("The migration was successful!","genesis-blocks")),F(!0),s()}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=g()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(d.speak)(Object(u.__)("The migration is now in progress","genesis-blocks")),N(""),h(!0),e.next=5,G();case 5:h(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.createElement)(S,{isActive:t,isComplete:n},Object(r.createElement)(M,{index:c,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Migrate Your Content","genesis-blocks"),isStepActive:t,isLastStep:!0},!I&&Object(r.createElement)("p",null,Object(u.__)("Okay! Everything is ready. Let’s do this. While the migration is underway, don’t leave this page.","genesis-blocks")),!!w&&Object(r.createElement)("div",{className:"gb-migration__error"},Object(r.createElement)("p",null,Object(u.__)("The following error occurred:","genesis-blocks")),Object(r.createElement)("p",null,w)),(O||I)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(T,{steps:z,currentStep:i,complete:!O})),!O&&!I&&Object(r.createElement)("button",{className:"btn",onClick:q},k?Object(u.__)("Try Again","genesis-blocks"):Object(u.__)("Migrate Now","genesis-blocks")),I&&Object(r.createElement)(r.Fragment,null,!genesisBlocksMigration.isPro&&Object(r.createElement)("p",null,Object(r.createElement)("span",{role:"img","aria-label":Object(u.__)("party emoji","genesis-blocks")},"🎉")," ",Object(u.__)("The migration completed successfully! Time to say goodbye to Atomic Blocks (it’s been fun!) and step into the FUTURE","genesis-blocks")," ",Object(r.createElement)("span",{className:"message-future"},Object(u.__)("FUTURE","genesis-blocks"))," ",Object(r.createElement)("sub",null,Object(u.__)("FUTURE","genesis-blocks")),"."),genesisBlocksMigration.isPro&&Object(r.createElement)("p",null,Object(r.createElement)("span",{role:"img","aria-label":Object(u.__)("party emoji","genesis-blocks")},"🎉")," ",Object(u.__)("The migration completed successfully!","genesis-blocks")),Object(r.createElement)(C,null,Object(r.createElement)("a",{href:genesisBlocksMigration.gbUrl,className:"btn"},Object(u.__)("Get started with Genesis Blocks","genesis-blocks"))))))},v=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.stepIndex,s=e.goToNext,o=e.goToPrevious;return Object(r.createElement)(S,{isActive:t,isComplete:n},Object(r.createElement)(M,{index:c,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Update CSS and PHP code","genesis-blocks"),isStepActive:t},Object(r.createElement)("p",null,Object(r.createElement)("b",null,Object(u.__)("You will need to make manual changes if your theme, plugins or customizations include Atomic Blocks CSS or PHP:","genesis-blocks"))),Object(r.createElement)("ul",{className:"list-disc list-inside mt-2"},Object(r.createElement)("li",null,Object(r.createElement)("b",null,Object(u.__)("CSS","genesis-blocks"))," - ",Object(u.__)("CSS classes and HTML markup have changed.","genesis-blocks")," ",Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-css/",target:"_blank",rel:"noopener noreferrer"},Object(u.__)("Check if you need to make CSS changes.","genesis-blocks"))),Object(r.createElement)("li",null,Object(r.createElement)("b",null,Object(u.__)("PHP","genesis-blocks"))," - ",Object(u.__)("Filter, function and block names have changed.","genesis-blocks")," ",Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-php/",target:"_blank",rel:"noopener noreferrer"},Object(u.__)("Check if you need to make PHP changes.","genesis-blocks")))),Object(r.createElement)(C,null,Object(r.createElement)(x,{onClick:o}),Object(r.createElement)(k,{checkboxLabel:Object(u.__)("I have made necessary changes to PHP and CSS.","genesis-blocks"),onClick:s,stepIndex:c}))))},_=function(){var e=Object(r.useState)(1),t=l()(e,2),n=t[0],c=t[1],s=function(){c(n-1)},o=function(){c(n+1)},i=[b,v,h];return Object(r.createElement)("div",{className:"gb-migration__content-wrapper"},Object(r.createElement)("div",{className:"container gb-migration__content-container"},Object(r.createElement)(y,null),i.map((function(e,t){var c=1+t,i=n===c,l=n>c;return Object(r.createElement)(e,a()({key:"gb-migration-step-".concat(c)},{currentStepIndex:n,goToNext:o,goToPrevious:s,isStepActive:i,isStepComplete:l,stepIndex:c}))}))))},k=function(e){var t=e.onClick,n=e.checkboxLabel,c=e.stepIndex,s=Object(r.useState)(!1),o=l()(s,2),a=o[0],i=o[1];if(!n)return Object(r.createElement)("button",{className:"btn",onClick:t},Object(u.__)("Next Step","genesis-blocks"));var b="gb-migration-check-".concat(c);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("form",null,Object(r.createElement)("input",{id:b,type:"checkbox",onClick:function(){i(!a)}}),Object(r.createElement)("label",{htmlFor:b,className:"ml-2 font-medium"},n)),Object(r.createElement)("button",{className:"btn",onClick:t,disabled:!a},Object(u.__)("Next Step","genesis-blocks")))},x=function(e){var t=e.onClick;return Object(r.createElement)("button",{className:"btn btn-secondary",onClick:t},Object(u.__)("Previous","genesis-blocks"))},y=function(){var e=Object(u.__)("Atomic Blocks has been renamed to Genesis Blocks","genesis-blocks");return genesisBlocksMigration.isPro&&(e=Object(u.__)("We need to update your blocks to give you the latest features!","genesis-blocks")),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",null,Object(r.createElement)("h2",null,e),Object(r.createElement)("p",null,Object(u.__)("Same powerful blocks, same beautiful designs, same innovative team.","genesis-blocks")),Object(r.createElement)("p",null,Object(u.__)("To continue receiving the best of what our team is building, we encourage you to migrate. Our migration tool makes this nice and easy, and for the majority of use cases, completely automated.","genesis-blocks")),Object(r.createElement)("div",{className:"dev-notice"},Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20"},Object(r.createElement)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})),Object(r.createElement)("span",null,Object(u.__)("Need to let the developer for this site know about this? Send them this link.","genesis-blocks")),Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-dev/",target:"_blank",rel:"noopener noreferrer",className:"btn"},Object(r.createElement)("span",null,Object(u.__)("Developer Notice","genesis-blocks")),Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M11 3a1 1 0 100 2h3.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),Object(r.createElement)("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))))),Object(r.createElement)("h2",null,Object(u.__)("Let’s Migrate","genesis-blocks")))},E=n(10),w=n.n(E),S=function(e){var t=e.isActive,n=e.isComplete,c=e.children;return Object(r.createElement)("div",{className:w()("step",{"step--active":t,"step--complete":n})},c)},P=function(e){var t=e.children,n=e.heading,c=e.isStepActive,s=e.isLastStep;return Object(r.createElement)("div",{className:"step-content"},Object(r.createElement)("h3",null,n),(c||s)&&t)},C=function(e){var t=e.children;return Object(r.createElement)("div",{className:"step-footer"},t)},M=function(e){var t=e.index,n=e.isComplete,c="gb-migration-icon-".concat(t),s=Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":c},Object(r.createElement)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}),Object(r.createElement)("title",{id:c},Object(u.__)("Step completed","genesis-blocks")));return Object(r.createElement)("div",{className:"step-icon"},n?s:t)},T=function(e){var t=e.steps,n=e.currentStep,c=e.complete,s=t.map((function(e,s){var o="";return n===s&&(o="active"),(n>s||c&&n===t.length-1)&&(o="done"),Object(r.createElement)("li",{key:s,className:o},e,n===s&&!c&&Object(r.createElement)("progress",null))}));return Object(r.createElement)("ul",{className:"substeps"},s)};s()((function(){Object(r.render)(Object(r.createElement)(_,null),document.querySelector(".gb-migration__content"))}))}]);
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)){if(r.length){var o=c.apply(null,r);o&&e.push(o)}}else if("object"===s)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,c,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(e){a=!0,c=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw c}}return s}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(14);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=n(0),c=n(8),s=n.n(c),o=n(9),a=n.n(o),i=n(5),l=n.n(i),u=(n(3),n(1)),b=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.goToNext,s=e.goToPrevious,o=e.stepIndex,a=1===o,i=Object(u.__)("Migrating from Atomic Blocks to Genesis Blocks is a one-way action. It can’t be undone. Please back up your site before you begin.","genesis-blocks");return genesisBlocksMigration.isPro&&(i=Object(u.__)("Migrating your Genesis Blocks content is a one-way action. It can’t be undone. Please back up your site before you begin.","genesis-blocks")),Object(r.createElement)(w,{isActive:t,isComplete:n},Object(r.createElement)(N,{index:o,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Back Up Your Site","genesis-blocks"),isStepActive:t},Object(r.createElement)("p",null,i),Object(r.createElement)(C,null,!a&&Object(r.createElement)(x,{onClick:s}),Object(r.createElement)(v,{checkboxLabel:Object(u.__)("I have backed up my site.","genesis-blocks"),onClick:c,stepIndex:o}))))},p=n(2),m=n.n(p),g=n(4),f=n.n(g),d=n(6),O=n(7),j=n.n(O),h=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.stepIndex,s=e.goToNext,o=Object(r.useState)(0),a=l()(o,2),i=a[0],b=a[1],p=Object(r.useState)(!1),g=l()(p,2),O=g[0],h=g[1],_=Object(r.useState)(!1),k=l()(_,2),v=k[0],x=k[1],y=Object(r.useState)(""),E=l()(y,2),S=E[0],T=E[1],A=Object(r.useState)(!1),B=l()(A,2),I=B[0],F=B[1],U=Object(r.useState)(0),L=l()(U,2),R=L[0],H=L[1],G=[Object(u.__)("Migrate block settings.","genesis-blocks"),Object(u.__)("Migrate block content. Migrated: ","genesis-blocks")+" ".concat(R,"."),Object(u.__)("Migrate favorite blocks.","genesis-blocks"),genesisBlocksMigration.isPro?Object(u.__)("Clean up.","genesis-blocks"):Object(u.__)("Deactivate Atomic Blocks.","genesis-blocks")],Y=function(){var e=f()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j()({path:"/genesis-blocks/migrate-settings",method:"POST"}).then(f()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(1),e.next=3,z();case 3:return e.next=5,D();case 5:case"end":return e.stop()}}),e)})))).catch((function(e){e.hasOwnProperty("message")&&T(e.message),Object(d.speak)(Object(u.__)("The migration failed during settings migration.","genesis-blocks")),x(!0),h(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=f()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j()({path:"/genesis-blocks/migrate-pro-settings",method:"POST"}).catch((function(e){e.hasOwnProperty("message")&&T(e.message),Object(d.speak)(Object(u.__)("The pro settings migration failed.","genesis-blocks")),x(!0)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=f()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"invalid_json",e.next=3,j()({path:"/genesis-blocks/migrate-content",method:"POST"}).then(function(){var e=f()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.results&&t.results.postsFound>0)){e.next=5;break}return H((function(e){return e+t.results.postsFound})),e.next=4,D();case 4:return e.abrupt("return");case 5:return b(2),e.next=8,W();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch(function(){var e=f()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasOwnProperty("code")||"invalid_json"!==t.code){e.next=6;break}return e.next=3,D();case 3:return e.abrupt("return");case 6:t.hasOwnProperty("message")&&T(t.message);case 7:Object(d.speak)(Object(u.__)("The migration failed during post content migration","genesis-blocks")),x(!0);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=f()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"invalid_json",e.next=3,j()({path:"/genesis-blocks/migrate-user-meta",method:"POST"}).then(f()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(3),e.next=3,q();case 3:case"end":return e.stop()}}),e)})))).catch(function(){var e=f()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasOwnProperty("code")||"invalid_json"!==t.code){e.next=6;break}return e.next=3,W();case 3:return e.abrupt("return");case 6:t.hasOwnProperty("message")&&T(t.message);case 7:Object(d.speak)(Object(u.__)("The migration failed while migrating favorite blocks.","genesis-blocks")),x(!0);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=f()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j()({path:"/genesis-blocks/migrate-cleanup",method:"POST"}).then((function(){Object(d.speak)(Object(u.__)("The migration was successful!","genesis-blocks")),F(!0),s()}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=f()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(d.speak)(Object(u.__)("The migration is now in progress","genesis-blocks")),T(""),h(!0),e.next=5,Y();case 5:h(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.createElement)(w,{isActive:t,isComplete:n},Object(r.createElement)(N,{index:c,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Migrate Your Content","genesis-blocks"),isStepActive:t,isLastStep:!0},!I&&Object(r.createElement)("p",null,Object(u.__)("Okay! Everything is ready. Let’s do this. While the migration is underway, don’t leave this page.","genesis-blocks")),!!S&&Object(r.createElement)("div",{className:"gb-migration__error inline-notice gb-error"},Object(r.createElement)("p",null,Object(r.createElement)("span",null,Object(u.__)("The following error occurred:","genesis-blocks")),S)),(O||I)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(M,{steps:G,currentStep:i,complete:!O})),!O&&!I&&Object(r.createElement)("button",{className:"gb-admin-button-primary",onClick:$},v?Object(u.__)("Try Again","genesis-blocks"):Object(u.__)("Migrate Now","genesis-blocks")),I&&Object(r.createElement)(r.Fragment,null,!genesisBlocksMigration.isPro&&Object(r.createElement)("p",null,Object(r.createElement)("span",{role:"img","aria-label":Object(u.__)("party emoji","genesis-blocks")},"🎉")," ",Object(u.__)("The migration completed successfully! Time to say goodbye to Atomic Blocks (it’s been fun!) and step into the FUTURE","genesis-blocks")," ",Object(r.createElement)("span",{className:"message-future"},Object(u.__)("FUTURE","genesis-blocks"))," ",Object(r.createElement)("sub",null,Object(u.__)("FUTURE","genesis-blocks")),"."),genesisBlocksMigration.isPro&&Object(r.createElement)("p",null,Object(r.createElement)("span",{role:"img","aria-label":Object(u.__)("party emoji","genesis-blocks")},"🎉")," ",Object(u.__)("The migration completed successfully!","genesis-blocks")),Object(r.createElement)(C,null,Object(r.createElement)("a",{href:genesisBlocksMigration.gbUrl,className:"btn"},Object(u.__)("Get started with Genesis Blocks","genesis-blocks"))))))},_=function(e){var t=e.isStepActive,n=e.isStepComplete,c=e.stepIndex,s=e.goToNext,o=e.goToPrevious;return Object(r.createElement)(w,{isActive:t,isComplete:n},Object(r.createElement)(N,{index:c,isComplete:n}),Object(r.createElement)(P,{heading:Object(u.__)("Update CSS and PHP code","genesis-blocks"),isStepActive:t},Object(r.createElement)("p",null,Object(r.createElement)("b",null,Object(u.__)("You will need to make manual changes if your theme, plugins or customizations include Atomic Blocks CSS or PHP:","genesis-blocks"))),Object(r.createElement)("ul",{className:"list-disc list-inside mt-2"},Object(r.createElement)("li",null,Object(r.createElement)("b",null,Object(u.__)("CSS","genesis-blocks"))," - ",Object(u.__)("CSS classes and HTML markup have changed.","genesis-blocks")," ",Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-css/",target:"_blank",rel:"noopener noreferrer"},Object(u.__)("Check if you need to make CSS changes.","genesis-blocks"))),Object(r.createElement)("li",null,Object(r.createElement)("b",null,Object(u.__)("PHP","genesis-blocks"))," - ",Object(u.__)("Filter, function and block names have changed.","genesis-blocks")," ",Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-php/",target:"_blank",rel:"noopener noreferrer"},Object(u.__)("Check if you need to make PHP changes.","genesis-blocks")))),Object(r.createElement)(C,null,Object(r.createElement)(x,{onClick:o}),Object(r.createElement)(v,{checkboxLabel:Object(u.__)("I have made necessary changes to PHP and CSS.","genesis-blocks"),onClick:s,stepIndex:c}))))},k=function(){var e=Object(r.useState)(1),t=l()(e,2),n=t[0],c=t[1],s=function(){c(n-1)},o=function(){c(n+1)},i=[b,_,h];return Object(r.createElement)("div",{className:"gb-migration__content-wrapper"},Object(r.createElement)("div",{className:"container gb-migration__content-container gb-admin-plugin-container"},Object(r.createElement)(y,null),i.map((function(e,t){var c=1+t,i=n===c,l=n>c;return Object(r.createElement)(e,a()({key:"gb-migration-step-".concat(c)},{currentStepIndex:n,goToNext:o,goToPrevious:s,isStepActive:i,isStepComplete:l,stepIndex:c}))}))))},v=function(e){var t=e.onClick,n=e.checkboxLabel,c=e.stepIndex,s=Object(r.useState)(!1),o=l()(s,2),a=o[0],i=o[1];if(!n)return Object(r.createElement)("button",{className:"btn",onClick:t},Object(u.__)("Next Step","genesis-blocks"));var b="gb-migration-check-".concat(c);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("form",null,Object(r.createElement)("input",{id:b,type:"checkbox",onClick:function(){i(!a)}}),Object(r.createElement)("label",{htmlFor:b,className:"gb-checkbox-label"},n)),Object(r.createElement)("button",{className:"gb-admin-button-primary",onClick:t,disabled:!a},Object(u.__)("Next Step","genesis-blocks")))},x=function(e){var t=e.onClick;return Object(r.createElement)("button",{className:"gb-admin-button-secondary",onClick:t},Object(u.__)("Previous","genesis-blocks"))},y=function(){var e=Object(u.__)("Atomic Blocks has been renamed to Genesis Blocks","genesis-blocks");return genesisBlocksMigration.isPro&&(e=Object(u.__)("We need to update your blocks to give you the latest features!","genesis-blocks")),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"gb-migration-intro"},Object(r.createElement)("h2",null,e),Object(r.createElement)("p",null,Object(u.__)("Same powerful blocks, same beautiful designs, same innovative team.","genesis-blocks")),Object(r.createElement)("p",null,Object(u.__)("To continue receiving the best of what our team is building, we encourage you to migrate. Our migration tool makes this nice and easy, and for the majority of use cases, completely automated.","genesis-blocks")),Object(r.createElement)("div",{className:"inline-notice gb-info"},Object(r.createElement)("p",null,Object(u.__)("Need to let the developer for this site know about this? Send them this link.","genesis-blocks")),Object(r.createElement)("a",{href:"https://wpeng.in/ab-gb-dev/",target:"_blank",rel:"noopener noreferrer",className:"gb-admin-button-link aligned"},Object(r.createElement)("span",null,Object(u.__)("Developer Notice","genesis-blocks"))))),Object(r.createElement)("h2",null,Object(u.__)("Let’s Migrate","genesis-blocks")))},E=n(10),S=n.n(E),w=function(e){var t=e.isActive,n=e.isComplete,c=e.children;return Object(r.createElement)("div",{className:S()("step",{"step--active":t,"step--complete":n})},c)},P=function(e){var t=e.children,n=e.heading,c=e.isStepActive,s=e.isLastStep;return Object(r.createElement)("div",{className:"step-content"},Object(r.createElement)("h3",null,n),(c||s)&&t)},C=function(e){var t=e.children;return Object(r.createElement)("div",{className:"step-footer"},t)},N=function(e){var t=e.index,n=e.isComplete,c="gb-migration-icon-".concat(t),s=Object(r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":c},Object(r.createElement)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}),Object(r.createElement)("title",{id:c},Object(u.__)("Step completed","genesis-blocks")));return Object(r.createElement)("div",{className:"step-icon"},n?s:t)},M=function(e){var t=e.steps,n=e.currentStep,c=e.complete,s=t.map((function(e,s){var o="";return n===s&&(o="active"),(n>s||c&&n===t.length-1)&&(o="done"),Object(r.createElement)("li",{key:s,className:o},e,n===s&&!c&&Object(r.createElement)("div",{className:"gb-migration-progress",role:"progressbar"},Object(r.createElement)("div",{className:"gb-migration-progress-inside"}),Object(r.createElement)("div",{className:"gb-migration-progress-inside gb-migration-progress-animate2"})))}));return Object(r.createElement)("ul",{className:"substeps"},s)};s()((function(){Object(r.render)(Object(r.createElement)(k,null),document.querySelector(".gb-migration__content"))}))}]);
|
lib/Migration/js/src/components/app.js
CHANGED
@@ -48,7 +48,7 @@ const App = () => {
|
|
48 |
|
49 |
return (
|
50 |
<div className="gb-migration__content-wrapper">
|
51 |
-
<div className="container gb-migration__content-container">
|
52 |
<Intro />
|
53 |
{
|
54 |
steps.map( ( MigrationStep, index ) => {
|
48 |
|
49 |
return (
|
50 |
<div className="gb-migration__content-wrapper">
|
51 |
+
<div className="container gb-migration__content-container gb-admin-plugin-container">
|
52 |
<Intro />
|
53 |
{
|
54 |
steps.map( ( MigrationStep, index ) => {
|
lib/Migration/js/src/components/button-next.js
CHANGED
@@ -43,10 +43,10 @@ const ButtonNext = ( { onClick, checkboxLabel, stepIndex } ) => {
|
|
43 |
setCheckboxChecked( ! isCheckboxChecked );
|
44 |
} }
|
45 |
/>
|
46 |
-
<label htmlFor={ inputId } className="
|
47 |
</form>
|
48 |
<button
|
49 |
-
className="
|
50 |
onClick={ onClick }
|
51 |
disabled={ ! isCheckboxChecked }
|
52 |
>
|
43 |
setCheckboxChecked( ! isCheckboxChecked );
|
44 |
} }
|
45 |
/>
|
46 |
+
<label htmlFor={ inputId } className="gb-checkbox-label">{ checkboxLabel }</label>
|
47 |
</form>
|
48 |
<button
|
49 |
+
className="gb-admin-button-primary"
|
50 |
onClick={ onClick }
|
51 |
disabled={ ! isCheckboxChecked }
|
52 |
>
|
lib/Migration/js/src/components/button-previous.js
CHANGED
@@ -23,7 +23,7 @@ import { __ } from '@wordpress/i18n';
|
|
23 |
*/
|
24 |
const ButtonPrevious = ( { onClick } ) => {
|
25 |
return (
|
26 |
-
<button className="
|
27 |
{ __( 'Previous', 'genesis-blocks' ) }
|
28 |
</button>
|
29 |
);
|
23 |
*/
|
24 |
const ButtonPrevious = ( { onClick } ) => {
|
25 |
return (
|
26 |
+
<button className="gb-admin-button-secondary" onClick={ onClick }>
|
27 |
{ __( 'Previous', 'genesis-blocks' ) }
|
28 |
</button>
|
29 |
);
|
lib/Migration/js/src/components/intro.js
CHANGED
@@ -25,21 +25,14 @@ const Intro = () => {
|
|
25 |
|
26 |
return (
|
27 |
<>
|
28 |
-
<div>
|
29 |
<h2>{ headerText }</h2>
|
30 |
<p>{ __( 'Same powerful blocks, same beautiful designs, same innovative team.', 'genesis-blocks' ) }</p>
|
31 |
<p>{ __( 'To continue receiving the best of what our team is building, we encourage you to migrate. Our migration tool makes this nice and easy, and for the majority of use cases, completely automated.', 'genesis-blocks' ) }</p>
|
32 |
-
<div className="
|
33 |
-
<
|
34 |
-
|
35 |
-
</svg>
|
36 |
-
<span>{ __( 'Need to let the developer for this site know about this? Send them this link.', 'genesis-blocks' ) }</span>
|
37 |
-
<a href={ developerNoticeUrl } target="_blank" rel="noopener noreferrer" className="btn">
|
38 |
<span>{ __( 'Developer Notice', 'genesis-blocks' ) }</span>
|
39 |
-
<svg fill="currentColor" viewBox="0 0 20 20">
|
40 |
-
<path d="M11 3a1 1 0 100 2h3.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"></path>
|
41 |
-
<path d="M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"></path>
|
42 |
-
</svg>
|
43 |
</a>
|
44 |
</div>
|
45 |
</div>
|
25 |
|
26 |
return (
|
27 |
<>
|
28 |
+
<div className="gb-migration-intro">
|
29 |
<h2>{ headerText }</h2>
|
30 |
<p>{ __( 'Same powerful blocks, same beautiful designs, same innovative team.', 'genesis-blocks' ) }</p>
|
31 |
<p>{ __( 'To continue receiving the best of what our team is building, we encourage you to migrate. Our migration tool makes this nice and easy, and for the majority of use cases, completely automated.', 'genesis-blocks' ) }</p>
|
32 |
+
<div className="inline-notice gb-info">
|
33 |
+
<p>{ __( 'Need to let the developer for this site know about this? Send them this link.', 'genesis-blocks' ) }</p>
|
34 |
+
<a href={ developerNoticeUrl } target="_blank" rel="noopener noreferrer" className="gb-admin-button-link aligned">
|
|
|
|
|
|
|
35 |
<span>{ __( 'Developer Notice', 'genesis-blocks' ) }</span>
|
|
|
|
|
|
|
|
|
36 |
</a>
|
37 |
</div>
|
38 |
</div>
|
lib/Migration/js/src/components/steps/migrate-blocks.js
CHANGED
@@ -188,9 +188,9 @@ const MigrateBlocks = ( { isStepActive, isStepComplete, stepIndex, goToNext } )
|
|
188 |
>
|
189 |
{ ! isSuccess && <p>{ __( "Okay! Everything is ready. Let’s do this. While the migration is underway, don’t leave this page.", 'genesis-blocks' ) }</p> }
|
190 |
{ !! errorMessage && (
|
191 |
-
<div className="gb-migration__error">
|
192 |
-
<p>{ __( 'The following error occurred:', 'genesis-blocks' ) }</
|
193 |
-
|
194 |
</div>
|
195 |
) }
|
196 |
{ ( isInProgress || isSuccess ) && (
|
@@ -203,7 +203,7 @@ const MigrateBlocks = ( { isStepActive, isStepComplete, stepIndex, goToNext } )
|
|
203 |
) }
|
204 |
{ ! isInProgress && ! isSuccess && (
|
205 |
<button
|
206 |
-
className="
|
207 |
onClick={ migrate }
|
208 |
>
|
209 |
{ isError ? __( 'Try Again', 'genesis-blocks' ) : __( 'Migrate Now', 'genesis-blocks' ) }
|
188 |
>
|
189 |
{ ! isSuccess && <p>{ __( "Okay! Everything is ready. Let’s do this. While the migration is underway, don’t leave this page.", 'genesis-blocks' ) }</p> }
|
190 |
{ !! errorMessage && (
|
191 |
+
<div className="gb-migration__error inline-notice gb-error">
|
192 |
+
<p><span>{ __( 'The following error occurred:', 'genesis-blocks' ) }</span>
|
193 |
+
{ errorMessage }</p>
|
194 |
</div>
|
195 |
) }
|
196 |
{ ( isInProgress || isSuccess ) && (
|
203 |
) }
|
204 |
{ ! isInProgress && ! isSuccess && (
|
205 |
<button
|
206 |
+
className="gb-admin-button-primary"
|
207 |
onClick={ migrate }
|
208 |
>
|
209 |
{ isError ? __( 'Try Again', 'genesis-blocks' ) : __( 'Migrate Now', 'genesis-blocks' ) }
|
lib/Migration/js/src/components/substep-list.js
CHANGED
@@ -28,7 +28,7 @@ const SubstepList = ( { steps, currentStep, complete } ) => {
|
|
28 |
return (
|
29 |
<li key={ index } className={ listClass }>
|
30 |
{ label }
|
31 |
-
{ currentStep === index && !complete && <progress></progress> }
|
32 |
</li>
|
33 |
);
|
34 |
});
|
28 |
return (
|
29 |
<li key={ index } className={ listClass }>
|
30 |
{ label }
|
31 |
+
{ currentStep === index && !complete && <div className="gb-migration-progress" role="progressbar"><div className="gb-migration-progress-inside"></div><div className="gb-migration-progress-inside gb-migration-progress-animate2"></div></div> }
|
32 |
</li>
|
33 |
);
|
34 |
});
|
lib/Settings/AdminPage.php
CHANGED
@@ -42,6 +42,20 @@ final class AdminPage {
|
|
42 |
*/
|
43 |
private $context;
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
/**
|
46 |
* Constructs the AdminPage class.
|
47 |
*
|
@@ -49,7 +63,7 @@ final class AdminPage {
|
|
49 |
* @param array $context Plugin context.
|
50 |
*/
|
51 |
public function __construct( array $context ) {
|
52 |
-
$this->page_title = __( 'Genesis
|
53 |
$this->menu_title = __( 'Genesis Blocks', 'genesis-blocks' );
|
54 |
$this->context = $context;
|
55 |
}
|
@@ -61,9 +75,10 @@ final class AdminPage {
|
|
61 |
*/
|
62 |
public function init(): void {
|
63 |
add_action( 'admin_menu', [ $this, 'add_admin_menu' ] );
|
64 |
-
add_action( 'load-
|
65 |
-
add_action( 'load-
|
66 |
-
add_action( 'load-
|
|
|
67 |
}
|
68 |
|
69 |
/**
|
@@ -85,58 +100,43 @@ final class AdminPage {
|
|
85 |
|
86 |
$genesis_icon_encoded = require "{$this->context['path']}lib/Settings/assets/images/genesis-icon-encoded.php";
|
87 |
|
88 |
-
|
89 |
* Adds the top-level Genesis Blocks menu item.
|
90 |
*/
|
91 |
add_menu_page(
|
92 |
$this->page_title,
|
93 |
$this->menu_title,
|
94 |
'manage_options',
|
95 |
-
|
96 |
-
[ $this, '
|
97 |
$genesis_icon_encoded,
|
98 |
$menu_position_above_appearance
|
99 |
);
|
100 |
|
101 |
-
|
102 |
-
* Adds the Settings submenu page.
|
103 |
-
*/
|
104 |
-
add_submenu_page(
|
105 |
-
'genesis-blocks-settings',
|
106 |
-
'',
|
107 |
-
esc_html__( 'Settings', 'genesis-blocks' ),
|
108 |
-
'manage_options',
|
109 |
-
'genesis-blocks-settings',
|
110 |
-
[ $this, 'render' ]
|
111 |
-
);
|
112 |
-
|
113 |
-
/**
|
114 |
* Adds the Getting Started submenu page.
|
115 |
*/
|
116 |
add_submenu_page(
|
117 |
-
|
118 |
esc_html__( 'Getting Started with Genesis Blocks', 'genesis-blocks' ),
|
119 |
esc_html__( 'Getting Started', 'genesis-blocks' ),
|
120 |
'manage_options',
|
121 |
-
|
122 |
[ $this, 'render_getting_started_page' ]
|
123 |
);
|
124 |
|
125 |
-
|
126 |
-
* Adds the
|
127 |
-
*
|
128 |
-
* Not added if Genesis Pro is installed.
|
129 |
*/
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
}
|
140 |
}
|
141 |
|
142 |
/**
|
@@ -173,7 +173,7 @@ final class AdminPage {
|
|
173 |
*/
|
174 |
public function enqueue_shared_admin_styles(): void {
|
175 |
wp_enqueue_style(
|
176 |
-
'genesis-blocks-
|
177 |
$this->context['url'] . 'lib/Settings/assets/css/admin.css',
|
178 |
[ 'wp-components' ],
|
179 |
$this->context['version'],
|
@@ -182,38 +182,43 @@ final class AdminPage {
|
|
182 |
}
|
183 |
|
184 |
/**
|
185 |
-
*
|
186 |
*
|
187 |
* @since 1.0.0
|
188 |
*/
|
189 |
-
public function
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
$this->context['version'],
|
195 |
-
'all'
|
196 |
-
);
|
197 |
-
|
198 |
-
$this->enqueue_shared_admin_styles();
|
199 |
}
|
200 |
|
201 |
/**
|
202 |
-
*
|
203 |
*
|
204 |
-
* @since 1.
|
|
|
|
|
205 |
*/
|
206 |
-
public function
|
207 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
}
|
209 |
|
210 |
/**
|
211 |
-
* Renders the
|
212 |
*
|
213 |
* @since 1.0.0
|
214 |
*/
|
215 |
-
public function
|
216 |
-
require "{$this->context['path']}lib/Settings/views/admin/
|
217 |
}
|
218 |
|
219 |
/**
|
42 |
*/
|
43 |
private $context;
|
44 |
|
45 |
+
/**
|
46 |
+
* The slug of the parent menu.
|
47 |
+
*
|
48 |
+
* @var string
|
49 |
+
*/
|
50 |
+
const PARENT_MENU_SLUG = 'genesis-blocks-getting-started';
|
51 |
+
|
52 |
+
/**
|
53 |
+
* The slug of the settings submenu.
|
54 |
+
*
|
55 |
+
* @var string
|
56 |
+
*/
|
57 |
+
const SETTINGS_SUBMENU_SLUG = 'genesis-blocks-settings';
|
58 |
+
|
59 |
/**
|
60 |
* Constructs the AdminPage class.
|
61 |
*
|
63 |
* @param array $context Plugin context.
|
64 |
*/
|
65 |
public function __construct( array $context ) {
|
66 |
+
$this->page_title = __( 'Genesis', 'genesis-blocks' );
|
67 |
$this->menu_title = __( 'Genesis Blocks', 'genesis-blocks' );
|
68 |
$this->context = $context;
|
69 |
}
|
75 |
*/
|
76 |
public function init(): void {
|
77 |
add_action( 'admin_menu', [ $this, 'add_admin_menu' ] );
|
78 |
+
add_action( 'load-genesis-blocks_page_' . self::SETTINGS_SUBMENU_SLUG, [ $this, 'load_admin_scripts' ] );
|
79 |
+
add_action( 'load-toplevel_page_' . self::PARENT_MENU_SLUG, [ $this, 'enqueue_shared_admin_styles' ] );
|
80 |
+
add_action( 'load-toplevel_page_' . self::PARENT_MENU_SLUG, [ $this, 'hide_admin_notices' ] );
|
81 |
+
add_filter( 'admin_body_class', [ $this, 'add_body_class' ] );
|
82 |
}
|
83 |
|
84 |
/**
|
100 |
|
101 |
$genesis_icon_encoded = require "{$this->context['path']}lib/Settings/assets/images/genesis-icon-encoded.php";
|
102 |
|
103 |
+
/*
|
104 |
* Adds the top-level Genesis Blocks menu item.
|
105 |
*/
|
106 |
add_menu_page(
|
107 |
$this->page_title,
|
108 |
$this->menu_title,
|
109 |
'manage_options',
|
110 |
+
self::PARENT_MENU_SLUG,
|
111 |
+
[ $this, 'render_getting_started_page' ],
|
112 |
$genesis_icon_encoded,
|
113 |
$menu_position_above_appearance
|
114 |
);
|
115 |
|
116 |
+
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
* Adds the Getting Started submenu page.
|
118 |
*/
|
119 |
add_submenu_page(
|
120 |
+
self::PARENT_MENU_SLUG,
|
121 |
esc_html__( 'Getting Started with Genesis Blocks', 'genesis-blocks' ),
|
122 |
esc_html__( 'Getting Started', 'genesis-blocks' ),
|
123 |
'manage_options',
|
124 |
+
self::PARENT_MENU_SLUG,
|
125 |
[ $this, 'render_getting_started_page' ]
|
126 |
);
|
127 |
|
128 |
+
/*
|
129 |
+
* Adds the Settings submenu page.
|
|
|
|
|
130 |
*/
|
131 |
+
add_submenu_page(
|
132 |
+
self::PARENT_MENU_SLUG,
|
133 |
+
esc_html__( 'Genesis Blocks Settings', 'genesis-blocks' ),
|
134 |
+
esc_html__( 'Settings', 'genesis-blocks' ),
|
135 |
+
'manage_options',
|
136 |
+
self::SETTINGS_SUBMENU_SLUG,
|
137 |
+
[ $this, 'render' ]
|
138 |
+
);
|
139 |
+
|
|
|
140 |
}
|
141 |
|
142 |
/**
|
173 |
*/
|
174 |
public function enqueue_shared_admin_styles(): void {
|
175 |
wp_enqueue_style(
|
176 |
+
'genesis-blocks-getting-started-style',
|
177 |
$this->context['url'] . 'lib/Settings/assets/css/admin.css',
|
178 |
[ 'wp-components' ],
|
179 |
$this->context['version'],
|
182 |
}
|
183 |
|
184 |
/**
|
185 |
+
* Hide admin notices on the Getting started page.
|
186 |
*
|
187 |
* @since 1.0.0
|
188 |
*/
|
189 |
+
public function hide_admin_notices(): void {
|
190 |
+
// Remove all admin notices on the getting started page.
|
191 |
+
if ( filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRING ) === 'genesis-blocks-getting-started' ) {
|
192 |
+
remove_all_actions( 'admin_notices' );
|
193 |
+
}
|
|
|
|
|
|
|
|
|
|
|
194 |
}
|
195 |
|
196 |
/**
|
197 |
+
* Adds a body class to all Genesis Blocks menu pages.
|
198 |
*
|
199 |
+
* @since 1.4.0
|
200 |
+
* @param string $classes The body classes.
|
201 |
+
* @return string The filtered body classes.
|
202 |
*/
|
203 |
+
public function add_body_class( $classes ): string {
|
204 |
+
$page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRING );
|
205 |
+
if ( is_string( $page ) && 0 === strpos( $page, 'genesis-blocks-' ) ) {
|
206 |
+
$additional_class = 'genesis-blocks-admin-page';
|
207 |
+
return esc_attr(
|
208 |
+
empty( $classes ) ? $additional_class : "{$classes} {$additional_class}"
|
209 |
+
);
|
210 |
+
}
|
211 |
+
|
212 |
+
return $classes;
|
213 |
}
|
214 |
|
215 |
/**
|
216 |
+
* Renders the admin page.
|
217 |
*
|
218 |
* @since 1.0.0
|
219 |
*/
|
220 |
+
public function render(): void {
|
221 |
+
require "{$this->context['path']}lib/Settings/views/admin/app.php";
|
222 |
}
|
223 |
|
224 |
/**
|
lib/Settings/Tests/AdminPageTest.php
CHANGED
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
|
10 |
namespace Genesis\Blocks\Settings\Tests;
|
11 |
|
12 |
use PHPUnit\Framework\TestCase;
|
|
|
13 |
use Brain\Monkey;
|
14 |
use Brain\Monkey\Functions;
|
15 |
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
@@ -73,17 +74,39 @@ final class AdminPageTest extends TestCase {
|
|
73 |
get_class( $this->admin_page ) . '->add_admin_menu()'
|
74 |
)
|
75 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
|
78 |
/**
|
79 |
* Tests an Admin Menu is added.
|
80 |
*
|
|
|
81 |
* @since 1.0.0
|
82 |
*/
|
83 |
public function testSettingsMenusAndPagesAreProperlySetUp(): void {
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
$this->admin_page->add_admin_menu();
|
88 |
}
|
89 |
|
@@ -110,11 +133,50 @@ final class AdminPageTest extends TestCase {
|
|
110 |
public function testAdminScriptsAreEnqueued(): void {
|
111 |
Functions\expect( 'wp_enqueue_media' )->once();
|
112 |
Functions\expect( 'wp_enqueue_script' )->once();
|
113 |
-
Functions\expect( 'wp_enqueue_style' )->
|
114 |
Functions\expect( 'wp_localize_script' )->once();
|
115 |
|
116 |
$this->admin_page->enqueue_admin_scripts();
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
}
|
119 |
|
120 |
/**
|
10 |
namespace Genesis\Blocks\Settings\Tests;
|
11 |
|
12 |
use PHPUnit\Framework\TestCase;
|
13 |
+
use ReflectionObject;
|
14 |
use Brain\Monkey;
|
15 |
use Brain\Monkey\Functions;
|
16 |
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
74 |
get_class( $this->admin_page ) . '->add_admin_menu()'
|
75 |
)
|
76 |
);
|
77 |
+
$this->assertTrue(
|
78 |
+
has_filter(
|
79 |
+
'admin_body_class',
|
80 |
+
get_class( $this->admin_page ) . '->add_body_class()'
|
81 |
+
)
|
82 |
+
);
|
83 |
}
|
84 |
|
85 |
/**
|
86 |
* Tests an Admin Menu is added.
|
87 |
*
|
88 |
+
* @throws Monkey\Expectation\Exception\ExpectationArgsRequired For a non-accessible property.
|
89 |
* @since 1.0.0
|
90 |
*/
|
91 |
public function testSettingsMenusAndPagesAreProperlySetUp(): void {
|
92 |
+
$reflection = new ReflectionObject( $this->admin_page );
|
93 |
+
$property = $reflection->getProperty( 'context' );
|
94 |
+
$property->setAccessible( true );
|
95 |
+
$context = $property->getValue( $this->admin_page );
|
96 |
+
|
97 |
+
Functions\expect( 'add_menu_page' )
|
98 |
+
->once()
|
99 |
+
->with(
|
100 |
+
'Genesis',
|
101 |
+
'Genesis Blocks',
|
102 |
+
'manage_options',
|
103 |
+
'genesis-blocks-getting-started',
|
104 |
+
[ $this->admin_page, 'render_getting_started_page' ],
|
105 |
+
require "{$context['path']}lib/Settings/assets/images/genesis-icon-encoded.php",
|
106 |
+
59
|
107 |
+
);
|
108 |
+
Functions\expect( 'add_submenu_page' )->times( 2 );
|
109 |
+
Functions\expect( 'esc_html__' )->times( 4 );
|
110 |
$this->admin_page->add_admin_menu();
|
111 |
}
|
112 |
|
133 |
public function testAdminScriptsAreEnqueued(): void {
|
134 |
Functions\expect( 'wp_enqueue_media' )->once();
|
135 |
Functions\expect( 'wp_enqueue_script' )->once();
|
136 |
+
Functions\expect( 'wp_enqueue_style' )->once();
|
137 |
Functions\expect( 'wp_localize_script' )->once();
|
138 |
|
139 |
$this->admin_page->enqueue_admin_scripts();
|
140 |
+
}
|
141 |
+
|
142 |
+
/**
|
143 |
+
* Gets the data for testAddBodyClass().
|
144 |
+
*
|
145 |
+
* @return mixed[][] The test data.
|
146 |
+
*/
|
147 |
+
public function getAddBodyClassData() {
|
148 |
+
return [
|
149 |
+
[ null, 'wp-admin wp-core-ui', 'wp-admin wp-core-ui' ],
|
150 |
+
[ 'other-plugin', 'wp-admin wp-core-ui', 'wp-admin wp-core-ui' ],
|
151 |
+
[ 'genesis-blocks-getting-started', 'wp-admin wp-core-ui', 'wp-admin wp-core-ui genesis-blocks-admin-page' ],
|
152 |
+
[ 'genesis-blocks-settings', 'wp-admin wp-core-ui', 'wp-admin wp-core-ui genesis-blocks-admin-page' ],
|
153 |
+
[ 'genesis-blocks-settings', '', 'genesis-blocks-admin-page' ],
|
154 |
+
];
|
155 |
+
}
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Tests that add_body_class() adds the class when it should.
|
159 |
+
*
|
160 |
+
* @since 1.4.0
|
161 |
+
* @dataProvider getAddBodyClassData
|
162 |
+
* @throws Monkey\Expectation\Exception\ExpectationArgsRequired For Functions\expect()->with().
|
163 |
+
*
|
164 |
+
* @param mixed $page The page query arg.
|
165 |
+
* @param string $initial_classes The classes passed to the filter.
|
166 |
+
* @param string $expected The expected return value of the filter.
|
167 |
+
*/
|
168 |
+
public function testAddBodyClass( $page, $initial_classes, $expected ): void {
|
169 |
+
Functions\stubs( [ 'esc_attr' ] );
|
170 |
+
Functions\expect( 'filter_input' )
|
171 |
+
->once()
|
172 |
+
->with(
|
173 |
+
INPUT_GET,
|
174 |
+
'page',
|
175 |
+
FILTER_SANITIZE_STRING
|
176 |
+
)
|
177 |
+
->andReturn( $page );
|
178 |
+
|
179 |
+
$this->assertEquals( $expected, $this->admin_page->add_body_class( $initial_classes ) );
|
180 |
}
|
181 |
|
182 |
/**
|
lib/Settings/assets/css/admin.css
CHANGED
@@ -1,543 +1,1807 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
7 |
|
8 |
-
|
9 |
-
|
|
|
|
|
10 |
|
11 |
-
.
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
display: none;
|
18 |
}
|
19 |
|
20 |
-
.
|
21 |
-
|
22 |
-
margin:
|
23 |
-
|
24 |
-
|
25 |
}
|
26 |
|
27 |
-
|
28 |
-
|
|
|
|
|
29 |
|
30 |
-
.
|
31 |
-
|
32 |
-
|
33 |
-
padding: 40px 0 0 0;
|
34 |
}
|
35 |
|
36 |
-
.
|
37 |
-
|
38 |
-
background:
|
39 |
}
|
40 |
|
41 |
-
.
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
width: 100%;
|
47 |
-
align-items: center;
|
48 |
}
|
49 |
|
50 |
-
.
|
51 |
-
|
52 |
-
color: #fff;
|
53 |
-
display: inline-block;
|
54 |
-
font-weight: 500;
|
55 |
-
font-size: 28px;
|
56 |
-
line-height: 1.2;
|
57 |
-
margin: 0;
|
58 |
-
padding-top: 2px;
|
59 |
}
|
60 |
|
61 |
-
.
|
62 |
-
.
|
63 |
-
|
64 |
-
margin-right: 15px;
|
65 |
}
|
66 |
|
67 |
-
.
|
68 |
-
|
|
|
|
|
|
|
|
|
69 |
}
|
70 |
|
71 |
-
|
72 |
-
|
|
|
73 |
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
76 |
|
77 |
-
.
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
padding: 10px 15px;
|
83 |
-
text-shadow: none;
|
84 |
-
transition: all 0.25s ease-in-out;
|
85 |
}
|
86 |
|
87 |
-
.
|
88 |
-
|
|
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
-
|
92 |
-
|
|
|
93 |
|
94 |
-
.
|
95 |
-
|
96 |
-
|
|
|
97 |
}
|
98 |
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
.
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
text-decoration: none;
|
107 |
}
|
108 |
|
109 |
-
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
|
112 |
-
.
|
113 |
-
.
|
114 |
-
|
115 |
-
.genesis-blocks-settings-page.wrap .components-button.is-primary[aria-disabled="true"]:hover,
|
116 |
-
.genesis-blocks-settings-page.wrap .components-button.is-secondary.is-busy,
|
117 |
-
.genesis-blocks-settings-page.wrap .components-button.is-secondary:disabled,
|
118 |
-
.genesis-blocks-settings-page.wrap .components-button.is-secondary[aria-disabled="true"],
|
119 |
-
.genesis-blocks-settings-page.wrap .components-button.is-secondary[aria-disabled="true"]:focus,
|
120 |
-
.genesis-blocks-settings-page.wrap .components-button.is-secondary[aria-disabled="true"]:hover {
|
121 |
-
background-color: #eee;
|
122 |
-
border-color: #ddd;
|
123 |
-
box-shadow: inset 0 0 0 1px #ddd;
|
124 |
-
color: #a1afbd;
|
125 |
-
}
|
126 |
-
|
127 |
-
.genesis-blocks-settings-page.wrap .components-button.is-primary.is-busy,
|
128 |
-
.genesis-blocks-settings-page.wrap .components-button.is-primary.is-busy:disabled,
|
129 |
-
.genesis-blocks-settings-page.wrap .components-button.is-primary.is-busy[aria-disabled="true"] {
|
130 |
-
background-image: linear-gradient(-45deg, #23282d 28%, #39414a 0, #39414a 72%, #23282d 0);
|
131 |
-
background-size: 100px 100%;
|
132 |
-
border-color: #ddd;
|
133 |
-
box-shadow: inset 0 0 0 1px #a1afbd;
|
134 |
-
color: #a1afbd;
|
135 |
}
|
136 |
|
137 |
-
|
138 |
-
|
|
|
139 |
|
140 |
-
.
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
}
|
145 |
|
146 |
-
.
|
147 |
-
|
148 |
-
|
149 |
-
background-color: #23282d;
|
150 |
-
box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.12);
|
151 |
}
|
152 |
|
153 |
-
|
154 |
-
|
155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
}
|
157 |
|
158 |
-
.
|
159 |
-
|
160 |
-
|
161 |
}
|
162 |
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
}
|
166 |
|
167 |
-
|
168 |
-
|
|
|
169 |
|
170 |
-
.
|
171 |
-
|
172 |
-
border-color: #06c;
|
173 |
-
box-shadow: inset 0 0 0 1px #06c;
|
174 |
-
color: #06c;
|
175 |
-
outline: none;
|
176 |
}
|
177 |
|
178 |
-
.
|
179 |
-
|
180 |
-
.genesis-blocks-settings-page.wrap .components-button.is-secondary:hover:not(:disabled):not([aria-disabled="true"]) {
|
181 |
-
background-color: #fff;
|
182 |
-
border-color: #23282d;
|
183 |
-
box-shadow: inset 0 0 0 1px #23282d;
|
184 |
-
color: #23282d;
|
185 |
}
|
186 |
|
187 |
-
|
188 |
-
|
|
|
|
|
|
|
|
|
189 |
|
190 |
-
.
|
191 |
-
|
192 |
-
.genesis-blocks-settings-page.wrap .components-button.is-destructive:focus:not(:disabled),
|
193 |
-
.genesis-blocks-settings-page.wrap .components-button.is-destructive:hover:not(:disabled) {
|
194 |
-
box-shadow: none;
|
195 |
-
color: #d94f4f;
|
196 |
-
outline: none;
|
197 |
}
|
198 |
|
|
|
|
|
|
|
|
|
199 |
|
200 |
-
|
201 |
-
|
|
|
|
|
|
|
202 |
|
203 |
-
|
204 |
-
|
|
|
|
|
|
|
205 |
|
206 |
-
.
|
207 |
-
|
208 |
-
background-image: linear-gradient(90deg, #06c 0%, #4eb0d3 100%);
|
209 |
-
padding: 0 4%;
|
210 |
}
|
211 |
|
212 |
-
.
|
213 |
-
|
214 |
-
.genesis-blocks-settings-page .genesis-blocks-settings-sections .components-tab-panel__tabs .components-button:hover:not(:disabled) {
|
215 |
-
color: #fff;
|
216 |
-
border-radius: 3px 3px 0 0;
|
217 |
-
box-shadow: none !important;
|
218 |
-
font-size: 18px;
|
219 |
-
height: auto;
|
220 |
-
padding: 25px 30px;
|
221 |
-
outline: none;
|
222 |
-
text-decoration: none;
|
223 |
}
|
224 |
|
225 |
-
.
|
226 |
-
|
227 |
-
color: #fff !important;
|
228 |
}
|
229 |
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
box-shadow: none;
|
235 |
-
color:
|
236 |
-
text-decoration: none;
|
237 |
}
|
238 |
|
239 |
-
.
|
|
|
240 |
background-color: transparent;
|
|
|
|
|
|
|
241 |
}
|
242 |
|
243 |
-
.
|
244 |
-
color:
|
|
|
|
|
|
|
245 |
}
|
246 |
|
247 |
-
|
248 |
-
|
|
|
249 |
|
250 |
-
.
|
251 |
-
background-color:
|
252 |
-
|
253 |
-
display: inline-block;
|
254 |
-
font-size: 16px;
|
255 |
-
padding: 4%;
|
256 |
-
transition: all 0.25s ease-in-out;
|
257 |
-
width: 100%;
|
258 |
}
|
259 |
|
260 |
-
.
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
}
|
266 |
|
267 |
-
.
|
268 |
-
|
269 |
-
|
|
|
|
|
|
|
|
|
270 |
}
|
271 |
|
272 |
-
.
|
273 |
-
|
274 |
}
|
275 |
|
276 |
-
.
|
277 |
-
|
278 |
-
|
279 |
-
margin-bottom: 2em;
|
280 |
}
|
281 |
|
282 |
-
.
|
283 |
-
|
284 |
-
|
|
|
|
|
|
|
|
|
|
|
285 |
}
|
286 |
|
287 |
-
.
|
288 |
-
|
289 |
-
border-radius: 5px;
|
290 |
-
padding: 0.5em 2em 1.5em;
|
291 |
}
|
292 |
|
293 |
-
.
|
294 |
-
|
295 |
}
|
296 |
|
297 |
-
.
|
298 |
-
|
299 |
-
|
300 |
-
font-style: italic;
|
301 |
-
margin: 5px 0;
|
302 |
}
|
303 |
|
304 |
-
|
305 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
|
307 |
-
.
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
font-size: 18px;
|
312 |
-
height: auto;
|
313 |
-
padding: 12px;
|
314 |
}
|
315 |
|
316 |
-
.
|
317 |
-
|
318 |
-
.genesis-blocks-settings-sections .components-radio-control__input:focus,
|
319 |
-
.genesis-blocks-settings-sections .components-select-control__input:focus {
|
320 |
-
border-color: #06c;
|
321 |
-
box-shadow: 0 0 0 1px #06c;
|
322 |
}
|
323 |
|
324 |
-
.
|
325 |
-
|
326 |
}
|
327 |
|
328 |
-
.
|
329 |
-
|
330 |
}
|
331 |
|
332 |
-
.
|
333 |
-
|
334 |
}
|
335 |
|
336 |
-
|
337 |
-
|
338 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
}
|
340 |
|
341 |
-
.
|
342 |
-
|
|
|
343 |
}
|
344 |
|
345 |
-
.
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
}
|
350 |
|
351 |
-
.
|
352 |
-
|
353 |
-
|
354 |
-
border-
|
355 |
-
box-shadow: none;
|
356 |
-
display: block;
|
357 |
-
min-width: 150px;
|
358 |
-
margin-bottom: 15px;
|
359 |
-
padding: 0;
|
360 |
}
|
361 |
|
362 |
-
.
|
363 |
-
.
|
364 |
-
|
|
|
|
|
365 |
}
|
366 |
|
367 |
-
|
368 |
-
|
|
|
|
|
|
|
369 |
|
370 |
-
.
|
371 |
-
|
372 |
-
|
|
|
373 |
}
|
374 |
|
375 |
-
.
|
376 |
-
|
|
|
377 |
}
|
378 |
|
379 |
-
.
|
380 |
-
|
381 |
}
|
382 |
|
383 |
-
.
|
384 |
-
|
385 |
}
|
386 |
|
387 |
-
|
388 |
-
|
|
|
|
|
389 |
|
390 |
-
.
|
391 |
-
|
392 |
-
|
393 |
-
grid-template-columns: 1fr 1fr;
|
394 |
-
grid-template-areas: "col1 col2";
|
395 |
-
grid-gap: 0 2em;
|
396 |
}
|
397 |
|
398 |
-
.
|
399 |
-
|
400 |
-
grid-template-rows: 1fr;
|
401 |
-
grid-template-columns: 1fr 1fr 1fr;
|
402 |
-
grid-template-areas: "col1 col2 col3";
|
403 |
-
grid-gap: 0 2em;
|
404 |
}
|
405 |
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
align-items: center;
|
410 |
-
grid-gap: 0 5em;
|
411 |
-
padding: 5%;
|
412 |
-
background: #eceff1;
|
413 |
-
border-radius: 10px;
|
414 |
}
|
415 |
|
416 |
-
.
|
417 |
-
|
418 |
-
border-radius: 50px;
|
419 |
color: #fff;
|
420 |
-
padding: 5px 10px;
|
421 |
-
margin-bottom: 15px;
|
422 |
-
display: inline-block;
|
423 |
}
|
424 |
|
425 |
-
.
|
426 |
-
|
427 |
-
|
|
|
|
|
|
|
|
|
|
|
428 |
margin: 0;
|
429 |
}
|
430 |
|
431 |
-
|
432 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
433 |
}
|
434 |
|
435 |
-
.
|
436 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
}
|
438 |
|
439 |
-
.
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
|
|
|
|
|
|
444 |
}
|
445 |
|
446 |
-
.
|
447 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
}
|
449 |
|
450 |
-
.
|
451 |
-
|
452 |
-
margin-bottom: 25px;
|
453 |
}
|
454 |
|
455 |
-
/*
|
456 |
---------------------------------------------------------------------------- */
|
457 |
|
458 |
-
@media (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
|
460 |
-
.
|
461 |
-
|
|
|
|
|
|
|
462 |
}
|
463 |
|
464 |
}
|
465 |
|
466 |
-
@media
|
467 |
|
468 |
-
.genesis-
|
469 |
-
|
470 |
}
|
471 |
|
472 |
-
.
|
473 |
-
|
474 |
-
|
475 |
-
font-size: 16px;
|
476 |
-
padding: 15px 20px;
|
477 |
}
|
478 |
|
479 |
-
.
|
480 |
grid-template-columns: 1fr;
|
481 |
-
grid-
|
482 |
-
|
|
|
483 |
}
|
484 |
|
485 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
grid-template-columns: 1fr;
|
487 |
-
grid-
|
488 |
-
grid-gap: 0 2em;
|
489 |
}
|
490 |
|
491 |
-
.
|
492 |
-
|
|
|
493 |
}
|
494 |
|
495 |
-
.
|
496 |
-
|
|
|
497 |
}
|
498 |
|
499 |
-
.
|
500 |
-
|
501 |
-
margin-bottom: 30px;
|
502 |
}
|
503 |
|
504 |
-
.
|
505 |
-
|
506 |
}
|
507 |
|
508 |
-
|
|
|
|
|
|
|
509 |
|
510 |
-
|
|
|
|
|
511 |
|
512 |
-
.
|
513 |
-
|
514 |
-
|
|
|
|
|
|
|
|
|
|
|
515 |
}
|
516 |
|
517 |
-
.
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
margin: 0 10px 10px 0;
|
523 |
}
|
524 |
|
525 |
-
.
|
526 |
-
|
527 |
-
|
528 |
}
|
529 |
|
530 |
-
|
531 |
-
|
532 |
-
|
|
|
|
|
|
|
533 |
}
|
534 |
|
535 |
-
.
|
536 |
-
|
537 |
}
|
538 |
|
539 |
-
.
|
540 |
-
|
541 |
}
|
542 |
|
543 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
:root {
|
2 |
+
--gb-color-brand: #7e5cef;
|
3 |
+
--gb-color-brand-dark: #5c43ae;
|
4 |
+
--gb-color-brand-transparency: rgba(126, 92, 239, 0.16);
|
5 |
+
--gb-color-brand-dark-transparency: rgba(126, 92, 239, 0.32);
|
6 |
+
--gb-color-heliotrope: #7a1ba6;
|
7 |
+
--gb-color-heading: #263238;
|
8 |
+
--gb-color-body: #002838;
|
9 |
+
--gb-color-white: #fff;
|
10 |
+
--gb-color-black: #000;
|
11 |
+
--gb-color-gray-dark: #405e6a; /* Mirage-75 */
|
12 |
+
--gb-color-gray: #9db7d1;
|
13 |
+
--gb-color-gray-disabled: #cfdde9;
|
14 |
+
--gb-color-gray-light: #f4f7fa;
|
15 |
+
--gb-color-titanium: #59767f;
|
16 |
+
--gb-color-wpe-blue: #0ecad4;
|
17 |
+
--gb-color-error: #d21b46;
|
18 |
+
--gb-color-error-dark: #991433;
|
19 |
+
--gb-color-success: #35872f;
|
20 |
+
--gb-color-input-border: #6b757b;
|
21 |
+
}
|
22 |
+
|
23 |
+
.genesis-blocks-admin-page *,
|
24 |
+
.genesis-blocks-admin-page *::before,
|
25 |
+
.genesis-blocks-admin-page *::after {
|
26 |
+
box-sizing: border-box;
|
27 |
+
}
|
28 |
+
|
29 |
+
/* Page Setup
|
30 |
+
---------------------------------------------------------------------------- */
|
31 |
+
|
32 |
+
.genesis-blocks-admin-page .wrap {
|
33 |
+
font-size: 16px;
|
34 |
+
line-height: 1.5;
|
35 |
+
margin: 0;
|
36 |
+
}
|
37 |
+
|
38 |
+
.genesis-blocks-admin-page #wpcontent {
|
39 |
+
padding-left: 0;
|
40 |
+
}
|
41 |
+
|
42 |
+
.genesis-blocks-admin-page .update-nag {
|
43 |
+
display: none;
|
44 |
+
}
|
45 |
+
|
46 |
+
.genesis-blocks-admin-page {
|
47 |
+
float: none;
|
48 |
+
}
|
49 |
+
|
50 |
+
#gb-admin-plugin-admin {
|
51 |
+
overflow: hidden;
|
52 |
+
}
|
53 |
+
|
54 |
+
#gb-admin-plugin-admin .wrap {
|
55 |
+
margin: 0;
|
56 |
+
}
|
57 |
+
|
58 |
+
#gb-admin-plugin-admin img {
|
59 |
+
height: auto;
|
60 |
+
}
|
61 |
+
|
62 |
+
/* Page Header
|
63 |
+
--------------------------------------------- */
|
64 |
+
|
65 |
+
.gb-admin-plugin-admin-header,
|
66 |
+
#gb-admin-plugin-admin .gb-nav-tab-wrapper,
|
67 |
+
.genesis-blocks-settings-sections .components-tab-panel__tabs {
|
68 |
+
background: linear-gradient(270deg, #0ecad4 10.72%, #7e5cef 95.71%);
|
69 |
+
}
|
70 |
+
|
71 |
+
.gb-admin-plugin-admin-header {
|
72 |
+
font-weight: 400;
|
73 |
+
padding: 2% 30px;
|
74 |
+
}
|
75 |
+
|
76 |
+
.gb-admin-plugin-admin-header h1 {
|
77 |
+
align-items: center;
|
78 |
+
color: var(--gb-color-white);
|
79 |
+
display: flex;
|
80 |
+
font-size: 28px;
|
81 |
+
}
|
82 |
+
|
83 |
+
.gb-plugin-common-logo {
|
84 |
+
margin-right: 10px;
|
85 |
+
width: 60px;
|
86 |
+
}
|
87 |
+
|
88 |
+
.gb-header-button {
|
89 |
+
background-color: #fff;
|
90 |
+
border-radius: 4px;
|
91 |
+
box-shadow: 3px 3px 10px rgb(0 0 0 / 15%);
|
92 |
+
color: var(--gb-color-body);
|
93 |
+
font-weight: 600;
|
94 |
+
padding: 14px 20px;
|
95 |
+
text-decoration: none;
|
96 |
+
transition: 0.2s ease;
|
97 |
+
}
|
98 |
+
|
99 |
+
.gb-header-button-icon {
|
100 |
+
margin-right: 18px;
|
101 |
+
vertical-align: bottom;
|
102 |
+
}
|
103 |
+
|
104 |
+
.gb-header-button:focus,
|
105 |
+
.gb-header-button:hover {
|
106 |
+
box-shadow: 3px 3px 10px rgb(0 0 0 / 15%);
|
107 |
+
color: var(--gb-color-body);
|
108 |
+
transform: scale(1.05);
|
109 |
+
}
|
110 |
+
|
111 |
+
@media (prefers-reduced-motion) {
|
112 |
+
|
113 |
+
.gb-header-button:focus,
|
114 |
+
.gb-header-button:hover {
|
115 |
+
background-color: #f7f7f7;
|
116 |
+
transform: none;
|
117 |
+
}
|
118 |
+
|
119 |
+
}
|
120 |
+
|
121 |
+
/* Tabs
|
122 |
+
--------------------------------------------- */
|
123 |
+
|
124 |
+
#gb-admin-plugin-admin .gb-nav-tab-wrapper,
|
125 |
+
#gb-admin-plugin-admin .components-tab-panel__tabs {
|
126 |
+
display: inline-flex;
|
127 |
+
padding: 0 30px;
|
128 |
+
width: 100%;
|
129 |
+
}
|
130 |
+
|
131 |
+
.gb-admin-button {
|
132 |
+
border-radius: 2px;
|
133 |
+
padding: 14px 24px;
|
134 |
+
color: #fff;
|
135 |
+
text-decoration: none;
|
136 |
+
transition: 0.2s ease;
|
137 |
+
}
|
138 |
+
|
139 |
+
.gb-admin-button:focus,
|
140 |
+
.gb-admin-button:hover {
|
141 |
+
color: #fff;
|
142 |
+
}
|
143 |
+
|
144 |
+
.gb-admin-button.gb-nav-tab {
|
145 |
+
background-color: transparent;
|
146 |
+
border-bottom-left-radius: 0;
|
147 |
+
border-bottom-right-radius: 0;
|
148 |
+
font-size: 16px;
|
149 |
+
font-weight: 600;
|
150 |
+
height: auto;
|
151 |
+
line-height: 1.5;
|
152 |
+
padding: 14px 20px;
|
153 |
+
}
|
154 |
+
|
155 |
+
.gb-admin-button.gb-nav-tab:not(.gb-nav-tab-active):focus,
|
156 |
+
.gb-admin-button.gb-nav-tab:not(.gb-nav-tab-active):hover {
|
157 |
+
background: rgba(255, 255, 255, 0.25);
|
158 |
+
color: #fff;
|
159 |
+
outline-color: transparent;
|
160 |
+
}
|
161 |
+
|
162 |
+
.gb-admin-button.gb-nav-tab:not(.gb-nav-tab-active):focus {
|
163 |
+
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
|
164 |
+
}
|
165 |
+
|
166 |
+
.gb-admin-button.gb-nav-tab-active {
|
167 |
+
background-color: #f1f1f1;
|
168 |
+
box-shadow: none;
|
169 |
+
color: var(--gb-color-body);
|
170 |
+
outline-color: transparent;
|
171 |
+
}
|
172 |
+
|
173 |
+
.gb-admin-button.gb-nav-tab-active:focus,
|
174 |
+
.gb-admin-button.gb-nav-tab-active:hover {
|
175 |
+
box-shadow: none;
|
176 |
+
color: var(--gb-color-body);
|
177 |
+
}
|
178 |
+
|
179 |
+
.gb-nav-tab .gb-plugin-tab-icon {
|
180 |
+
filter: brightness(0) invert(1);
|
181 |
+
margin-right: 10px;
|
182 |
+
vertical-align: text-bottom;
|
183 |
+
width: 20px;
|
184 |
+
}
|
185 |
+
|
186 |
+
.gb-nav-tab-active .gb-plugin-tab-icon {
|
187 |
+
filter: none;
|
188 |
+
}
|
189 |
+
|
190 |
+
/* Body & Layout
|
191 |
+
--------------------------------------------- */
|
192 |
+
|
193 |
+
.gb-admin-plugin-admin-body {
|
194 |
+
background-color: #f1f1f1;
|
195 |
+
padding: 20px;
|
196 |
+
}
|
197 |
+
|
198 |
+
.gb-admin-plugin-admin-body ::selection {
|
199 |
+
background-color: rgba(14, 202, 212, 0.2);
|
200 |
+
}
|
201 |
+
|
202 |
+
.gb-admin-plugin-admin-body hr {
|
203 |
+
border-bottom-width: 0;
|
204 |
+
border-color: rgba(0, 0, 0, 0.08);
|
205 |
+
margin: 1.5em 0;
|
206 |
+
}
|
207 |
+
|
208 |
+
.gb-admin-plugin-admin-body p {
|
209 |
+
color: var(--gb-color-body);
|
210 |
+
font-size: 16px;
|
211 |
+
line-height: 1.5;
|
212 |
+
}
|
213 |
+
|
214 |
+
.gb-admin-plugin-grid-2,
|
215 |
+
.gb-admin-plugin-grid-3,
|
216 |
+
.gb-admin-plugin-grid-4,
|
217 |
+
.gb-admin-plugin-grid-auto {
|
218 |
+
display: grid;
|
219 |
+
grid-template-rows: 1fr;
|
220 |
+
grid-template-columns: 1fr 1fr;
|
221 |
+
grid-gap: 0 2em;
|
222 |
+
}
|
223 |
+
|
224 |
+
.gb-admin-plugin-grid-2.center {
|
225 |
+
align-items: center;
|
226 |
+
}
|
227 |
+
|
228 |
+
.gb-admin-plugin-grid-2.uneven {
|
229 |
+
grid-template-columns: 1.5fr 1fr;
|
230 |
+
grid-gap: 0 2em;
|
231 |
+
}
|
232 |
+
|
233 |
+
.gb-admin-plugin-grid-2.wide-gap {
|
234 |
+
grid-template-columns: 1.25fr 1fr;
|
235 |
+
grid-gap: 0 6em;
|
236 |
+
}
|
237 |
+
|
238 |
+
.gb-admin-plugin-grid-2 + .gb-admin-plugin-grid-2,
|
239 |
+
.gb-admin-plugin-grid-3 + .gb-admin-plugin-grid-3,
|
240 |
+
.gb-admin-plugin-grid-4 + .gb-admin-plugin-grid-4 {
|
241 |
+
margin-top: 2em;
|
242 |
+
}
|
243 |
+
|
244 |
+
.gb-admin-plugin-grid-3 {
|
245 |
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
246 |
+
text-align: center;
|
247 |
+
}
|
248 |
+
|
249 |
+
.gb-admin-plugin-grid-4 {
|
250 |
+
grid-template-columns: 1fr 1fr 1fr 1fr;
|
251 |
+
text-align: center;
|
252 |
+
}
|
253 |
+
|
254 |
+
.gb-admin-plugin-grid-auto {
|
255 |
+
grid-gap: 2em;
|
256 |
+
grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
|
257 |
+
justify-items: center;
|
258 |
+
text-align: center;
|
259 |
+
}
|
260 |
+
|
261 |
+
.gb-admin-column {
|
262 |
+
display: grid;
|
263 |
+
}
|
264 |
+
|
265 |
+
.gb-admin-button-controls,
|
266 |
+
.gb-admin-plugin-header-controls-area {
|
267 |
+
display: flex;
|
268 |
+
align-items: center;
|
269 |
+
flex-wrap: wrap;
|
270 |
+
margin-left: auto;
|
271 |
+
}
|
272 |
+
|
273 |
+
.gb-admin-button {
|
274 |
+
border-radius: 2px;
|
275 |
+
padding: 14px 24px;
|
276 |
+
color: #fff;
|
277 |
+
text-align: center;
|
278 |
+
text-decoration: none;
|
279 |
+
transition: 0.2s ease;
|
280 |
+
}
|
281 |
+
|
282 |
+
.gb-admin-button:hover {
|
283 |
+
color: #fff;
|
284 |
+
}
|
285 |
+
|
286 |
+
.gb-admin-button-controls,
|
287 |
+
.gb-admin-plugin-grid-2 .gb-admin-plugin-header-controls-area {
|
288 |
+
grid-gap: 15px;
|
289 |
+
}
|
290 |
+
|
291 |
+
.gb-admin-button-controls {
|
292 |
+
line-height: 1;
|
293 |
+
padding: 20px 0;
|
294 |
+
width: 100%;
|
295 |
+
}
|
296 |
+
|
297 |
+
.gb-admin-button-controls.centered {
|
298 |
+
align-self: end;
|
299 |
+
justify-content: center;
|
300 |
+
}
|
301 |
+
|
302 |
+
.gb-admin-button-controls:last-child {
|
303 |
+
padding-bottom: 10px;
|
304 |
+
}
|
305 |
+
|
306 |
+
/* Links
|
307 |
+
--------------------------------------------- */
|
308 |
+
|
309 |
+
.gb-admin-plugin-admin-body a,
|
310 |
+
.gb-admin-plugin-admin-body .gb-admin-plugin-container .is-link {
|
311 |
+
border-radius: 4px;
|
312 |
+
color: var(--gb-color-brand);
|
313 |
+
font-size: 16px;
|
314 |
+
text-decoration: underline;
|
315 |
+
word-wrap: break-word;
|
316 |
+
}
|
317 |
+
|
318 |
+
.gb-admin-plugin-admin-body a:focus,
|
319 |
+
.gb-admin-plugin-admin-body .gb-admin-plugin-container .is-link:focus {
|
320 |
+
box-shadow: none;
|
321 |
+
outline: 2px solid currentColor;
|
322 |
+
outline-offset: 2px;
|
323 |
+
}
|
324 |
+
|
325 |
+
.gb-admin-plugin-admin-body a:focus,
|
326 |
+
.gb-admin-plugin-admin-body a:hover,
|
327 |
+
.gb-admin-plugin-admin-body .gb-admin-plugin-container .is-link:focus,
|
328 |
+
.gb-admin-plugin-admin-body .gb-admin-plugin-container .is-link:hover {
|
329 |
+
background-color: var(--gb-color-brand-transparency);
|
330 |
+
color: var(--gb-color-brand);
|
331 |
+
}
|
332 |
+
|
333 |
+
.gb-admin-plugin-admin-body .gb-admin-plugin-container .is-link:disabled {
|
334 |
+
background-color: transparent;
|
335 |
+
color: var(--gb-color-gray);
|
336 |
+
cursor: not-allowed;
|
337 |
+
opacity: 1;
|
338 |
+
}
|
339 |
+
|
340 |
+
.gb-admin-plugin-admin-body a:visited {
|
341 |
+
color: var(--gb-color-heliotrope);
|
342 |
+
}
|
343 |
+
|
344 |
+
.gb-admin-plugin-admin-body a[target="_blank"]::after,
|
345 |
+
.gb-admin-plugin-admin-header a[target="_blank"]::after,
|
346 |
+
.gb-admin-plugin-admin-body a.gb-link-download::after {
|
347 |
+
display: inline-block;
|
348 |
+
line-height: 1;
|
349 |
+
speak: never;
|
350 |
+
vertical-align: middle;
|
351 |
+
}
|
352 |
+
|
353 |
+
.gb-admin-plugin-admin-body a[target="_blank"]::after,
|
354 |
+
.gb-admin-plugin-admin-header a[target="_blank"]::after {
|
355 |
+
content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 0C1.34315 0 0 1.34315 0 3V8C0 8.55229 0.447715 9 1 9C1.55228 9 2 8.55229 2 8V3C2 2.44772 2.44772 2 3 2H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H5.82843C4.93752 14 4.49135 12.9229 5.12132 12.2929L9 8.41421V10C9 10.5523 9.44772 11 10 11C10.5523 11 11 10.5523 11 10V6C11 5.99846 11 5.99692 11 5.99538C10.9994 5.86147 10.9725 5.73378 10.9241 5.61722C10.8759 5.50061 10.8046 5.39128 10.7104 5.29616C10.7082 5.29398 10.706 5.2918 10.7038 5.28964C10.6087 5.19538 10.4994 5.12412 10.3828 5.07588C10.2649 5.02699 10.1356 5 10 5H6C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7H7.58579L3.70711 10.8787C1.81721 12.7686 3.15571 16 5.82843 16H13C14.6569 16 16 14.6569 16 13V3C16 1.34315 14.6569 0 13 0H3Z' fill='%237E5CEF'/%3E%3C/svg%3E%0A");
|
356 |
+
height: 16px;
|
357 |
+
margin-left: 5px;
|
358 |
+
margin-top: -2px;
|
359 |
+
width: 16px;
|
360 |
+
}
|
361 |
+
|
362 |
+
.gb-admin-plugin-admin-header a[target="_blank"]::after {
|
363 |
+
content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 0C1.34315 0 0 1.34315 0 3V8C0 8.55229 0.447715 9 1 9C1.55228 9 2 8.55229 2 8V3C2 2.44772 2.44772 2 3 2H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H5.82843C4.93752 14 4.49135 12.9229 5.12132 12.2929L9 8.41421V10C9 10.5523 9.44772 11 10 11C10.5523 11 11 10.5523 11 10V6C11 5.99846 11 5.99692 11 5.99538C10.9994 5.86147 10.9725 5.73378 10.9241 5.61722C10.8759 5.50061 10.8046 5.39128 10.7104 5.29616C10.7082 5.29398 10.706 5.2918 10.7038 5.28964C10.6087 5.19538 10.4994 5.12412 10.3828 5.07588C10.2649 5.02699 10.1356 5 10 5H6C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7H7.58579L3.70711 10.8787C1.81721 12.7686 3.15571 16 5.82843 16H13C14.6569 16 16 14.6569 16 13V3C16 1.34315 14.6569 0 13 0H3Z' fill='%23002838'/%3E%3C/svg%3E%0A");
|
364 |
+
margin-left: 20px;
|
365 |
+
}
|
366 |
+
|
367 |
+
.gb-admin-plugin-admin-body a.gb-link-download::after {
|
368 |
+
content: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1C11 0.447715 10.5523 0 10 0C9.44772 0 9 0.447715 9 1L9 10.5858L5.70711 7.29289C5.31658 6.90237 4.68342 6.90237 4.29289 7.29289C3.90237 7.68342 3.90237 8.31658 4.29289 8.70711L9.29289 13.7071C9.48043 13.8946 9.73478 14 10 14C10.2652 14 10.5196 13.8946 10.7071 13.7071L15.7071 8.70711C16.0976 8.31658 16.0976 7.68342 15.7071 7.2929C15.3166 6.90237 14.6834 6.90237 14.2929 7.29289L11 10.5858V1Z' fill='%23002838'/%3E%3Cpath d='M2 14.5C2 13.9477 1.55228 13.5 1 13.5C0.447715 13.5 0 13.9477 0 14.5V17C0 18.6569 1.34315 20 3 20H17C18.6569 20 20 18.6569 20 17V14.5C20 13.9477 19.5523 13.5 19 13.5C18.4477 13.5 18 13.9477 18 14.5V17C18 17.5523 17.5523 18 17 18H3C2.44772 18 2 17.5523 2 17V14.5Z' fill='%23002838'/%3E%3C/svg%3E%0A");
|
369 |
+
margin-left: 10px;
|
370 |
+
}
|
371 |
+
|
372 |
+
/* Buttons
|
373 |
+
---------------------------------------------------------------------------- */
|
374 |
+
|
375 |
+
.gb-admin-plugin-admin-body button,
|
376 |
+
.gb-admin-plugin-admin-body input[type=submit],
|
377 |
+
.gb-admin-plugin-admin-body .components-button,
|
378 |
+
.gb-admin-plugin-admin-body .components-button:active:not(:disabled),
|
379 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:not(:disabled),
|
380 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link,
|
381 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary,
|
382 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary,
|
383 |
+
.gb-admin-plugin-admin-body .is-disabled
|
384 |
+
.gb-admin-plugin-admin-body .is-link {
|
385 |
+
background-size: 1px 1px;
|
386 |
+
background-position: center center;
|
387 |
+
background-repeat: no-repeat;
|
388 |
+
border-width: 0;
|
389 |
+
border-radius: 4px;
|
390 |
+
box-shadow: none;
|
391 |
+
cursor: pointer;
|
392 |
+
display: inline-block;
|
393 |
+
font-size: 16px;
|
394 |
+
font-weight: 600;
|
395 |
+
height: auto;
|
396 |
+
line-height: 1.5;
|
397 |
+
outline: 1px solid transparent;
|
398 |
+
overflow: hidden;
|
399 |
+
padding: 16px 24px;
|
400 |
+
position: relative;
|
401 |
+
text-align: center;
|
402 |
+
text-decoration: none;
|
403 |
+
transition: background 0.6s cubic-bezier(0.2, 0.4, 0, 1), color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border 0.3s ease-in-out;
|
404 |
+
}
|
405 |
+
|
406 |
+
.gb-admin-plugin-admin-body .components-button[aria-disabled=true],
|
407 |
+
.gb-admin-plugin-admin-body .components-button:disabled {
|
408 |
+
opacity: 1;
|
409 |
+
}
|
410 |
+
|
411 |
+
/* Primary Buttons
|
412 |
+
--------------------------------------------- */
|
413 |
+
|
414 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary,
|
415 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary:visited,
|
416 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary,
|
417 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary:visited,
|
418 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:not(:disabled) {
|
419 |
+
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23765DC8' fill-opacity='0.40' /%3E%3C/svg%3E");
|
420 |
+
background-color: var(--gb-color-brand);
|
421 |
+
color: #fff;
|
422 |
+
}
|
423 |
+
|
424 |
+
@media (prefers-reduced-motion) {
|
425 |
+
|
426 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary,
|
427 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary:visited,
|
428 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary,
|
429 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary:visited,
|
430 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:not(:disabled) {
|
431 |
+
transition: none;
|
432 |
+
}
|
433 |
+
|
434 |
+
}
|
435 |
+
|
436 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary:focus,
|
437 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary:focus,
|
438 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:focus:not(:disabled) {
|
439 |
+
box-shadow: inset 0 0 0 2px var(--gb-color-brand-dark);
|
440 |
+
background-color: var(--gb-color-brand);
|
441 |
+
background-size: 160px 160px;
|
442 |
+
color: #fff;
|
443 |
+
outline: 1px solid #9c82f3;
|
444 |
+
outline-offset: 2px;
|
445 |
+
}
|
446 |
+
|
447 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary:focus:not(:focus-visible),
|
448 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary:focus:not(:focus-visible),
|
449 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:focus:not(:focus-visible) {
|
450 |
+
background-size: 0 0;
|
451 |
+
}
|
452 |
+
|
453 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary:focus-visible,
|
454 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary:focus-visible,
|
455 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:focus-visible {
|
456 |
+
background-size: 160px 160px;
|
457 |
+
}
|
458 |
+
|
459 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary:hover,
|
460 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary:hover,
|
461 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:hover:not(:disabled) {
|
462 |
+
background-color: var(--gb-color-brand-dark);
|
463 |
+
color: #fff;
|
464 |
+
}
|
465 |
+
|
466 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary:focus:active,
|
467 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary:active,
|
468 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary:focus:active,
|
469 |
+
.gb-admin-plugin-admin-body .gb-admin-button-primary:active,
|
470 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:focus:not(:disabled):active,
|
471 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:not(:disabled):active {
|
472 |
+
background-color: var(--gb-color-brand-dark);
|
473 |
+
background-size: 400px 400px;
|
474 |
+
box-shadow: inset 0 0 0 2px var(--gb-color-brand);
|
475 |
+
}
|
476 |
+
|
477 |
+
.gb-admin-plugin-admin-body a.gb-admin-button-primary[target="_blank"]::after {
|
478 |
+
filter: brightness(0) invert(1);
|
479 |
+
margin-left: 20px;
|
480 |
+
}
|
481 |
+
|
482 |
+
.gb-admin-plugin-admin-body button.gb-admin-button-primary[disabled],
|
483 |
+
.gb-admin-plugin-admin-body .components-button.is-primary[aria-disabled="true"],
|
484 |
+
.gb-admin-plugin-admin-body .components-button.is-primary[aria-disabled="true"]:enabled,
|
485 |
+
.gb-admin-plugin-admin-body .components-button.is-primary[aria-disabled="true"]:active:enabled,
|
486 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:disabled:focus:enabled,
|
487 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:disabled:active:enabled:focus:enabled,
|
488 |
+
.gb-admin-plugin-admin-body .components-button.is-primary[aria-disabled=true]:focus:enabled,
|
489 |
+
.gb-admin-plugin-admin-body .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,
|
490 |
+
.gb-admin-plugin-admin-body .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,
|
491 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:disabled:active:enabled,
|
492 |
+
.gb-admin-plugin-admin-body .components-button.is-primary:disabled,
|
493 |
+
.gb-admin-plugin-admin-body .components-button.is-primary.is-busy,
|
494 |
+
.gb-admin-plugin-admin-body input[type=button].gb-admin-button-primary[disabled],
|
495 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-primary[disabled] {
|
496 |
+
background-color: var(--gb-color-gray-light);
|
497 |
+
background-image: none;
|
498 |
+
box-shadow: none;
|
499 |
+
color: var(--gb-color-gray);
|
500 |
+
cursor: not-allowed;
|
501 |
+
outline-width: 0;
|
502 |
+
}
|
503 |
+
|
504 |
+
/* Secondary Buttons
|
505 |
+
--------------------------------------------- */
|
506 |
+
|
507 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary,
|
508 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary:visited,
|
509 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary,
|
510 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary:visited,
|
511 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:not(:disabled) {
|
512 |
+
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%237E5CEF' fill-opacity='0.26' /%3E%3C/svg%3E");
|
513 |
+
background-color: transparent;
|
514 |
+
border: 2px solid currentColor;
|
515 |
+
box-shadow: none;
|
516 |
+
color: var(--gb-color-brand);
|
517 |
+
padding: 14px 24px;
|
518 |
+
}
|
519 |
+
|
520 |
+
@media (prefers-reduced-motion) {
|
521 |
+
|
522 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary,
|
523 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary:visited,
|
524 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary,
|
525 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary:visited,
|
526 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:not(:disabled) {
|
527 |
+
transition: none;
|
528 |
+
}
|
529 |
+
|
530 |
+
}
|
531 |
+
|
532 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary:focus,
|
533 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary:focus,
|
534 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:focus:not(:disabled) {
|
535 |
+
background-color: transparent;
|
536 |
+
color: var(--gb-color-heliotrope);
|
537 |
+
background-size: 400px 400px;
|
538 |
+
border-color: var(--gb-color-heliotrope);
|
539 |
+
outline: 1px solid #9c82f3;
|
540 |
+
outline-offset: 2px;
|
541 |
+
}
|
542 |
+
|
543 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary:focus:not(:focus-visible),
|
544 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary:focus:not(:focus-visible),
|
545 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:focus:not(:focus-visible) {
|
546 |
+
background-size: 0 0;
|
547 |
+
}
|
548 |
+
|
549 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary:focus-visible,
|
550 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary:focus-visible,
|
551 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:focus-visible {
|
552 |
+
background-size: 160px 160px;
|
553 |
+
}
|
554 |
+
|
555 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary:hover,
|
556 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary:hover,
|
557 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:hover {
|
558 |
+
background-color: transparent;
|
559 |
+
border-color: var(--gb-color-brand-dark);
|
560 |
+
color: var(--gb-color-brand-dark);
|
561 |
+
}
|
562 |
+
|
563 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary:active,
|
564 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary:active,
|
565 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary:focus:active,
|
566 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary:focus:active,
|
567 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:focus:active {
|
568 |
+
background-color: transparent;
|
569 |
+
background-size: 400px 400px;
|
570 |
+
border-color: var(--gb-color-heliotrope);
|
571 |
+
color: var(--gb-color-heliotrope);
|
572 |
+
}
|
573 |
+
|
574 |
+
.gb-admin-plugin-admin-body a.gb-admin-button-secondary[target="_blank"]::after {
|
575 |
+
content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 0C1.34315 0 0 1.34315 0 3V8C0 8.55229 0.447715 9 1 9C1.55228 9 2 8.55229 2 8V3C2 2.44772 2.44772 2 3 2H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H5.82843C4.93752 14 4.49135 12.9229 5.12132 12.2929L9 8.41421V10C9 10.5523 9.44772 11 10 11C10.5523 11 11 10.5523 11 10V6C11 5.99846 11 5.99692 11 5.99538C10.9994 5.86147 10.9725 5.73378 10.9241 5.61722C10.8759 5.50061 10.8046 5.39128 10.7104 5.29616C10.7082 5.29398 10.706 5.2918 10.7038 5.28964C10.6087 5.19538 10.4994 5.12412 10.3828 5.07588C10.2649 5.02699 10.1356 5 10 5H6C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7H7.58579L3.70711 10.8787C1.81721 12.7686 3.15571 16 5.82843 16H13C14.6569 16 16 14.6569 16 13V3C16 1.34315 14.6569 0 13 0H3Z' fill='%237E5CEF'/%3E%3C/svg%3E%0A");
|
576 |
+
margin-left: 20px;
|
577 |
+
transition: all 0.3s ease-in-out;
|
578 |
+
}
|
579 |
+
|
580 |
+
.gb-admin-plugin-admin-body a.gb-admin-button-secondary[target="_blank"]:hover::after {
|
581 |
+
content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 0C1.34315 0 0 1.34315 0 3V8C0 8.55229 0.447715 9 1 9C1.55228 9 2 8.55229 2 8V3C2 2.44772 2.44772 2 3 2H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H5.82843C4.93752 14 4.49135 12.9229 5.12132 12.2929L9 8.41421V10C9 10.5523 9.44772 11 10 11C10.5523 11 11 10.5523 11 10V6C11 5.99846 11 5.99692 11 5.99538C10.9994 5.86147 10.9725 5.73378 10.9241 5.61722C10.8759 5.50061 10.8046 5.39128 10.7104 5.29616C10.7082 5.29398 10.706 5.2918 10.7038 5.28964C10.6087 5.19538 10.4994 5.12412 10.3828 5.07588C10.2649 5.02699 10.1356 5 10 5H6C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7H7.58579L3.70711 10.8787C1.81721 12.7686 3.15571 16 5.82843 16H13C14.6569 16 16 14.6569 16 13V3C16 1.34315 14.6569 0 13 0H3Z' fill='%235C43AE'/%3E%3C/svg%3E%0A");
|
582 |
+
}
|
583 |
+
|
584 |
+
.gb-admin-plugin-admin-body a.gb-admin-button-secondary[target="_blank"]:active::after,
|
585 |
+
.gb-admin-plugin-admin-body a.gb-admin-button-secondary[target="_blank"]:focus::after {
|
586 |
+
content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 0C1.34315 0 0 1.34315 0 3V8C0 8.55229 0.447715 9 1 9C1.55228 9 2 8.55229 2 8V3C2 2.44772 2.44772 2 3 2H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H5.82843C4.93752 14 4.49135 12.9229 5.12132 12.2929L9 8.41421V10C9 10.5523 9.44772 11 10 11C10.5523 11 11 10.5523 11 10V6C11 5.99846 11 5.99692 11 5.99538C10.9994 5.86147 10.9725 5.73378 10.9241 5.61722C10.8759 5.50061 10.8046 5.39128 10.7104 5.29616C10.7082 5.29398 10.706 5.2918 10.7038 5.28964C10.6087 5.19538 10.4994 5.12412 10.3828 5.07588C10.2649 5.02699 10.1356 5 10 5H6C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7H7.58579L3.70711 10.8787C1.81721 12.7686 3.15571 16 5.82843 16H13C14.6569 16 16 14.6569 16 13V3C16 1.34315 14.6569 0 13 0H3Z' fill='%237A1BA6'/%3E%3C/svg%3E%0A");
|
587 |
+
}
|
588 |
+
|
589 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary.gb-link-download::after {
|
590 |
+
content: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1C11 0.447715 10.5523 0 10 0C9.44772 0 9 0.447715 9 1L9 10.5858L5.70711 7.29289C5.31658 6.90237 4.68342 6.90237 4.29289 7.29289C3.90237 7.68342 3.90237 8.31658 4.29289 8.70711L9.29289 13.7071C9.48043 13.8946 9.73478 14 10 14C10.2652 14 10.5196 13.8946 10.7071 13.7071L15.7071 8.70711C16.0976 8.31658 16.0976 7.68342 15.7071 7.2929C15.3166 6.90237 14.6834 6.90237 14.2929 7.29289L11 10.5858V1Z' fill='%237E5CEF'/%3E%3Cpath d='M2 14.5C2 13.9477 1.55228 13.5 1 13.5C0.447715 13.5 0 13.9477 0 14.5V17C0 18.6569 1.34315 20 3 20H17C18.6569 20 20 18.6569 20 17V14.5C20 13.9477 19.5523 13.5 19 13.5C18.4477 13.5 18 13.9477 18 14.5V17C18 17.5523 17.5523 18 17 18H3C2.44772 18 2 17.5523 2 17V14.5Z' fill='%237E5CEF'/%3E%3C/svg%3E%0A");
|
591 |
+
}
|
592 |
+
|
593 |
+
|
594 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary.gb-link-download:hover::after {
|
595 |
+
content: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1C11 0.447715 10.5523 0 10 0C9.44772 0 9 0.447715 9 1L9 10.5858L5.70711 7.29289C5.31658 6.90237 4.68342 6.90237 4.29289 7.29289C3.90237 7.68342 3.90237 8.31658 4.29289 8.70711L9.29289 13.7071C9.48043 13.8946 9.73478 14 10 14C10.2652 14 10.5196 13.8946 10.7071 13.7071L15.7071 8.70711C16.0976 8.31658 16.0976 7.68342 15.7071 7.2929C15.3166 6.90237 14.6834 6.90237 14.2929 7.29289L11 10.5858V1Z' fill='%235C43AE'/%3E%3Cpath d='M2 14.5C2 13.9477 1.55228 13.5 1 13.5C0.447715 13.5 0 13.9477 0 14.5V17C0 18.6569 1.34315 20 3 20H17C18.6569 20 20 18.6569 20 17V14.5C20 13.9477 19.5523 13.5 19 13.5C18.4477 13.5 18 13.9477 18 14.5V17C18 17.5523 17.5523 18 17 18H3C2.44772 18 2 17.5523 2 17V14.5Z' fill='%235C43AE'/%3E%3C/svg%3E%0A");
|
596 |
+
}
|
597 |
+
|
598 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary.gb-link-download:active::after,
|
599 |
+
.gb-admin-plugin-admin-body .gb-admin-button-secondary.gb-link-download:focus::after {
|
600 |
+
content: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1C11 0.447715 10.5523 0 10 0C9.44772 0 9 0.447715 9 1L9 10.5858L5.70711 7.29289C5.31658 6.90237 4.68342 6.90237 4.29289 7.29289C3.90237 7.68342 3.90237 8.31658 4.29289 8.70711L9.29289 13.7071C9.48043 13.8946 9.73478 14 10 14C10.2652 14 10.5196 13.8946 10.7071 13.7071L15.7071 8.70711C16.0976 8.31658 16.0976 7.68342 15.7071 7.2929C15.3166 6.90237 14.6834 6.90237 14.2929 7.29289L11 10.5858V1Z' fill='%237A1BA6'/%3E%3Cpath d='M2 14.5C2 13.9477 1.55228 13.5 1 13.5C0.447715 13.5 0 13.9477 0 14.5V17C0 18.6569 1.34315 20 3 20H17C18.6569 20 20 18.6569 20 17V14.5C20 13.9477 19.5523 13.5 19 13.5C18.4477 13.5 18 13.9477 18 14.5V17C18 17.5523 17.5523 18 17 18H3C2.44772 18 2 17.5523 2 17V14.5Z' fill='%237A1BA6'/%3E%3C/svg%3E%0A");
|
601 |
+
}
|
602 |
+
|
603 |
+
.gb-admin-plugin-admin-body button.gb-admin-button-secondary[disabled],
|
604 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary[aria-disabled="true"],
|
605 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary[aria-disabled="true"]:enabled,
|
606 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary[aria-disabled="true"]:active:enabled,
|
607 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:disabled:focus:enabled,
|
608 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:disabled:active:enabled:focus:enabled,
|
609 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary[aria-disabled=true]:focus:enabled,
|
610 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary[aria-disabled=true]:enabled:focus:enabled,
|
611 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary[aria-disabled=true]:active:enabled:focus:enabled,
|
612 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:disabled:active:enabled,
|
613 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary:disabled,
|
614 |
+
.gb-admin-plugin-admin-body .components-button.is-secondary.is-busy,
|
615 |
+
.gb-admin-plugin-admin-body input[type=button].gb-admin-button-secondary[disabled],
|
616 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-secondary[disabled] {
|
617 |
+
background-color: transparent;
|
618 |
+
background-image: none;
|
619 |
+
border: 2px solid currentColor;
|
620 |
+
box-shadow: none;
|
621 |
+
color: var(--gb-color-gray);
|
622 |
+
cursor: not-allowed;
|
623 |
+
outline-width: 0;
|
624 |
+
}
|
625 |
+
|
626 |
+
/* Destructive Buttons
|
627 |
+
--------------------------------------------- */
|
628 |
+
|
629 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive,
|
630 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:not(:disabled),
|
631 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:active:not(:disabled) {
|
632 |
+
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23d21b46' fill-opacity='0.40' /%3E%3C/svg%3E");
|
633 |
+
background-color: var(--gb-color-error);
|
634 |
+
color: #fff;
|
635 |
+
}
|
636 |
+
|
637 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:focus:not(:disabled),
|
638 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:hover:not(:disabled) {
|
639 |
+
background-color: var(--gb-color-error-dark);
|
640 |
+
box-shadow: none;
|
641 |
+
color: #fff;
|
642 |
+
outline: none;
|
643 |
+
}
|
644 |
+
|
645 |
+
@media (prefers-reduced-motion) {
|
646 |
+
|
647 |
+
.gb-admin-plugin-admin-body .is-destructive,
|
648 |
+
.gb-admin-plugin-admin-body .is-destructive:visited,
|
649 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:not(:disabled) {
|
650 |
+
transition: none;
|
651 |
+
}
|
652 |
+
|
653 |
+
}
|
654 |
+
|
655 |
+
.gb-admin-plugin-admin-body .is-destructive:focus,
|
656 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:focus:not(:disabled) {
|
657 |
+
background-color: var(--gb-color-error-dark);
|
658 |
+
background-size: 160px 160px;
|
659 |
+
color: #fff;
|
660 |
+
outline: 1px solid #e32652;
|
661 |
+
outline-offset: 2px;
|
662 |
+
}
|
663 |
+
|
664 |
+
.gb-admin-plugin-admin-body .is-destructive:focus:not(:focus-visible),
|
665 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:focus:not(:disabled),
|
666 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:not(:disabled) {
|
667 |
+
background-size: 0 0;
|
668 |
+
}
|
669 |
+
|
670 |
+
|
671 |
+
.gb-admin-plugin-admin-body .is-destructive:focus-visible {
|
672 |
+
background-size: 160px 160px;
|
673 |
+
}
|
674 |
+
|
675 |
+
.gb-admin-plugin-admin-body .is-destructive:hover,
|
676 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:hover:not(:disabled) {
|
677 |
+
background-color: var(--gb-color-error-dark);
|
678 |
+
color: #fff;
|
679 |
+
}
|
680 |
+
|
681 |
+
.gb-admin-plugin-admin-body .is-destructive:focus:active,
|
682 |
+
.gb-admin-plugin-admin-body .is-destructive:active,
|
683 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:focus:not(:disabled):active,
|
684 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:not(:disabled):active {
|
685 |
+
background-color: var(--gb-color-error-dark);
|
686 |
+
background-size: 400px 400px;
|
687 |
+
}
|
688 |
+
|
689 |
+
.gb-admin-plugin-admin-body button.gb-admin-button-destructive[disabled],
|
690 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive[aria-disabled="true"],
|
691 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive[aria-disabled="true"]:enabled,
|
692 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive[aria-disabled="true"]:active:enabled,
|
693 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:disabled:focus:enabled,
|
694 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:disabled:active:enabled:focus:enabled,
|
695 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive[aria-disabled=true]:focus:enabled,
|
696 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive[aria-disabled=true]:enabled:focus:enabled,
|
697 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive[aria-disabled=true]:active:enabled:focus:enabled,
|
698 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:disabled:active:enabled,
|
699 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive:disabled,
|
700 |
+
.gb-admin-plugin-admin-body .components-button.is-destructive.is-busy,
|
701 |
+
.gb-admin-plugin-admin-body input[type=button].gb-admin-button-destructive[disabled],
|
702 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-destructive[disabled] {
|
703 |
+
background-color: var(--gb-color-gray-light);
|
704 |
+
background-image: none;
|
705 |
+
box-shadow: none;
|
706 |
+
color: var(--gb-color-gray);
|
707 |
+
cursor: not-allowed;
|
708 |
+
outline-width: 0;
|
709 |
+
}
|
710 |
+
|
711 |
+
/* Link/Text Buttons
|
712 |
+
--------------------------------------------- */
|
713 |
+
|
714 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link,
|
715 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link:visited,
|
716 |
+
.gb-admin-plugin-admin-body .components-button.is-link:not(:disabled) {
|
717 |
+
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23765DC8' fill-opacity='0.26' /%3E%3C/svg%3E");
|
718 |
+
background-color: transparent;
|
719 |
+
color: var(--gb-color-brand);
|
720 |
+
text-decoration: none;
|
721 |
+
}
|
722 |
+
|
723 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link.aligned {
|
724 |
+
padding: 4px 0;
|
725 |
+
}
|
726 |
+
|
727 |
+
@media (prefers-reduced-motion) {
|
728 |
+
|
729 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link,
|
730 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link:visited,
|
731 |
+
.gb-admin-plugin-admin-body .components-button.is-link:not(:disabled) {
|
732 |
+
transition: none;
|
733 |
+
}
|
734 |
+
|
735 |
+
}
|
736 |
+
|
737 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link:focus,
|
738 |
+
.gb-admin-plugin-admin-body .components-button.is-link:focus:not(:disabled) {
|
739 |
+
background-color: transparent;
|
740 |
+
background-size: 400px 400px;
|
741 |
+
color: var(--gb-color-heliotrope);
|
742 |
+
outline-width: 0;
|
743 |
+
outline-offset: 2px;
|
744 |
+
}
|
745 |
+
|
746 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link:focus:not(:focus-visible),
|
747 |
+
.gb-admin-plugin-admin-body .components-button.is-link:focus:not(:focus-visible) {
|
748 |
+
background-size: 0 0;
|
749 |
+
}
|
750 |
+
|
751 |
+
.gb-admin-plugin-admin-body .components-button.is-link:focus-visible,
|
752 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link:focus-visible:not(:disabled) {
|
753 |
+
background-size: 160px 160px;
|
754 |
+
}
|
755 |
+
|
756 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link:hover,
|
757 |
+
.gb-admin-plugin-admin-body .components-button.is-link:hover:not(:disabled) {
|
758 |
+
background-color: transparent;
|
759 |
+
color: var(--gb-color-brand-dark);
|
760 |
+
}
|
761 |
+
|
762 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link:focus:active,
|
763 |
+
.gb-admin-plugin-admin-body .gb-admin-button-link:active,
|
764 |
+
.gb-admin-plugin-admin-body .components-button.is-link:focus:not(:disabled):active,
|
765 |
+
.gb-admin-plugin-admin-body .components-button.is-link:not(:disabled):active {
|
766 |
+
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%237A1BA6' fill-opacity='0.30' /%3E%3C/svg%3E");
|
767 |
+
background-size: 400px 400px;
|
768 |
+
color: var(--gb-color-heliotrope);
|
769 |
+
}
|
770 |
+
|
771 |
+
.gb-admin-plugin-admin-body a.gb-admin-button-link[target="_blank"]::after {
|
772 |
+
margin-left: 20px;
|
773 |
+
}
|
774 |
+
|
775 |
+
.gb-admin-plugin-admin-body button.gb-admin-button-link[disabled],
|
776 |
+
.gb-admin-plugin-admin-body .components-button.is-link[aria-disabled="true"],
|
777 |
+
.gb-admin-plugin-admin-body .components-button.is-link[aria-disabled="true"]:enabled,
|
778 |
+
.gb-admin-plugin-admin-body .components-button.is-link[aria-disabled="true"]:active:enabled,
|
779 |
+
.gb-admin-plugin-admin-body .components-button.is-link:disabled:active:enabled,
|
780 |
+
.gb-admin-plugin-admin-body .components-button.is-link:disabled,
|
781 |
+
.gb-admin-plugin-admin-body .components-button.is-link.is-busy,
|
782 |
+
.gb-admin-plugin-admin-body input[type=button].gb-admin-button-link[disabled],
|
783 |
+
.gb-admin-plugin-admin-body input[type=submit].gb-admin-button-link[disabled] {
|
784 |
+
background-color: var(--gb-color-gray-light);
|
785 |
+
background-image: none;
|
786 |
+
box-shadow: none;
|
787 |
+
color: var(--gb-color-gray);
|
788 |
+
cursor: not-allowed;
|
789 |
+
}
|
790 |
+
|
791 |
+
/* Sections
|
792 |
+
---------------------------------------------------------------------------- */
|
793 |
+
|
794 |
+
.gb-admin-plugin-container {
|
795 |
+
background-color: var(--gb-color-white);
|
796 |
+
color: var(--gb-color-body);
|
797 |
+
margin-bottom: 20px;
|
798 |
+
padding: 2.5em;
|
799 |
+
}
|
800 |
+
|
801 |
+
.gb-admin-plugin-container::before,
|
802 |
+
.genesis-blocks-settings-sections::before {
|
803 |
+
content: "";
|
804 |
+
display: table;
|
805 |
+
}
|
806 |
+
|
807 |
+
.gb-admin-plugin-container::after,
|
808 |
+
.genesis-blocks-settings-sections::after {
|
809 |
+
clear: both;
|
810 |
+
content: "";
|
811 |
+
display: table;
|
812 |
+
}
|
813 |
+
|
814 |
+
.gb-admin-plugin-container:last-child {
|
815 |
+
margin-bottom: 0;
|
816 |
+
}
|
817 |
+
|
818 |
+
.gb-admin-plugin-container .components-base-control {
|
819 |
+
margin-bottom: 2em;
|
820 |
+
}
|
821 |
+
|
822 |
+
.gb-admin-plugin-container img {
|
823 |
+
margin-bottom: 1em;
|
824 |
+
max-width: 100%;
|
825 |
+
}
|
826 |
+
|
827 |
+
.gb-layouts-img img {
|
828 |
+
margin-top: 10px;
|
829 |
+
width: 397px;
|
830 |
+
}
|
831 |
+
|
832 |
+
.gb-admin-plugin-admin-body h1,
|
833 |
+
.gb-admin-plugin-admin-body h2,
|
834 |
+
.gb-admin-plugin-admin-body h3,
|
835 |
+
.gb-admin-plugin-admin-body h4,
|
836 |
+
.gb-admin-plugin-admin-body h5,
|
837 |
+
.gb-admin-plugin-admin-body h6 {
|
838 |
+
font-weight: 600;
|
839 |
+
}
|
840 |
+
|
841 |
+
.gb-admin-plugin-admin-body h2,
|
842 |
+
.gb-admin-plugin-admin-body h3 {
|
843 |
+
color: var(--gb-color-body);
|
844 |
+
margin-bottom: 0.5em;
|
845 |
+
margin-top: 0;
|
846 |
+
}
|
847 |
+
|
848 |
+
.gb-admin-plugin-container h2 {
|
849 |
+
font-size: 28px;
|
850 |
+
font-size: clamp(24px, 3vw, 28px);
|
851 |
+
}
|
852 |
+
|
853 |
+
.gb-admin-plugin-admin-body h2 + [class*="gb-admin-plugin-grid-"] {
|
854 |
+
padding-top: 1em;
|
855 |
+
}
|
856 |
+
|
857 |
+
.gb-admin-plugin-admin-body h3 {
|
858 |
+
font-size: 20px;
|
859 |
+
}
|
860 |
+
|
861 |
+
.gb-admin-plugin-admin-body .gb-genesis-101 h3,
|
862 |
+
.gb-admin-plugin-admin-body .gb-site-building-steps h3 {
|
863 |
+
font-size: 24px;
|
864 |
+
font-size: clamp(20px, 2.5vw, 24px);
|
865 |
+
}
|
866 |
+
|
867 |
+
.gb-admin-plugin-admin-body abbr[title],
|
868 |
+
.gb-admin-plugin-admin-body acronym[title] {
|
869 |
+
border-bottom: 1px dotted currentColor;
|
870 |
+
text-decoration: none;
|
871 |
+
}
|
872 |
+
|
873 |
+
.gb-admin-plugin-container code {
|
874 |
+
background-color: var(--gb-color-white);
|
875 |
+
font-weight: 600;
|
876 |
+
font-family: inherit;
|
877 |
+
font-size: 16px;
|
878 |
+
margin: 0;
|
879 |
+
padding: 0;
|
880 |
+
}
|
881 |
+
|
882 |
+
.gb-admin-settings-panel ul {
|
883 |
+
margin-left: 1em;
|
884 |
+
padding-left: 1em;
|
885 |
+
}
|
886 |
+
|
887 |
+
.gb-admin-settings-panel li {
|
888 |
+
list-style-type: disc;
|
889 |
+
list-style-position: outside;
|
890 |
+
}
|
891 |
+
|
892 |
+
.gb-caps {
|
893 |
+
text-transform: uppercase;
|
894 |
+
}
|
895 |
+
|
896 |
+
.gb-disclaimer {
|
897 |
+
color: var(--gb-color-titanium);
|
898 |
+
font-size: 0.8em;
|
899 |
+
}
|
900 |
+
|
901 |
+
.gb-admin-cta-panel,
|
902 |
+
.gb-admin-settings-panel {
|
903 |
+
background-color: #fff;
|
904 |
+
border-left: 5px solid var(--gb-color-wpe-blue);
|
905 |
+
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
|
906 |
+
border-radius: 2px;
|
907 |
+
margin-top: 20px;
|
908 |
+
max-width: 960px;
|
909 |
+
padding: 1em 1.8em;
|
910 |
+
}
|
911 |
+
|
912 |
+
.gb-admin-cta-panel {
|
913 |
+
align-items: center;
|
914 |
+
display: flex;
|
915 |
+
flex-flow: row wrap;
|
916 |
+
justify-content: space-between;
|
917 |
+
max-width: 720px;
|
918 |
+
}
|
919 |
+
|
920 |
+
.gb-admin-cta-wrap {
|
921 |
+
align-items: center;
|
922 |
+
display: flex;
|
923 |
+
flex-direction: row;
|
924 |
+
justify-content: space-between;
|
925 |
+
}
|
926 |
+
|
927 |
+
.gb-admin-cta-wrap .dashicons {
|
928 |
+
font-size: 32px;
|
929 |
+
height: 32px;
|
930 |
+
margin-right: 0.5em;
|
931 |
+
width: 32px;
|
932 |
+
}
|
933 |
+
|
934 |
+
.gb-admin-cta-text p {
|
935 |
+
margin: 0.6em 0;
|
936 |
+
}
|
937 |
+
|
938 |
+
.gb-admin-cta-heading {
|
939 |
+
font-size: 1em;
|
940 |
+
font-weight: 600;
|
941 |
+
}
|
942 |
+
|
943 |
+
.gb-admin-icon-check-solid {
|
944 |
+
content: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 32 33' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='0.600098' width='32' height='32' rx='16' fill='%23001720'/%3E%3Cpath d='M21 12.7993L14.2 19.5993L11.4 16.7993L10 18.1993L14.2 22.3993L22.4 14.1993L21 12.7993Z' fill='white'/%3E%3C/svg%3E ");
|
945 |
+
height: 32px;
|
946 |
+
margin-right: 1.5em;
|
947 |
+
speak: never;
|
948 |
+
width: 32px;
|
949 |
+
}
|
950 |
+
|
951 |
+
.gb-completed .gb-admin-icon-check-solid {
|
952 |
+
content: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 32 33' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='0.600098' width='32' height='32' rx='16' fill='%230ecad4'/%3E%3Cpath d='M21 12.7993L14.2 19.5993L11.4 16.7993L10 18.1993L14.2 22.3993L22.4 14.1993L21 12.7993Z' fill='white'/%3E%3C/svg%3E ");
|
953 |
+
speak: never;
|
954 |
+
}
|
955 |
+
|
956 |
+
.gb-admin-plugin-ul-checks li {
|
957 |
+
align-items: center;
|
958 |
+
display: grid;
|
959 |
+
grid-gap: 0 22px;
|
960 |
+
grid-template-columns: 48px 1fr;
|
961 |
+
margin-bottom: 1em;
|
962 |
+
}
|
963 |
+
|
964 |
+
.gb-admin-plugin-ul-checks li::before {
|
965 |
+
content: url("data:image/svg+xml,%3Csvg width='48' height='48' fill='none' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cg filter='url(%23a)'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23F2EFFD'/%3E%3C/g%3E%3Cpath d='M33.707 19.707a1 1 0 0 0-1.414-1.414L22 28.586l-6.293-6.293a1 1 0 0 0-1.414 1.414l7 7a1 1 0 0 0 1.414 0l11-11Z' fill='%23002838'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M24 2C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2ZM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24Z' fill='%23002838'/%3E%3Cdefs%3E%3Cfilter id='a' x='2' y='2' width='46' height='46' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dx='2' dy='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/%3E%3CfeBlend in2='BackgroundImageFix' result='effect1_dropShadow'/%3E%3CfeBlend in='SourceGraphic' in2='effect1_dropShadow' result='shape'/%3E%3CfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dx='4' dy='4'/%3E%3CfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3CfeBlend in2='shape' result='effect2_innerShadow'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
|
966 |
+
height: 48px;
|
967 |
+
speak: never;
|
968 |
+
width: 48px;
|
969 |
+
}
|
970 |
+
|
971 |
+
/* Checkboxes & Radios
|
972 |
+
---------------------------------------------------------------------------- */
|
973 |
+
|
974 |
+
.gb-admin-plugin-admin-body input[type=checkbox],
|
975 |
+
.gb-admin-plugin-admin-body .components-checkbox-control__input,
|
976 |
+
.gb-admin-plugin-admin-body input[type=radio] {
|
977 |
+
background-color: #fff;
|
978 |
+
border: 2px solid var(--gb-color-input-border);
|
979 |
+
font-size: 16px;
|
980 |
+
height: 1.5rem;
|
981 |
+
line-height: 0;
|
982 |
+
margin: 0 0.5em 0 0;
|
983 |
+
min-width: 1.5rem;
|
984 |
+
position: relative;
|
985 |
+
width: 1.5rem;
|
986 |
+
}
|
987 |
+
|
988 |
+
.gb-admin-plugin-admin-body input[type=checkbox] + label,
|
989 |
+
.gb-admin-plugin-admin-body .components-checkbox-control__label,
|
990 |
+
.gb-admin-plugin-admin-body input[type=radio] + label {
|
991 |
+
font-size: 16px;
|
992 |
+
}
|
993 |
+
|
994 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:checked {
|
995 |
+
background-color: var(--gb-color-body);
|
996 |
+
border-color: var(--gb-color-body);
|
997 |
+
}
|
998 |
+
|
999 |
+
.gb-admin-plugin-admin-body input[type=checkbox]::after {
|
1000 |
+
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%237E5CEF' fill-opacity='0.16' /%3E%3C/svg%3E");
|
1001 |
+
background-color: transparent;
|
1002 |
+
background-size: 0 0;
|
1003 |
+
background-position: center;
|
1004 |
+
background-repeat: no-repeat;
|
1005 |
+
content: "";
|
1006 |
+
display: inline-block;
|
1007 |
+
height: 40px;
|
1008 |
+
left: -10px;
|
1009 |
+
top: -10px;
|
1010 |
+
opacity: 0;
|
1011 |
+
position: absolute;
|
1012 |
+
transition: all 0.3s ease-in-out;
|
1013 |
+
width: 40px;
|
1014 |
+
}
|
1015 |
+
|
1016 |
+
.gb-admin-plugin-admin-body .components-radio-control__option:not(:last-child) {
|
1017 |
+
margin-bottom: 1em;
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
.gb-admin-plugin-admin-body .gb-inline-radio .components-base-control__field {
|
1021 |
+
display: flex;
|
1022 |
+
flex-wrap: wrap;
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
.gb-admin-plugin-admin-body .gb-inline-radio .components-base-control__label {
|
1026 |
+
width: 100%;
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
.gb-admin-plugin-admin-body .gb-inline-radio .components-radio-control__option {
|
1030 |
+
margin-bottom: 1em;
|
1031 |
+
}
|
1032 |
+
|
1033 |
+
.gb-admin-plugin-admin-body .gb-inline-radio .components-radio-control__option:not(:last-child) {
|
1034 |
+
margin-right: 16px;
|
1035 |
+
}
|
1036 |
+
|
1037 |
+
.gb-admin-plugin-admin-body .gb-inline-radio .components-radio-control__option label {
|
1038 |
+
word-break: break-all;
|
1039 |
+
}
|
1040 |
+
|
1041 |
+
.gb-admin-plugin-admin-body .gb-inline-radio p.components-base-control__help {
|
1042 |
+
margin-top: 0;
|
1043 |
+
}
|
1044 |
|
1045 |
+
.gb-admin-plugin-admin-body input[type=radio] {
|
1046 |
+
background-color: transparent;
|
1047 |
+
transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
1048 |
+
}
|
1049 |
|
1050 |
+
.gb-admin-plugin-admin-body input[type=radio]:checked {
|
1051 |
+
background-color: transparent;
|
1052 |
+
border-color: var(--gb-color-brand);
|
1053 |
+
}
|
1054 |
|
1055 |
+
.gb-admin-plugin-admin-body input[type=radio]:checked::before {
|
1056 |
+
background-color: var(--gb-color-brand);
|
1057 |
+
border-color: transparent;
|
1058 |
+
height: 12px;
|
1059 |
+
margin: 0;
|
1060 |
+
width: 12px;
|
1061 |
+
transform: translate(4px, 4px);
|
1062 |
}
|
1063 |
|
1064 |
+
@media (prefers-reduced-motion) {
|
1065 |
+
|
1066 |
+
.gb-admin-plugin-admin-body input[type=checkbox]::after,
|
1067 |
+
.gb-admin-plugin-admin-body input[type=radio]:checked::before {
|
1068 |
+
transition: none;
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
}
|
1072 |
+
|
1073 |
+
.gb-admin-plugin-admin-body .components-checkbox-control__input-container {
|
1074 |
+
height: 1.5rem;
|
1075 |
+
margin-right: 0;
|
1076 |
+
width: calc(1.5rem + 0.6em);
|
1077 |
+
}
|
1078 |
+
|
1079 |
+
.gb-admin-plugin-admin-body .components-checkbox-control__input-container svg {
|
1080 |
display: none;
|
1081 |
}
|
1082 |
|
1083 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:checked::before {
|
1084 |
+
content: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.6095 1.05703C16.1302 1.57773 16.1302 2.42195 15.6095 2.94265L6.94281 11.6093C6.42211 12.13 5.57789 12.13 5.05719 11.6093L0.390524 6.94265C-0.130175 6.42195 -0.130175 5.57773 0.390524 5.05703C0.911223 4.53633 1.75544 4.53633 2.27614 5.05703L6 8.78089L13.7239 1.05703C14.2446 0.536329 15.0888 0.536329 15.6095 1.05703Z' fill='white'/%3E%3C/svg%3E");
|
1085 |
+
margin: 4px 2px;
|
1086 |
+
height: 12px;
|
1087 |
+
width: 16px;
|
1088 |
}
|
1089 |
|
1090 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:focus {
|
1091 |
+
border-color: var(--gb-color-brand-dark);
|
1092 |
+
box-shadow: inset 0 0 1px 2px var(--gb-color-brand-dark);
|
1093 |
+
}
|
1094 |
|
1095 |
+
.gb-admin-plugin-admin-body input[type=radio]:focus {
|
1096 |
+
border-color: var(--gb-color-brand-dark);
|
1097 |
+
box-shadow: 0 0 0 8px var(--gb-color-brand-transparency), inset 0 0 0 10px var(--gb-color-brand-transparency), 0 0 1px 2px var(--gb-color-brand-dark);
|
|
|
1098 |
}
|
1099 |
|
1100 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:focus:checked {
|
1101 |
+
border-color: var(--gb-color-brand-dark);
|
1102 |
+
background-color: var(--gb-color-brand);
|
1103 |
}
|
1104 |
|
1105 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:focus::after,
|
1106 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:focus:checked::after {
|
1107 |
+
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%235C43AE' fill-opacity='0.16' /%3E%3C/svg%3E");
|
1108 |
+
background-size: 40px 40px;
|
1109 |
+
opacity: 1;
|
|
|
|
|
1110 |
}
|
1111 |
|
1112 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:hover {
|
1113 |
+
border-color: var(--gb-color-brand);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1114 |
}
|
1115 |
|
1116 |
+
.gb-admin-plugin-admin-body input[type=radio]:focus:hover,
|
1117 |
+
.gb-admin-plugin-admin-body input[type=radio]:hover {
|
1118 |
+
box-shadow: 0 0 0 8px var(--gb-color-brand-transparency), inset 0 0 0 10px var(--gb-color-brand-transparency);
|
|
|
1119 |
}
|
1120 |
|
1121 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:hover::after,
|
1122 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:hover:checked::after {
|
1123 |
+
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%235C43AE' fill-opacity='0.15' /%3E%3C/svg%3E");
|
1124 |
+
background-size: 40px 40px;
|
1125 |
+
opacity: 1;
|
1126 |
+
content: "";
|
1127 |
}
|
1128 |
|
1129 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:hover:checked {
|
1130 |
+
background-color: var(--gb-color-brand);
|
1131 |
+
}
|
1132 |
|
1133 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:active {
|
1134 |
+
background-color: var(--gb-color-brand);
|
1135 |
+
border-color: var(--gb-color-brand);
|
1136 |
+
box-shadow: none;
|
1137 |
+
}
|
1138 |
|
1139 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:hover:active::after,
|
1140 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:hover:active:checked::after {
|
1141 |
+
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%237E5CEF' fill-opacity='0.35' /%3E%3C/svg%3E");
|
1142 |
+
background-size: 40px 40px;
|
1143 |
+
opacity: 1;
|
|
|
|
|
|
|
1144 |
}
|
1145 |
|
1146 |
+
.gb-admin-plugin-admin-body input[type=radio]:focus:active,
|
1147 |
+
.gb-admin-plugin-admin-body input[type=radio]:focus:active:checked,
|
1148 |
+
.gb-admin-plugin-admin-body input[type=radio]:hover:active,
|
1149 |
+
.gb-admin-plugin-admin-body input[type=radio]:hover:active:checked {
|
1150 |
+
background-color: transparent;
|
1151 |
+
box-shadow: 0 0 0 8px var(--gb-color-brand-dark-transparency), inset 0 0 0 10px var(--gb-color-brand-dark-transparency);
|
1152 |
}
|
1153 |
|
1154 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:not(checked):active {
|
1155 |
+
background-color: #fff;
|
1156 |
+
}
|
1157 |
|
1158 |
+
.gb-checkbox-label {
|
1159 |
+
display: inline;
|
1160 |
+
font-size: 16px;
|
1161 |
+
line-height: 2.2;
|
1162 |
}
|
1163 |
|
1164 |
+
/* Summary / Details
|
1165 |
+
---------------------------------------------------------------------------- */
|
1166 |
+
|
1167 |
+
details.gb-admin-accordion-panel {
|
1168 |
+
background-color: #fff;
|
1169 |
+
border-bottom: 1px solid var(--gb-color-gray);
|
1170 |
+
padding: 0;
|
|
|
1171 |
}
|
1172 |
|
1173 |
+
.gb-admin-accordion-panel summary {
|
1174 |
+
align-items: center;
|
1175 |
+
cursor: pointer;
|
1176 |
+
display: flex;
|
1177 |
+
justify-content: space-between;
|
1178 |
+
padding: 16px 32px;
|
1179 |
+
outline: none;
|
1180 |
+
}
|
1181 |
|
1182 |
+
.gb-admin-accordion-panel h3,
|
1183 |
+
.gb-admin-accordion-panel h4 {
|
1184 |
+
margin: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1185 |
}
|
1186 |
|
1187 |
+
.gb-admin-accordion-panel h3 {
|
1188 |
+
font-size: clamp(16px, 1vw, 20px);
|
1189 |
+
}
|
1190 |
|
1191 |
+
.gb-admin-accordion-panel h4 {
|
1192 |
+
font-size: 18px;
|
1193 |
+
font-size: clamp(16px, 1vw, 18px);
|
1194 |
+
font-weight: 400;
|
1195 |
}
|
1196 |
|
1197 |
+
details.gb-admin-accordion-panel[open] .gb-details-content {
|
1198 |
+
animation-name: fadeInDown;
|
1199 |
+
animation-duration: 0.5s;
|
|
|
|
|
1200 |
}
|
1201 |
|
1202 |
+
@keyframes fadeInDown {
|
1203 |
+
|
1204 |
+
0% {
|
1205 |
+
opacity: 0;
|
1206 |
+
transform: translateY(-1.25em);
|
1207 |
+
}
|
1208 |
+
|
1209 |
+
100% {
|
1210 |
+
opacity: 1;
|
1211 |
+
transform: translateY(0);
|
1212 |
+
}
|
1213 |
+
|
1214 |
}
|
1215 |
|
1216 |
+
details.gb-admin-accordion-panel:not([open]) {
|
1217 |
+
animation-name: fadeIn;
|
1218 |
+
animation-duration: 1.8s;
|
1219 |
}
|
1220 |
|
1221 |
+
@keyframes fadeIn {
|
1222 |
+
|
1223 |
+
0% {
|
1224 |
+
opacity: 0.5;
|
1225 |
+
}
|
1226 |
+
|
1227 |
+
100% {
|
1228 |
+
opacity: 1;
|
1229 |
+
}
|
1230 |
+
|
1231 |
}
|
1232 |
|
1233 |
+
.gb-details-content {
|
1234 |
+
padding: 32px;
|
1235 |
+
}
|
1236 |
|
1237 |
+
.gb-details-content hr {
|
1238 |
+
margin-top: 0;
|
|
|
|
|
|
|
|
|
1239 |
}
|
1240 |
|
1241 |
+
details.gb-admin-accordion-panel summary > * {
|
1242 |
+
display: inline;
|
|
|
|
|
|
|
|
|
|
|
1243 |
}
|
1244 |
|
1245 |
+
details.gb-admin-accordion-panel > summary::marker,
|
1246 |
+
details.gb-admin-accordion-panel > summary::-webkit-details-marker {
|
1247 |
+
color: transparent;
|
1248 |
+
content: "";
|
1249 |
+
display: none;
|
1250 |
+
}
|
1251 |
|
1252 |
+
details.gb-admin-accordion-panel[open] > summary {
|
1253 |
+
border-bottom: 1px solid var(--gb-color-gray);
|
|
|
|
|
|
|
|
|
|
|
1254 |
}
|
1255 |
|
1256 |
+
details.gb-admin-accordion-panel summary:hover,
|
1257 |
+
details.gb-admin-accordion-panel[open]:hover > summary {
|
1258 |
+
background-color: var(--gb-color-gray-light);
|
1259 |
+
}
|
1260 |
|
1261 |
+
details.gb-admin-accordion-panel > summary:focus,
|
1262 |
+
details.gb-admin-accordion-panel[open] > summary:focus {
|
1263 |
+
border-color: transparent;
|
1264 |
+
box-shadow: inset 0 0 0 4px var(--gb-color-brand), 0 -1px 0 0 #fff, 0 1px 0 0 #fff !important;
|
1265 |
+
}
|
1266 |
|
1267 |
+
details.gb-admin-accordion-panel > summary::after {
|
1268 |
+
content: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.70711 7.70711C7.31658 8.09763 6.68342 8.09763 6.29289 7.70711L0.292893 1.70711C-0.0976318 1.31658 -0.0976318 0.683416 0.292893 0.292892C0.683417 -0.0976326 1.31658 -0.0976326 1.70711 0.292892L7 5.58579L12.2929 0.292893C12.6834 -0.0976316 13.3166 -0.0976315 13.7071 0.292893C14.0976 0.683417 14.0976 1.31658 13.7071 1.70711L7.70711 7.70711Z' fill='%23002838'/%3E%3C/svg%3E%0A");
|
1269 |
+
float: right;
|
1270 |
+
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
1271 |
+
}
|
1272 |
|
1273 |
+
details.gb-admin-accordion-panel[open] > summary::after {
|
1274 |
+
transform: rotate(-180deg);
|
|
|
|
|
1275 |
}
|
1276 |
|
1277 |
+
details.gb-admin-accordion-panel details.gb-admin-accordion-panel > summary::after {
|
1278 |
+
transform: scale(0.9);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1279 |
}
|
1280 |
|
1281 |
+
details.gb-admin-accordion-panel details.gb-admin-accordion-panel[open] > summary::after {
|
1282 |
+
transform: scale(0.9) rotate(-180deg);
|
|
|
1283 |
}
|
1284 |
|
1285 |
+
|
1286 |
+
/* Form Elements
|
1287 |
+
---------------------------------------------------------------------------- */
|
1288 |
+
|
1289 |
+
.gb-admin-plugin-admin-body input,
|
1290 |
+
.gb-admin-plugin-admin-body input[type=date],
|
1291 |
+
.gb-admin-plugin-admin-body input[type=email],
|
1292 |
+
.gb-admin-plugin-admin-body input[type=month],
|
1293 |
+
.gb-admin-plugin-admin-body input[type=number],
|
1294 |
+
.gb-admin-plugin-admin-body input[type=password],
|
1295 |
+
.gb-admin-plugin-admin-body input[type=search],
|
1296 |
+
.gb-admin-plugin-admin-body input[type=tel],
|
1297 |
+
.gb-admin-plugin-admin-body input[type=text],
|
1298 |
+
.gb-admin-plugin-admin-body input[type=time],
|
1299 |
+
.gb-admin-plugin-admin-body input[type=url],
|
1300 |
+
.gb-admin-plugin-admin-body input[type=week],
|
1301 |
+
.gb-admin-plugin-admin-body select,
|
1302 |
+
.gb-admin-plugin-admin-body select[class*="css-"][class*="css-"],
|
1303 |
+
.gb-admin-plugin-admin-body textarea,
|
1304 |
+
.gb-admin-plugin-admin-body .components-checkbox-control__input {
|
1305 |
+
-webkit-appearance: none;
|
1306 |
+
-moz-appearance: none;
|
1307 |
+
appearance: none;
|
1308 |
+
border: 1px solid var(--gb-color-input-border);
|
1309 |
+
border-radius: 4px;
|
1310 |
+
color: var(--gb-color-body);
|
1311 |
+
font-size: 16px;
|
1312 |
+
height: auto;
|
1313 |
+
line-height: 1.5;
|
1314 |
+
max-width: 100%;
|
1315 |
+
padding: 14px 24px;
|
1316 |
+
}
|
1317 |
+
|
1318 |
+
textarea.gb-admin-textarea {
|
1319 |
+
border-radius: 2px;
|
1320 |
+
}
|
1321 |
+
|
1322 |
+
.gb-admin-plugin-admin-body input[type=email]:focus,
|
1323 |
+
.gb-admin-plugin-admin-body input[type=number]:focus,
|
1324 |
+
.gb-admin-plugin-admin-body input[type=password]:focus,
|
1325 |
+
.gb-admin-plugin-admin-body input[type=search]:focus,
|
1326 |
+
.gb-admin-plugin-admin-body input[type=tel]:focus,
|
1327 |
+
.gb-admin-plugin-admin-body input[type=text]:focus,
|
1328 |
+
.gb-admin-plugin-admin-body input[type=url]:focus,
|
1329 |
+
.gb-admin-plugin-admin-body select:focus,
|
1330 |
+
.gb-admin-plugin-admin-body select[class*="css-"][class*="css-"]:focus,
|
1331 |
+
.gb-admin-plugin-admin-body textarea:focus {
|
1332 |
+
border-color: var(--gb-color-brand);
|
1333 |
+
box-shadow: inset 0 0 0 2px var(--gb-color-brand) !important;
|
1334 |
+
}
|
1335 |
+
|
1336 |
+
.gb-admin-plugin-admin-body input.disabled,
|
1337 |
+
.gb-admin-plugin-admin-body input:disabled,
|
1338 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:disabled,
|
1339 |
+
.gb-admin-plugin-admin-body input[type=email]:disabled,
|
1340 |
+
.gb-admin-plugin-admin-body input[type=number]:disabled,
|
1341 |
+
.gb-admin-plugin-admin-body input[type=password]:disabled,
|
1342 |
+
.gb-admin-plugin-admin-body input[type=radio]:disabled,
|
1343 |
+
.gb-admin-plugin-admin-body input[type=search]:disabled,
|
1344 |
+
.gb-admin-plugin-admin-body input[type=tel]:disabled,
|
1345 |
+
.gb-admin-plugin-admin-body input[type=text]:disabled,
|
1346 |
+
.gb-admin-plugin-admin-body input[type=url]:disabled,
|
1347 |
+
.gb-admin-plugin-admin-body select.disabled,
|
1348 |
+
.gb-admin-plugin-admin-body select:disabled,
|
1349 |
+
.gb-admin-plugin-admin-body textarea.disabled,
|
1350 |
+
.gb-admin-plugin-admin-body textarea:disabled {
|
1351 |
+
background-color: var(--gb-color-gray-light);
|
1352 |
+
border-color: var(--gb-color-gray-disabled);
|
1353 |
box-shadow: none;
|
1354 |
+
color: var(--gb-color-gray);
|
|
|
1355 |
}
|
1356 |
|
1357 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:disabled::after,
|
1358 |
+
.gb-admin-plugin-admin-body input[type=checkbox]:disabled + label {
|
1359 |
background-color: transparent;
|
1360 |
+
background-image: none;
|
1361 |
+
border-color: var(--gb-color-gray-disabled);
|
1362 |
+
color: var(--gb-color-gray);
|
1363 |
}
|
1364 |
|
1365 |
+
.gb-admin-plugin-admin-body input[type=radio]:disabled {
|
1366 |
+
background-color: var(--gb-color-gray-light);
|
1367 |
+
border-color: currentColor;
|
1368 |
+
box-shadow: none;
|
1369 |
+
color: var(--gb-color-gray);
|
1370 |
}
|
1371 |
|
1372 |
+
.gb-admin-plugin-admin-body input[type=radio]:disabled + label {
|
1373 |
+
color: var(--gb-color-gray);
|
1374 |
+
}
|
1375 |
|
1376 |
+
.gb-admin-plugin-admin-body input[type=radio]:disabled::before {
|
1377 |
+
background-color: var(--gb-color-gray-disabled);
|
1378 |
+
border-color: var(--gb-color-gray-disabled);
|
|
|
|
|
|
|
|
|
|
|
1379 |
}
|
1380 |
|
1381 |
+
.gb-admin-plugin-admin-body input:invalid,
|
1382 |
+
.gb-admin-plugin-admin-body input:focus:invalid,
|
1383 |
+
.gb-admin-plugin-admin-body input.gb-input-error {
|
1384 |
+
border-color: var(--gb-color-error);
|
1385 |
+
box-shadow: inset 0 0 0 1px var(--gb-color-error);
|
1386 |
}
|
1387 |
|
1388 |
+
.gb-admin-plugin-admin-body select[class*="css-"][class*="css-"]:not([multiple]),
|
1389 |
+
.gb-admin-plugin-admin-body select:not([multiple]) {
|
1390 |
+
background-image: url("data:image/svg+xml,%3Csvg width='18' height='10' viewBox='0 0 18 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L9 7.58579L16.2929 0.292893C16.6834 -0.0976311 17.3166 -0.0976311 17.7071 0.292893C18.0976 0.683417 18.0976 1.31658 17.7071 1.70711L9.70711 9.70711C9.31658 10.0976 8.68342 10.0976 8.29289 9.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z' fill='%23002838'/%3E%3C/svg%3E ");
|
1391 |
+
background-position: top 1.4em right 1.5em;
|
1392 |
+
background-repeat: no-repeat;
|
1393 |
+
background-size: 18px 10px;
|
1394 |
+
padding-right: 58px;
|
1395 |
}
|
1396 |
|
1397 |
+
.gb-admin-plugin-admin-body select[class*="css-"][class*="css-"] + .components-input-control__suffix {
|
1398 |
+
display: none;
|
1399 |
}
|
1400 |
|
1401 |
+
.gb-admin-plugin-admin-body .components-select-control .components-input-control__backdrop {
|
1402 |
+
border-width: 0 !important;
|
1403 |
+
box-shadow: none !important;
|
|
|
1404 |
}
|
1405 |
|
1406 |
+
.gb-admin-select-panel {
|
1407 |
+
align-items: center;
|
1408 |
+
display: grid;
|
1409 |
+
justify-content: flex-start;
|
1410 |
+
grid-gap: 37px;
|
1411 |
+
grid-template-columns: 160px 1fr;
|
1412 |
+
max-width: 520px;
|
1413 |
+
padding: 20px 0;
|
1414 |
}
|
1415 |
|
1416 |
+
.gb-wide-panel .gb-admin-select-panel {
|
1417 |
+
grid-template-columns: 300px 1fr;
|
|
|
|
|
1418 |
}
|
1419 |
|
1420 |
+
.gb-admin-select-panel.gb-panel-align-top {
|
1421 |
+
align-items: flex-start;
|
1422 |
}
|
1423 |
|
1424 |
+
.gb-admin-plugin-admin-body select:focus,
|
1425 |
+
.gb-admin-plugin-admin-body select:hover {
|
1426 |
+
color: var(--gb-color-body);
|
|
|
|
|
1427 |
}
|
1428 |
|
1429 |
+
.gb-admin-select-panel select[multiple] {
|
1430 |
+
color: var(--gb-color-body);
|
1431 |
+
display: block;
|
1432 |
+
max-width: 100%;
|
1433 |
+
overflow-y: auto;
|
1434 |
+
padding: 4px 16px;
|
1435 |
+
width: 100%;
|
1436 |
+
}
|
1437 |
|
1438 |
+
.gb-admin-select-panel select[multiple] option {
|
1439 |
+
border: 2px solid transparent;
|
1440 |
+
padding: 8px;
|
1441 |
+
text-indent: 8px;
|
|
|
|
|
|
|
1442 |
}
|
1443 |
|
1444 |
+
.gb-admin-select-panel select[multiple] option:hover {
|
1445 |
+
border: 2px solid var(--gb-color-brand);
|
|
|
|
|
|
|
|
|
1446 |
}
|
1447 |
|
1448 |
+
.gb-select-tables > * {
|
1449 |
+
width: 100%;
|
1450 |
}
|
1451 |
|
1452 |
+
.gb-select-table-links {
|
1453 |
+
padding: 0 0 10px;
|
1454 |
}
|
1455 |
|
1456 |
+
.gb-admin-select-panel label {
|
1457 |
+
font-weight: 600;
|
1458 |
}
|
1459 |
|
1460 |
+
/* Notices
|
1461 |
+
---------------------------------------------------------------------------- */
|
1462 |
+
|
1463 |
+
.gb-admin-plugin-admin-body .notice,
|
1464 |
+
.gb-admin-plugin-admin-body .inline-notice,
|
1465 |
+
.gb-admin-plugin-container .gb-error {
|
1466 |
+
background-color: var(--gb-color-white);
|
1467 |
+
background-repeat: no-repeat;
|
1468 |
+
background-position: 16px 50%, 0 0;
|
1469 |
+
border: 1px solid var(--gb-color-gray-light);
|
1470 |
+
border-left-width: 8px;
|
1471 |
+
border-radius: 4px;
|
1472 |
+
font-size: 16px;
|
1473 |
+
padding: 12px 1em 12px 70px;
|
1474 |
+
overflow: hidden;
|
1475 |
}
|
1476 |
|
1477 |
+
.gb-admin-plugin-admin-body .notice p,
|
1478 |
+
.gb-admin-plugin-admin-body .inline-notice p {
|
1479 |
+
margin: 0.5em 0;
|
1480 |
}
|
1481 |
|
1482 |
+
.gb-admin-plugin-admin-body .notice.gb-success,
|
1483 |
+
.gb-admin-plugin-admin-body .inline-notice.gb-success {
|
1484 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 22 22' height='22' width='22'%3E%3Cpath fill='%2335872F' d='M15.2071 8.29289C15.5976 8.68342 15.5976 9.31658 15.2071 9.70711L10.7071 14.2071C10.3166 14.5976 9.68342 14.5976 9.29289 14.2071L6.79289 11.7071C6.40237 11.3166 6.40237 10.6834 6.79289 10.2929C7.18342 9.90237 7.81658 9.90237 8.20711 10.2929L10 12.0858L13.7929 8.29289C14.1834 7.90237 14.8166 7.90237 15.2071 8.29289Z' clip-rule='evenodd' fill-rule='evenodd'%3E%3C/path%3E%3Cpath fill='%2335872F' d='M11 2C6.02944 2 2 6.02944 2 11C2 15.9706 6.02944 20 11 20C15.9706 20 20 15.9706 20 11C20 6.02944 15.9706 2 11 2ZM0 11C0 4.92487 4.92487 0 11 0C17.0751 0 22 4.92487 22 11C22 17.0751 17.0751 22 11 22C4.92487 22 0 17.0751 0 11Z' clip-rule='evenodd' fill-rule='evenodd'%3E%3C/path%3E%3C/svg%3E "), linear-gradient(90deg, rgba(53, 135, 47, 0.08) 0, rgba(53, 135, 47, 0.08) 56px, #fff 56px, #fff 100%);
|
1485 |
+
border-color: var(--gb-color-success);
|
1486 |
}
|
1487 |
|
1488 |
+
.gb-admin-plugin-admin-body .notice.gb-warning,
|
1489 |
+
.gb-admin-plugin-admin-body .inline-notice.gb-warning {
|
1490 |
+
background-image: url("data:image/svg+xml,%3Csvg width='22' height='21' viewBox='0 0 22 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.94134 0.82634C9.53983 0.387688 10.2567 0 11 0C11.7433 0 12.4602 0.387687 13.0587 0.82634C13.6893 1.28857 14.3462 1.92608 14.9957 2.66023C16.2978 4.13221 17.6603 6.09604 18.8274 8.12165C19.9927 10.1443 20.9924 12.279 21.5416 14.1C21.815 15.0067 21.9919 15.8843 21.9997 16.6557C22.0073 17.4027 21.8568 18.2337 21.267 18.8263C20.807 19.2885 20.1576 19.6245 19.4726 19.88C18.7703 20.1419 17.9431 20.3507 17.0497 20.5139C15.2618 20.8406 13.1215 21 11 21C8.87852 21 6.73823 20.8406 4.95027 20.5139C4.05691 20.3507 3.22964 20.1419 2.52738 19.88C1.84242 19.6245 1.19299 19.2885 0.732958 18.8263C0.143182 18.2337 -0.00731613 17.4027 0.000269213 16.6557C0.00810323 15.8843 0.184949 15.0067 0.458382 14.1C1.00755 12.279 2.00728 10.1443 3.17264 8.12165C4.33973 6.09604 5.70218 4.13221 7.00432 2.66023C7.65376 1.92608 8.31069 1.28857 8.94134 0.82634ZM2.00017 16.676C1.99476 17.2079 2.11699 17.3817 2.15057 17.4155C2.3139 17.5796 2.65147 17.7917 3.22622 18.006C3.78367 18.2139 4.48884 18.3965 5.30972 18.5465C6.95025 18.8462 8.96571 19 11 19C13.0343 19 15.0497 18.8462 16.6903 18.5465C17.5112 18.3965 18.2163 18.2139 18.7738 18.006C19.3485 17.7917 19.6861 17.5796 19.8494 17.4155C19.883 17.3817 20.0052 17.2079 19.9998 16.676C19.9947 16.1686 19.8728 15.4933 19.6268 14.6775C19.137 13.0534 18.2147 11.0645 17.0944 9.12011C15.9758 7.17869 14.689 5.33208 13.4977 3.98538C12.9004 3.31018 12.3496 2.78629 11.8763 2.43946C11.371 2.06904 11.0879 2 11 2C10.9121 2 10.629 2.06904 10.1236 2.43946C9.65043 2.78629 9.0996 3.31018 8.50231 3.98538C7.311 5.33208 6.02416 7.17869 4.90558 9.12011C3.78528 11.0645 2.86297 13.0534 2.3732 14.6775C2.12717 15.4933 2.00532 16.1686 2.00017 16.676Z' fill='%23FF6119'/%3E%3Cpath d='M12 16C12 16.5523 11.5523 17 11 17C10.4477 17 10 16.5523 10 16C10 15.4477 10.4477 15 11 15C11.5523 15 12 15.4477 12 16Z' fill='%23FF6119'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 6C11.5523 6 12 6.44772 12 7V13C12 13.5523 11.5523 14 11 14C10.4477 14 10 13.5523 10 13V7C10 6.44772 10.4477 6 11 6Z' fill='%23FF6119'/%3E%3C/svg%3E "), linear-gradient(90deg, rgba(255, 98, 26, 0.08) 0, rgba(255, 98, 26, 0.08) 56px, #fff 56px, #fff 100%);
|
1491 |
+
border-color: #ff6119;
|
|
|
|
|
|
|
|
|
|
|
1492 |
}
|
1493 |
|
1494 |
+
.gb-admin-plugin-admin-body .notice.gb-error,
|
1495 |
+
.gb-admin-plugin-admin-body .inline-notice.gb-error,
|
1496 |
+
.gb-admin-plugin-container .gb-error {
|
1497 |
+
background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 0C4.92487 0 0 4.92487 0 11C0 17.0751 4.92487 22 11 22C17.0751 22 22 17.0751 22 11C22 4.92487 17.0751 0 11 0ZM2 11C2 6.02944 6.02944 2 11 2C13.125 2 15.078 2.73647 16.6177 3.9681L3.9681 16.6177C2.73647 15.078 2 13.125 2 11ZM5.38231 18.0319C6.92199 19.2635 8.87499 20 11 20C15.9706 20 20 15.9706 20 11C20 8.87499 19.2635 6.92199 18.0319 5.38231L5.38231 18.0319Z' fill='%23D21B46'/%3E%3C/svg%3E "), linear-gradient(90deg, rgba(210, 27, 70, 0.08) 0, rgba(210, 27, 70, 0.08) 56px, #fff 56px, #fff 100%);
|
1498 |
+
border-color: var(--gb-color-error);
|
1499 |
}
|
1500 |
|
1501 |
+
.gb-admin-plugin-admin-body .inline-notice.gb-info,
|
1502 |
+
.gb-admin-plugin-admin-body .notice.gb-info {
|
1503 |
+
background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 8C11.5523 8 12 7.55228 12 7C12 6.44772 11.5523 6 11 6C10.4477 6 10 6.44772 10 7C10 7.55228 10.4477 8 11 8Z' fill='%230076DC'/%3E%3Cpath d='M11 9C11.5523 9 12 9.44771 12 10V15C12 15.5523 11.5523 16 11 16C10.4477 16 10 15.5523 10 15V11C9.44771 11 9 10.5523 9 10C9 9.44771 9.44771 9 10 9H11Z' fill='%230076DC'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 0C4.92487 0 0 4.92487 0 11C0 17.0751 4.92487 22 11 22C17.0751 22 22 17.0751 22 11C22 4.92487 17.0751 0 11 0ZM2 11C2 6.02944 6.02944 2 11 2C15.9706 2 20 6.02944 20 11C20 15.9706 15.9706 20 11 20C6.02944 20 2 15.9706 2 11Z' fill='%230076DC'/%3E%3C/svg%3E%0A"), linear-gradient(90deg, rgba(0, 117, 219, 0.08) 0, rgba(0, 117, 219, 0.08) 56px, #fff 56px, #fff 100%);
|
1504 |
+
border-color: #0076dc;
|
1505 |
+
}
|
1506 |
|
1507 |
+
.gb-admin-plugin-admin-body .notice.gb-default,
|
1508 |
+
.gb-admin-plugin-admin-body .inline-notice.gb-default {
|
1509 |
+
background-image: url("data:image/svg+xml,%3Csvg width='23' height='23' viewBox='0 0 23 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 0L0 1.5V7H7V0H1.5Z' fill='%230ECAD4'/%3E%3Cpath d='M15 0H8V5.5L9.5 7H13.5L15 5.5V0Z' fill='%230ECAD4'/%3E%3Cpath d='M17.5 8L16 9.5V13.5L17.5 15H23V8H17.5Z' fill='%230ECAD4'/%3E%3Cpath d='M15 23H8V17.5L9.5 16H13.5L15 17.5V23Z' fill='%230ECAD4'/%3E%3Cpath d='M23 23V17.5L21.5 16H16V23H23Z' fill='%230ECAD4'/%3E%3Cpath d='M16 5.5V0H23V7H17.5L16 5.5Z' fill='%230ECAD4'/%3E%3Cpath d='M7 8H0V15H5.5L7 13.5V8Z' fill='%230ECAD4'/%3E%3Cpath d='M7 17.5L5.5 16H0V23H5.5L7 21.5V17.5Z' fill='%230ECAD4'/%3E%3Cpath d='M11.5 13C10.6522 13 10 12.2826 10 11.5C10 10.6522 10.7174 10 11.5 10C12.3478 10 13 10.7174 13 11.5C13 12.3478 12.3478 13 11.5 13Z' fill='%230ECAD4'/%3E%3C/svg%3E "), linear-gradient(90deg, rgba(14, 202, 212, 0.08) 0, rgba(14, 202, 212, 0.08) 56px, #fff 56px, #fff 100%);
|
1510 |
+
border-color: var(--gb-color-wpe-blue);
|
1511 |
}
|
1512 |
|
1513 |
+
.gb-admin-plugin-admin-body .inline-notice {
|
1514 |
+
background-position: 12px 50%, 0 0;
|
1515 |
+
padding: 1.5em 1em 1.5em 104px;
|
1516 |
}
|
1517 |
|
1518 |
+
.gb-admin-plugin-admin-body .inline-notice.gb-info {
|
1519 |
+
background-image: url("data:image/svg+xml,%3Csvg width='66' height='66' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='33' cy='33' r='32' fill='%23fff'/%3E%3Cg filter='url(%23a)'%3E%3Crect x='11' y='15' width='44' height='36' rx='3' fill='%23D9EAFA'/%3E%3C/g%3E%3Cpath d='M17 28a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4ZM17 32a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4ZM17 36a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4ZM15 20a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2h-6a1 1 0 0 1-1-1ZM50 21a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z' fill='%230076DC'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14 15a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h38a3 3 0 0 0 3-3V18a3 3 0 0 0-3-3H14Zm38 34H27V25h26v23a1 1 0 0 1-1 1Zm-38 0h11V25H13v23a1 1 0 0 0 1 1Zm39-26H13v-5a1 1 0 0 1 1-1h38a1 1 0 0 1 1 1v5Z' fill='%230076DC'/%3E%3Cdefs%3E%3Cfilter id='a' x='11' y='15' width='46' height='38' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dx='2' dy='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/%3E%3CfeBlend in2='BackgroundImageFix' result='effect1_dropShadow_14619_2757'/%3E%3CfeBlend in='SourceGraphic' in2='effect1_dropShadow_14619_2757' result='shape'/%3E%3CfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dx='4' dy='4'/%3E%3CfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3CfeBlend in2='shape' result='effect2_innerShadow_14619_2757'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E "), linear-gradient(90deg, rgba(0, 117, 219, 0.08) 0, rgba(0, 117, 219, 0.08) 88px, #fff 88px, #fff 100%);
|
1520 |
}
|
1521 |
|
1522 |
+
.gb-admin-plugin-admin-body .inline-notice.gb-error {
|
1523 |
+
background-image: url("data:image/svg+xml,%3Csvg width='66' height='66' viewBox='0 0 66 66' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Ccircle cx='33' cy='33' r='32' fill='white'/%3E%3Cg%3E%3Ccircle cx='33' cy='33' r='22' fill='%23FBE8EC'/%3E%3C/g%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M33 11C20.8497 11 11 20.8497 11 33C11 45.1503 20.8497 55 33 55C45.1503 55 55 45.1503 55 33C55 20.8497 45.1503 11 33 11ZM13 33C13 21.9543 21.9543 13 33 13C38.1687 13 42.8794 14.9607 46.429 18.1788C46.3812 18.2122 46.3356 18.2502 46.2929 18.2929L18.2929 46.2929C18.2502 46.3356 18.2122 46.3812 18.1788 46.429C14.9607 42.8794 13 38.1687 13 33ZM19.571 47.8212C23.1206 51.0393 27.8313 53 33 53C44.0457 53 53 44.0457 53 33C53 27.8313 51.0393 23.1206 47.8212 19.571C47.7878 19.6188 47.7498 19.6644 47.7071 19.7071L19.7071 47.7071C19.6644 47.7498 19.6188 47.7878 19.571 47.8212Z' fill='%23D21B46'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_f_14619_2357' x='0.5' y='0.5' width='65' height='65' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='0.25' result='effect1_foregroundBlur_14619_2357'/%3E%3C/filter%3E%3Cfilter id='filter1_di_14619_2357' x='11' y='11' width='46' height='46' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dx='2' dy='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_14619_2357'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_14619_2357' result='shape'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dx='4' dy='4'/%3E%3CfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3CfeBlend mode='normal' in2='shape' result='effect2_innerShadow_14619_2357'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A"), linear-gradient(90deg, rgba(210, 27, 70, 0.08) 0, rgba(210, 27, 70, 0.08) 88px, #fff 88px, #fff 100%);
|
1524 |
}
|
1525 |
|
1526 |
+
.gb-admin-plugin-admin-body .notice.is-dismissible .notice-dismiss {
|
1527 |
+
right: 9px;
|
1528 |
+
top: 11px;
|
1529 |
+
}
|
1530 |
|
1531 |
+
.gb-admin-plugin-admin-body .notice.is-dismissible .notice-dismiss:focus,
|
1532 |
+
.gb-admin-plugin-admin-body .notice.is-dismissible .notice-dismiss:hover {
|
1533 |
+
opacity: 0.6;
|
|
|
|
|
|
|
1534 |
}
|
1535 |
|
1536 |
+
.gb-admin-plugin-admin-body .notice .notice-dismiss::before {
|
1537 |
+
content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.13663 0.430876C1.60673 -0.0990209 0.795327 -0.14675 0.324308 0.324269C-0.146711 0.795287 -0.0989816 1.60669 0.430915 2.13659L6.29431 7.99998L0.430876 13.8634C-0.0990206 14.3933 -0.14675 15.2047 0.324269 15.6757C0.795289 16.1467 1.60669 16.099 2.13659 15.5691L8.00002 9.70569L13.8634 15.5691C14.3933 16.099 15.2047 16.1467 15.6757 15.6757C16.1467 15.2046 16.099 14.3932 15.5691 13.8634L9.70573 7.99998L15.5691 2.13665C16.099 1.60675 16.1467 0.79535 15.6757 0.32433C15.2046 -0.146689 14.3932 -0.0989594 13.8634 0.430937L8.00002 6.29427L2.13663 0.430876Z' fill='%23002838'/%3E%3C/svg%3E%0A");
|
|
|
|
|
|
|
|
|
1538 |
}
|
1539 |
|
1540 |
+
.gb-admin-plugin-admin-body .gb-notice.gb-error {
|
1541 |
+
background-color: var(--gb-color-error);
|
1542 |
+
color: #fff;
|
|
|
|
|
|
|
|
|
|
|
1543 |
}
|
1544 |
|
1545 |
+
.gb-admin-plugin-admin-body .gb-notice.gb-error p,
|
1546 |
+
.gb-admin-plugin-admin-body .gb-notice.gb-error a {
|
|
|
1547 |
color: #fff;
|
|
|
|
|
|
|
1548 |
}
|
1549 |
|
1550 |
+
.gb-admin-plugin-admin-body .gb-notice.gb-error a:focus,
|
1551 |
+
.gb-admin-plugin-admin-body .gb-notice.gb-error a:hover {
|
1552 |
+
background-color: transparent;
|
1553 |
+
text-decoration: none;
|
1554 |
+
}
|
1555 |
+
|
1556 |
+
.gb-admin-plugin-admin-body .gb-notice p {
|
1557 |
+
font-size: 14px;
|
1558 |
margin: 0;
|
1559 |
}
|
1560 |
|
1561 |
+
/* Collection Tab
|
1562 |
+
---------------------------------------------------------------------------- */
|
1563 |
+
|
1564 |
+
.gb-admin-plugin-admin-body .gb-collection {
|
1565 |
+
border: 1px solid #ccc;
|
1566 |
+
max-width: 600px;
|
1567 |
+
width: 100%;
|
1568 |
+
}
|
1569 |
+
|
1570 |
+
.gb-admin-plugin-admin-body .gb-collection-img img {
|
1571 |
+
display: block;
|
1572 |
+
margin: 0;
|
1573 |
}
|
1574 |
|
1575 |
+
.gb-admin-plugin-admin-body .gb-collection-info {
|
1576 |
+
background: #fff;
|
1577 |
+
border-top: 1px solid #ccc;
|
1578 |
+
display: grid;
|
1579 |
+
grid-gap: 1em;
|
1580 |
+
grid-template-columns: 1fr minmax(105px, 25%);
|
1581 |
+
padding: 20px;
|
1582 |
+
text-align: left;
|
1583 |
}
|
1584 |
|
1585 |
+
.gb-admin-plugin-admin-body .gb-collection-title {
|
1586 |
+
align-items: center;
|
1587 |
+
display: inline-flex;
|
1588 |
+
font-size: 18px;
|
1589 |
+
font-weight: 600;
|
1590 |
+
line-height: 1;
|
1591 |
+
margin: 0;
|
1592 |
+
text-align: left;
|
1593 |
}
|
1594 |
|
1595 |
+
.gb-admin-plugin-admin-body .gb-pro-badge {
|
1596 |
+
background-color: var(--gb-color-wpe-blue);
|
1597 |
+
border-radius: 4px;
|
1598 |
+
font-size: 12px;
|
1599 |
+
margin-left: 10px;
|
1600 |
+
padding: 5px 7px;
|
1601 |
+
text-transform: uppercase;
|
1602 |
+
vertical-align: middle;
|
1603 |
}
|
1604 |
|
1605 |
+
.gb-admin-plugin-admin-body .gb-collection-link {
|
1606 |
+
font-size: 16px;
|
|
|
1607 |
}
|
1608 |
|
1609 |
+
/* Responsive
|
1610 |
---------------------------------------------------------------------------- */
|
1611 |
|
1612 |
+
@media (min-width: 1140px) {
|
1613 |
+
|
1614 |
+
.gb-admin-button.gb-nav-tab {
|
1615 |
+
padding: 14px 32px;
|
1616 |
+
}
|
1617 |
+
|
1618 |
+
}
|
1619 |
+
|
1620 |
+
@media (max-width: 1023px) {
|
1621 |
|
1622 |
+
.gb-admin-plugin-grid-3,
|
1623 |
+
.gb-admin-plugin-grid-4,
|
1624 |
+
.gb-admin-plugin-grid-auto {
|
1625 |
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
1626 |
+
grid-gap: 2em;
|
1627 |
}
|
1628 |
|
1629 |
}
|
1630 |
|
1631 |
+
@media (max-width: 960px) {
|
1632 |
|
1633 |
+
.genesis-blocks-admin-page #wpcontent {
|
1634 |
+
margin-left: 36px;
|
1635 |
}
|
1636 |
|
1637 |
+
.gb-admin-cta-button {
|
1638 |
+
margin-left: 3.5em;
|
1639 |
+
margin-top: 0.5em;
|
|
|
|
|
1640 |
}
|
1641 |
|
1642 |
+
.gb-admin-plugin-grid-2:not(.gb-admin-plugin-admin-header):not(.wide-gap) {
|
1643 |
grid-template-columns: 1fr;
|
1644 |
+
grid-gap: 2em;
|
1645 |
+
align-items: initial;
|
1646 |
+
text-align: left;
|
1647 |
}
|
1648 |
|
1649 |
+
.gb-admin-plugin-container iframe {
|
1650 |
+
height: 275px;
|
1651 |
+
}
|
1652 |
+
|
1653 |
+
.gb-admin-plugin-grid-2.wide-gap {
|
1654 |
+
grid-gap: 0 3em;
|
1655 |
+
}
|
1656 |
+
|
1657 |
+
.gb-admin-plugin-admin-header a[target="_blank"]::after,
|
1658 |
+
.gb-admin-plugin-admin-body a.gb-admin-button-primary[target="_blank"]::after,
|
1659 |
+
.gb-admin-plugin-admin-body a.gb-admin-button-secondary[target="_blank"]::after {
|
1660 |
+
margin-left: 6px;
|
1661 |
+
}
|
1662 |
+
|
1663 |
+
}
|
1664 |
+
|
1665 |
+
@media (max-width: 782px) {
|
1666 |
+
|
1667 |
+
.genesis-blocks-admin-page #wpcontent {
|
1668 |
+
margin-left: 0;
|
1669 |
+
}
|
1670 |
+
|
1671 |
+
h2.centered {
|
1672 |
+
text-align: center;
|
1673 |
+
}
|
1674 |
+
|
1675 |
+
.gb-admin-plugin-grid-2,
|
1676 |
+
.gb-admin-plugin-grid-2.uneven,
|
1677 |
+
.gb-admin-plugin-grid-2.wide-gap,
|
1678 |
+
.gb-admin-plugin-grid-3,
|
1679 |
+
.gb-admin-plugin-grid-4,
|
1680 |
+
.gb-admin-select-panel,
|
1681 |
+
.gb-admin-select-panel-top,
|
1682 |
+
.gb-rest-api-namespaces-panel .gb-admin-select-panel {
|
1683 |
grid-template-columns: 1fr;
|
1684 |
+
grid-gap: 2em;
|
|
|
1685 |
}
|
1686 |
|
1687 |
+
.gb-admin-plugin-grid-auto {
|
1688 |
+
grid-template-columns: 1fr;
|
1689 |
+
justify-items: center;
|
1690 |
}
|
1691 |
|
1692 |
+
.gb-admin-plugin-admin-body .gb-collection-info {
|
1693 |
+
grid-template-columns: 1fr;
|
1694 |
+
grid-gap: 0.5em;
|
1695 |
}
|
1696 |
|
1697 |
+
.gb-admin-select-panel {
|
1698 |
+
grid-gap: 20px;
|
|
|
1699 |
}
|
1700 |
|
1701 |
+
.gb-admin-plugin-container {
|
1702 |
+
padding: 1.5em;
|
1703 |
}
|
1704 |
|
1705 |
+
.gb-admin-plugin-admin-header {
|
1706 |
+
padding: 5% 30px;
|
1707 |
+
grid-gap: 0;
|
1708 |
+
}
|
1709 |
|
1710 |
+
.gb-admin-plugin-admin-header h1 {
|
1711 |
+
margin-bottom: 20px;
|
1712 |
+
}
|
1713 |
|
1714 |
+
.gb-admin-plugin-header-controls-area {
|
1715 |
+
margin-left: 0;
|
1716 |
+
}
|
1717 |
+
|
1718 |
+
#gb-admin-plugin-admin .gb-nav-tab-wrapper,
|
1719 |
+
#gb-admin-plugin-admin .components-tab-panel__tabs {
|
1720 |
+
display: inline-block;
|
1721 |
+
padding: 0 30px 30px 30px;
|
1722 |
}
|
1723 |
|
1724 |
+
.gb-admin-button.gb-nav-tab {
|
1725 |
+
border-radius: 2px;
|
1726 |
+
display: block;
|
1727 |
+
text-align: left;
|
1728 |
+
width: 100%;
|
|
|
1729 |
}
|
1730 |
|
1731 |
+
.gb-admin-accordion-panel summary,
|
1732 |
+
.gb-admin-accordion-panel .gb-details-content {
|
1733 |
+
padding: 16px;
|
1734 |
}
|
1735 |
|
1736 |
+
}
|
1737 |
+
|
1738 |
+
@media (max-width: 360px) {
|
1739 |
+
|
1740 |
+
.gb-admin-plugin-container {
|
1741 |
+
padding: 1em;
|
1742 |
}
|
1743 |
|
1744 |
+
details.gb-admin-accordion-panel > summary::after {
|
1745 |
+
transform: scale(0.8);
|
1746 |
}
|
1747 |
|
1748 |
+
details.gb-admin-accordion-panel[open] > summary::after {
|
1749 |
+
transform: scale(0.8) rotate(-180deg);
|
1750 |
}
|
1751 |
|
1752 |
}
|
1753 |
+
|
1754 |
+
/* Additional Components
|
1755 |
+
---------------------------------------------------------------------------- */
|
1756 |
+
|
1757 |
+
.gb-admin-plugin-admin-body .components-tab-panel__tab-content {
|
1758 |
+
box-sizing: border-box;
|
1759 |
+
display: inline-block;
|
1760 |
+
font-size: 16px;
|
1761 |
+
transition: all 0.25s ease-in-out;
|
1762 |
+
width: 100%;
|
1763 |
+
}
|
1764 |
+
|
1765 |
+
.gb-admin-plugin-admin-body p.components-base-control__help,
|
1766 |
+
.gb-admin-plugin-admin-body .help-text {
|
1767 |
+
color: var(--gb-color-titanium);
|
1768 |
+
font-size: 16px;
|
1769 |
+
font-style: italic;
|
1770 |
+
margin: 1em 0;
|
1771 |
+
}
|
1772 |
+
|
1773 |
+
.gb-admin-plugin-admin-body .components-tab-panel__tab-content hr {
|
1774 |
+
border-width: 0;
|
1775 |
+
border-top: 2px solid #e6eaed;
|
1776 |
+
height: 1px;
|
1777 |
+
margin: 2em 0;
|
1778 |
+
}
|
1779 |
+
|
1780 |
+
.gb-admin-plugin-admin-body .components-base-control__label,
|
1781 |
+
.gb-admin-plugin-admin-body .components-input-control__label {
|
1782 |
+
display: block;
|
1783 |
+
font-size: 18px;
|
1784 |
+
font-weight: 600;
|
1785 |
+
line-height: 1.5;
|
1786 |
+
margin-bottom: 1em !important;
|
1787 |
+
}
|
1788 |
+
|
1789 |
+
/* Inline Toasts
|
1790 |
+
--------------------------------------------- */
|
1791 |
+
|
1792 |
+
.gb-admin-plugin-admin-body .genesis-blocks-settings-save.has-notices {
|
1793 |
+
margin: 0 2em 0 0;
|
1794 |
+
}
|
1795 |
+
|
1796 |
+
.genesis-blocks-save-notice {
|
1797 |
+
font-size: 15px;
|
1798 |
+
font-weight: 700;
|
1799 |
+
}
|
1800 |
+
|
1801 |
+
.genesis-blocks-save-notice.success {
|
1802 |
+
color: var(--gb-color-success);
|
1803 |
+
}
|
1804 |
+
|
1805 |
+
.genesis-blocks-save-notice.fail {
|
1806 |
+
color: var(--gb-color-error);
|
1807 |
+
}
|
lib/Settings/assets/images/blocks.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><path opacity=".24" d="M26.542 71.458C11.76 66.978 1 53.245 1 37 1 17.118 17.118 1 37 1c16.245 0 29.977 10.76 34.458 25.542C86.24 31.022 97 44.755 97 61c0 19.882-16.118 36-36 36-16.245 0-29.977-10.76-34.458-25.542Z" fill="#9DB7D1"/><g filter="url(#b)"><path fill-rule="evenodd" clip-rule="evenodd" d="M72 59a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v1H51a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h22a3 3 0 0 0 3-3V63a3 3 0 0 0-3-3h-1v-1Z" fill="#F2EFFD"/></g><g filter="url(#c)"><path fill-rule="evenodd" clip-rule="evenodd" d="M34 59a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v1h-1a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h20a3 3 0 0 0 3-3V63a3 3 0 0 0-3-3H34v-1Z" fill="#F2EFFD"/></g><g filter="url(#d)"><path fill-rule="evenodd" clip-rule="evenodd" d="M59 46a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v1h-4v-1a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v1h-1a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h22a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3h-1v-1Z" fill="#F2EFFD"/></g><g filter="url(#e)"><path fill-rule="evenodd" clip-rule="evenodd" d="M43.133 21a2 2 0 0 0-2.732-.732l-3.464 2A2 2 0 0 0 36.205 25l.5.866-3.464 2-.5-.866a2 2 0 0 0-2.732-.732l-3.464 2A2 2 0 0 0 25.813 31l.5.866-.866.5a3 3 0 0 0-1.098 4.098l4 6.928a3 3 0 0 0 4.098 1.098l19.052-11a3 3 0 0 0 1.099-4.098l-4-6.928a3 3 0 0 0-4.099-1.098l-.866.5-.5-.866Z" fill="#F2EFFD"/></g><path fill-rule="evenodd" clip-rule="evenodd" d="M40.401 20.268a2 2 0 0 1 2.732.732l.5.866.866-.5a3 3 0 0 1 4.099 1.098l4 6.928a3 3 0 0 1-1.099 4.098l-19.052 11a3 3 0 0 1-4.098-1.098l-4-6.928a3 3 0 0 1 1.098-4.098l.866-.5-.5-.866a2 2 0 0 1 .732-2.732l3.464-2a2 2 0 0 1 2.732.732l.5.866 3.464-2-.5-.866a2 2 0 0 1 .732-2.732l3.464-2Zm1 1.732-3.464 2 1 1.732a1 1 0 0 1-.366 1.366l-5.196 3a1 1 0 0 1-1.366-.366l-1-1.732-3.464 2 1 1.732a1 1 0 0 1-.366 1.366l-1.732 1a1 1 0 0 0-.366 1.366l4 6.928a1 1 0 0 0 1.366.366l19.052-11a1 1 0 0 0 .366-1.366l-4-6.928a1 1 0 0 0-1.366-.366l-1.732 1a1 1 0 0 1-1.366-.366l-1-1.732ZM59 46a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v1h-4v-1a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v1h-1a3 3 0 0 0-3 3v9c0 .35.06.687.17 1H34v-1a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v1h-1a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h22c.768 0 1.47-.289 2-.764.53.475 1.232.764 2 .764h22a3 3 0 0 0 3-3V63a3 3 0 0 0-3-3h-1v-1a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v1h-1.17c.11-.313.17-.65.17-1v-9a3 3 0 0 0-3-3h-1v-1ZM38 60a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h2a1 1 0 0 0 1-1v-2h4v2a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2h4v2a1 1 0 0 0 1 1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H38Zm13 2h14a1 1 0 0 0 1-1v-2h4v2a1 1 0 0 0 1 1h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H51a1 1 0 0 1-1-1V63a1 1 0 0 1 1-1Zm-4 0a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H25a1 1 0 0 1-1-1V63a1 1 0 0 1 1-1h2a1 1 0 0 0 1-1v-2h4v2a1 1 0 0 0 1 1h14Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_230:995"/></filter><filter id="b" x="48" y="57" width="30" height="21" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_230:995"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_230:995" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_230:995"/></filter><filter id="c" x="22" y="57" width="28" height="21" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_230:995"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_230:995" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_230:995"/></filter><filter id="d" x="35" y="44" width="30" height="18" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_230:995"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_230:995" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_230:995"/></filter><filter id="e" x="23.946" y="20" width="31.054" height="26.893" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_230:995"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_230:995" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_230:995"/></filter></defs></svg>
|
lib/Settings/assets/images/content.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle opacity=".24" cx="49" cy="49" r="48" fill="#9DB7D1"/><g filter="url(#b)"><path fill-rule="evenodd" clip-rule="evenodd" d="M19 28a3 3 0 0 1 3-3h54a3 3 0 0 1 3 3v42a3 3 0 0 1-3 3H22a3 3 0 0 1-3-3V28Z" fill="#F2EFFD"/></g><path d="M30 37a1 1 0 0 1 1-1h19a1 1 0 1 1 0 2H31a1 1 0 0 1-1-1ZM59 36a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-8ZM30 45a1 1 0 0 1 1-1h30a1 1 0 1 1 0 2H31a1 1 0 0 1-1-1ZM31 52a1 1 0 1 0 0 2h17a1 1 0 1 0 0-2H31ZM55 53a1 1 0 0 1 1-1h11a1 1 0 1 1 0 2H56a1 1 0 0 1-1-1ZM31 60a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-8Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19 28a3 3 0 0 1 3-3h54a3 3 0 0 1 3 3v42a3 3 0 0 1-3 3H22a3 3 0 0 1-3-3V28Zm3-1a1 1 0 0 0-1 1v42a1 1 0 0 0 1 1h54a1 1 0 0 0 1-1V28a1 1 0 0 0-1-1H22Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_550:3029"/></filter><filter id="b" x="19" y="25" width="62" height="50" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_550:3029"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_550:3029" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_550:3029"/></filter></defs></svg>
|
lib/Settings/assets/images/controls.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><path opacity=".24" d="M26.542 71.458C11.76 66.978 1 53.245 1 37 1 17.118 17.118 1 37 1c16.245 0 29.977 10.76 34.458 25.542C86.24 31.022 97 44.755 97 61c0 19.882-16.118 36-36 36-16.245 0-29.977-10.76-34.458-25.542Z" fill="#9DB7D1"/><g filter="url(#b)" fill-rule="evenodd" clip-rule="evenodd" fill="#F2EFFD"><path d="M41.06 39.22a1 1 0 0 0-1.2.627l-1.315 3.659c-1.99.13-3.91.656-5.658 1.52l-2.97-2.514a1 1 0 0 0-1.354.056l-4.95 4.95a1 1 0 0 0-.056 1.353l2.512 2.969a15.065 15.065 0 0 0-1.035 2.756c-.259.967-.418 1.94-.482 2.904l-3.66 1.315a1 1 0 0 0-.627 1.2l1.811 6.761a1 1 0 0 0 1.144.725l3.83-.691a14.985 14.985 0 0 0 4.14 4.145l-.69 3.826a1 1 0 0 0 .725 1.144l6.761 1.811a1 1 0 0 0 1.2-.627l1.315-3.66c1.99-.129 3.91-.656 5.658-1.519l2.971 2.514a1 1 0 0 0 1.353-.056l4.95-4.95a1 1 0 0 0 .056-1.353l-2.512-2.969c.427-.867.776-1.788 1.035-2.756.26-.968.418-1.94.482-2.904l3.66-1.315a1 1 0 0 0 .628-1.2L56.97 50.18a1 1 0 0 0-1.144-.726l-3.83.692A14.984 14.984 0 0 0 47.856 46l.69-3.826a1 1 0 0 0-.724-1.144L41.06 39.22Zm-5.4 18.223a4 4 0 1 1 7.727 2.07 4 4 0 0 1-7.727-2.07Z"/><path d="M55.21 22.855a1 1 0 0 1 .726-1.141l5.41-1.45a1 1 0 0 1 1.199.626l.95 2.624c1.46.119 2.87.504 4.166 1.12l2.138-1.8a1 1 0 0 1 1.35.057l3.96 3.96a1 1 0 0 1 .059 1.351l-1.8 2.136a12.068 12.068 0 0 1 1.118 4.168l2.625.95a1 1 0 0 1 .626 1.2l-1.45 5.409a1 1 0 0 1-1.14.725l-2.752-.49a11.991 11.991 0 0 1-3.049 3.053l.49 2.748a1 1 0 0 1-.726 1.141l-5.41 1.45a1 1 0 0 1-1.198-.626l-.95-2.625a11.99 11.99 0 0 1-4.167-1.119l-2.137 1.8a1 1 0 0 1-1.351-.058l-3.96-3.96a1 1 0 0 1-.058-1.35l1.798-2.136a12.063 12.063 0 0 1-1.116-4.168l-2.626-.95a1 1 0 0 1-.625-1.2l1.449-5.409a1 1 0 0 1 1.141-.726l2.751.49a11.988 11.988 0 0 1 3.05-3.052l-.49-2.748Zm4.415 13.4a3 3 0 1 1 5.796-1.554 3 3 0 0 1-5.796 1.553Z"/></g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.23 30.648a5 5 0 1 0 2.587 9.66 5 5 0 0 0-2.588-9.66Zm-1.605 5.606a3 3 0 1 1 5.796-1.553 3 3 0 0 1-5.796 1.553Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M55.936 21.714a1 1 0 0 0-.725 1.141l.49 2.748a11.988 11.988 0 0 0-3.05 3.052l-2.75-.49a1 1 0 0 0-1.142.726l-1.45 5.41a1 1 0 0 0 .626 1.198l2.626.95a12.06 12.06 0 0 0 1.116 4.169l-1.798 2.135a1 1 0 0 0 .058 1.352l3.96 3.96a1 1 0 0 0 1.35.057l2.138-1.8c1.296.615 2.707 1 4.167 1.12l.95 2.624a1 1 0 0 0 1.199.625l5.41-1.449a1 1 0 0 0 .725-1.141l-.49-2.748a11.991 11.991 0 0 0 3.05-3.053l2.75.49a1 1 0 0 0 1.141-.725l1.45-5.41a1 1 0 0 0-.626-1.199l-2.625-.95a12.07 12.07 0 0 0-1.117-4.168l1.799-2.136a1 1 0 0 0-.058-1.35l-3.96-3.96a1 1 0 0 0-1.351-.058l-2.138 1.8c-1.296-.616-2.706-1.001-4.166-1.12l-.95-2.624a1 1 0 0 0-1.2-.626l-5.409 1.45Zm1.85 4.19-.445-2.496 3.635-.974.864 2.384a1 1 0 0 0 .917.66 9.988 9.988 0 0 1 4.562 1.225 1 1 0 0 0 1.124-.113l1.942-1.635 2.661 2.661-1.633 1.94a1 1 0 0 0-.113 1.123c.373.684.671 1.423.882 2.21.212.788.322 1.578.341 2.356a1 1 0 0 0 .66.916l2.384.864-.974 3.635-2.5-.445a1 1 0 0 0-1.03.465 9.989 9.989 0 0 1-3.337 3.341 1 1 0 0 0-.465 1.03l.445 2.497-3.636.974-.863-2.385a1 1 0 0 0-.918-.659 9.988 9.988 0 0 1-4.561-1.225 1 1 0 0 0-1.124.112l-1.942 1.636L52 43.339l1.634-1.94a1 1 0 0 0 .113-1.123 10.026 10.026 0 0 1-.883-2.21 10.028 10.028 0 0 1-.34-2.355 1 1 0 0 0-.66-.917l-2.385-.863.974-3.636 2.5.446a1 1 0 0 0 1.03-.465 9.99 9.99 0 0 1 3.338-3.342 1 1 0 0 0 .464-1.03ZM41.076 52.682a6 6 0 1 0-3.106 11.592 6 6 0 0 0 3.106-11.592Zm-5.416 4.76a4 4 0 1 1 7.727 2.071 4 4 0 0 1-7.727-2.07Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M39.86 39.847a1 1 0 0 1 1.2-.628l6.761 1.812a1 1 0 0 1 .726 1.144L47.856 46a14.984 14.984 0 0 1 4.14 4.145l3.83-.692a1 1 0 0 1 1.144.726l1.812 6.761a1 1 0 0 1-.628 1.2l-3.66 1.315a15.069 15.069 0 0 1-.482 2.904c-.26.968-.608 1.889-1.035 2.756l2.512 2.969a1 1 0 0 1-.056 1.353l-4.95 4.95a1 1 0 0 1-1.353.056l-2.97-2.514a14.985 14.985 0 0 1-5.66 1.52l-1.314 3.659a1 1 0 0 1-1.2.627l-6.761-1.811a1 1 0 0 1-.725-1.144l.69-3.826a14.985 14.985 0 0 1-4.14-4.145l-3.83.691a1 1 0 0 1-1.143-.725l-1.812-6.761a1 1 0 0 1 .627-1.2l3.66-1.315c.064-.965.223-1.937.482-2.904.26-.968.608-1.89 1.035-2.756l-2.512-2.97a1 1 0 0 1 .056-1.352l4.95-4.95a1 1 0 0 1 1.353-.056l2.971 2.514a14.985 14.985 0 0 1 5.658-1.52l1.315-3.659Zm1.571 1.542-1.23 3.426a1 1 0 0 1-.923.662c-2.143.039-4.212.612-6.04 1.621a1 1 0 0 1-1.13-.111l-2.781-2.354-3.649 3.648 2.351 2.78a1 1 0 0 1 .113 1.128 13.026 13.026 0 0 0-1.176 2.924 13.028 13.028 0 0 0-.444 3.12 1 1 0 0 1-.662.922l-3.425 1.23 1.335 4.985 3.586-.648a1 1 0 0 1 1.034.468 12.985 12.985 0 0 0 4.42 4.425 1 1 0 0 1 .468 1.034l-.647 3.582 4.984 1.335 1.231-3.425a1 1 0 0 1 .923-.662 12.985 12.985 0 0 0 6.04-1.622 1 1 0 0 1 1.13.112l2.78 2.354 3.65-3.648-2.352-2.78a1 1 0 0 1-.112-1.128 13.03 13.03 0 0 0 1.175-2.924c.28-1.044.424-2.09.444-3.12a1 1 0 0 1 .662-.922l3.426-1.231-1.336-4.984-3.586.648a1 1 0 0 1-1.034-.468 12.986 12.986 0 0 0-4.42-4.425 1 1 0 0 1-.468-1.034l.647-3.582-4.984-1.336Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_230:990"/></filter><filter id="b" x="20.23" y="20.23" width="59.541" height="59.541" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_230:990"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_230:990" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_230:990"/></filter></defs></svg>
|
lib/Settings/assets/images/cta.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle opacity=".24" cx="49" cy="49" r="48" fill="#9DB7D1"/><g filter="url(#b)"><path fill-rule="evenodd" clip-rule="evenodd" d="M54.337 25.5a1 1 0 0 0-1.654-.115L28.419 56.458l-8.479.509a1 1 0 0 0-.806 1.498l8 13.83a1 1 0 0 0 1.7.051l4.681-7.074 7.882-1.105c-.802 1.073-1.063 2.375-.859 3.819.287 2.018 1.874 3.42 3.82 4.198 1.958.782 4.456 1.02 7.02.636h.009c2.573-.389 4.906-1.356 6.566-2.684 1.643-1.315 2.77-3.12 2.484-5.133-.194-1.368-.738-2.488-1.72-3.264l13.869-1.944a1 1 0 0 0 .727-1.491L54.337 25.499Zm13.494 2.477a1 1 0 1 0-1.668-1.103l-3.696 5.587a1 1 0 0 0 1.668 1.104l3.696-5.588Zm6.898 8.825a1 1 0 1 0-.999-1.733l-6.062 3.493a1 1 0 1 0 .999 1.733l6.062-3.493Zm3.328 10.638a1 1 0 1 0-.12-1.997l-6.695.401a1 1 0 1 0 .12 1.997l6.695-.401ZM48.14 63.222c-2.377.333-3.87.936-4.71 1.68-.772.682-1.087 1.56-.91 2.803.146 1.03.989 1.986 2.58 2.621 1.575.629 3.713.859 6.003.513 2.285-.346 4.267-1.197 5.601-2.265 1.354-1.083 1.9-2.256 1.754-3.29-.178-1.25-.69-1.946-1.598-2.34-1.021-.445-2.673-.566-5.238-.202l-3.482.48Z" fill="#F2EFFD"/></g><path fill-rule="evenodd" clip-rule="evenodd" d="M54.337 25.5a1 1 0 0 0-1.654-.115L28.419 56.458l-8.479.509a1 1 0 0 0-.806 1.498l8 13.83a1 1 0 0 0 1.7.051l4.681-7.074 7.882-1.105c-.802 1.073-1.063 2.375-.859 3.819.287 2.018 1.874 3.42 3.82 4.198 1.958.782 4.456 1.02 7.02.636h.009c2.573-.389 4.906-1.356 6.566-2.684 1.643-1.315 2.77-3.12 2.484-5.133-.194-1.368-.738-2.488-1.72-3.264l13.869-1.944a1 1 0 0 0 .727-1.491L54.337 25.499ZM47.86 61.24h-.003l-15.067 2.113a1 1 0 0 0-.695.438l-4.039 6.104-6.38-11.03 7.313-.439a1 1 0 0 0 .728-.383l23.63-30.26 17.49 30.236-22.977 3.221Zm19.97-33.264a1 1 0 1 0-1.668-1.103l-3.696 5.587a1 1 0 0 0 1.668 1.104l3.696-5.588Zm6.898 8.825a1 1 0 1 0-.999-1.733l-6.062 3.493a1 1 0 1 0 .999 1.733l6.062-3.493Zm3.328 10.638a1 1 0 1 0-.12-1.997l-6.695.401a1 1 0 1 0 .12 1.997l6.695-.401ZM48.14 63.222c-2.377.333-3.87.936-4.71 1.68-.772.682-1.087 1.56-.91 2.803.146 1.03.989 1.986 2.58 2.621 1.575.629 3.713.859 6.003.513 2.285-.346 4.267-1.197 5.601-2.265 1.354-1.083 1.9-2.256 1.754-3.29-.178-1.25-.69-1.946-1.598-2.34-1.021-.445-2.673-.566-5.238-.202l-3.482.48Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_550:2976"/></filter><filter id="b" x="19" y="25" width="61.998" height="50" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_550:2976"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_550:2976" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_550:2976"/></filter></defs></svg>
|
lib/Settings/assets/images/design.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle opacity=".24" cx="49" cy="49" r="48" fill="#9DB7D1"/><g filter="url(#b)"><path fill-rule="evenodd" clip-rule="evenodd" d="M19 28a3 3 0 0 1 3-3h54a3 3 0 0 1 3 3v42a3 3 0 0 1-3 3H22a3 3 0 0 1-3-3V28Z" fill="#F2EFFD"/></g><g filter="url(#c)"><path fill-rule="evenodd" clip-rule="evenodd" d="M64.707 35.293a1 1 0 0 1 .096 1.304L50.35 56.033l-.002.003c-.9 1.198-2.122 1.839-3.371 1.947.015.17.023.343.023.517 0 3.008-2.373 5.5-5.364 5.5H34a1 1 0 0 1-.868-1.496l3.894-6.815c.928-1.6 2.638-2.689 4.61-2.689.128 0 .255.005.381.014.111-1.246.752-2.465 1.947-3.362l.003-.002 19.436-14.453a1 1 0 0 1 1.304.096Z" fill="#F2EFFD"/></g><path d="M25 32a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1ZM71 31a1 1 0 1 0 0 2h1a1 1 0 1 0 0-2h-1Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M64.707 35.293a1 1 0 0 1 .096 1.304L50.35 56.033l-.002.003c-.9 1.198-2.122 1.839-3.371 1.947.015.17.023.343.023.517 0 3.008-2.373 5.5-5.364 5.5H34a1 1 0 0 1-.868-1.496l3.894-6.815c.928-1.6 2.638-2.689 4.61-2.689.128 0 .255.005.381.014.111-1.246.752-2.465 1.947-3.362l.003-.002 19.436-14.453a1 1 0 0 1 1.304.096ZM44.005 53.564a5.45 5.45 0 0 1 2.407 2.43c.806.059 1.675-.277 2.334-1.157l.002-.001L59.14 40.86 45.164 51.252l-.001.002c-.871.653-1.209 1.51-1.158 2.31Zm-5.248 3.126-.002.003L35.723 62h5.913C43.466 62 45 60.462 45 58.5c0-.448-.08-.874-.226-1.265A3.443 3.443 0 0 0 42.76 55.2c-.35-.13-.729-.2-1.125-.2-1.209 0-2.283.666-2.88 1.69Z" fill="#002838"/><path d="M49 62a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4ZM57 62a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2H57Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19 28a3 3 0 0 1 3-3h54a3 3 0 0 1 3 3v42a3 3 0 0 1-3 3H22a3 3 0 0 1-3-3V28Zm3-1a1 1 0 0 0-1 1v42a1 1 0 0 0 1 1h54a1 1 0 0 0 1-1V28a1 1 0 0 0-1-1H22Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_550:2573"/></filter><filter id="b" x="19" y="25" width="62" height="50" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_550:2573"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_550:2573" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_550:2573"/></filter><filter id="c" x="33" y="35" width="34" height="31" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_550:2573"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_550:2573" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_550:2573"/></filter></defs></svg>
|
lib/Settings/assets/images/desktop.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle opacity=".24" cx="49" cy="49" r="48" fill="#9DB7D1"/><g filter="url(#b)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 30a5 5 0 0 1 5-5h44a5 5 0 0 1 5 5v32a5 5 0 0 1-5 5H27a5 5 0 0 1-5-5V30Z" fill="#F2EFFD"/></g><g filter="url(#c)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22.142 66.34A2.977 2.977 0 0 1 24.625 65h48.75c1.001 0 1.933.505 2.484 1.34l2.64 4c1.307 1.98-.088 4.66-2.484 4.66h-54.03c-2.395 0-3.79-2.68-2.484-4.66l2.64-4Z" fill="#F2EFFD"/></g><path d="M68 32a1 1 0 1 1 2 0 1 1 0 0 1-2 0ZM28 32a1 1 0 0 1 1-1h36a1 1 0 1 1 0 2H29a1 1 0 0 1-1-1Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M27 25a5 5 0 0 0-5 5v32c0 1.278.48 2.444 1.269 3.328-.45.232-.84.577-1.127 1.012l-2.64 4c-1.307 1.98.088 4.66 2.483 4.66h54.03c2.396 0 3.791-2.68 2.484-4.66l-2.64-4a2.987 2.987 0 0 0-1.127-1.012A4.981 4.981 0 0 0 76 62V30a5 5 0 0 0-5-5H27Zm44 40H27a3 3 0 0 1-3-3V30a3 3 0 0 1 3-3h44a3 3 0 0 1 3 3v32a3 3 0 0 1-3 3Zm-11.766 8H38.766l.91-1.514a1 1 0 0 1 .857-.486h16.935a1 1 0 0 1 .857.486l.91 1.514Zm-22.8 0 1.526-2.543A3 3 0 0 1 40.533 69h16.935a3 3 0 0 1 2.572 1.457L61.566 73h14.45c.768 0 1.262-.88.814-1.558l-2.64-4a.977.977 0 0 0-.815-.442h-48.75a.977.977 0 0 0-.814.442l-2.64 4c-.448.678.045 1.558.814 1.558h14.45Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_549:3043"/></filter><filter id="b" x="22" y="25" width="56" height="44" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_549:3043"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_549:3043" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_549:3043"/></filter><filter id="c" x="19" y="65" width="62.001" height="12" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_549:3043"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_549:3043" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_549:3043"/></filter></defs></svg>
|
lib/Settings/assets/images/gb-layout-button.jpg
ADDED
Binary file
|
lib/Settings/assets/images/genesis-planet-icon-dark.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 17"><path d="M19 9.21a4.43 4.43 0 0 1-.54 1.09 8.29 8.29 0 0 0 .27-2.53A8.17 8.17 0 0 0 4 3.56c-.08.12-.17.24-.25.37a8.09 8.09 0 0 0-1 2.5A7.57 7.57 0 0 1 3 4.06a5.48 5.48 0 0 0-1.86.55 2 2 0 0 0-.89.88.47.47 0 0 0-.06.15v.47a.33.33 0 0 0 0 .14.09.09 0 0 0 0 .07v.36a.09.09 0 0 0 0 .07l.06.16a1.42 1.42 0 0 0 .08.18c0 .07.07.13.1.19a1.27 1.27 0 0 0 .13.19l.15.2c.06.07.12.15.19.22l.21.22.24.23.26.24.29.24.3.24a22 22 0 0 0 6.52 3.17c.48.16 1 .29 1.43.42-3-.41-5.44-.91-7.72-2.39a8.16 8.16 0 0 0 14.4 2.83c1.55-.2 2.61-.74 2.88-1.6A2.7 2.7 0 0 0 19 9.21ZM9.68 9a1.29 1.29 0 0 0 .27.45 1 1 0 0 0 .4.29 1.43 1.43 0 0 0 .5.09h.37l.3-.1V9H11a.16.16 0 0 1-.06-.13v-.56h1.55v1.83a2.49 2.49 0 0 1-.73.36l-.44.08h-.5a2.42 2.42 0 0 1-.88-.17 2.19 2.19 0 0 1-1.17-1.17 2.42 2.42 0 0 1-.17-.88 2.52 2.52 0 0 1 .17-.9 2 2 0 0 1 .46-.7A2.11 2.11 0 0 1 10 6.3a2.57 2.57 0 0 1 1-.16 2.17 2.17 0 0 1 .51 0 3.17 3.17 0 0 1 .44.12 1.85 1.85 0 0 1 .37.19 2.37 2.37 0 0 1 .3.23l-.29.45a.18.18 0 0 1-.23.09.33.33 0 0 1-.19-.06L11.59 7a.85.85 0 0 0-.22 0h-.5a1.25 1.25 0 0 0-.51.1 1.08 1.08 0 0 0-.39.28 1.29 1.29 0 0 0-.25.44 1.58 1.58 0 0 0-.08.57 1.84 1.84 0 0 0 .04.61Z" style="fill:#002838"/></svg>
|
lib/Settings/assets/images/layout.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><path opacity=".24" d="M26.542 71.458C11.76 66.978 1 53.245 1 37 1 17.118 17.118 1 37 1c16.245 0 29.977 10.76 34.458 25.542C86.24 31.022 97 44.755 97 61c0 19.882-16.118 36-36 36-16.245 0-29.977-10.76-34.458-25.542Z" fill="#9DB7D1"/><g filter="url(#b)"><path fill-rule="evenodd" clip-rule="evenodd" d="M19 28a3 3 0 0 1 3-3h54a3 3 0 0 1 3 3v42a3 3 0 0 1-3 3H22a3 3 0 0 1-3-3V28Z" fill="#F2EFFD"/></g><path d="M25 44a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1ZM25 49a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1ZM25 54a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1ZM25 32a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1ZM72 31a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22 25a3 3 0 0 0-3 3v42a3 3 0 0 0 3 3h54a3 3 0 0 0 3-3V28a3 3 0 0 0-3-3H22Zm19 46h35a1 1 0 0 0 1-1V39H41v32Zm-2-32v32H22a1 1 0 0 1-1-1V39h18Zm38-2v-9a1 1 0 0 0-1-1H22a1 1 0 0 0-1 1v9h56Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_230:999"/></filter><filter id="b" x="19" y="25" width="62" height="50" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_230:999"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_230:999" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_230:999"/></filter></defs></svg>
|
lib/Settings/assets/images/permissions.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle opacity=".24" cx="49" cy="49" r="48" fill="#9DB7D1"/><g filter="url(#b)"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.782 19.024a1 1 0 0 1 .436 0l26 5.8A1 1 0 0 1 76 25.8v.042c0 10.114 0 17.755-.409 23.68-.408 5.93-1.232 10.257-2.946 13.699-1.732 3.477-4.326 5.958-8.087 8.288-3.714 2.302-8.64 4.5-15.081 7.373l-.07.031a1 1 0 0 1-.814 0l-.07-.03c-6.441-2.874-11.367-5.072-15.081-7.374-3.76-2.33-6.355-4.81-8.087-8.288-1.714-3.442-2.538-7.77-2.946-13.7C22 43.598 22 35.957 22 25.842V25.8a1 1 0 0 1 .782-.976l26-5.8Z" fill="#F2EFFD"/></g><path d="M61.707 42.707a1 1 0 0 0-1.414-1.414L47 54.586l-8.293-8.293a1 1 0 0 0-1.414 1.414l9 9a1 1 0 0 0 1.414 0l14-14Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M49.218 19.024a1 1 0 0 0-.436 0l-26 5.8A1 1 0 0 0 22 25.8v.042c0 10.114 0 17.755.409 23.68.409 5.93 1.232 10.257 2.946 13.699 1.732 3.477 4.326 5.958 8.087 8.288 3.714 2.302 8.64 4.5 15.081 7.373l.07.031a1 1 0 0 0 .814 0l.07-.03c6.441-2.874 11.367-5.072 15.081-7.374 3.76-2.33 6.355-4.81 8.087-8.288 1.714-3.442 2.538-7.77 2.946-13.7C76 43.598 76 35.957 76 25.842V25.8a1 1 0 0 0-.782-.976l-26-5.8Zm-24.814 30.36C24.01 43.691 24 36.364 24 26.602l25-5.577 25 5.577c0 9.762-.011 17.089-.404 22.782-.404 5.852-1.205 9.862-2.741 12.945-1.518 3.048-3.799 5.28-7.35 7.48-3.51 2.175-8.187 4.277-14.505 7.096-6.318-2.819-10.994-4.92-14.505-7.096-3.551-2.2-5.832-4.432-7.35-7.48-1.536-3.083-2.337-7.093-2.741-12.945Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_550:3193"/></filter><filter id="b" x="22" y="19" width="56" height="62" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_550:3193"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_550:3193" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_550:3193"/></filter></defs></svg>
|
lib/Settings/assets/images/reusable.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle opacity=".24" cx="49" cy="49" r="48" fill="#9DB7D1"/><g filter="url(#b)"><rect x="22" y="22" width="44" height="44" rx="5" fill="#F2EFFD"/></g><g filter="url(#c)"><rect x="32" y="32" width="44" height="44" rx="5" fill="#F2EFFD"/></g><path d="M27 22a5 5 0 0 0-5 5v34a5 5 0 0 0 5 5 1 1 0 1 0 0-2 3 3 0 0 1-3-3V27a3 3 0 0 1 3-3h34a3 3 0 0 1 3 3 1 1 0 1 0 2 0 5 5 0 0 0-5-5H27Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M37 32a5 5 0 0 0-5 5v34a5 5 0 0 0 5 5h34a5 5 0 0 0 5-5V37a5 5 0 0 0-5-5H37Zm-3 5a3 3 0 0 1 3-3h34a3 3 0 0 1 3 3v34a3 3 0 0 1-3 3H37a3 3 0 0 1-3-3V37Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_550:3188"/></filter><filter id="b" x="22" y="22" width="46" height="46" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_550:3188"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_550:3188" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_550:3188"/></filter><filter id="c" x="32" y="32" width="46" height="46" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_550:3188"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_550:3188" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_550:3188"/></filter></defs></svg>
|
lib/Settings/assets/images/step-1.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="64" height="64" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle cx="32" cy="32" r="29.333" fill="#F2EFFD"/></g><path d="M45.36 8.914C32.599 1.547 16.282 5.92 8.914 18.68 1.546 31.44 5.919 47.758 18.68 55.126c.406.234.815.457 1.228.668a1.334 1.334 0 0 1-1.213 2.376 29.9 29.9 0 0 1-1.35-.733C3.309 49.332-1.5 31.383 6.604 17.346 14.708 3.309 32.657-1.501 46.694 6.604c.446.257.883.524 1.31.801a1.334 1.334 0 1 1-1.451 2.24 27.131 27.131 0 0 0-1.193-.73ZM50.89 11.264a1.334 1.334 0 0 1 1.887-.001c.73.728 1.416 1.491 2.057 2.283a1.334 1.334 0 1 1-2.074 1.679 26.459 26.459 0 0 0-1.868-2.075 1.334 1.334 0 0 1-.001-1.886ZM58.173 18.695a1.334 1.334 0 1 0-2.379 1.21c.423.831.802 1.683 1.135 2.552a1.334 1.334 0 1 0 2.491-.954 29.434 29.434 0 0 0-1.247-2.808ZM59.48 26.32a1.334 1.334 0 0 1 1.528 1.108 29.4 29.4 0 0 1 .323 3.055 1.334 1.334 0 1 1-2.664.142 26.766 26.766 0 0 0-.294-2.778 1.334 1.334 0 0 1 1.108-1.527ZM61.014 36.611a1.334 1.334 0 1 0-2.635-.416 26.456 26.456 0 0 1-.58 2.73 1.334 1.334 0 0 0 2.576.693c.267-.996.48-2 .64-3.007ZM57.588 43.55c.656.335.917 1.139.582 1.795a29.9 29.9 0 0 1-1.535 2.659 1.334 1.334 0 0 1-2.24-1.451 27.204 27.204 0 0 0 1.398-2.421 1.334 1.334 0 0 1 1.795-.582ZM52.777 52.777a1.334 1.334 0 0 0-1.888-1.885 26.437 26.437 0 0 1-2.074 1.868 1.334 1.334 0 0 0 1.678 2.074 29.127 29.127 0 0 0 2.284-2.057ZM45.929 56.38c.334.656.072 1.46-.585 1.793-.915.465-1.852.881-2.807 1.247a1.334 1.334 0 0 1-.954-2.491 26.733 26.733 0 0 0 2.552-1.134 1.334 1.334 0 0 1 1.794.584ZM36.612 61.008a1.334 1.334 0 0 0-.42-2.635c-.918.146-1.845.245-2.777.294a1.334 1.334 0 1 0 .142 2.664 29.455 29.455 0 0 0 3.055-.323ZM28.954 59.905a1.334 1.334 0 0 1-1.526 1.11 29.149 29.149 0 0 1-3.006-.64 1.334 1.334 0 1 1 .692-2.577c.905.243 1.816.437 2.731.581a1.334 1.334 0 0 1 1.11 1.526Z" fill="#002838"/><path d="M34.666 20a1.333 1.333 0 0 0-2.276-.943l-5.333 5.334a1.333 1.333 0 1 0 1.886 1.885L32 23.22V44a1.333 1.333 0 0 0 2.666 0V20Z" fill="#002838"/><defs><filter id="a" x="2.667" y="2.667" width="60.666" height="60.667" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow"/></filter></defs></svg>
|
lib/Settings/assets/images/step-2.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="64" height="64" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle cx="32" cy="32" r="29.333" fill="#F2EFFD"/></g><path d="M45.36 8.914C32.599 1.547 16.282 5.92 8.914 18.68 1.546 31.44 5.919 47.758 18.68 55.126c.406.234.815.457 1.228.668a1.334 1.334 0 0 1-1.213 2.376 29.9 29.9 0 0 1-1.35-.733C3.309 49.332-1.5 31.383 6.604 17.346 14.708 3.309 32.657-1.501 46.694 6.604c.446.257.883.524 1.31.801a1.334 1.334 0 1 1-1.451 2.24 27.131 27.131 0 0 0-1.193-.73ZM50.89 11.264a1.334 1.334 0 0 1 1.887-.001c.73.728 1.416 1.491 2.057 2.283a1.334 1.334 0 1 1-2.074 1.679 26.459 26.459 0 0 0-1.868-2.075 1.334 1.334 0 0 1-.001-1.886ZM58.173 18.695a1.334 1.334 0 1 0-2.379 1.21c.423.831.802 1.683 1.135 2.552a1.334 1.334 0 1 0 2.491-.954 29.434 29.434 0 0 0-1.247-2.808ZM59.48 26.32a1.334 1.334 0 0 1 1.528 1.108 29.4 29.4 0 0 1 .323 3.055 1.334 1.334 0 1 1-2.664.142 26.766 26.766 0 0 0-.294-2.778 1.334 1.334 0 0 1 1.108-1.527ZM61.014 36.611a1.334 1.334 0 1 0-2.635-.416 26.456 26.456 0 0 1-.58 2.73 1.334 1.334 0 0 0 2.576.693c.267-.996.48-2 .64-3.007ZM57.588 43.55c.656.335.917 1.139.582 1.795a29.9 29.9 0 0 1-1.535 2.659 1.334 1.334 0 0 1-2.24-1.451 27.204 27.204 0 0 0 1.398-2.421 1.334 1.334 0 0 1 1.795-.582ZM52.777 52.777a1.334 1.334 0 0 0-1.888-1.885 26.437 26.437 0 0 1-2.074 1.868 1.334 1.334 0 0 0 1.678 2.074 29.127 29.127 0 0 0 2.284-2.057ZM45.929 56.38c.334.656.072 1.46-.585 1.793-.915.465-1.852.881-2.807 1.247a1.334 1.334 0 0 1-.954-2.491 26.733 26.733 0 0 0 2.552-1.134 1.334 1.334 0 0 1 1.794.584ZM36.612 61.008a1.334 1.334 0 0 0-.42-2.635c-.918.146-1.845.245-2.777.294a1.334 1.334 0 1 0 .142 2.664 29.455 29.455 0 0 0 3.055-.323ZM28.954 59.905a1.334 1.334 0 0 1-1.526 1.11 29.149 29.149 0 0 1-3.006-.64 1.334 1.334 0 1 1 .692-2.577c.905.243 1.816.437 2.731.581a1.334 1.334 0 0 1 1.11 1.526Z" fill="#002838"/><path d="M32 20c-3.903 0-7.334 2.854-7.334 6.685a1.333 1.333 0 0 0 2.667 0c0-2.08 1.942-4.018 4.667-4.018 2.725 0 4.666 1.938 4.666 4.018 0 1.572-.607 2.77-1.625 3.873-1.005 1.09-2.342 2.018-3.857 3.071l-.28.194C27.798 35.986 24 38.694 24 44c0 .736.597 1.333 1.333 1.333h13.334a1.333 1.333 0 1 0 0-2.666H26.782c.53-2.928 2.824-4.691 5.646-6.655l.343-.238c1.446-1.004 3.017-2.093 4.23-3.407 1.356-1.47 2.332-3.286 2.332-5.682C39.333 22.854 35.903 20 32 20Z" fill="#002838"/><defs><filter id="a" x="2.667" y="2.667" width="60.666" height="60.667" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow"/></filter></defs></svg>
|
lib/Settings/assets/images/step-3.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="64" height="64" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle cx="32" cy="32" r="29.333" fill="#F2EFFD"/></g><path d="M8.914 18.68C16.282 5.919 32.599 1.547 45.36 8.914c.406.235.804.478 1.193.73a1.334 1.334 0 1 0 1.45-2.239 29.772 29.772 0 0 0-1.309-.801C32.657-1.501 14.708 3.309 6.604 17.346c-8.105 14.037-3.296 31.986 10.742 40.09a29.9 29.9 0 0 0 1.349.734 1.334 1.334 0 0 0 1.213-2.376 27.09 27.09 0 0 1-1.228-.668C5.919 47.758 1.546 31.44 8.914 18.68ZM52.777 11.263a1.334 1.334 0 1 0-1.885 1.887 26.459 26.459 0 0 1 1.868 2.075 1.334 1.334 0 1 0 2.074-1.679 29.108 29.108 0 0 0-2.057-2.283ZM58.173 18.695a1.334 1.334 0 1 0-2.379 1.21c.423.831.802 1.683 1.135 2.552a1.334 1.334 0 1 0 2.491-.954 29.434 29.434 0 0 0-1.247-2.808ZM61.008 27.428a1.334 1.334 0 1 0-2.635.42c.146.918.244 1.845.294 2.777a1.334 1.334 0 1 0 2.664-.142 29.4 29.4 0 0 0-.323-3.055ZM61.014 36.611a1.334 1.334 0 1 0-2.635-.416 26.456 26.456 0 0 1-.58 2.73 1.334 1.334 0 0 0 2.576.693c.267-.996.48-2 .64-3.007ZM58.17 45.345a1.334 1.334 0 1 0-2.377-1.213 27.143 27.143 0 0 1-1.397 2.42 1.334 1.334 0 1 0 2.239 1.452 29.811 29.811 0 0 0 1.535-2.66ZM52.777 52.777a1.334 1.334 0 0 0-1.888-1.885 26.437 26.437 0 0 1-2.074 1.868 1.334 1.334 0 0 0 1.678 2.074 29.127 29.127 0 0 0 2.284-2.057ZM45.344 58.173a1.334 1.334 0 0 0-1.209-2.378c-.831.422-1.684.8-2.552 1.134a1.334 1.334 0 0 0 .954 2.491 29.434 29.434 0 0 0 2.807-1.247ZM36.612 61.008a1.334 1.334 0 0 0-.42-2.635c-.918.146-1.845.245-2.777.294a1.334 1.334 0 1 0 .142 2.664 29.455 29.455 0 0 0 3.055-.323ZM27.428 61.015a1.334 1.334 0 0 0 .417-2.636 26.482 26.482 0 0 1-2.73-.58 1.334 1.334 0 0 0-.693 2.576c.996.268 2 .48 3.006.64Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24.666 26.685C24.666 22.854 28.098 20 32 20c3.903 0 7.333 2.854 7.333 6.685 0 2.12-1.067 4.026-2.7 5.278C38.65 33.31 40 35.523 40 38.019c0 4.172-3.722 7.314-8 7.314-4.279 0-8-3.142-8-7.314a1.333 1.333 0 0 1 2.666 0c0 2.434 2.249 4.648 5.334 4.648 3.085 0 5.333-2.214 5.333-4.648 0-2.163-1.736-4.202-4.211-4.665A1.338 1.338 0 0 1 32 32.05a1.334 1.334 0 0 1 1.096-1.325c2.111-.44 3.57-2.21 3.57-4.04 0-2.08-1.941-4.018-4.666-4.018-2.725 0-4.667 1.938-4.667 4.018a1.333 1.333 0 0 1-2.666 0Z" fill="#002838"/><defs><filter id="a" x="2.667" y="2.667" width="60.666" height="60.667" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow"/></filter></defs></svg>
|
lib/Settings/assets/images/step-4.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="64" height="64" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle cx="32" cy="32" r="29.333" fill="#F2EFFD"/></g><path d="M8.914 18.68C16.282 5.919 32.599 1.547 45.36 8.914c.406.235.804.478 1.193.73a1.334 1.334 0 1 0 1.45-2.239 29.772 29.772 0 0 0-1.309-.801C32.657-1.501 14.708 3.309 6.604 17.346c-8.105 14.037-3.296 31.986 10.742 40.09a29.9 29.9 0 0 0 1.349.734 1.334 1.334 0 0 0 1.213-2.376 27.09 27.09 0 0 1-1.228-.668C5.919 47.758 1.546 31.44 8.914 18.68ZM52.777 11.263a1.334 1.334 0 1 0-1.885 1.887 26.459 26.459 0 0 1 1.868 2.075 1.334 1.334 0 1 0 2.074-1.679 29.108 29.108 0 0 0-2.057-2.283ZM58.173 18.695a1.334 1.334 0 1 0-2.379 1.21c.423.831.802 1.683 1.135 2.552a1.334 1.334 0 1 0 2.491-.954 29.434 29.434 0 0 0-1.247-2.808ZM61.008 27.428a1.334 1.334 0 1 0-2.635.42c.146.918.244 1.845.294 2.777a1.334 1.334 0 1 0 2.664-.142 29.4 29.4 0 0 0-.323-3.055ZM61.014 36.611a1.334 1.334 0 1 0-2.635-.416 26.456 26.456 0 0 1-.58 2.73 1.334 1.334 0 0 0 2.576.693c.267-.996.48-2 .64-3.007ZM58.17 45.345a1.334 1.334 0 1 0-2.377-1.213 27.143 27.143 0 0 1-1.397 2.42 1.334 1.334 0 1 0 2.239 1.452 29.811 29.811 0 0 0 1.535-2.66ZM52.777 52.777a1.334 1.334 0 0 0-1.888-1.885 26.437 26.437 0 0 1-2.074 1.868 1.334 1.334 0 0 0 1.678 2.074 29.127 29.127 0 0 0 2.284-2.057ZM45.344 58.173a1.334 1.334 0 0 0-1.209-2.378c-.831.422-1.684.8-2.552 1.134a1.334 1.334 0 0 0 .954 2.491 29.434 29.434 0 0 0 2.807-1.247ZM36.612 61.008a1.334 1.334 0 0 0-.42-2.635c-.918.146-1.845.245-2.777.294a1.334 1.334 0 1 0 .142 2.664 29.455 29.455 0 0 0 3.055-.323ZM27.428 61.015a1.334 1.334 0 0 0 .417-2.636 26.482 26.482 0 0 1-2.73-.58 1.334 1.334 0 0 0-.693 2.576c.996.268 2 .48 3.006.64Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M36.454 20.08c.528.19.88.692.88 1.253V36h1.332a1.333 1.333 0 0 1 0 2.667h-1.333V44a1.333 1.333 0 0 1-2.666 0v-5.333h-12a1.333 1.333 0 0 1-1.025-2.187l13.333-16c.36-.431.95-.591 1.479-.4ZM34.666 36V25.016L25.514 36h9.153Z" fill="#002838"/><defs><filter id="a" x="2.667" y="2.667" width="60.666" height="60.667" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow"/></filter></defs></svg>
|
lib/Settings/assets/images/support.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="98" height="98" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><path opacity=".24" d="M26.542 71.458C11.76 66.978 1 53.245 1 37 1 17.118 17.118 1 37 1c16.245 0 29.977 10.76 34.458 25.542C86.24 31.022 97 44.755 97 61c0 19.882-16.118 36-36 36-16.245 0-29.977-10.76-34.458-25.542Z" fill="#9DB7D1"/><g filter="url(#b)"><path fill-rule="evenodd" clip-rule="evenodd" d="M26 37.845a.963.963 0 0 0 0 .068V38c0 5.348 3.229 9.941 7.843 11.937C26.665 52.68 22 61.182 22 72a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1c0-10.818-4.665-19.32-11.843-22.063C48.77 47.941 52 43.347 52 38v-.156C51.914 30.736 46.127 25 39 25s-12.916 5.737-13 12.845Z" fill="#F2EFFD"/></g><g filter="url(#c)"><path fill-rule="evenodd" clip-rule="evenodd" d="M46 37.845a.963.963 0 0 0 0 .068V38c0 5.348 3.229 9.941 7.843 11.937C46.665 52.68 42 61.182 42 72a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1c0-10.818-4.665-19.32-11.843-22.063C68.77 47.941 72 43.347 72 38v-.156C71.914 30.736 66.127 25 59 25s-12.916 5.737-13 12.845Z" fill="#F2EFFD"/></g><path d="M38.948 27c-6.075 0-11 4.925-11 11s4.925 11 11 11H39a1 1 0 1 1 0 2c-8.168 0-14.65 7.83-14.986 20H37a1 1 0 1 1 0 2H23a1 1 0 0 1-1-1c0-10.804 4.653-19.299 11.816-22.052-4.628-1.99-7.868-6.591-7.868-11.948 0-7.18 5.82-13 13-13 1.931 0 3.767.422 5.417 1.18a1 1 0 0 1-.834 1.817A10.956 10.956 0 0 0 38.948 27ZM60 56a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM59 62a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM60 66a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" fill="#002838"/><path fill-rule="evenodd" clip-rule="evenodd" d="M46 37.913v-.068C46.085 30.737 51.873 25 59 25s12.915 5.736 13 12.844a.978.978 0 0 1 0 .068V38c0 5.348-3.229 9.941-7.843 11.937C71.335 52.68 76 61.182 76 72a1 1 0 0 1-1 1H43a1 1 0 0 1-1-1c0-10.818 4.665-19.32 11.843-22.063C49.23 47.941 46 43.347 46 38v-.087ZM59 51c-8.168 0-14.65 7.83-14.986 20h29.972C73.65 58.83 67.168 51 59 51Zm0-2c5.403 0 9.895-3.895 10.824-9.03-1.094.644-2.309 1.065-3.725 1.028-2.212-.058-4.68-1.225-7.743-3.802-1.423-1.197-2.603-1.803-3.586-2.052a4.203 4.203 0 0 0-2.554.117c-.784.284-1.526.78-2.288 1.4-.378.309-.75.638-1.13.978l-.132.117c-.217.195-.438.393-.66.587C48.185 44.259 53.04 49 59 49Zm0-22c-5.183 0-9.528 3.584-10.693 8.41.118-.101.237-.2.358-.3.833-.677 1.778-1.334 2.87-1.73a6.202 6.202 0 0 1 3.726-.175c1.361.346 2.806 1.135 4.383 2.46 2.936 2.47 4.97 3.293 6.507 3.333 1.373.036 2.543-.546 3.834-1.572C69.687 31.618 64.883 27 59 27Z" fill="#002838"/></g><defs><filter id="a" x=".5" y=".5" width="97" height="97" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation=".25" result="effect1_foregroundBlur_230:986"/></filter><filter id="b" x="22" y="25" width="36" height="50" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_230:986"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_230:986" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_230:986"/></filter><filter id="c" x="42" y="25" width="36" height="50" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2" dy="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_230:986"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_230:986" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="4" dy="4"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="shape" result="effect2_innerShadow_230:986"/></filter></defs></svg>
|
lib/Settings/js/build/app.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '0914c1e0c381a8c783622e66816de6e8');
|
lib/Settings/js/build/app.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(e){var t={};function n(
|
2 |
/**
|
3 |
* Reducer for the Genesis Blocks data store.
|
4 |
*
|
@@ -8,7 +8,7 @@
|
|
8 |
* @since 1.0.0
|
9 |
* @author StudioPress
|
10 |
* @license GPL-2.0-or-later
|
11 |
-
*/var m=
|
12 |
/**
|
13 |
* Actions let components change store state by sending a payload of data.
|
14 |
*
|
@@ -28,7 +28,7 @@ function E(e){return{type:"UPDATE_SETTING",setting:e}}function w(e){return{type:
|
|
28 |
* @since 1.0.0
|
29 |
* @author StudioPress
|
30 |
* @license GPL-2.0-or-later
|
31 |
-
*/var M={selectors:
|
32 |
/**
|
33 |
* SaveButton component
|
34 |
*
|
@@ -38,14 +38,14 @@ function E(e){return{type:"UPDATE_SETTING",setting:e}}function w(e){return{type:
|
|
38 |
* @author StudioPress
|
39 |
* @license GPL-2.0-or-later
|
40 |
*/
|
41 |
-
function(e){var t=e.form,n=e.settings,
|
42 |
/**
|
43 |
* Checkbox field
|
44 |
*
|
45 |
* @since 1.0.0
|
46 |
* @author StudioPress
|
47 |
* @license GPL-2.0-or-later
|
48 |
-
*/var
|
49 |
/**
|
50 |
* Html field
|
51 |
*
|
@@ -53,7 +53,7 @@ function(e){var t=e.form,n=e.settings,r=e.custom,s=e.children,o=e.successMessage
|
|
53 |
* @author StudioPress
|
54 |
* @license GPL-2.0-or-later
|
55 |
*/
|
56 |
-
function(e){var t=e.field;return Object(
|
57 |
/**
|
58 |
* Radio field
|
59 |
*
|
@@ -61,7 +61,7 @@ function(e){var t=e.field;return Object(i.createElement)("div",{dangerouslySetIn
|
|
61 |
* @author StudioPress
|
62 |
* @license GPL-2.0-or-later
|
63 |
*/
|
64 |
-
function(e){var t=e.settings,n=e.field,
|
65 |
/**
|
66 |
* Select field
|
67 |
*
|
@@ -69,7 +69,7 @@ function(e){var t=e.settings,n=e.field,r=e.onUpdate;return Object(i.createElemen
|
|
69 |
* @author StudioPress
|
70 |
* @license GPL-2.0-or-later
|
71 |
*/
|
72 |
-
function(e){var t=e.settings,n=e.field,
|
73 |
/**
|
74 |
* Text field
|
75 |
*
|
@@ -77,7 +77,7 @@ function(e){var t=e.settings,n=e.field,r=e.onUpdate;return Object(i.createElemen
|
|
77 |
* @author StudioPress
|
78 |
* @license GPL-2.0-or-later
|
79 |
*/
|
80 |
-
function(e){var t=e.settings,n=e.field,
|
81 |
/**
|
82 |
* Textarea field
|
83 |
*
|
@@ -85,11 +85,11 @@ function(e){var t=e.settings,n=e.field,r=e.onUpdate;return Object(i.createElemen
|
|
85 |
* @author StudioPress
|
86 |
* @license GPL-2.0-or-later
|
87 |
*/
|
88 |
-
function(e){var t=e.settings,n=e.field,
|
89 |
/**
|
90 |
* The React application for the Genesis Blocks settings page.
|
91 |
*
|
92 |
* @since 1.0.0
|
93 |
* @author StudioPress
|
94 |
* @license GPL-2.0-or-later
|
95 |
-
*/Object(
|
1 |
+
!function(e){var t={};function n(s){if(t[s])return t[s].exports;var i=t[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},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 s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(s,i,function(t){return e[t]}.bind(null,i));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var s=n(15),i=n(16),r=n(17),o=n(19);e.exports=function(e,t){return s(e)||i(e,t)||r(e,t)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.coreData}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,i,r=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!t||r.length!==t);o=!0);}catch(e){a=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw i}}return r}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var s=n(18);e.exports=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var s={};n.r(s),n.d(s,"getSettings",(function(){return O})),n.d(s,"getCustom",(function(){return h})),n.d(s,"getFormInfo",(function(){return j})),n.d(s,"getSections",(function(){return _})),n.d(s,"getModifiedSettings",(function(){return y}));var i={};n.r(i),n.d(i,"updateSetting",(function(){return E})),n.d(i,"updateCustom",(function(){return w})),n.d(i,"resetFormSaveState",(function(){return C})),n.d(i,"saveSettings",(function(){return P}));var r=n(0),o=n(4),a=n(3),c=n(2),l=n(1),u=n(9),f=n(10),g=n(5),b=n.n(g);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}
|
2 |
/**
|
3 |
* Reducer for the Genesis Blocks data store.
|
4 |
*
|
8 |
* @since 1.0.0
|
9 |
* @author StudioPress
|
10 |
* @license GPL-2.0-or-later
|
11 |
+
*/var m=d({form:{fail:!1,success:!1,is_saving:!1},custom:[],modifiedSettings:[]},genesisBlocksSettingsData),v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_CUSTOM"===t.type?d(d({},e),{},{custom:d(d({},e.custom),{},b()({},t.setting.key,t.setting.value))}):"UPDATE_SETTING"===t.type?d(d({},e),{},{settings:d(d({},e.settings),{},b()({},t.setting.key,t.setting.value)),modifiedSettings:d(d({},e.modifiedSettings),{},b()({},t.setting.key,t.setting.value))}):"SAVING"===t.type?d(d({},e),{},{form:d(d({},e.form),{},{fail:!1,success:!1,is_saving:!0})}):"SAVED"===t.type?d(d({},e),{},{form:d(d({},e.form),{},{success:!0===t.success,fail:!0!==t.success,is_saving:!1}),modifiedSettings:t.success?[]:e.modifiedSettings}):"RESET"===t.type?d(d({},e),{},{form:d(d({},e.form),{},{fail:!1,success:!1,is_saving:!1})}):e},O=function(e){return e.settings||{}},h=function(e){return e.custom||{}},j=function(e){return e.form||{}};function _(e){return e.hasOwnProperty("sections")?e.sections:{}}var y=function(e){return e.modifiedSettings||[]},S=n(7),k=n.n(S),x=(n(14),k.a.mark(P));
|
12 |
/**
|
13 |
* Actions let components change store state by sending a payload of data.
|
14 |
*
|
28 |
* @since 1.0.0
|
29 |
* @author StudioPress
|
30 |
* @license GPL-2.0-or-later
|
31 |
+
*/var M={selectors:s,actions:i,reducer:v,controls:f.controls},T=(Object(l.registerStore)("genesis-blocks/global-settings",M),n(11)),A=n(12);var D=Object(a.compose)([Object(l.withSelect)((function(e){return{form:e("genesis-blocks/global-settings").getFormInfo(),settings:e("genesis-blocks/global-settings").getModifiedSettings(),custom:e("genesis-blocks/global-settings").getCustom()}}))])((
|
32 |
/**
|
33 |
* SaveButton component
|
34 |
*
|
38 |
* @author StudioPress
|
39 |
* @license GPL-2.0-or-later
|
40 |
*/
|
41 |
+
function(e){var t=e.form,n=e.settings,s=e.custom,i=e.children,o=e.successMessage,a=e.failMessage,u=e.messageDuration,f=Object(r.useRef)(),g=window.GenesisAnalytics.GAClient;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.Button,{isPrimary:!0,isBusy:t.is_saving,disabled:t.is_saving,onClick:function(){g.enableAnalytics(n.genesis_blocks_analytics_opt_in),Object(A.doAction)("genesisBlocks.savingSettings",n,s),clearTimeout(f.current),Object(l.dispatch)("genesis-blocks/global-settings").saveSettings(n)},className:"genesis-blocks-settings-save has-notices"},i),t.success||t.fail?function(){f.current=setTimeout((function(){return Object(l.dispatch)("genesis-blocks/global-settings").resetFormSaveState()}),1e3*u);var e=t.success?o:a;Object(T.speak)(e,"polite");var n="genesis-blocks-save-notice"+"".concat(t.success?" success":"")+"".concat(t.fail?" fail":"");return Object(r.createElement)("span",{className:n},e)}():"")}));
|
42 |
/**
|
43 |
* Checkbox field
|
44 |
*
|
45 |
* @since 1.0.0
|
46 |
* @author StudioPress
|
47 |
* @license GPL-2.0-or-later
|
48 |
+
*/var N=Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((function(e){var t=e.settings,n=e.field,s=e.onUpdate;return Object(r.createElement)(c.CheckboxControl,{className:n.class,heading:n.heading,label:n.label,help:n.help,checked:!!t[n.id]&&t[n.id],onChange:function(e){return s({key:n.id,value:e})}})}));var U=
|
49 |
/**
|
50 |
* Html field
|
51 |
*
|
53 |
* @author StudioPress
|
54 |
* @license GPL-2.0-or-later
|
55 |
*/
|
56 |
+
function(e){var t=e.field;return Object(r.createElement)("div",{dangerouslySetInnerHTML:{__html:t.content}})},I=n(13),F=n(8),R=["image"],B=Object(o.__)("Image"),G=Object(o.__)("Select an image"),z=Object(o.__)("Choose image"),V=Object(o.__)("Replace image"),L=Object(o.__)("Remove image");var H=Object(l.withSelect)((function(e,t){var n=e("core").getMedia,s=t.settings[t.field.id];return{media:s?n(s):null,imageId:s}})),W=Object(l.withDispatch)((function(e,t){var n=e("genesis-blocks/global-settings").updateSetting;return{onUpdateImage:function(e){n({key:t.field.id,value:e.id})},onRemoveImage:function(){n({key:t.field.id,value:null})}}})),$=Object(a.compose)(H,W)((function(e){var t,n,s,i=e.field,o=e.imageId,a=e.media,l=e.onUpdateImage,u=e.onRemoveImage;if(a){var f=i.image_size||"thumbnail";Object(I.has)(a,["media_details","sizes",f])?(t=a.media_details.sizes[f].width,n=a.media_details.sizes[f].height,s=a.media_details.sizes[f].source_url):(t=a.media_details.width,n=a.media_details.height,s=a.source_url)}return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"genesis-blocks-settings-image"},Object(r.createElement)("p",{className:"components-base-control__label"},i.label||B),Object(r.createElement)(F.MediaUpload,{title:i.label_media_modal||G,onSelect:l,allowedTypes:R,render:function(e){var l=e.open;return Object(r.createElement)("div",{className:"genesis-blocks-settings-image__container"},Object(r.createElement)(c.Button,{className:o?"genesis-blocks-settings-image__preview":"genesis-blocks-settings-image__toggle",onClick:l,"aria-label":i.label_button_aria||null,isSecondary:!0},!!o&&a&&Object(r.createElement)(c.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n,isInline:!0},Object(r.createElement)("img",{src:s,alt:""})),!!o&&!a&&Object(r.createElement)(c.Spinner,null),!o&&(i.label_button||z)))},value:o}),!!o&&a&&!a.isLoading&&Object(r.createElement)(F.MediaUpload,{title:i.label_media_modal||G,onSelect:l,allowedTypes:R,modalClass:"genesis-blocks-settings-image__media-modal",render:function(e){var t=e.open;return Object(r.createElement)(c.Button,{onClick:t,isSecondary:!0,"aria-label":i.label_replace_aria||null},i.label_replace||V)}}),!!o&&Object(r.createElement)(c.Button,{onClick:u,isLink:!0,isDestructive:!0,"aria-label":i.label_remove_aria||null},i.label_remove||L),!!i.help&&Object(r.createElement)("p",{id:i.id+"__help",className:"components-base-control__help"},i.help)))})),q=n(6),J=n.n(q);var K={checkbox:N,html:U,image:$,radio:Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((
|
57 |
/**
|
58 |
* Radio field
|
59 |
*
|
61 |
* @author StudioPress
|
62 |
* @license GPL-2.0-or-later
|
63 |
*/
|
64 |
+
function(e){var t=e.settings,n=e.field,s=e.onUpdate;return Object(r.createElement)(c.RadioControl,{className:n.class,label:n.label,help:n.help,selected:!!t[n.id]&&t[n.id],options:function(e){for(var t=[],n=0,s=Object.entries(e);n<s.length;n++){var i=J()(s[n],2),r=i[0],o=i[1];t.push({value:r,label:o})}return t}(n.options),onChange:function(e){return s({key:n.id,value:e})}})})),select:Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((
|
65 |
/**
|
66 |
* Select field
|
67 |
*
|
69 |
* @author StudioPress
|
70 |
* @license GPL-2.0-or-later
|
71 |
*/
|
72 |
+
function(e){var t=e.settings,n=e.field,s=e.onUpdate;return Object(r.createElement)(c.SelectControl,{className:n.class,label:n.label,help:n.help?n.help:"",value:!!t[n.id]&&t[n.id],options:function(e){for(var t=[],n=0,s=Object.entries(e);n<s.length;n++){var i=J()(s[n],2),r=i[0],o=i[1];t.push({value:r,label:o})}return t}(n.options),onChange:function(e){return s({key:n.id,value:e})}})})),text:Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((
|
73 |
/**
|
74 |
* Text field
|
75 |
*
|
77 |
* @author StudioPress
|
78 |
* @license GPL-2.0-or-later
|
79 |
*/
|
80 |
+
function(e){var t=e.settings,n=e.field,s=e.onUpdate;return Object(r.createElement)(c.TextControl,{className:n.class,label:n.label?n.label:"",help:n.help?n.help:"",onChange:function(e){return s({key:n.id,value:e})},value:t[n.id]?t[n.id]:""})})),textarea:Object(a.compose)([Object(l.withDispatch)((function(){return{onUpdate:function(e){Object(l.dispatch)("genesis-blocks/global-settings").updateSetting({key:e.key,value:e.value})}}}))])((
|
81 |
/**
|
82 |
* Textarea field
|
83 |
*
|
85 |
* @author StudioPress
|
86 |
* @license GPL-2.0-or-later
|
87 |
*/
|
88 |
+
function(e){var t=e.settings,n=e.field,s=e.onUpdate;return Object(r.createElement)(c.TextareaControl,{className:n.class,label:n.label?n.label:"",help:n.help?n.help:"",onChange:function(e){return s({key:n.id,value:e})},value:t[n.id]?t[n.id]:""})}))};var Q=Object(a.compose)([Object(l.withSelect)((function(){return{settings:Object(l.select)("genesis-blocks/global-settings").getSettings(),sections:Object(l.select)("genesis-blocks/global-settings").getSections()}}))])((function(e){var t=e.settings,n=e.sections;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.TabPanel,{className:"genesis-blocks-settings-sections",activeClass:"gb-nav-tab-active",onSelect:function(){Object(l.dispatch)("genesis-blocks/global-settings").resetFormSaveState()},tabs:Object.values(function(e){for(var t in e)e[t].className="gb-nav-tab gb-admin-button";return e}(n))},(function(e){return Object(r.createElement)("div",{className:"gb-admin-plugin-admin-body"},Object(r.createElement)("div",{className:"gb-admin-plugin-container"},function(e){if(e.hasOwnProperty("fields")&&Array.isArray(e.fields)){var n=e.fields.map((function(e,n){if(!K.hasOwnProperty(e.type))return"";var s=K[e.type];return Object(r.createElement)(s,{key:n,settings:t,field:e})}));if(n.length>0)return Object(r.createElement)(r.Fragment,null,n)}return Object(r.createElement)("p",null,Object(o.__)("No fields found for this section.","genesis-blocks"))}(e),Object(r.createElement)(c.SlotFillProvider,null,Object(r.createElement)(c.Slot,{name:"GenesisBlocksSettings_"+e.name.replace("genesis_blocks_settings_","")}),Object(r.createElement)(u.PluginArea,null)),Object(r.createElement)(D,{successMessage:Object(o.__)("Settings saved","genesis-blocks"),failMessage:Object(o.__)("Saving failed","genesis-blocks"),messageDuration:"2"},Object(o.__)("Save All","genesis-blocks"))))})))}));
|
89 |
/**
|
90 |
* The React application for the Genesis Blocks settings page.
|
91 |
*
|
92 |
* @since 1.0.0
|
93 |
* @author StudioPress
|
94 |
* @license GPL-2.0-or-later
|
95 |
+
*/Object(r.render)(Object(r.createElement)(Q,null),document.getElementById("root"))}]);
|
lib/Settings/js/src/components/fields/checkbox.js
CHANGED
@@ -16,6 +16,7 @@ import { dispatch, withDispatch } from '@wordpress/data';
|
|
16 |
function CheckboxComponent({ settings, field, onUpdate }) {
|
17 |
return (
|
18 |
<CheckboxControl
|
|
|
19 |
heading={field.heading}
|
20 |
label={field.label}
|
21 |
help={field.help}
|
16 |
function CheckboxComponent({ settings, field, onUpdate }) {
|
17 |
return (
|
18 |
<CheckboxControl
|
19 |
+
className={field.class}
|
20 |
heading={field.heading}
|
21 |
label={field.label}
|
22 |
help={field.help}
|
lib/Settings/js/src/components/fields/radio.js
CHANGED
@@ -29,6 +29,7 @@ function RadioComponent({ settings, field, onUpdate }) {
|
|
29 |
|
30 |
return (
|
31 |
<RadioControl
|
|
|
32 |
label={field.label}
|
33 |
help={field.help}
|
34 |
selected={settings[field.id] ? settings[field.id] : false}
|
29 |
|
30 |
return (
|
31 |
<RadioControl
|
32 |
+
className={field.class}
|
33 |
label={field.label}
|
34 |
help={field.help}
|
35 |
selected={settings[field.id] ? settings[field.id] : false}
|
lib/Settings/js/src/components/fields/select.js
CHANGED
@@ -24,7 +24,9 @@ function SelectComponent({ settings, field, onUpdate }) {
|
|
24 |
|
25 |
return (
|
26 |
<SelectControl
|
|
|
27 |
label={field.label}
|
|
|
28 |
value={settings[field.id] ? settings[field.id] : false}
|
29 |
options={parseOptions(field.options)}
|
30 |
onChange={(newValue) =>
|
24 |
|
25 |
return (
|
26 |
<SelectControl
|
27 |
+
className={field.class}
|
28 |
label={field.label}
|
29 |
+
help={field.help ? field.help : ''}
|
30 |
value={settings[field.id] ? settings[field.id] : false}
|
31 |
options={parseOptions(field.options)}
|
32 |
onChange={(newValue) =>
|
lib/Settings/js/src/components/fields/text.js
CHANGED
@@ -16,6 +16,7 @@ import { dispatch, withDispatch } from '@wordpress/data';
|
|
16 |
function TextComponent({ settings, field, onUpdate }) {
|
17 |
return (
|
18 |
<TextControl
|
|
|
19 |
label={field.label ? field.label : ''}
|
20 |
help={field.help ? field.help : ''}
|
21 |
onChange={(newValue) =>
|
16 |
function TextComponent({ settings, field, onUpdate }) {
|
17 |
return (
|
18 |
<TextControl
|
19 |
+
className={field.class}
|
20 |
label={field.label ? field.label : ''}
|
21 |
help={field.help ? field.help : ''}
|
22 |
onChange={(newValue) =>
|
lib/Settings/js/src/components/fields/textarea.js
CHANGED
@@ -16,6 +16,7 @@ import { dispatch, withDispatch } from '@wordpress/data';
|
|
16 |
function TextareaComponent({ settings, field, onUpdate }) {
|
17 |
return (
|
18 |
<TextareaControl
|
|
|
19 |
label={field.label ? field.label : ''}
|
20 |
help={field.help ? field.help : ''}
|
21 |
onChange={(newValue) =>
|
16 |
function TextareaComponent({ settings, field, onUpdate }) {
|
17 |
return (
|
18 |
<TextareaControl
|
19 |
+
className={field.class}
|
20 |
label={field.label ? field.label : ''}
|
21 |
help={field.help ? field.help : ''}
|
22 |
onChange={(newValue) =>
|
lib/Settings/js/src/components/save-button.js
CHANGED
@@ -29,11 +29,16 @@ function SaveButtonComponent({
|
|
29 |
}) {
|
30 |
// Reference to the message timer that persists across re-renders.
|
31 |
const messageTimerRef = useRef();
|
|
|
32 |
|
33 |
/**
|
34 |
* Saves the current settings state to the database.
|
|
|
|
|
|
|
35 |
*/
|
36 |
function saveSettings() {
|
|
|
37 |
doAction('genesisBlocks.savingSettings', settings, custom);
|
38 |
clearTimeout(messageTimerRef.current); // Existing timers must not remove new messages prematurely.
|
39 |
dispatch('genesis-blocks/global-settings').saveSettings(settings);
|
29 |
}) {
|
30 |
// Reference to the message timer that persists across re-renders.
|
31 |
const messageTimerRef = useRef();
|
32 |
+
const { GAClient } = window.GenesisAnalytics;
|
33 |
|
34 |
/**
|
35 |
* Saves the current settings state to the database.
|
36 |
+
*
|
37 |
+
* @note Calls GAClient.enableAnalytics to makes sure that any opt in settings
|
38 |
+
* are applied immediately, instead of waiting on a page refresh.
|
39 |
*/
|
40 |
function saveSettings() {
|
41 |
+
GAClient.enableAnalytics(settings.genesis_blocks_analytics_opt_in);
|
42 |
doAction('genesisBlocks.savingSettings', settings, custom);
|
43 |
clearTimeout(messageTimerRef.current); // Existing timers must not remove new messages prematurely.
|
44 |
dispatch('genesis-blocks/global-settings').saveSettings(settings);
|
lib/Settings/js/src/components/settings.js
CHANGED
@@ -70,32 +70,54 @@ function SettingsComponent({ settings, sections }) {
|
|
70 |
}
|
71 |
}
|
72 |
|
73 |
-
return <p>{__('No fields found for this section.')}</p>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
|
76 |
return (
|
77 |
<>
|
78 |
<TabPanel
|
79 |
className="genesis-blocks-settings-sections"
|
80 |
-
activeClass="
|
81 |
onSelect={resetFormSaveState}
|
82 |
-
tabs={
|
|
|
|
|
83 |
>
|
84 |
{(tab) => (
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
</SlotFillProvider>
|
91 |
-
<SaveButton
|
92 |
-
successMessage={__('Settings saved')}
|
93 |
-
failMessage={__('Saving failed')}
|
94 |
-
messageDuration="2"
|
95 |
>
|
96 |
-
{
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
)}
|
100 |
</TabPanel>
|
101 |
</>
|
70 |
}
|
71 |
}
|
72 |
|
73 |
+
return <p>{__('No fields found for this section.', 'genesis-blocks')}</p>;
|
74 |
+
}
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Adds the className value that the TabPanel component desires.
|
78 |
+
*
|
79 |
+
* @param {Object} sections The tabs added for sections.
|
80 |
+
*/
|
81 |
+
function addTabClassNames( sections ) {
|
82 |
+
// Loop through each tab, and add the className to it.
|
83 |
+
for ( const section in sections ) {
|
84 |
+
sections[section].className = 'gb-nav-tab gb-admin-button';
|
85 |
+
}
|
86 |
+
|
87 |
+
return sections;
|
88 |
}
|
89 |
|
90 |
return (
|
91 |
<>
|
92 |
<TabPanel
|
93 |
className="genesis-blocks-settings-sections"
|
94 |
+
activeClass="gb-nav-tab-active"
|
95 |
onSelect={resetFormSaveState}
|
96 |
+
tabs={
|
97 |
+
Object.values( addTabClassNames( sections ) )
|
98 |
+
}
|
99 |
>
|
100 |
{(tab) => (
|
101 |
+
<div
|
102 |
+
className="gb-admin-plugin-admin-body"
|
103 |
+
>
|
104 |
+
<div
|
105 |
+
className="gb-admin-plugin-container"
|
|
|
|
|
|
|
|
|
|
|
106 |
>
|
107 |
+
{renderFields(tab)}
|
108 |
+
<SlotFillProvider>
|
109 |
+
<Slot name={"GenesisBlocksSettings_" + tab.name.replace('genesis_blocks_settings_', '')} />
|
110 |
+
<PluginArea />
|
111 |
+
</SlotFillProvider>
|
112 |
+
<SaveButton
|
113 |
+
successMessage={__('Settings saved', 'genesis-blocks')}
|
114 |
+
failMessage={__('Saving failed', 'genesis-blocks')}
|
115 |
+
messageDuration="2"
|
116 |
+
>
|
117 |
+
{__('Save All', 'genesis-blocks')}
|
118 |
+
</SaveButton>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
)}
|
122 |
</TabPanel>
|
123 |
</>
|
lib/Settings/views/admin/app.php
CHANGED
@@ -13,16 +13,18 @@
|
|
13 |
|
14 |
?>
|
15 |
|
16 |
-
<div class="wrap
|
17 |
-
<div
|
18 |
-
<div class="
|
19 |
-
<
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
25 |
</div>
|
|
|
26 |
</div>
|
27 |
-
<div id="root"></div>
|
28 |
</div>
|
13 |
|
14 |
?>
|
15 |
|
16 |
+
<div class="wrap">
|
17 |
+
<div id="gb-admin-plugin-admin">
|
18 |
+
<div class="gb-admin-plugin-admin-header gb-admin-plugin-grid-2">
|
19 |
+
<div class="gb-admin-plugin-header-title-area">
|
20 |
+
<h1><img class="gb-plugin-common-logo" 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' ); ?>" /><?php echo esc_html( $this->page_title ); ?></h1>
|
21 |
+
</div>
|
22 |
+
<div class="gb-admin-plugin-header-controls-area">
|
23 |
+
<a class="gb-header-button" href="//wordpress.org/support/plugin/genesis-blocks/reviews/" target="_blank" rel="noopener noreferrer">
|
24 |
+
<?php esc_html_e( 'Leave a review!', 'genesis-blocks' ); ?>
|
25 |
+
</a>
|
26 |
+
</div>
|
27 |
</div>
|
28 |
+
<div id="root"></div>
|
29 |
</div>
|
|
|
30 |
</div>
|
lib/Settings/views/admin/getting-started.php
CHANGED
@@ -9,53 +9,113 @@
|
|
9 |
* @link https://github.com/studiopress/genesis-blocks/
|
10 |
*/
|
11 |
|
12 |
-
|
|
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
<a class="components-button review-button hide-mobile" href="//wordpress.org/support/plugin/genesis-blocks/reviews/" target="_blank" rel="noopener noreferrer">
|
20 |
-
<span>★</span>
|
21 |
-
<?php esc_html_e( 'Leave a review!', 'genesis-blocks' ); ?>
|
22 |
-
</a>
|
23 |
-
</div>
|
24 |
-
</div>
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
58 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
</div>
|
60 |
</div>
|
61 |
</div>
|
9 |
* @link https://github.com/studiopress/genesis-blocks/
|
10 |
*/
|
11 |
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
die( '-1' );
|
14 |
+
}
|
15 |
|
16 |
+
// Nonce verification is being ignored here because no user action is being taken here, and no data is being saved. This simply loads the page in question.
|
17 |
+
// Ignoring the nonce allows this page to be loaded from a bookmark, for example.
|
18 |
+
// No saving logic should be added to this page. Rather, it should be handled in a separate function, or ideally through the REST api, which has nonce protection.
|
19 |
+
$genesis_active_tab = filter_input( INPUT_GET, 'tab', FILTER_SANITIZE_STRING, [ 'options' => [ 'default' => 'no-tab' ] ] );
|
20 |
+
$tab_dir = trailingslashit( plugin_dir_path( __FILE__ ) . 'tabs' );
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
+
/**
|
23 |
+
* Callback function to Genesis 101 Tab
|
24 |
+
*
|
25 |
+
* @return void
|
26 |
+
*/
|
27 |
+
function genesis_blocks_genesis_101_tab_renderer() {
|
28 |
+
require_once trailingslashit( plugin_dir_path( __FILE__ ) . 'tabs' ) . 'genesis-101.php';
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Callback function to Collections Tab
|
33 |
+
*
|
34 |
+
* @return void
|
35 |
+
*/
|
36 |
+
function genesis_blocks_collections_tab_renderer() {
|
37 |
+
require_once trailingslashit( plugin_dir_path( __FILE__ ) . 'tabs' ) . 'genesis-collections.php';
|
38 |
+
}
|
39 |
|
40 |
+
/**
|
41 |
+
* Callback function to Genesis Pro Tab
|
42 |
+
*
|
43 |
+
* @return void
|
44 |
+
*/
|
45 |
+
function genesis_blocks_genesis_pro_tab_renderer() {
|
46 |
+
require_once trailingslashit( plugin_dir_path( __FILE__ ) . 'tabs' ) . 'genesis-pro.php';
|
47 |
+
}
|
48 |
+
|
49 |
+
?>
|
50 |
+
|
51 |
+
<div class="wrap">
|
52 |
+
<div id="gb-admin-plugin-admin">
|
53 |
+
<!-- Admin Header -->
|
54 |
+
<div class="gb-admin-plugin-admin-header gb-admin-plugin-grid-2">
|
55 |
+
<div class="gb-admin-plugin-header-title-area">
|
56 |
+
<h1><img class="gb-plugin-common-logo" src="<?php echo esc_url( $this->context['url'] . 'lib/Settings/assets/images/genesis-planet-icon.svg' ); ?>" alt="Genesis Logo">Genesis</h1>
|
57 |
+
</div>
|
58 |
+
<div class="gb-admin-plugin-header-controls-area">
|
59 |
+
<a href="https://wpengine.com/genesis/" class="gb-header-button" target="_blank"
|
60 |
+
rel="noopener noreferrer"><?php esc_html_e( 'About Genesis', 'genesis-blocks' ); ?></a>
|
61 |
</div>
|
62 |
+
</div>
|
63 |
+
<!-- Admin Nav -->
|
64 |
+
<nav class="gb-nav-tab-wrapper">
|
65 |
+
<?php
|
66 |
+
$genesis_tabs = [
|
67 |
+
[
|
68 |
+
'tab_slug' => 'genesis-101',
|
69 |
+
'tab_label' => __( 'Genesis 101', 'genesis-blocks' ),
|
70 |
+
'tab_callback' => 'genesis_blocks_genesis_101_tab_renderer',
|
71 |
+
],
|
72 |
+
[
|
73 |
+
'tab_slug' => 'collections',
|
74 |
+
'tab_label' => __( 'Collections', 'genesis-blocks' ),
|
75 |
+
'tab_callback' => 'genesis_blocks_collections_tab_renderer',
|
76 |
+
],
|
77 |
+
[
|
78 |
+
'tab_slug' => 'genesis-pro',
|
79 |
+
'tab_label' => __( 'Genesis Pro', 'genesis-blocks' ),
|
80 |
+
'tab_callback' => 'genesis_blocks_genesis_pro_tab_renderer',
|
81 |
+
'tab_icon_url' => $this->context['url'] . 'lib/Settings/assets/images/genesis-planet-icon-dark.svg',
|
82 |
+
'tab_icon_alt' => __( 'Genesis Pro', 'genesis-blocks' ),
|
83 |
+
],
|
84 |
+
];
|
85 |
+
|
86 |
+
$genesis_tabs = apply_filters( 'genesis_blocks_setting_started_tabs', $genesis_tabs );
|
87 |
+
foreach ( $genesis_tabs as $key => $genesis_tab ) {
|
88 |
+
$tab_uri = "?page=genesis-blocks-getting-started&tab={$genesis_tab['tab_slug']}"
|
89 |
+
?>
|
90 |
+
<a
|
91 |
+
href=<?php echo esc_url( $tab_uri ); ?>
|
92 |
+
class="gb-nav-tab gb-admin-button
|
93 |
+
<?php
|
94 |
+
|
95 |
+
if ( $genesis_active_tab === $genesis_tab['tab_slug'] || ( $genesis_active_tab === 'no-tab' && $key === 0 ) ) {
|
96 |
+
$genesis_tab_callback = $genesis_tab['tab_callback'];
|
97 |
+
echo 'gb-nav-tab-active';
|
98 |
+
}
|
99 |
+
?>
|
100 |
+
"
|
101 |
+
>
|
102 |
+
<?php
|
103 |
+
if ( isset( $genesis_tab['tab_icon_url'] ) ) {
|
104 |
+
$tab_alt = isset( $genesis_tab['tab_icon_alt'] ) ? $genesis_tab['tab_icon_alt'] : __( 'Tab icon', 'genesis-blocks' );
|
105 |
+
?>
|
106 |
+
<img class="gb-plugin-tab-icon" src="<?php echo esc_url( $genesis_tab['tab_icon_url'] ); ?>" alt="<?php echo esc_attr( $tab_alt ); ?>" >
|
107 |
+
<?php
|
108 |
+
}
|
109 |
+
|
110 |
+
echo esc_html( $genesis_tab['tab_label'] ) . '</a>';
|
111 |
+
}
|
112 |
+
?>
|
113 |
+
</nav>
|
114 |
+
<!-- Admin Body -->
|
115 |
+
<div class="gb-admin-plugin-admin-body">
|
116 |
+
<?php
|
117 |
+
isset( $genesis_tab_callback ) && call_user_func( $genesis_tab_callback );
|
118 |
+
?>
|
119 |
</div>
|
120 |
</div>
|
121 |
</div>
|
lib/Settings/views/admin/tabs/genesis-101.php
ADDED
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Genesis 101 Tab
|
4 |
+
*
|
5 |
+
* @package Genesis\Blocks\Settings
|
6 |
+
* @since 1.3.0
|
7 |
+
* @author StudioPress
|
8 |
+
* @license GPL-2.0-or-later
|
9 |
+
* @link https://github.com/studiopress/genesis-blocks/
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
die( '-1' );
|
14 |
+
}
|
15 |
+
|
16 |
+
?>
|
17 |
+
|
18 |
+
<div class="gb-admin-plugin-container">
|
19 |
+
<h2><?php esc_html_e( 'Genesis 101', 'genesis-blocks' ); ?></h2>
|
20 |
+
<a href="https://developer.wpengine.com/genesis-blocks/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Genesis documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View Genesis documentation', 'genesis-blocks' ); ?></a>
|
21 |
+
<div class="gb-admin-plugin-grid-2">
|
22 |
+
<div class="gb-admin-column">
|
23 |
+
<p>
|
24 |
+
<?php
|
25 |
+
printf(
|
26 |
+
/* translators: %1$: opening i tag, %2$: closing i tag */
|
27 |
+
esc_html__( '%1$sBlock%2$s is a term used for any kind of content that you add in the new WordPress editor. When editing, anything you insert within a page or a post is a block. WordPress includes a few default blocks such as the Paragraph, Image, Heading, Gallery, etc. that give you a great head start.', 'genesis-blocks' ),
|
28 |
+
'<i>',
|
29 |
+
'</i>'
|
30 |
+
);
|
31 |
+
?>
|
32 |
+
</p>
|
33 |
+
</div>
|
34 |
+
<div class="gb-admin-column">
|
35 |
+
<p><?php esc_html_e( 'Working with Genesis Blocks is just like working with the default WordPress blocks. They all offer a quick way to add various types of content to your posts and pages.', 'genesis-blocks' ); ?></p>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
|
40 |
+
<div class="gb-admin-plugin-container gb-genesis-101">
|
41 |
+
<h2 class="centered"><?php esc_html_e( 'Block Documentation', 'genesis-blocks' ); ?></h2>
|
42 |
+
<div class="gb-admin-plugin-grid-auto">
|
43 |
+
<!-- Working with blocks -->
|
44 |
+
<div class="gb-admin-column">
|
45 |
+
<div>
|
46 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/blocks.svg' ); ?>" alt="" />
|
47 |
+
<h3><?php esc_html_e( 'Working with blocks', 'genesis-blocks' ); ?></h3>
|
48 |
+
<p><?php esc_html_e( 'We’ll give a brief overview of how to add blocks and change their settings, as well as how to easily locate existing blocks so you can edit their content or settings.', 'genesis-blocks' ); ?></p>
|
49 |
+
</div>
|
50 |
+
<div class="gb-admin-button-controls centered">
|
51 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/working-with-blocks/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View working with blocks documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
<!-- Responsive Typography -->
|
55 |
+
<div class="gb-admin-column">
|
56 |
+
<div>
|
57 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/desktop.svg' ); ?>" alt="" />
|
58 |
+
<h3><?php esc_html_e( 'Responsive Typography', 'genesis-blocks' ); ?></h3>
|
59 |
+
<p><?php esc_html_e( 'Learn about Genesis responsive controls within the default WP Heading and Paragraph blocks that allow you to choose different font sizes or line heights for desktop, tablet, & mobile.', 'genesis-blocks' ); ?></p>
|
60 |
+
</div>
|
61 |
+
<div class="gb-admin-button-controls centered">
|
62 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/responsive-typography/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Responsive typography documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
63 |
+
</div>
|
64 |
+
</div>
|
65 |
+
<!-- Advanced columns block -->
|
66 |
+
<div class="gb-admin-column">
|
67 |
+
<div>
|
68 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/layout.svg' ); ?>" alt="" />
|
69 |
+
<h3><?php esc_html_e( 'Advanced Columns block', 'genesis-blocks' ); ?></h3>
|
70 |
+
<p><?php esc_html_e( 'The Advanced Columns block gives you a powerful, flexible column system to build custom, full-page layouts for your posts and pages.', 'genesis-blocks' ); ?></p>
|
71 |
+
</div>
|
72 |
+
<div class="gb-admin-button-controls centered">
|
73 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/advanced-columns-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Advanced Columns block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
<!-- Container block -->
|
77 |
+
<div class="gb-admin-column">
|
78 |
+
<div>
|
79 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/layout.svg' ); ?>" alt="" />
|
80 |
+
<h3><?php esc_html_e( 'Container block', 'genesis-blocks' ); ?></h3>
|
81 |
+
<p><?php esc_html_e( 'The Container block allows you to wrap several individual blocks inside a parent container which can help you create differently styled sections of content on your posts and pages.', 'genesis-blocks' ); ?></p>
|
82 |
+
</div>
|
83 |
+
<div class="gb-admin-button-controls centered">
|
84 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/container-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Container block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
<!-- Layouts block -->
|
88 |
+
<div class="gb-admin-column">
|
89 |
+
<div>
|
90 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/layout.svg' ); ?>" alt="" />
|
91 |
+
<h3><?php esc_html_e( 'Layouts block', 'genesis-blocks' ); ?></h3>
|
92 |
+
<p><?php esc_html_e( 'The Layouts block gives you a quick and easy way to build beautiful pages with a library of pre-designed sections, layouts, and collections.', 'genesis-blocks' ); ?></p>
|
93 |
+
</div>
|
94 |
+
<div class="gb-admin-button-controls centered">
|
95 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/layouts-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Layouts block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
<!-- Drop cap block -->
|
99 |
+
<div class="gb-admin-column">
|
100 |
+
<div>
|
101 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/design.svg' ); ?>" alt="" />
|
102 |
+
<h3><?php esc_html_e( 'Drop Cap block', 'genesis-blocks' ); ?></h3>
|
103 |
+
<p><?php esc_html_e( 'The Drop Cap block allows you to add a stylized letter to the first word of a paragraph. After adding a paragraph to the post or page, you can configure the drop cap settings.', 'genesis-blocks' ); ?></p>
|
104 |
+
</div>
|
105 |
+
<div class="gb-admin-button-controls centered">
|
106 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/drop-cap-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Drop Cap block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
<!-- Spacer block -->
|
110 |
+
<div class="gb-admin-column">
|
111 |
+
<div>
|
112 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/design.svg' ); ?>" alt="" />
|
113 |
+
<h3><?php esc_html_e( 'Spacer block', 'genesis-blocks' ); ?></h3>
|
114 |
+
<p><?php esc_html_e( 'The Spacer block allows you to easily add an adjustable-height spacer between other blocks. It also includes an optional divider with settings to change its style.', 'genesis-blocks' ); ?></p>
|
115 |
+
</div>
|
116 |
+
<div class="gb-admin-button-controls centered">
|
117 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/spacer-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Spacer block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
<!-- Button block -->
|
121 |
+
<div class="gb-admin-column">
|
122 |
+
<div>
|
123 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/cta.svg' ); ?>" alt="" />
|
124 |
+
<h3><?php esc_html_e( 'Button block', 'genesis-blocks' ); ?></h3>
|
125 |
+
<p><?php esc_html_e( 'The Button block allows you to add a customizable button to your posts and pages with settings for changing the link target, button shape, button size, and button colors.', 'genesis-blocks' ); ?></p>
|
126 |
+
</div>
|
127 |
+
<div class="gb-admin-button-controls centered">
|
128 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/button-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Button block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
<!-- Call to Action block -->
|
132 |
+
<div class="gb-admin-column">
|
133 |
+
<div>
|
134 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/cta.svg' ); ?>" alt="" />
|
135 |
+
<h3><?php esc_html_e( 'Call to Action block', 'genesis-blocks' ); ?></h3>
|
136 |
+
<p><?php esc_html_e( 'The Call to Action block allows you to add a compact, wide, or full-width call-to-action section to your post or page. ', 'genesis-blocks' ); ?></p>
|
137 |
+
</div>
|
138 |
+
<div class="gb-admin-button-controls centered">
|
139 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/call-to-action-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Call to Action block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
<!-- Email Newsletter block -->
|
143 |
+
<div class="gb-admin-column">
|
144 |
+
<div>
|
145 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/cta.svg' ); ?>" alt="" />
|
146 |
+
<h3><?php esc_html_e( 'Email Newsletter block', 'genesis-blocks' ); ?></h3>
|
147 |
+
<p><?php esc_html_e( 'The Email Newsletter block allows you to add a Mailchimp email subscription form to any location in a post or page. This block currently works with the Mailchimp service only.', 'genesis-blocks' ); ?></p>
|
148 |
+
</div>
|
149 |
+
<div class="gb-admin-button-controls centered">
|
150 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/email-newsletter-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Email Newsletter block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
151 |
+
</div>
|
152 |
+
</div>
|
153 |
+
<!-- Accordion block -->
|
154 |
+
<div class="gb-admin-column">
|
155 |
+
<div>
|
156 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/content.svg' ); ?>" alt="" />
|
157 |
+
<h3><?php esc_html_e( 'Accordion block', 'genesis-blocks' ); ?></h3>
|
158 |
+
<p><?php esc_html_e( 'The Accordion block allows you to display content in expandable/collapsible tabs so you can easily add lots of content without increasing page length.', 'genesis-blocks' ); ?></p>
|
159 |
+
</div>
|
160 |
+
<div class="gb-admin-button-controls centered">
|
161 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/accordion-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Accordion block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
162 |
+
</div>
|
163 |
+
</div>
|
164 |
+
<!-- Device Mockup block -->
|
165 |
+
<div class="gb-admin-column">
|
166 |
+
<div>
|
167 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/content.svg' ); ?>" alt="" />
|
168 |
+
<h3><?php esc_html_e( 'Device Mockup block', 'genesis-blocks' ); ?><span class="gb-pro-badge" aria-label="<?php esc_html_e( 'Included in Genesis Pro', 'genesis-blocks' ); ?>"><?php esc_html_e( 'Pro', 'genesis-blocks' ); ?></span></h3>
|
169 |
+
<p><?php esc_html_e( 'The Device Mockup block allows you to quickly and easily showcase how your designs look on a smartphone or tablet.', 'genesis-blocks' ); ?></p>
|
170 |
+
</div>
|
171 |
+
<div class="gb-admin-button-controls centered">
|
172 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/device-mockup-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Device Mockup block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
173 |
+
</div>
|
174 |
+
</div>
|
175 |
+
<!-- Notice block -->
|
176 |
+
<div class="gb-admin-column">
|
177 |
+
<div>
|
178 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/content.svg' ); ?>" alt="" />
|
179 |
+
<h3><?php esc_html_e( 'Notice block', 'genesis-blocks' ); ?></h3>
|
180 |
+
<p><?php esc_html_e( 'The Notice block allows you add an inline notice box to any post or page. You can use it to highlight information or draw attention to a special message.', 'genesis-blocks' ); ?></p>
|
181 |
+
</div>
|
182 |
+
<div class="gb-admin-button-controls centered">
|
183 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/notice-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Notice block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
<!-- Portfolio block -->
|
187 |
+
<div class="gb-admin-column">
|
188 |
+
<div>
|
189 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/content.svg' ); ?>" alt="" />
|
190 |
+
<h3><?php esc_html_e( 'Portfolio block', 'genesis-blocks' ); ?><span class="gb-pro-badge" aria-label="<?php esc_html_e( 'Included in Genesis Pro', 'genesis-blocks' ); ?>"><?php esc_html_e( 'Pro', 'genesis-blocks' ); ?></span></h3>
|
191 |
+
<p><?php esc_html_e( 'The Portfolio block allows you to display your latest work in a customizable grid-style layout. Using a dedicated custom post type, you can create unique portfolio pages on your own!', 'genesis-blocks' ); ?></p>
|
192 |
+
</div>
|
193 |
+
<div class="gb-admin-button-controls centered">
|
194 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/portfolio-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Portfolio block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
195 |
+
</div>
|
196 |
+
</div>
|
197 |
+
<!-- Post and Page Grid block -->
|
198 |
+
<div class="gb-admin-column">
|
199 |
+
<div>
|
200 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/content.svg' ); ?>" alt="" />
|
201 |
+
<h3><?php esc_html_e( 'Post and Page Grid block', 'genesis-blocks' ); ?></h3>
|
202 |
+
<p><?php esc_html_e( 'The Post and Page Grid block gives you an advanced, customizable, and sortable grid of posts and pages for your site.', 'genesis-blocks' ); ?></p>
|
203 |
+
</div>
|
204 |
+
<div class="gb-admin-button-controls centered">
|
205 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/post-and-page-grid-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Post and Page Grid block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
206 |
+
</div>
|
207 |
+
</div>
|
208 |
+
<!-- Pricing block -->
|
209 |
+
<div class="gb-admin-column">
|
210 |
+
<div>
|
211 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/content.svg' ); ?>" alt="" />
|
212 |
+
<h3><?php esc_html_e( 'Pricing block', 'genesis-blocks' ); ?></h3>
|
213 |
+
<p><?php esc_html_e( 'The Pricing block allows you to build beautiful, dynamic, responsive pricing tables with settings to change columns, colors, padding, and position.', 'genesis-blocks' ); ?></p>
|
214 |
+
</div>
|
215 |
+
<div class="gb-admin-button-controls centered">
|
216 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/pricing-table-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Pricing block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
217 |
+
</div>
|
218 |
+
</div>
|
219 |
+
<!-- Profile Box block -->
|
220 |
+
<div class="gb-admin-column">
|
221 |
+
<div>
|
222 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/content.svg' ); ?>" alt="" />
|
223 |
+
<h3><?php esc_html_e( 'Profile Box block', 'genesis-blocks' ); ?></h3>
|
224 |
+
<p><?php esc_html_e( 'The Profile Box block allows you to easily add a user profile box to any location on a post or page.', 'genesis-blocks' ); ?></p>
|
225 |
+
</div>
|
226 |
+
<div class="gb-admin-button-controls centered">
|
227 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/profile-box-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Profile Box block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
228 |
+
</div>
|
229 |
+
</div>
|
230 |
+
<!-- Sharing block -->
|
231 |
+
<div class="gb-admin-column">
|
232 |
+
<div>
|
233 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/content.svg' ); ?>" alt="" />
|
234 |
+
<h3><?php esc_html_e( 'Sharing block', 'genesis-blocks' ); ?></h3>
|
235 |
+
<p><?php esc_html_e( 'The Sharing block makes it easy to add social media sharing icons anywhere on your post or page that allow readers to share your content on their social media profiles.', 'genesis-blocks' ); ?></p>
|
236 |
+
</div>
|
237 |
+
<div class="gb-admin-button-controls centered">
|
238 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/sharing-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Sharing block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
239 |
+
</div>
|
240 |
+
</div>
|
241 |
+
<!-- Testimonial block -->
|
242 |
+
<div class="gb-admin-column">
|
243 |
+
<div>
|
244 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/content.svg' ); ?>" alt="" />
|
245 |
+
<h3><?php esc_html_e( 'Testimonial block', 'genesis-blocks' ); ?></h3>
|
246 |
+
<p><?php esc_html_e( 'The Testimonial block allows you to add a testimonial box to your post or page that includes the testimonial text as well as the author’s name, title, and avatar.', 'genesis-blocks' ); ?></p>
|
247 |
+
</div>
|
248 |
+
<div class="gb-admin-button-controls centered">
|
249 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/testimonial-block/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Testimonial block documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
250 |
+
</div>
|
251 |
+
</div>
|
252 |
+
<!-- Block Permissions -->
|
253 |
+
<div class="gb-admin-column">
|
254 |
+
<div>
|
255 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/permissions.svg' ); ?>" alt="" />
|
256 |
+
<h3><?php esc_html_e( 'Block Permissions', 'genesis-blocks' ); ?><span class="gb-pro-badge" aria-label="<?php esc_html_e( 'Included in Genesis Pro', 'genesis-blocks' ); ?>"><?php esc_html_e( 'Pro', 'genesis-blocks' ); ?></span></h3>
|
257 |
+
<p><?php esc_html_e( 'Genesis Blocks Pro includes the option to control which user roles have access to the settings of individual blocks.', 'genesis-blocks' ); ?></p>
|
258 |
+
</div>
|
259 |
+
<div class="gb-admin-button-controls centered">
|
260 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/block-permissions/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Block Permissions documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
261 |
+
</div>
|
262 |
+
</div>
|
263 |
+
<!-- Reusable blocks -->
|
264 |
+
<div class="gb-admin-column">
|
265 |
+
<div>
|
266 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/reusable.svg' ); ?>" alt="" />
|
267 |
+
<h3><?php esc_html_e( 'Reusable blocks', 'genesis-blocks' ); ?></h3>
|
268 |
+
<p><?php esc_html_e( 'The WordPress block editor includes a handy Reusable Blocks feature that allows you to save a block (or a group of blocks) and reuse it in other posts and pages on your site. ', 'genesis-blocks' ); ?></p>
|
269 |
+
</div>
|
270 |
+
<div class="gb-admin-button-controls centered">
|
271 |
+
<a class="gb-admin-button-secondary" href="https://developer.wpengine.com/genesis-blocks/reusable-blocks/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Reusable blocks documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View docs', 'genesis-blocks' ); ?></a>
|
272 |
+
</div>
|
273 |
+
</div>
|
274 |
+
</div>
|
275 |
+
</div>
|
lib/Settings/views/admin/tabs/genesis-collections.php
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Collections Tab
|
4 |
+
*
|
5 |
+
* @package Genesis\Blocks\Settings
|
6 |
+
* @since 1.3.0
|
7 |
+
* @author StudioPress
|
8 |
+
* @license GPL-2.0-or-later
|
9 |
+
* @link https://github.com/studiopress/genesis-blocks/
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
die( '-1' );
|
14 |
+
}
|
15 |
+
|
16 |
+
?>
|
17 |
+
|
18 |
+
<div class="gb-admin-plugin-container">
|
19 |
+
<div class="gb-admin-plugin-grid-2 wide-gap">
|
20 |
+
<div>
|
21 |
+
<h2><?php esc_html_e( 'Collections', 'genesis-blocks' ); ?></h2>
|
22 |
+
<p><?php esc_html_e( 'Collections are groups of pre-designed sections and layouts that share the same theme or design aesthetic. They make it easy to quickly build multiple pages on your site that are cohesive in their look and feel.', 'genesis-blocks' ); ?></p>
|
23 |
+
<div class="gb-admin-button-controls">
|
24 |
+
<a class="gb-admin-button-primary" href="https://developer.wpengine.com/genesis-blocks/layouts-block/#collections" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Collections Documentation (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View Collections Documentation', 'genesis-blocks' ); ?></a>
|
25 |
+
</div>
|
26 |
+
</div>
|
27 |
+
<div>
|
28 |
+
<h3><?php esc_html_e( 'How to access collections:', 'genesis-blocks' ); ?></h3>
|
29 |
+
<p>
|
30 |
+
<?php
|
31 |
+
esc_html(
|
32 |
+
printf(
|
33 |
+
/* translators: %1$: opening anchor tag, %2$: closing anchor tag */
|
34 |
+
esc_html__( 'When %1$sediting a page%2$s in your website, you can access Genesis Collections by clicking the “Layouts” button in the top menu bar.', 'genesis-blocks' ),
|
35 |
+
'<a href="' . esc_url( admin_url( '/edit.php?post_type=page' ) ) . '">',
|
36 |
+
'</a>'
|
37 |
+
)
|
38 |
+
);
|
39 |
+
?>
|
40 |
+
</p>
|
41 |
+
<div class="gb-layouts-img">
|
42 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/gb-layout-button.jpg' ); ?>" alt="WordPress Editor top bar buttons">
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
<div class="gb-admin-plugin-container">
|
48 |
+
<h2 class="centered"><?php esc_html_e( 'Current Collections', 'genesis-blocks' ); ?></h2>
|
49 |
+
<div class="gb-admin-plugin-grid-auto">
|
50 |
+
<div class="gb-collection">
|
51 |
+
<div class="gb-collection-img">
|
52 |
+
<img src="https://demo.studiopress.com/page-builder/slate/gb_slate_layout_homepage.jpg" alt="Slate Collection">
|
53 |
+
</div>
|
54 |
+
<div class="gb-collection-info">
|
55 |
+
<p class="gb-collection-title">Slate</p>
|
56 |
+
<div class="gb-collection-demo-link">
|
57 |
+
<a href="https://genesisplay.wpengine.com/slate/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Slate Demo (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View Demo', 'genesis-blocks' ); ?></a>
|
58 |
+
</div>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
<div class="gb-collection">
|
62 |
+
<div class="gb-collection-img">
|
63 |
+
<img src="https://demo.studiopress.com/page-builder/agency/gpb_agency_layout_homepage.jpg" alt="Agency Collection">
|
64 |
+
</div>
|
65 |
+
<div class="gb-collection-info">
|
66 |
+
<p class="gb-collection-title">Agency <span class="gb-pro-badge" aria-label="<?php esc_html_e( 'Included in Genesis Pro', 'genesis-blocks' ); ?>"><?php esc_html_e( 'Pro', 'genesis-blocks' ); ?></span></p>
|
67 |
+
<div class="gb-collection-demo-link">
|
68 |
+
<a href="https://genesisplay.wpengine.com/agency/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Agency Demo (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View Demo', 'genesis-blocks' ); ?></a>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<div class="gb-collection">
|
73 |
+
<div class="gb-collection-img">
|
74 |
+
<img src="https://demo.studiopress.com/page-builder/altitude/gpb_altitude_layout_homepage.jpg" alt="Altitude Collection">
|
75 |
+
</div>
|
76 |
+
<div class="gb-collection-info">
|
77 |
+
<p class="gb-collection-title">Altitude <span class="gb-pro-badge" aria-label="<?php esc_html_e( 'Included in Genesis Pro', 'genesis-blocks' ); ?>"><?php esc_html_e( 'Pro', 'genesis-blocks' ); ?></span></p>
|
78 |
+
<div class="gb-collection-demo-link">
|
79 |
+
<a href="https://genesisplay.wpengine.com/altitude/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Altitude Demo (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View Demo', 'genesis-blocks' ); ?></a>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
<div class="gb-collection">
|
84 |
+
<div class="gb-collection-img">
|
85 |
+
<img src="https://demo.studiopress.com/page-builder/infinity/gpb_infinity_layout_homepage.jpg" alt="Infinity Collection">
|
86 |
+
</div>
|
87 |
+
<div class="gb-collection-info">
|
88 |
+
<p class="gb-collection-title">Infinity <span class="gb-pro-badge" aria-label="<?php esc_html_e( 'Included in Genesis Pro', 'genesis-blocks' ); ?>"><?php esc_html_e( 'Pro', 'genesis-blocks' ); ?></span></p>
|
89 |
+
<div class="gb-collection-demo-link">
|
90 |
+
<a href="https://genesisplay.wpengine.com/infinity/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Infinity Demo (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View Demo', 'genesis-blocks' ); ?></a>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
<div class="gb-collection">
|
95 |
+
<div class="gb-collection-img">
|
96 |
+
<img src="https://demo.studiopress.com/page-builder/monochrome/gpb_monochrome_layout_homepage.jpg" alt="Monochrome Collection">
|
97 |
+
</div>
|
98 |
+
<div class="gb-collection-info">
|
99 |
+
<p class="gb-collection-title">Monochrome <span class="gb-pro-badge" aria-label="<?php esc_html_e( 'Included in Genesis Pro', 'genesis-blocks' ); ?>"><?php esc_html_e( 'Pro', 'genesis-blocks' ); ?></span></p>
|
100 |
+
<div class="gb-collection-demo-link">
|
101 |
+
<a href="https://genesisplay.wpengine.com/monochrome/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Monochrome Demo (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View Demo', 'genesis-blocks' ); ?></a>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
<div class="gb-collection">
|
106 |
+
<div class="gb-collection-img">
|
107 |
+
<img src="https://demo.studiopress.com/page-builder/tangerine/gpb_tangerine_layout_homepage.jpg" alt="Tangerine Collection">
|
108 |
+
</div>
|
109 |
+
<div class="gb-collection-info">
|
110 |
+
<p class="gb-collection-title">Tangerine <span class="gb-pro-badge" aria-label="<?php esc_html_e( 'Included in Genesis Pro', 'genesis-blocks' ); ?>"><?php esc_html_e( 'Pro', 'genesis-blocks' ); ?></span></p>
|
111 |
+
<div class="gb-collection-demo-link">
|
112 |
+
<a href="https://genesisplay.wpengine.com/tangerine/" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'View Tangerine Demo (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'View Demo', 'genesis-blocks' ); ?></a>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
</div>
|
lib/Settings/views/admin/tabs/genesis-pro.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Genesis Pro Tab
|
4 |
+
*
|
5 |
+
* @package Genesis\Blocks\Settings
|
6 |
+
* @since 1.3.0
|
7 |
+
* @author StudioPress
|
8 |
+
* @license GPL-2.0-or-later
|
9 |
+
* @link https://github.com/studiopress/genesis-blocks/
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
die( '-1' );
|
14 |
+
}
|
15 |
+
|
16 |
+
?>
|
17 |
+
|
18 |
+
<div class="gb-admin-plugin-container">
|
19 |
+
<div class="gb-admin-plugin-grid-2 wide-gap">
|
20 |
+
<div>
|
21 |
+
<h2><?php esc_html_e( 'Genesis Pro', 'genesis-blocks' ); ?></h2>
|
22 |
+
<p><?php esc_html_e( 'Genesis Pro provides advanced tools for building better WordPress websites faster! Unlock new features and tools across the Genesis platform including additional blocks and collections, advanced block features, and access to the industry’s most beloved customer support team when you need it.', 'genesis-blocks' ); ?></p>
|
23 |
+
<div class="gb-admin-button-controls">
|
24 |
+
<a href="https://my.wpengine.com/signup?plan=genesis-pro-only" class="gb-admin-button-primary" target="_blank" rel="noopener"><?php esc_html_e( 'Get Genesis Pro', 'genesis-blocks' ); ?></a>
|
25 |
+
<a href="https://wpengine.com/genesis-pro/" class="gb-admin-button-secondary" target="_blank" rel="noopener" aria-label="<?php esc_html_e( 'Learn more about Genesis Pro (opens in a new tab)', 'genesis-blocks' ); ?>"><?php esc_html_e( 'Learn More', 'genesis-blocks' ); ?></a>
|
26 |
+
</div>
|
27 |
+
</div>
|
28 |
+
<div>
|
29 |
+
<h3><?php esc_html_e( 'Genesis Pro at a glance', 'genesis-blocks' ); ?></h3>
|
30 |
+
<ul class="gb-admin-plugin-ul-checks">
|
31 |
+
<li><?php esc_html_e( 'Advanced features for Genesis Blocks', 'genesis-blocks' ); ?></li>
|
32 |
+
<li><?php esc_html_e( 'Access to all design Collections', 'genesis-blocks' ); ?></li>
|
33 |
+
<li><?php esc_html_e( 'Extra Genesis Blocks', 'genesis-blocks' ); ?></li>
|
34 |
+
<li><?php esc_html_e( '24/7 Customer Support', 'genesis-blocks' ); ?></li>
|
35 |
+
</ul>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
<div class="gb-admin-plugin-container">
|
40 |
+
<div class="gb-admin-plugin-grid-2">
|
41 |
+
<div>
|
42 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/layout.svg' ); ?>" alt="" />
|
43 |
+
<h2><?php esc_html_e( 'Sections and Layouts', 'genesis-blocks' ); ?></h2>
|
44 |
+
<p><?php esc_html_e( 'Genesis Pro provides you with a growing collection of page-building section and layout designs. Mix and match from over 70 pre-made designs to create beautiful pages in seconds. There are plenty of designs to choose from in the ever-growing collection.', 'genesis-blocks' ); ?></p>
|
45 |
+
</div>
|
46 |
+
<div>
|
47 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/blocks.svg' ); ?>" alt="" />
|
48 |
+
<h2><?php esc_html_e( 'Premium Block Library', 'genesis-blocks' ); ?></h2>
|
49 |
+
<p><?php esc_html_e( 'Genesis Pro comes with additional blocks for advanced site building including the Device Mockup and Portfolio blocks.', 'genesis-blocks' ); ?></p>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
<div class="gb-admin-plugin-grid-2">
|
53 |
+
<div>
|
54 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/controls.svg' ); ?>" alt="" />
|
55 |
+
<h2><?php esc_html_e( 'Block-based access controls', 'genesis-blocks' ); ?></h2>
|
56 |
+
<p><?php esc_html_e( 'Genesis Pro provides you the option to control which user roles have access to the settings of individual blocks. This is useful if you have specific brand styles (font styles, colors, etc.) and you don’t want to allow editors, authors, and/or contributors to change any branded elements.', 'genesis-blocks' ); ?></p>
|
57 |
+
</div>
|
58 |
+
<div>
|
59 |
+
<img src="<?php echo esc_url( plugin_dir_url( genesis_blocks_main_plugin_file() ) . 'lib/Settings/assets/images/support.svg' ); ?>" alt="" />
|
60 |
+
<h2><?php esc_html_e( 'Industry-leading support', 'genesis-blocks' ); ?></h2>
|
61 |
+
<p><?php esc_html_e( 'A Genesis Pro subscription gives you access to the incredible Customer Experience teams that have been the foundation of WP Engine and StudioPress. You will be able to build with confidence, knowing that you have extensive documentation and 24/7 support available.', 'genesis-blocks' ); ?></p>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
<div class="gb-admin-button-controls centered">
|
65 |
+
<a href="https://my.wpengine.com/signup?plan=genesis-pro-only" class="gb-admin-button-primary" target="_blank" rel="noopener"><?php esc_html_e( 'Get started with Genesis Pro', 'genesis-blocks' ); ?></a>
|
66 |
+
</div>
|
67 |
+
</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:
|
7 |
-
Stable tag: 1.
|
8 |
Requires PHP: 7.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -97,6 +97,11 @@ Yes, you will need to have WordPress 5.3 or later installed to take advantage of
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
100 |
= 1.3.0 =
|
101 |
* Added: Responsive controls for the paragraph and heading core blocks.
|
102 |
|
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: 6.0
|
7 |
+
Stable tag: 1.4.0
|
8 |
Requires PHP: 7.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 1.4.0 =
|
101 |
+
* Added: New Getting Started pages to assist with onboarding.
|
102 |
+
* Added: Optional analytics tracking for responsive styles and layout modal.
|
103 |
+
* Changed: Collections Tab is now the first tab in the layout modal for Sections and Layouts.
|
104 |
+
|
105 |
= 1.3.0 =
|
106 |
* Added: Responsive controls for the paragraph and heading core blocks.
|
107 |
|
src/blocks/block-layout/components/layout/collections/data/useCollectionsVisualState.js
CHANGED
@@ -7,12 +7,9 @@ const {useState} = wp.element;
|
|
7 |
|
8 |
export function useCollectionsVisualState( initialSettings ) {
|
9 |
const [currentView, setCurrentView] = useState( initialSettings.view );
|
10 |
-
const [currentCollection, setCurrentCollection] = useState( initialSettings.collection );
|
11 |
|
12 |
return {
|
13 |
currentView,
|
14 |
setCurrentView,
|
15 |
-
currentCollection,
|
16 |
-
setCurrentCollection,
|
17 |
}
|
18 |
}
|
7 |
|
8 |
export function useCollectionsVisualState( initialSettings ) {
|
9 |
const [currentView, setCurrentView] = useState( initialSettings.view );
|
|
|
10 |
|
11 |
return {
|
12 |
currentView,
|
13 |
setCurrentView,
|
|
|
|
|
14 |
}
|
15 |
}
|
src/blocks/block-layout/components/layout/collections/views/CollectionCard.js
CHANGED
@@ -9,6 +9,9 @@
|
|
9 |
const { __ } = wp.i18n;
|
10 |
const { Button } = wp.components;
|
11 |
|
|
|
|
|
|
|
12 |
export function CollectionCard( props ) {
|
13 |
|
14 |
return (
|
@@ -21,7 +24,8 @@ export function CollectionCard( props ) {
|
|
21 |
isSmall
|
22 |
onClick={ () => {
|
23 |
props.collectionsView.setCurrentView( 'collection' );
|
24 |
-
props.
|
|
|
25 |
} }
|
26 |
>
|
27 |
<div className="gb-layout-collection-cover">
|
9 |
const { __ } = wp.i18n;
|
10 |
const { Button } = wp.components;
|
11 |
|
12 |
+
const { GAClient } = window.GenesisAnalytics;
|
13 |
+
const event_category = 'Layout Modal';
|
14 |
+
|
15 |
export function CollectionCard( props ) {
|
16 |
|
17 |
return (
|
24 |
isSmall
|
25 |
onClick={ () => {
|
26 |
props.collectionsView.setCurrentView( 'collection' );
|
27 |
+
props.setCurrentCollection( props.collectionSlug );
|
28 |
+
GAClient.send( 'Select Collection', { event_category, event_label: props.collectionSlug } );
|
29 |
} }
|
30 |
>
|
31 |
<div className="gb-layout-collection-cover">
|
src/blocks/block-layout/components/layout/collections/views/Collections.js
CHANGED
@@ -14,12 +14,17 @@ import { CollectionCard } from './CollectionCard.js';
|
|
14 |
/**
|
15 |
* WordPress dependencies.
|
16 |
*/
|
|
|
17 |
const { __ } = wp.i18n;
|
18 |
const { ButtonGroup } = wp.components;
|
19 |
|
20 |
export function Collections( props ) {
|
21 |
-
|
22 |
-
const collectionsView = useCollectionsVisualState( {
|
|
|
|
|
|
|
|
|
23 |
|
24 |
function renderCollections( collections ) {
|
25 |
|
@@ -30,7 +35,13 @@ export function Collections( props ) {
|
|
30 |
const mapper = [];
|
31 |
|
32 |
for ( var collection in collections ) {
|
33 |
-
mapper.push( <CollectionCard
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
return(
|
@@ -49,7 +60,7 @@ export function Collections( props ) {
|
|
49 |
|
50 |
for ( var layoutKey in props.context[itemType] ) {
|
51 |
const item = props.context[itemType][layoutKey];
|
52 |
-
if ( item.hasOwnProperty( 'collection' ) &&
|
53 |
mapper.push(
|
54 |
<LayoutLibraryItemCard
|
55 |
key={item.key}
|
@@ -100,7 +111,13 @@ export function Collections( props ) {
|
|
100 |
|
101 |
return (
|
102 |
<div className="gb-collections-view-all-container">
|
103 |
-
<button
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
<span className="dashicons dashicons-arrow-left-alt"></span>
|
105 |
{ __( 'View All Collections ', 'genesis-blocks' ) }
|
106 |
</button>
|
@@ -118,7 +135,7 @@ export function Collections( props ) {
|
|
118 |
|
119 |
if ( collectionsView.currentView === 'collection' ) {
|
120 |
return (
|
121 |
-
<h2 className="gb-collection-title">{ __( 'Browsing ', 'genesis-blocks' ) + props.context.collections[
|
122 |
);
|
123 |
}
|
124 |
|
14 |
/**
|
15 |
* WordPress dependencies.
|
16 |
*/
|
17 |
+
const { useDispatch, useSelect } = wp.data;
|
18 |
const { __ } = wp.i18n;
|
19 |
const { ButtonGroup } = wp.components;
|
20 |
|
21 |
export function Collections( props ) {
|
22 |
+
const { currentCollection } = useSelect( ( select ) => select( 'core/block-editor' ).getSettings() );
|
23 |
+
const collectionsView = useCollectionsVisualState( {
|
24 |
+
view: !! currentCollection ? 'collection' : 'collections',
|
25 |
+
} );
|
26 |
+
const { updateSettings } = useDispatch( 'core/block-editor' );
|
27 |
+
const setCurrentCollection = ( newCollection ) => updateSettings( { currentCollection: newCollection } );
|
28 |
|
29 |
function renderCollections( collections ) {
|
30 |
|
35 |
const mapper = [];
|
36 |
|
37 |
for ( var collection in collections ) {
|
38 |
+
mapper.push( <CollectionCard
|
39 |
+
key={ collection }
|
40 |
+
collectionSlug={ collection }
|
41 |
+
collectionsView={ collectionsView }
|
42 |
+
setCurrentCollection={ setCurrentCollection }
|
43 |
+
{ ...props }
|
44 |
+
/> );
|
45 |
}
|
46 |
|
47 |
return(
|
60 |
|
61 |
for ( var layoutKey in props.context[itemType] ) {
|
62 |
const item = props.context[itemType][layoutKey];
|
63 |
+
if ( item.hasOwnProperty( 'collection' ) && currentCollection === item.collection.slug ) {
|
64 |
mapper.push(
|
65 |
<LayoutLibraryItemCard
|
66 |
key={item.key}
|
111 |
|
112 |
return (
|
113 |
<div className="gb-collections-view-all-container">
|
114 |
+
<button
|
115 |
+
className="gb-collections-view-all-link"
|
116 |
+
onClick={ () => {
|
117 |
+
collectionsView.setCurrentView('collections');
|
118 |
+
collectionsView.setCurrentCollection(null);
|
119 |
+
} }
|
120 |
+
>
|
121 |
<span className="dashicons dashicons-arrow-left-alt"></span>
|
122 |
{ __( 'View All Collections ', 'genesis-blocks' ) }
|
123 |
</button>
|
135 |
|
136 |
if ( collectionsView.currentView === 'collection' ) {
|
137 |
return (
|
138 |
+
<h2 className="gb-collection-title">{ __( 'Browsing ', 'genesis-blocks' ) + props.context.collections[currentCollection]?.label }</h2>
|
139 |
);
|
140 |
}
|
141 |
|
src/blocks/block-layout/components/layout/layout-library-item-card.js
CHANGED
@@ -14,6 +14,9 @@ const { __ } = wp.i18n;
|
|
14 |
const { Component, Fragment } = wp.element;
|
15 |
const { Button, Dashicon, Tooltip } = wp.components;
|
16 |
|
|
|
|
|
|
|
17 |
export default class LayoutLibraryItemCard extends Component {
|
18 |
constructor() {
|
19 |
super( ...arguments );
|
@@ -37,6 +40,7 @@ export default class LayoutLibraryItemCard extends Component {
|
|
37 |
className="gb-layout-insert-button"
|
38 |
isSmall
|
39 |
onClick={ () => {
|
|
|
40 |
this.props.import( this.props.content, this.props.clientId );
|
41 |
} }
|
42 |
>
|
14 |
const { Component, Fragment } = wp.element;
|
15 |
const { Button, Dashicon, Tooltip } = wp.components;
|
16 |
|
17 |
+
const { GAClient } = window.GenesisAnalytics;
|
18 |
+
const event_category = 'Layout Modal';
|
19 |
+
|
20 |
export default class LayoutLibraryItemCard extends Component {
|
21 |
constructor() {
|
22 |
super( ...arguments );
|
40 |
className="gb-layout-insert-button"
|
41 |
isSmall
|
42 |
onClick={ () => {
|
43 |
+
GAClient.send( `Select ${this.props.type}`, { event_category, event_label: this.props.name } );
|
44 |
this.props.import( this.props.content, this.props.clientId );
|
45 |
} }
|
46 |
>
|
src/blocks/block-layout/components/layout/layout-library.js
CHANGED
@@ -25,6 +25,11 @@ const {
|
|
25 |
SelectControl,
|
26 |
} = wp.components;
|
27 |
|
|
|
|
|
|
|
|
|
|
|
28 |
export default class LayoutLibrary extends Component {
|
29 |
constructor() {
|
30 |
super( ...arguments );
|
@@ -111,9 +116,10 @@ export default class LayoutLibrary extends Component {
|
|
111 |
) }
|
112 |
value={ this.state.category }
|
113 |
options={ catOptions }
|
114 |
-
onChange={ ( value ) =>
|
|
|
115 |
this.setState( { category: value } )
|
116 |
-
}
|
117 |
/>
|
118 |
<TextControl
|
119 |
key={
|
@@ -126,9 +132,12 @@ export default class LayoutLibrary extends Component {
|
|
126 |
'Search Layouts',
|
127 |
'genesis-blocks'
|
128 |
) }
|
129 |
-
onChange={ ( value ) =>
|
|
|
|
|
|
|
130 |
this.setState( { search: value } )
|
131 |
-
}
|
132 |
/>
|
133 |
</div>
|
134 |
</Fragment>
|
@@ -183,6 +192,7 @@ export default class LayoutLibrary extends Component {
|
|
183 |
content,
|
184 |
category,
|
185 |
keywords,
|
|
|
186 |
} ) => {
|
187 |
|
188 |
if (
|
@@ -207,6 +217,7 @@ export default class LayoutLibrary extends Component {
|
|
207 |
'layout-library-item-' + key
|
208 |
}
|
209 |
name={ name }
|
|
|
210 |
itemKey={
|
211 |
key
|
212 |
} /* 'key' is reserved, so we use itemKey. */
|
25 |
SelectControl,
|
26 |
} = wp.components;
|
27 |
|
28 |
+
const { debounce, GAClient } = window.GenesisAnalytics;
|
29 |
+
const gaSelectCategory = debounce( GAClient.send.bind( GAClient ), 500 );
|
30 |
+
const gaSearch = debounce( GAClient.send.bind( GAClient ), 500 );
|
31 |
+
const event_category = 'Layout Modal';
|
32 |
+
|
33 |
export default class LayoutLibrary extends Component {
|
34 |
constructor() {
|
35 |
super( ...arguments );
|
116 |
) }
|
117 |
value={ this.state.category }
|
118 |
options={ catOptions }
|
119 |
+
onChange={ ( value ) => {
|
120 |
+
gaSelectCategory( 'Select Category', { event_category, event_label: value } )
|
121 |
this.setState( { category: value } )
|
122 |
+
} }
|
123 |
/>
|
124 |
<TextControl
|
125 |
key={
|
132 |
'Search Layouts',
|
133 |
'genesis-blocks'
|
134 |
) }
|
135 |
+
onChange={ ( value ) => {
|
136 |
+
if ( value.length ) {
|
137 |
+
gaSearch( 'Search', { event_category, event_label: value } )
|
138 |
+
}
|
139 |
this.setState( { search: value } )
|
140 |
+
} }
|
141 |
/>
|
142 |
</div>
|
143 |
</Fragment>
|
192 |
content,
|
193 |
category,
|
194 |
keywords,
|
195 |
+
type,
|
196 |
} ) => {
|
197 |
|
198 |
if (
|
217 |
'layout-library-item-' + key
|
218 |
}
|
219 |
name={ name }
|
220 |
+
type={ type }
|
221 |
itemKey={
|
222 |
key
|
223 |
} /* 'key' is reserved, so we use itemKey. */
|
src/blocks/block-layout/components/layout/layout-modal.js
CHANGED
@@ -12,13 +12,25 @@ 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-
|
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',
|
@@ -35,14 +47,6 @@ function LayoutModal(props) {
|
|
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' ),
|
@@ -128,9 +132,10 @@ function LayoutModal(props) {
|
|
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 ) => {
|
12 |
const { Button, Dashicon, Modal, TabPanel } = wp.components;
|
13 |
const { useDispatch } = wp.data;
|
14 |
|
15 |
+
const { debounce, GAClient } = window.GenesisAnalytics;
|
16 |
+
const gaSelectTab = debounce( GAClient.send.bind( GAClient ), 500 );
|
17 |
+
const event_category = 'Layout Modal';
|
18 |
+
|
19 |
function LayoutModal(props) {
|
20 |
+
const [currentTab, setCurrentTab] = useState( 'gb-layout-tab-collections' );
|
21 |
const [modalOpen, setModalOpen] = useState( true );
|
22 |
const { removeBlock } = useDispatch( 'core/block-editor' );
|
23 |
|
24 |
const tabs = [];
|
25 |
+
|
26 |
+
if ( Object.keys( props.context.collections ).length > 0 ) {
|
27 |
+
tabs.push( {
|
28 |
+
name: 'gb-layout-tab-collections',
|
29 |
+
title: __( 'Collections', 'genesis-blocks' ),
|
30 |
+
className: 'gb-layout-tab-collections',
|
31 |
+
} );
|
32 |
+
}
|
33 |
+
|
34 |
if ( props.context.sections.length > 0 ) {
|
35 |
tabs.push( {
|
36 |
name: 'gb-layout-tab-sections',
|
47 |
} );
|
48 |
}
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
tabs.push( {
|
51 |
name: 'gb-layout-tab-favorites',
|
52 |
title: __( 'Favorites', 'genesis-blocks' ),
|
132 |
}
|
133 |
className="gb-layout-modal-panel"
|
134 |
activeClass="gb-layout-modal-active-tab"
|
135 |
+
onSelect={ ( tabName ) => {
|
136 |
+
gaSelectTab( 'Select Tab', { event_category, event_label: tabName } );
|
137 |
setCurrentTab( tabName )
|
138 |
+
} }
|
139 |
tabs={ tabs }
|
140 |
>
|
141 |
{ ( tab ) => {
|
src/blocks/block-layout/components/layouts-provider.js
CHANGED
@@ -8,6 +8,8 @@
|
|
8 |
import React, { createContext, Component } from 'react';
|
9 |
|
10 |
const { apiFetch } = wp;
|
|
|
|
|
11 |
|
12 |
export const LayoutsContext = createContext( {
|
13 |
favorites: '',
|
@@ -80,6 +82,7 @@ export default class LayoutsProvider extends Component {
|
|
80 |
_wpnonce: wpApiSettings.nonce,
|
81 |
} )
|
82 |
.then( ( favorites ) => {
|
|
|
83 |
return favorites;
|
84 |
} )
|
85 |
.catch( ( error ) => console.error( error ) );
|
@@ -99,6 +102,7 @@ export default class LayoutsProvider extends Component {
|
|
99 |
_wpnonce: wpApiSettings.nonce,
|
100 |
} )
|
101 |
.then( ( favorites ) => {
|
|
|
102 |
return favorites;
|
103 |
} )
|
104 |
.catch( ( error ) => console.error( error ) );
|
8 |
import React, { createContext, Component } from 'react';
|
9 |
|
10 |
const { apiFetch } = wp;
|
11 |
+
const { GAClient } = window.GenesisAnalytics;
|
12 |
+
const event_category = 'Layout Modal';
|
13 |
|
14 |
export const LayoutsContext = createContext( {
|
15 |
favorites: '',
|
82 |
_wpnonce: wpApiSettings.nonce,
|
83 |
} )
|
84 |
.then( ( favorites ) => {
|
85 |
+
GAClient.send( 'Add Favorite', { event_category } );
|
86 |
return favorites;
|
87 |
} )
|
88 |
.catch( ( error ) => console.error( error ) );
|
102 |
_wpnonce: wpApiSettings.nonce,
|
103 |
} )
|
104 |
.then( ( favorites ) => {
|
105 |
+
GAClient.send( 'Remove Favorite', { event_category } );
|
106 |
return favorites;
|
107 |
} )
|
108 |
.catch( ( error ) => console.error( error ) );
|
src/blocks/block-layout/index.js
CHANGED
@@ -99,4 +99,5 @@ function appendImportButton() {
|
|
99 |
function gbInsertLayout() {
|
100 |
const block = wp.blocks.createBlock( 'genesis-blocks/gb-layouts' );
|
101 |
wp.data.dispatch( 'core/block-editor' ).insertBlocks( block );
|
|
|
102 |
}
|
99 |
function gbInsertLayout() {
|
100 |
const block = wp.blocks.createBlock( 'genesis-blocks/gb-layouts' );
|
101 |
wp.data.dispatch( 'core/block-editor' ).insertBlocks( block );
|
102 |
+
window.GenesisAnalytics.GAClient.send( 'Open Modal', { event_category: 'Layout Modal' });
|
103 |
}
|
src/blocks/block-newsletter/index.php
CHANGED
@@ -277,6 +277,19 @@ function genesis_blocks_register_newsletter_block_sections_and_fields() {
|
|
277 |
'genesis_blocks_global_settings'
|
278 |
);
|
279 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
// Add the Mailchimp API key field.
|
281 |
add_settings_field(
|
282 |
'genesis_blocks_mailchimp_api_key',
|
277 |
'genesis_blocks_global_settings'
|
278 |
);
|
279 |
|
280 |
+
add_settings_field(
|
281 |
+
'genesis_blocks_block_newsletter_intro',
|
282 |
+
__( 'Newsletter Block Settings', 'genesis-blocks' ),
|
283 |
+
null, // Rendering is handled by React, not WordPress.
|
284 |
+
'genesis_blocks_global_settings',
|
285 |
+
'genesis_blocks_settings_newsletter_block_section',
|
286 |
+
[
|
287 |
+
// phpcs:ignore WordPress.WP.I18n.NoHtmlWrappedStrings -- passing to React to render.
|
288 |
+
'content' => '<h2>' . __( 'Newsletter Block Settings', 'genesis-blocks' ) . '</h2><p>' . __( 'Setup the email newsletter block with Mailchimp.', 'genesis-blocks' ) . ' <a target="_blank" rel="noopener noreferrer" href="https://developer.wpengine.com/genesis-blocks/email-newsletter-block/">' . __( 'View Documentation', 'genesis-blocks' ) . '</a></p>',
|
289 |
+
'type' => 'html',
|
290 |
+
]
|
291 |
+
);
|
292 |
+
|
293 |
// Add the Mailchimp API key field.
|
294 |
add_settings_field(
|
295 |
'genesis_blocks_mailchimp_api_key',
|
src/blocks/responsive-settings/components/with-responsive-settings.js
CHANGED
@@ -21,6 +21,12 @@ import {
|
|
21 |
} from '../constants';
|
22 |
import { conditionallyAddPxUnit, getFontSize, getFontSlug } from '../utils';
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
export const withResponsiveSettings = createHigherOrderComponent( ( BlockEdit ) => {
|
25 |
return ( props ) => {
|
26 |
const {
|
@@ -58,6 +64,7 @@ export const withResponsiveSettings = createHigherOrderComponent( ( BlockEdit )
|
|
58 |
*/
|
59 |
const setSelectedDevice = ( device ) => {
|
60 |
if ( !! __experimentalSetPreviewDeviceType ) {
|
|
|
61 |
__experimentalSetPreviewDeviceType( device );
|
62 |
}
|
63 |
}
|
@@ -121,6 +128,11 @@ export const withResponsiveSettings = createHigherOrderComponent( ( BlockEdit )
|
|
121 |
}
|
122 |
},
|
123 |
} );
|
|
|
|
|
|
|
|
|
|
|
124 |
}
|
125 |
|
126 |
const mobileFont = getResponsiveValueForDevice( 'fontSize', DEVICE_SIZES.Mobile );
|
21 |
} from '../constants';
|
22 |
import { conditionallyAddPxUnit, getFontSize, getFontSlug } from '../utils';
|
23 |
|
24 |
+
const { debounce, GAClient } = window.GenesisAnalytics;
|
25 |
+
const event_category = "Responsive Styles";
|
26 |
+
const sendDeviceEvent = debounce(GAClient.sendBlockEvent.bind(GAClient), 500);
|
27 |
+
const sendFontSizeEvent = debounce(GAClient.sendBlockEvent.bind(GAClient), 500);
|
28 |
+
const sendLineHeightEvent = debounce(GAClient.sendBlockEvent.bind(GAClient), 500);
|
29 |
+
|
30 |
export const withResponsiveSettings = createHigherOrderComponent( ( BlockEdit ) => {
|
31 |
return ( props ) => {
|
32 |
const {
|
64 |
*/
|
65 |
const setSelectedDevice = ( device ) => {
|
66 |
if ( !! __experimentalSetPreviewDeviceType ) {
|
67 |
+
sendDeviceEvent( { action: `Select Device - ${device}`, event_category } );
|
68 |
__experimentalSetPreviewDeviceType( device );
|
69 |
}
|
70 |
}
|
128 |
}
|
129 |
},
|
130 |
} );
|
131 |
+
if( key === 'lineHeight' ) {
|
132 |
+
sendLineHeightEvent( { action: `Set - ${key}`, event_category } )
|
133 |
+
} else {
|
134 |
+
sendFontSizeEvent( { action: `Set - ${key}`, event_category } )
|
135 |
+
}
|
136 |
}
|
137 |
|
138 |
const mobileFont = getResponsiveValueForDevice( 'fontSize', DEVICE_SIZES.Mobile );
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit6ca4a750f9b9385834a682fc0c71c6a1::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -6,6 +6,9 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
|
|
|
|
|
|
9 |
'Genesis\\Blocks\\BlockLoader\\ManualRequire' => $baseDir . '/lib/BlockLoader/ManualRequire.php',
|
10 |
'Genesis\\Blocks\\BlockLoader\\Module' => $baseDir . '/lib/BlockLoader/Module.php',
|
11 |
'Genesis\\Blocks\\BlockLoader\\Tests\\ManualRequireTest' => $baseDir . '/lib/BlockLoader/Tests/ManualRequireTest.php',
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
+
'Genesis\\Blocks\\Analytics\\AdminPage' => $baseDir . '/lib/Analytics/AdminPage.php',
|
10 |
+
'Genesis\\Blocks\\Analytics\\AssetManager' => $baseDir . '/lib/Analytics/AssetManager.php',
|
11 |
+
'Genesis\\Blocks\\Analytics\\Module' => $baseDir . '/lib/Analytics/Module.php',
|
12 |
'Genesis\\Blocks\\BlockLoader\\ManualRequire' => $baseDir . '/lib/BlockLoader/ManualRequire.php',
|
13 |
'Genesis\\Blocks\\BlockLoader\\Module' => $baseDir . '/lib/BlockLoader/Module.php',
|
14 |
'Genesis\\Blocks\\BlockLoader\\Tests\\ManualRequireTest' => $baseDir . '/lib/BlockLoader/Tests/ManualRequireTest.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit8fc3f1a87ab74aa2d782042afd3e138d
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit6ca4a750f9b9385834a682fc0c71c6a1
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit6ca4a750f9b9385834a682fc0c71c6a1', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit6ca4a750f9b9385834a682fc0c71c6a1', '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\ComposerStaticInit6ca4a750f9b9385834a682fc0c71c6a1::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'G' =>
|
@@ -21,6 +21,9 @@ class ComposerStaticInit8fc3f1a87ab74aa2d782042afd3e138d
|
|
21 |
);
|
22 |
|
23 |
public static $classMap = array (
|
|
|
|
|
|
|
24 |
'Genesis\\Blocks\\BlockLoader\\ManualRequire' => __DIR__ . '/../..' . '/lib/BlockLoader/ManualRequire.php',
|
25 |
'Genesis\\Blocks\\BlockLoader\\Module' => __DIR__ . '/../..' . '/lib/BlockLoader/Module.php',
|
26 |
'Genesis\\Blocks\\BlockLoader\\Tests\\ManualRequireTest' => __DIR__ . '/../..' . '/lib/BlockLoader/Tests/ManualRequireTest.php',
|
@@ -47,9 +50,9 @@ class ComposerStaticInit8fc3f1a87ab74aa2d782042afd3e138d
|
|
47 |
public static function getInitializer(ClassLoader $loader)
|
48 |
{
|
49 |
return \Closure::bind(function () use ($loader) {
|
50 |
-
$loader->prefixLengthsPsr4 =
|
51 |
-
$loader->prefixDirsPsr4 =
|
52 |
-
$loader->classMap =
|
53 |
|
54 |
}, null, ClassLoader::class);
|
55 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit6ca4a750f9b9385834a682fc0c71c6a1
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'G' =>
|
21 |
);
|
22 |
|
23 |
public static $classMap = array (
|
24 |
+
'Genesis\\Blocks\\Analytics\\AdminPage' => __DIR__ . '/../..' . '/lib/Analytics/AdminPage.php',
|
25 |
+
'Genesis\\Blocks\\Analytics\\AssetManager' => __DIR__ . '/../..' . '/lib/Analytics/AssetManager.php',
|
26 |
+
'Genesis\\Blocks\\Analytics\\Module' => __DIR__ . '/../..' . '/lib/Analytics/Module.php',
|
27 |
'Genesis\\Blocks\\BlockLoader\\ManualRequire' => __DIR__ . '/../..' . '/lib/BlockLoader/ManualRequire.php',
|
28 |
'Genesis\\Blocks\\BlockLoader\\Module' => __DIR__ . '/../..' . '/lib/BlockLoader/Module.php',
|
29 |
'Genesis\\Blocks\\BlockLoader\\Tests\\ManualRequireTest' => __DIR__ . '/../..' . '/lib/BlockLoader/Tests/ManualRequireTest.php',
|
50 |
public static function getInitializer(ClassLoader $loader)
|
51 |
{
|
52 |
return \Closure::bind(function () use ($loader) {
|
53 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit6ca4a750f9b9385834a682fc0c71c6a1::$prefixLengthsPsr4;
|
54 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit6ca4a750f9b9385834a682fc0c71c6a1::$prefixDirsPsr4;
|
55 |
+
$loader->classMap = ComposerStaticInit6ca4a750f9b9385834a682fc0c71c6a1::$classMap;
|
56 |
|
57 |
}, null, ClassLoader::class);
|
58 |
}
|